/* =========================================================
   V&L SISTEMAS — Design system
   Tokens
   ========================================================= */
:root{
  --bg:            #F6F8FC;
  --bg-alt:        #EDF0FA;
  --panel:         #FFFFFF;
  --ink:           #0E1330;
  --ink-soft:      #4B5175;
  --line:          #DFE3F2;

  --navy-deep:     #0A0E24;
  --navy:          #10163A;
  --navy-soft:     #1B2251;

  --blue:          #2C46E0;
  --blue-dim:      #4A5FE8;
  --blue-ghost:    rgba(44,70,224,.08);

  --orange:        #FF6B2C;
  --orange-dim:    #FF8A55;

  --teal:          #17C98D;

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;

  --shadow-soft: 0 20px 60px -25px rgba(16,22,58,.35);
  --shadow-tight: 0 8px 24px -12px rgba(16,22,58,.28);

  --font-display: "Space Grotesk", "Sora", sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body.vl{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
.vl img{ max-width:100%; display:block; }
.vl a{ color:inherit; text-decoration:none; }
.vl ul{ margin:0; padding:0; list-style:none; }
.vl section{ position:relative; }

.vl .wrap{
  max-width:1180px;
  margin:0 auto;
  padding:0 28px;
}

.vl h1,.vl h2,.vl h3,.vl h4{
  font-family:var(--font-display);
  font-weight:600;
  line-height:1.1;
  margin:0;
  letter-spacing:-0.01em;
}

.vl .eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-family:var(--font-mono);
  font-size:.78rem;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--blue);
  margin-bottom:14px;
}
.vl .eyebrow::before{
  content:"";
  width:18px; height:2px;
  background:var(--orange);
  display:inline-block;
}
.vl section.on-dark .eyebrow{ color:var(--orange-dim); }

.vl .btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-family:var(--font-body);
  font-weight:600;
  font-size:.95rem;
  padding:14px 26px;
  border-radius:999px;
  border:1px solid transparent;
  cursor:pointer;
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.vl .btn:active{ transform:translateY(1px); }
.vl .btn-primary{
  background:var(--ink);
  color:#fff;
  box-shadow:var(--shadow-tight);
}
.vl .btn-primary:hover{ background:var(--blue); transform:translateY(-2px); }
.vl .btn-accent{
  background:var(--orange);
  color:#fff;
}
.vl .btn-accent:hover{ background:#ff5a10; transform:translateY(-2px); }
.vl .btn-ghost{
  background:transparent;
  border-color:var(--line);
  color:var(--ink);
}
.vl .btn-ghost:hover{ border-color:var(--blue); color:var(--blue); }
.vl section.on-dark .btn-ghost{ border-color:rgba(255,255,255,.25); color:#fff; }
.vl .btn-sm{ padding:9px 18px; font-size:.82rem; }
.vl .btn svg{ width:16px; height:16px; }

/* =========================================================
   HEADER
   ========================================================= */
.vl-header{
  position:sticky; top:0; z-index:100;
  background:rgba(246,248,252,.78);
  backdrop-filter:blur(14px);
  border-bottom:1px solid var(--line);
}
.vl-header .bar{
  display:flex; align-items:center; justify-content:space-between;
  padding:16px 28px;
  max-width:1180px; margin:0 auto;
}
.vl-brand{ display:flex; align-items:center; gap:10px; font-family:var(--font-display); font-weight:700; font-size:1.05rem; }
.vl-brand .mark{ height:38px; width:auto; display:block; }

.vl-nav{ display:flex; align-items:center; gap:34px; }
.vl-nav a{
  font-size:.92rem; font-weight:500; color:var(--ink-soft);
  position:relative; padding:4px 0;
}
.vl-nav a:hover{ color:var(--ink); }
.vl-nav a::after{
  content:""; position:absolute; left:0; bottom:-3px; height:2px; width:0%;
  background:var(--orange); transition:width .2s ease;
}
.vl-nav a:hover::after{ width:100%; }

.vl-burger{ display:none; background:none; border:none; cursor:pointer; padding:6px; }
.vl-burger span{ display:block; width:22px; height:2px; background:var(--ink); margin:5px 0; }

/* =========================================================
   HERO
   ========================================================= */
.vl-hero{ padding:76px 0 60px; overflow:hidden; }
.vl-hero .grid{
  display:grid; grid-template-columns:1.05fr .95fr; gap:56px; align-items:center;
}
.vl-hero h1{
  font-size:clamp(2.2rem, 4vw, 3.35rem);
  color:var(--navy-deep);
}
.vl-hero h1 em{ font-style:normal; color:var(--blue); }
.vl-hero p.lead{
  margin-top:20px; font-size:1.1rem; color:var(--ink-soft); max-width:480px;
}
.vl-hero .cta-row{ display:flex; gap:14px; margin-top:34px; flex-wrap:wrap; }

.vl-stats{
  display:flex; gap:36px; margin-top:56px; padding-top:28px; border-top:1px solid var(--line); flex-wrap:wrap;
}
.vl-stats .stat b{
  display:block; font-family:var(--font-display); font-size:1.7rem; color:var(--navy-deep);
}
.vl-stats .stat span{ font-size:.82rem; color:var(--ink-soft); }

/* --- signature element: live control panel mockup --- */
.vl-panel{
  background:linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  border-radius:var(--radius-lg);
  padding:22px;
  box-shadow:var(--shadow-soft);
  position:relative;
  animation:vlFloat 7s ease-in-out infinite;
}
@keyframes vlFloat{ 0%,100%{ transform:translateY(0);} 50%{ transform:translateY(-10px);} }
.vl-panel-top{ display:flex; align-items:center; justify-content:space-between; margin-bottom:16px; }
.vl-panel-tabs{ display:flex; gap:6px; }
.vl-panel-tabs span{
  font-family:var(--font-mono); font-size:.68rem; letter-spacing:.05em;
  color:rgba(255,255,255,.55); padding:7px 12px; border-radius:999px;
}
.vl-panel-tabs span.active{ background:rgba(255,255,255,.1); color:#fff; }
.vl-live{ display:flex; align-items:center; gap:7px; font-family:var(--font-mono); font-size:.68rem; color:var(--teal); }
.vl-live i{ width:7px; height:7px; border-radius:50%; background:var(--teal); box-shadow:0 0 0 0 rgba(23,201,141,.6); animation:vlPulse 1.8s infinite; }
@keyframes vlPulse{ 0%{ box-shadow:0 0 0 0 rgba(23,201,141,.55);} 70%{ box-shadow:0 0 0 8px rgba(23,201,141,0);} 100%{ box-shadow:0 0 0 0 rgba(23,201,141,0);} }

.vl-panel-body{ background:rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.07); border-radius:var(--radius-md); padding:20px; }
.vl-kpis{ display:grid; grid-template-columns:1fr 1fr 1fr; gap:12px; margin-bottom:18px; }
.vl-kpi{ background:rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.06); border-radius:12px; padding:12px 14px; }
.vl-kpi span{ display:block; font-family:var(--font-mono); font-size:.65rem; color:rgba(255,255,255,.5); margin-bottom:6px; }
.vl-kpi b{ font-family:var(--font-display); font-size:1.35rem; color:#fff; }
.vl-kpi b em{ color:var(--teal); font-style:normal; font-size:.7rem; margin-left:4px; }

.vl-bars{ display:flex; align-items:flex-end; gap:8px; height:86px; margin-bottom:10px; }
.vl-bars i{ flex:1; background:linear-gradient(180deg, var(--blue-dim), var(--blue)); border-radius:6px 6px 2px 2px; opacity:.85; }
.vl-panel-foot{ display:flex; justify-content:space-between; font-family:var(--font-mono); font-size:.64rem; color:rgba(255,255,255,.4); }

/* =========================================================
   SECTION HEADS
   ========================================================= */
.vl-section-head{ max-width:640px; margin-bottom:44px; }
.vl-section-head h2{ font-size:clamp(1.7rem,3vw,2.3rem); color:var(--navy-deep); }
.vl-section-head p{ color:var(--ink-soft); margin-top:14px; font-size:1.02rem; }
.on-dark .vl-section-head h2{ color:#fff; }
.on-dark .vl-section-head p{ color:rgba(255,255,255,.65); }

section.band{ padding:88px 0; }
section.band.alt{ background:var(--bg-alt); }

/* =========================================================
   CARDS — sistemas
   ========================================================= */
.vl-feat-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.vl-feat-card{
  background:var(--panel); border-radius:var(--radius-md); overflow:hidden;
  border:1px solid var(--line); display:flex; flex-direction:column;
  transition:transform .22s ease, box-shadow .22s ease;
}
.vl-feat-card:hover{ transform:translateY(-6px); box-shadow:var(--shadow-soft); }
.vl-feat-media{
  aspect-ratio:16/10; background:var(--bg-alt) center/cover no-repeat; position:relative; overflow:hidden;
  background-image:
    radial-gradient(circle at 85% 20%, rgba(44,70,224,.14), transparent 55%),
    radial-gradient(circle at 15% 85%, rgba(255,107,44,.12), transparent 55%),
    linear-gradient(135deg, #EEF1FA 0%, #E4E9F8 100%);
}
.vl-feat-media.has-photo{ background-image:var(--photo-url); background-size:contain; background-position:center; background-repeat:no-repeat; padding:10px; box-sizing:border-box; background-origin:content-box; }
.vl-slides{ position:absolute; inset:0; z-index:1; }
.vl-slides .vl-slide{
  position:absolute; inset:10px; background-size:contain; background-position:center; background-repeat:no-repeat;
  opacity:0; transition:opacity 1s ease;
}
.vl-slides .vl-slide.active{ opacity:1; }
.vl-dots{ position:absolute; left:0; right:0; bottom:10px; display:flex; justify-content:center; gap:6px; z-index:2; }
.vl-dots span{ width:6px; height:6px; border-radius:50%; background:rgba(255,255,255,.55); transition:background .2s ease, transform .2s ease; }
.vl-dots span.active{ background:#fff; transform:scale(1.25); }
.vl-feat-body{ padding:22px; display:flex; flex-direction:column; gap:10px; flex:1; }
.vl-feat-body h3{ font-size:1.14rem; }
.vl-feat-body p{ color:var(--ink-soft); font-size:.92rem; flex:1; }
.vl-price-row{ display:flex; align-items:center; justify-content:space-between; margin-top:6px; }
.vl-price{ font-family:var(--font-mono); font-weight:600; color:var(--navy-deep); font-size:.98rem; }
.vl-price.consult{ color:var(--blue); }

/* catálogo compacto */
.vl-cat-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }
.vl-cat-card{
  background:var(--panel); border:1px solid var(--line); border-radius:var(--radius-sm);
  padding:16px; display:flex; flex-direction:column; gap:10px;
  transition:border-color .2s ease, transform .2s ease;
}
.vl-cat-card:hover{ border-color:var(--blue); transform:translateY(-3px); }
.vl-cat-thumb{
  aspect-ratio:4/3; border-radius:8px; background:var(--bg-alt) center/cover no-repeat; position:relative; overflow:hidden;
  background-image:
    radial-gradient(circle at 80% 20%, rgba(44,70,224,.12), transparent 55%),
    linear-gradient(135deg, #EEF1FA 0%, #E4E9F8 100%);
}
.vl-cat-card h4{ font-size:.94rem; font-family:var(--font-body); font-weight:600; }
.vl-cat-card .vl-price{ font-size:.82rem; }
.vl-cat-card a.more{ font-size:.8rem; font-weight:600; color:var(--blue); }

/* =========================================================
   PROCESO
   ========================================================= */
.vl-steps{ display:grid; grid-template-columns:repeat(4,1fr); gap:22px; counter-reset:step; }
.vl-step{ position:relative; padding-top:8px; }
.vl-step .n{
  font-family:var(--font-mono); font-size:.78rem; color:var(--orange);
  display:block; margin-bottom:14px;
}
.vl-step h3{ font-size:1.08rem; margin-bottom:8px; }
.vl-step p{ color:var(--ink-soft); font-size:.92rem; }
.vl-step::before{
  content:""; position:absolute; top:0; left:0; width:100%; height:2px;
  background:var(--line);
}
.vl-step.active::before{ background:var(--orange); }

/* =========================================================
   RUBROS
   ========================================================= */
.vl-rubros{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.vl-rubro{
  background:var(--panel); border:1px solid var(--line); border-radius:var(--radius-md);
  padding:26px 22px; text-align:left; transition:transform .2s ease, box-shadow .2s ease;
}
.vl-rubro:hover{ transform:translateY(-5px); box-shadow:var(--shadow-tight); }
.vl-rubro .ico{
  width:46px; height:46px; border-radius:12px; background:var(--blue-ghost);
  display:flex; align-items:center; justify-content:center; margin-bottom:16px;
}
.vl-rubro .ico svg{ width:22px; height:22px; stroke:var(--blue); }
.vl-rubro h3{ font-size:1.02rem; margin-bottom:6px; }
.vl-rubro p{ color:var(--ink-soft); font-size:.88rem; }

/* =========================================================
   CONTACTO
   ========================================================= */
.vl-contact{ background:linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%); color:#fff; }
.vl-contact .grid{ display:grid; grid-template-columns:1fr 1fr; gap:60px; align-items:start; }
.vl-contact h2{ color:#fff; }
.vl-contact p.lead{ color:rgba(255,255,255,.68); margin-top:16px; max-width:420px; }
.vl-contact-info{ margin-top:34px; display:flex; flex-direction:column; gap:16px; }
.vl-contact-info .row{ display:flex; gap:12px; align-items:flex-start; font-size:.92rem; color:rgba(255,255,255,.85); }
.vl-contact-info .row svg{ width:18px; height:18px; stroke:var(--orange-dim); flex-shrink:0; margin-top:2px; }

.vl-form{ background:rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.09); border-radius:var(--radius-md); padding:30px; }
.vl-field{ margin-bottom:16px; }
.vl-field label{ display:block; font-size:.78rem; font-family:var(--font-mono); letter-spacing:.03em; color:rgba(255,255,255,.55); margin-bottom:8px; }
.vl-field input, .vl-field textarea, .vl-field select{
  width:100%; background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.14);
  border-radius:10px; padding:12px 14px; color:#fff; font-family:var(--font-body); font-size:.94rem;
}
.vl-field select option{ color:#000; }
.vl-field input::placeholder, .vl-field textarea::placeholder{ color:rgba(255,255,255,.32); }
.vl-field input:focus, .vl-field textarea:focus, .vl-field select:focus{ outline:2px solid var(--orange); outline-offset:1px; }
.vl-form .btn-accent{ width:100%; justify-content:center; padding:15px; margin-top:6px; }

/* =========================================================
   FOOTER
   ========================================================= */
.vl-footer{ background:var(--navy-deep); color:rgba(255,255,255,.55); padding:44px 0 28px; }
.vl-footer .top{ display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:20px; padding-bottom:26px; border-bottom:1px solid rgba(255,255,255,.08); }
.vl-footer .brand{ display:flex; align-items:center; gap:10px; color:#fff; font-family:var(--font-display); font-weight:700; }
.vl-footer .brand .mark{ height:32px; width:auto; display:block; }
.vl-footer nav{ display:flex; gap:26px; }
.vl-footer nav a{ font-size:.86rem; color:rgba(255,255,255,.6); }
.vl-footer nav a:hover{ color:#fff; }
.vl-footer .bottom{ display:flex; justify-content:space-between; padding-top:20px; font-size:.78rem; flex-wrap:wrap; gap:10px; }

/* =========================================================
   REVEAL ON SCROLL
   ========================================================= */
.vl-reveal{ opacity:0; transform:translateY(18px); transition:opacity .6s ease, transform .6s ease; }
.vl-reveal.in{ opacity:1; transform:translateY(0); }

@media (prefers-reduced-motion: reduce){
  .vl-panel{ animation:none; }
  .vl-live i{ animation:none; }
  .vl-reveal{ opacity:1; transform:none; transition:none; }
}

/* =========================================================
   GALERÍA — página de detalle del sistema
   ========================================================= */
.vl-gallery{ display:flex; flex-direction:column; gap:14px; }
.vl-gallery-main{
  position:relative; aspect-ratio:16/10; border-radius:var(--radius-md); overflow:hidden;
  background:linear-gradient(135deg, #EEF1FA 0%, #E4E9F8 100%);
  box-shadow:var(--shadow-tight);
}
.vl-gallery-main .vl-slide{ position:absolute; inset:14px; background-size:contain; background-position:center; background-repeat:no-repeat; opacity:0; transition:opacity .5s ease; }
.vl-gallery-main.hover-capable .vl-slide.active{ cursor:zoom-in; }
.vl-gallery-main.zooming .vl-slide.active{ transition:opacity .5s ease; }
.vl-zoom-hint{
  display:none; position:absolute; top:12px; left:14px; z-index:3; align-items:center; gap:6px;
  background:rgba(10,14,36,.6); color:#fff; font-family:var(--font-mono); font-size:.68rem;
  padding:6px 12px; border-radius:999px; pointer-events:none; transition:opacity .2s ease;
}
.vl-zoom-hint svg{ width:13px; height:13px; }
.vl-gallery-main.hover-capable .vl-zoom-hint{ display:flex; }
.vl-gallery-main.zooming .vl-zoom-hint{ opacity:0; }
.vl-gallery-main .vl-slide.active{ opacity:1; }
.vl-gallery-nav{
  position:absolute; top:50%; transform:translateY(-50%); width:38px; height:38px; border-radius:50%;
  background:rgba(10,14,36,.55); border:none; color:#fff; font-size:1.1rem; cursor:pointer; z-index:3;
  display:flex; align-items:center; justify-content:center; transition:background .15s ease;
}
.vl-gallery-nav:hover{ background:rgba(10,14,36,.8); }
.vl-gallery-nav.prev{ left:14px; }
.vl-gallery-nav.next{ right:14px; }
.vl-gallery-count{
  position:absolute; bottom:12px; right:14px; z-index:3; font-family:var(--font-mono); font-size:.7rem;
  color:#fff; background:rgba(10,14,36,.55); padding:4px 10px; border-radius:999px;
}
.vl-gallery-thumbs{ display:flex; gap:10px; overflow-x:auto; padding-bottom:4px; }
.vl-gallery-thumbs button{
  flex:0 0 auto; width:78px; aspect-ratio:16/10; border-radius:8px; border:2px solid transparent;
  background-color:var(--bg-alt); background-size:contain; background-position:center; background-repeat:no-repeat;
  background-origin:content-box; padding:5px; box-sizing:border-box; cursor:pointer; opacity:.6; transition:.15s ease;
}
.vl-gallery-thumbs button.active{ border-color:var(--blue); opacity:1; }
.vl-gallery-thumbs button:hover{ opacity:1; }
.vl-gallery-empty{
  display:flex; align-items:center; justify-content:center; height:100%; color:var(--ink-soft);
  font-family:var(--font-mono); font-size:.8rem; letter-spacing:.04em;
}

/* =========================================================
   DETALLE DE SISTEMA
   ========================================================= */
.vl-detail-grid{ display:grid; grid-template-columns:1.3fr .9fr; gap:48px; align-items:start; }
.vl-detail-body h1{ font-size:clamp(1.6rem,3vw,2.1rem); color:var(--navy-deep); margin-bottom:10px; }
.vl-detail-body .vl-detail-meta{ display:flex; align-items:center; gap:12px; margin-bottom:22px; flex-wrap:wrap; }
.vl-detail-body .desc{ color:var(--ink-soft); white-space:pre-wrap; line-height:1.7; }
.vl-detail-side{ position:sticky; top:96px; }
.vl-price-card{ background:var(--panel); border:1px solid var(--line); border-radius:var(--radius-md); padding:26px; box-shadow:var(--shadow-tight); }
.vl-price-card .price{ font-family:var(--font-display); font-size:1.8rem; color:var(--navy-deep); }
.vl-price-card .price.consult{ color:var(--blue); font-size:1.3rem; }
.vl-price-card .note{ color:var(--ink-soft); font-size:.82rem; margin-top:6px; }
.vl-price-card .btn{ width:100%; justify-content:center; margin-top:18px; }

@media (max-width:900px){
  .vl-detail-grid{ grid-template-columns:1fr; }
  .vl-detail-side{ position:static; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width:1000px){
  .vl-feat-grid{ grid-template-columns:repeat(2,1fr); }
  .vl-cat-grid{ grid-template-columns:repeat(3,1fr); }
  .vl-rubros{ grid-template-columns:repeat(2,1fr); }
  .vl-steps{ grid-template-columns:repeat(2,1fr); row-gap:34px; }
  .vl-hero .grid{ grid-template-columns:1fr; }
  .vl-hero .art{ order:-1; }
  .vl-contact .grid{ grid-template-columns:1fr; gap:36px; }
}
@media (max-width:720px){
  .vl-nav{ position:fixed; inset:64px 16px auto 16px; background:#fff; border:1px solid var(--line);
    border-radius:16px; flex-direction:column; align-items:flex-start; padding:18px 20px; gap:16px;
    box-shadow:var(--shadow-soft); transform:translateY(-12px); opacity:0; pointer-events:none; transition:.2s ease; }
  .vl-nav.open{ transform:translateY(0); opacity:1; pointer-events:auto; }
  .vl-burger{ display:block; }
  #vlCtaDesk{ display:none; }
  .vl-feat-grid{ grid-template-columns:1fr; }
  .vl-cat-grid{ grid-template-columns:repeat(2,1fr); }
  .vl-rubros{ grid-template-columns:1fr; }
  .vl-steps{ grid-template-columns:1fr; }
  .vl-stats{ gap:22px; }
  section.band{ padding:60px 0; }
}