:root{
  --vp-navy:#0f2744;
  --vp-dark:#0f172a;
  --vp-muted:#64748b;
  --vp-soft:#f6f9fb;
  --vp-card:#ffffff;
  --vp-green:#22a64a;
  --vp-green-dark:#15803d;
  --vp-blue:#2563eb;
  --vp-line:#cbd5e1;
  --vp-border:#e2e8f0;
  --shadow:0 20px 55px rgba(15,23,42,.08);
  --shadow-soft:0 12px 34px rgba(15,23,42,.06);
  --radius:26px;
}

*{
  box-sizing:border-box;
  margin:0;
  padding:0;
}

html{
  scroll-behavior:smooth;
}

body{
  font-family:'Inter',system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--vp-dark);
  background:#fff;
  overflow-x:hidden;
}

a{
  text-decoration:none;
  color:inherit;
}

img{
  display:block;
  max-width:100%;
}

.container{
  width:min(1320px,92%);
  margin:0 auto;
}

.section{
  padding:108px 0;
  position:relative;
  /*! scroll-margin-top:92px; */
}

.hero{
  scroll-margin-top:92px;
}

.section.alt{
  background:linear-gradient(180deg,#f8fafc 0%,#f1f7f4 100%);
}

@media(min-width:1121px){
  .hero,
  .section{
    min-height:100vh;
    display:flex;
    align-items:center;
  }

  .hero > .container,
  .section > .container{
    width:min(1320px,92%);
    margin:0 auto;
  }

  #trabajamos.section{
    background:linear-gradient(180deg,#eef4ff 0%,#f3f8ff 100%);
  }

  #contacto.section{
    background:linear-gradient(180deg,#ffffff 0%,#f8fafc 100%);
  }
}

.section-title{
  font-size:clamp(34px,4vw,52px);
  line-height:1.05;
  letter-spacing:-1.7px;
  text-align:center;
  font-weight:850;
  color:var(--vp-dark);
  margin-bottom:18px;
}

.section-subtitle{
  max-width:980px;
  margin:0 auto 72px;
  text-align:center;
  color:var(--vp-muted);
  font-size:18px;
  line-height:1.85;
}

.small-kicker{
  color:var(--vp-green);
  font-weight:800;
  letter-spacing:.14em;
  font-size:12px;
  text-transform:uppercase;
}

/* =========================
NAVBAR
========================= */

.navbar{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  background:rgba(255,255,255,.94);
  backdrop-filter:blur(14px);
  border-bottom:1px solid rgba(226,232,240,.85);
  z-index:9999;
}

.nav-inner{
  height:92px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}

.logo-wrap{
  height:100%;
  display:flex;
  align-items:center;
}

.logo{
  height:65px;
  width:auto;
  object-fit:contain;
}

.nav-right{
  display:flex;
  align-items:center;
  gap:20px;
}

.nav-links{
  display:flex;
  align-items:center;
  gap:24px;
}

.nav-links a{
  font-size:12.5px;
  font-weight:800;
  letter-spacing:.02em;
  white-space:nowrap;
  color:#172033;
  transition:.2s ease;
}

.nav-links a:hover{
  color:var(--vp-green);
}

.lang-switch{
  display:flex;
  gap:6px;
  align-items:center;
}

.lang-switch button{
  border:0;
  background:transparent;
  color:#94a3b8;
  font-weight:850;
  font-size:12px;
  cursor:pointer;
  padding:9px 11px;
  border-radius:999px;
}

.lang-switch button.active{
  background:#e9f8ef;
  color:var(--vp-green-dark);
}

.mobile-toggle{
  display:none;
  border:0;
  background:#f1f5f9;
  width:44px;
  height:44px;
  border-radius:14px;
  font-size:24px;
  cursor:pointer;
  color:#0f172a;
}

/* =========================
HERO
========================= */

.hero{
  padding:172px 0 110px;
  min-height:92vh;
  background:
    radial-gradient(circle at 90% 10%, rgba(34,166,74,.14), transparent 28%),
    radial-gradient(circle at 8% 18%, rgba(37,99,235,.08), transparent 24%),
    linear-gradient(180deg,#fff 0%,#f8fbfa 100%);
}

.hero-grid{
  display:grid;
  grid-template-columns:1.02fr .98fr;
  gap:60px;
  align-items:center;
}

.hero h1{
  font-size:clamp(48px,6vw,88px);
  line-height:.95;
  letter-spacing:-2px;
  font-weight:900;
  margin-bottom:30px;
  max-width:760px;
}

.hero h1 .accent{
  color:var(--vp-green);
}

.hero p{
  color:var(--vp-muted);
  font-size:20px;
  line-height:1.9;
  max-width:690px;
  margin-bottom:38px;
}

.cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:18px 30px;
  border-radius:17px;
  background:var(--vp-green);
  color:#fff;
  font-size:15px;
  font-weight:850;
  box-shadow:0 18px 36px rgba(34,166,74,.24);
  transition:.2s ease;
}

.cta:hover{
  transform:translateY(-2px);
  background:var(--vp-green-dark);
}

/* =========================
FUNNEL
========================= */

.funnel-panel{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
}

.funnel-wrap{
  display:flex;
  flex-direction:column;
  align-items:center;
  width:100%;
}

.funnel-img{
  display:block;
  width:100%;
  height:auto;
  margin:0 auto;
}

.funnel-mobile{
  display:none;
  width:100%;
  max-width:320px;
  height:auto;
  margin:0 auto;
}

.funnel.funnel-fallback{
  display:none;
}

.funnel{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  height:240px;
  width:100%;
  max-width:720px;
  margin:auto;
}

.funnel-stage{
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  color:#111827;
  font-weight:900;
  line-height:1.15;
  padding:10px;
  position:relative;
  box-shadow:0 14px 30px rgba(15,23,42,.10);
}

.funnel-stage:nth-child(1){
  width:32%;
  height:240px;
  background:linear-gradient(135deg,#fff2bf,#f6c84e);
  clip-path:polygon(0 0,100% 12%,100% 88%,0 100%);
  border-radius:24px 0 0 24px;
  font-size:22px;
}

.funnel-stage:nth-child(2){
  width:28%;
  height:154px;
  margin-left:-20px;
  background:linear-gradient(135deg,#ffd99d,#f59e42);
  clip-path:polygon(0 12%,100% 22%,100% 78%,0 88%);
  font-size:20px;
}

.funnel-stage:nth-child(3){
  width:22%;
  height:122px;
  margin-left:-20px;
  background:linear-gradient(135deg,#c8e978,#8bc34a);
  clip-path:polygon(0 22%,100% 30%,100% 70%,0 78%);
  font-size:21px;
}

.funnel-stage:nth-child(4){
  width:25%;
  height:92px;
  margin-left:-14px;
  background:linear-gradient(135deg,#2fcf63,#159947);
  color:#fff;
  border-radius:0 46px 46px 0;
  box-shadow:0 0 35px rgba(34,166,74,.36);
  font-size:20px;
}

/* Caption: pequeÃÂÃÂ±o, itÃÂÃÂ¡lica, sin mayÃÂÃÂºsculas */
.funnel-caption{
  text-align:center;
  margin-top:10px;
  color:#94a3b8;
  font-size:10px;
  font-weight:400;
  font-style:italic;
}

/* =========================
DECISIONES POR ÃÂÃÂREA ÃÂ¢?? CARD HUB
========================= */

.areas-hub-wrap{
  position:relative;
  width:100%;
  max-width:1200px;
  margin:0 auto;
  height:640px;
}

.hub-lines{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  pointer-events:none;
  z-index:0;
}

.hub-lines line{
  stroke:#94a3b8;
  stroke-width:1.5;
  opacity:.5;
}

.hub-center{
  position:absolute;
  z-index:5;
  top:42%;
  left:50%;
  transform:translate(-50%,-50%);
  width:72px;
  height:72px;
  border-radius:50%;
  background:var(--vp-green);
  box-shadow:0 0 0 10px rgba(34,166,74,.15), 0 8px 24px rgba(34,166,74,.3);
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  font-weight:900;
  font-size:16px;
  letter-spacing:.5px;
}

#areasCards{
  position:relative;
  z-index:3;
}

.area-card{
  position:absolute;
  width:358px;
  height:246px;
  background:#0f172a;
  color:#e2e8f0;
  border:1px solid #1e293b;
  border-radius:17px;
  padding:10px 10px 16px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  transition:border-color .2s ease, box-shadow .2s ease, transform .2s ease;
  cursor:default;
}

.area-card:hover{
  border-color:rgba(34,166,74,.45);
  box-shadow:0 16px 40px rgba(0,0,0,.4);
  transform:translateY(-3px);
}

/* =========================
DECISIONES POR ÁREA — FLIP 3D
========================= */

.flip-wrapper{
  position:absolute;
  width:358px;
  height:246px;
  z-index:3;
}

.flip-wrapper .flip-inner{
  position:relative;
  width:100%;
  height:100%;
}

/* Ya no hay rotación 3D: el dorso reemplaza al frente en el mismo lugar,
   sin animación, al hacer click en el botón "Ver más" */
.flip-front,
.flip-back{
  position:absolute;
  inset:0;
}

.flip-front{ z-index:2; }
.flip-back{ display:none; }

.flip-wrapper.is-open .flip-back{ display:block; }

/* Solo en desktop el dorso REEMPLAZA al frente en el mismo lugar.
   En mobile el frente se mantiene visible y el dorso se despliega debajo
   (ver @media(max-width:1120px) más abajo). */
@media(min-width:1121px){
  .flip-wrapper.is-open .flip-front{ display:none; }
}

/* La card original queda "adentro" del flip-front, ocupando todo el espacio.
   .area-card ya tiene su propio border-radius + overflow:hidden!important,
   así que no hace falta duplicarlo acá. */
.flip-front .area-card{
  position:relative!important;
  top:auto!important; left:auto!important; right:auto!important; bottom:auto!important;
  transform:none!important;
  width:100%!important;
  height:100%!important;
}

/* Div interno del dorso: acá van el recorte, el redondeo y la sombra */
.db-back-inner{
  width:100%;
  height:100%;
  background:#ffffff;
  border:1px solid #e6ebf0;
  box-shadow:0 10px 30px rgba(15,23,42,.10);
  border-radius:17px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}

/* Posiciones del hub — ahora se aplican al wrapper, no a la card */
.fw-sales      { top:20px;  left:2%; }
.fw-marketing  { top:20px;  right:2%; }
.fw-production { top:400px; left:1%; }
.fw-finance    { top:410px; left:50%; transform:translateX(-50%); }
.fw-accounting { top:400px; right:1%; }

/* ══ Dorso — contenido (estilo claro, sin título) ══ */
.db-back-body{
  flex:1;
  overflow:auto;
  padding:15px 14px 9px;
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  gap:4px;
}
/* Ventas, Marketing y Finanzas tienen menos texto: en vez de estirar los
   espacios entre líneas, les damos más aire arriba/abajo de la caja */
.fw-sales .db-back-body,
.fw-finance .db-back-body{
  gap:9px;
  padding-top:24px;
  padding-bottom:22px;
}
/* Marketing: le sobraba más espacio abajo, así que baja más centrado */
.fw-marketing .db-back-body{
  gap:9px;
  padding-top:35px;
  padding-bottom:22px;
}
.db-back-row{
  display:flex;
  flex-direction:column;
  gap:1px;
}
.db-back-row + .db-back-row{
  border-top:1px solid #e7ebef;
  padding-top:3px;
}
.db-back-main{
  font-size:9.9px;
  font-weight:700;
  color:#0f172a;
  line-height:1.12;
}
.db-back-base{
  font-size:8.4px;
  color:#475569;
  line-height:1.1;
}
.db-back-lbl{
  font-weight:700;
  color:#178a3f;
  text-transform:uppercase;
  letter-spacing:.02em;
}
.db-back-details{
  margin-top:0;
  border-top:1px solid #e7ebef;
  padding-top:3px;
}
.db-back-more{
  margin:3px 0 0 1px;
  display:flex;
  flex-direction:column;
  gap:3px;
  list-style:none;
}
.db-back-more li{
  font-size:8.7px;
  color:#1e293b;
  line-height:1.12;
  position:relative;
  padding-left:9px;
}
.db-back-more li::before{
  content:'';
  position:absolute;
  left:0; top:5px;
  width:3.5px; height:3.5px;
  border-radius:50%;
  background:#22a64a;
}
.db-back-more-base{
  display:block;
  font-size:8px;
  color:#475569;
  line-height:1.08;
}

.ac-head{
  display:flex;
  align-items:center;
  gap:10px;
}

.ac-icon{
  width:28px;
  height:28px;
  flex:0 0 28px;
  color:#22a64a;
  display:flex;
  align-items:center;
  justify-content:center;
}

.ac-icon svg{
  width:18px;
  height:18px;
  stroke:currentColor;
  fill:none;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.ac-title{
  font-size:13px;
  font-weight:800;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:#f1f5f9;
  margin:0;
}

.ac-body{
  flex:1;
}

.ac-img-slot{display:none}

.hub-logo{
  width:44px;
  height:44px;
  object-fit:contain;
  filter:brightness(0) invert(1);
}

.ac-decisions{
  display:flex;
  flex-direction:column;
  gap:7px;
}

.ac-decision{
  padding:5px 8px;
  background:rgba(255,255,255,.04);
  border-radius:7px;
  border-left:2px solid rgba(34,166,74,.4);
}

.ac-decision-text{
  font-size:11px;
  font-weight:700;
  line-height:1.35;
  color:#cbd5e1;
}

.ac-based{
  margin-top:2px;
  font-size:9px;
  color:#475569;
  line-height:1.3;
}

.ac-based-label{
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:#334155;
}

.ac-more-wrap{ margin-top:4px; }

.ac-toggle{
  background:none;
  border:none;
  color:#22a64a;
  font-size:10.5px;
  font-weight:800;
  cursor:pointer;
  padding:0;
  font-family:inherit;
  letter-spacing:.03em;
}

.ac-toggle:hover{ color:#16a34a; }

.ac-more{
  display:none;
  margin-top:8px;
  border-top:1px solid #1e293b;
  padding-top:8px;
}

.ac-more.open{ display:block; }

.ac-more ul{ padding-left:14px; margin:0 0 6px; }

.ac-more li{
  font-size:10px;
  color:#94a3b8;
  line-height:1.4;
  margin-bottom:4px;
}

.ac-footer{
  display:flex;
  align-items:center;
  gap:8px;
  color:#f59e0b;
  font-size:11px;
  font-weight:700;
  letter-spacing:.04em;
  text-transform:uppercase;
  margin-top:auto;
}

.ac-footer svg{
  width:16px;
  height:16px;
  stroke:currentColor;
  fill:none;
  flex-shrink:0;
}

@media(max-width:1120px){
  .areas-hub-wrap{
    height:auto!important;
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:16px;
    padding:8px 0;
  }

  .hub-lines,
  .hub-center{
    display:none;
  }

  #areasCards{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:14px;
    width:100%;
  }

  .flip-wrapper,
  .fw-sales,
  .fw-marketing,
  .fw-production,
  .fw-finance,
  .fw-accounting{
    position:relative!important;
    top:auto!important;
    left:auto!important;
    right:auto!important;
    bottom:auto!important;
    transform:none!important;
    width:min(358px, 95vw)!important;
    height:auto!important;
  }

  /* En mobile el dorso se despliega debajo como acordeón (crece el alto),
     en vez de reemplazar al frente en el mismo lugar como en desktop */
  .flip-wrapper .flip-inner{
    display:block;
    position:static;
    height:auto;
  }
  .flip-front{
    position:static;
  }
  .flip-back{
    position:static;
    display:block;
    height:auto;
    max-height:0;
    opacity:0;
    overflow:hidden;
    margin-top:0;
    transition:max-height .45s ease, opacity .3s ease, margin-top .45s ease;
  }
  .flip-wrapper.is-open .flip-back{
    max-height:2000px;
    opacity:1;
    margin-top:10px;
  }
  .db-back-inner{ height:auto; }
  .db-back-body{ height:auto; }
}

/* Botón "Ver más": mismo diseño en mobile y desktop */
.db-mobile-toggle{
  display:flex;
  align-items:center;
  justify-content:center;
  position:absolute;
  top:6px;
  right:6px;
  z-index:8;
  margin:0;
  padding:3.5px 9px;
  border:none;
  border-radius:999px;
  background:linear-gradient(90deg,#1a8a3c,#34c95e,#1a8a3c);
  background-size:220% 100%;
  color:#fff;
  font-family:inherit;
  font-weight:800;
  font-size:8.2px;
  line-height:1.2;
  letter-spacing:.02em;
  text-transform:uppercase;
  white-space:nowrap;
  cursor:pointer;
  -webkit-appearance:none;
  appearance:none;
  box-shadow:0 2px 8px rgba(34,166,74,.45);
  animation:vp-toggle-shimmer 2.4s linear infinite, vp-toggle-pulse 1.9s ease-in-out infinite;
}
.flip-wrapper.is-open .db-mobile-toggle{
  background:#178a3f;
  animation:none;
  box-shadow:none;
}
.db-toggle-icon{
  display:none;
  width:11px;
  height:11px;
}

/* Desktop: al abrir, en vez del texto "Ver menos" mostramos un ícono de volver */
@media(min-width:1121px){
  .flip-wrapper.is-open .db-toggle-label{ display:none; }
  .flip-wrapper.is-open .db-toggle-icon{ display:block; }
}

@keyframes vp-toggle-shimmer{
  0%{ background-position:0% 0; }
  100%{ background-position:220% 0; }
}
@keyframes vp-toggle-pulse{
  0%,100%{ transform:scale(1); }
  50%{ transform:scale(1.08); }
}

/* =========================
CÓMO TRABAJAMOS
========================= */

.process-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:28px;
}

.process-card{
  background:#fff;
  border:1px solid var(--vp-border);
  border-radius:28px;
  padding:36px 32px;
  box-shadow:var(--shadow-soft);
}

.process-number{
  font-size:48px;
  line-height:1;
  font-weight:900;
  color:#d6e7dc;
  margin-bottom:18px;
}

.process-card h3{
  font-size:23px;
  letter-spacing:-.5px;
  margin-bottom:14px;
}

.process-card p{
  color:var(--vp-muted);
  font-size:15px;
  line-height:1.8;
}

/* =========================
QUIÃÂ?NES SOMOS / CLIENTES
========================= */

.about-grid{
  display:grid;
  grid-template-columns:250px 1fr;
  gap:48px;
  align-items:start;
  max-width:980px;
  margin:62px auto 0;
}

.about-photo img{
  width:210px;
  height:285px;
  object-fit:cover;
  border-radius:26px;
  border:1px solid var(--vp-border);
  box-shadow:var(--shadow-soft);
}

.about-copy h3{
  font-size:28px;
  margin-bottom:10px;
}

.about-role{
  color:#334155;
  font-weight:700;
  margin-bottom:18px;
}

.about-copy p{
  color:var(--vp-muted);

  line-height:1.85;
  font-size:16px;
  margin-bottom:16px;
}

.clients-title{
  text-align:center;
  font-size:30px;
  font-weight:900;
  margin:76px 0 32px;
}

.clients-grid{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:18px;
}

.client-logo{
  height:110px;
  background:#fff;
  border:1px solid var(--vp-border);
  border-radius:22px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
  box-shadow:0 10px 26px rgba(15,23,42,.045);
}

.client-logo img{
  max-height:62px;
  width:auto;
  max-width:100%;
  object-fit:contain;
}

/* =========================
VENTAJA COMPETITIVA
========================= */

.advantage-list{
  max-width:980px;
  margin:44px auto 0;
  display:flex;
  flex-direction:column;
  gap:14px;
}

.advantage-item{
  display:grid;
  grid-template-columns:54px 1fr;
  gap:18px;
  background:#fff;
  border:1px solid var(--vp-border);
  border-radius:20px;
  padding:20px 22px;
  box-shadow:0 10px 26px rgba(15,23,42,.045);
}

.adv-number{
  width:38px;
  height:38px;
  border-radius:50%;
  background:#e9f8ef;
  color:var(--vp-green-dark);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
}

.advantage-item h3{
  font-size:17px;
  margin-bottom:6px;
}

.advantage-item p{
  color:var(--vp-muted);
  font-size:13.5px;
  line-height:1.72;
}

/* =========================
CONTACTO
========================= */

.contact-wrap{
  max-width:760px;
  margin:0 auto;
  text-align:center;
}

.contact-lead{
  color:var(--vp-muted);
  font-size:17px;
  line-height:1.8;
  margin-bottom:34px;
}

.contact-form{
  background:#fff;
  border:1px solid var(--vp-border);
  border-radius:28px;
  box-shadow:var(--shadow-soft);
  padding:34px;
  display:grid;
  gap:16px;
}

.form-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}

.contact-form input,
.contact-form textarea{
  width:100%;
  border:1px solid #d8e1ea;
  border-radius:15px;
  padding:15px 16px;
  font-family:inherit;
  font-size:14px;
  outline:none;
}

.contact-form textarea{
  height:95px;
  resize:vertical;
}

.contact-form button{
  border:0;
  border-radius:16px;
  background:var(--vp-green);
  color:#fff;
  padding:17px;
  font-weight:900;
  cursor:pointer;
}

.footer-contact{
  margin-top:28px;
  color:var(--vp-muted);
  line-height:1.8;
  font-size:14px;
}

/* =========================
MOBILE
========================= */

@media(max-width:1120px){
  .nav-links{
    display:none;
  }

  .mobile-toggle{
    display:block;
  }

  .nav-right.open .nav-links{
    display:flex;
    position:absolute;
    top:92px;
    left:0;
    right:0;
    background:#fff;
    flex-direction:column;
    align-items:flex-start;
    gap:0;
    border-bottom:1px solid var(--vp-border);
    padding:18px 26px;
  }

  .nav-right.open .nav-links a{
    padding:12px 0;
  }

  .hero-grid{
    grid-template-columns:1fr;
    gap:42px;
  }

  .hero{
    text-align:center;
  }

  .hero p{
    margin-left:auto;
    margin-right:auto;
  }

  .funnel-wrap{
    max-width:560px;
    margin:auto;
  }

  .areas-svg,
  .center-node{
    display:none;
  }

  .process-grid,
  .about-grid{
    grid-template-columns:1fr;
  }

  .about-photo{
    display:flex;
    justify-content:center;
  }

  .clients-grid{
    grid-template-columns:repeat(2,1fr);
  }
}

@media(max-width:700px){
  .container{
    width:min(100% - 34px,1320px);
  }

  .section{
    padding:82px 0;
  }

  .nav-inner{
    height:82px;
  }

  .logo{
    height:70px;
  }

  .nav-right.open .nav-links{
    top:82px;
  }

  .hero{
    padding-top:140px;
  }

  .funnel-img{
    display:none;
  }

  .funnel-mobile{
    display:block;
  }

  .funnel-fallback{
    display:flex;
  }

  .funnel{
    height:auto;
    flex-direction:column;
    gap:10px;
  }

  .funnel-stage:nth-child(n){
    width:100%;
    height:72px;
    margin-left:0;
    clip-path:none;
    border-radius:17px;
  }

  .form-row{
    grid-template-columns:1fr;
  }

  .clients-grid{
/*    grid-template-columns:1fr;*/
  }
}

/* =========================
AJUSTE DESKTOP
========================= */

@media(min-width:1121px){

  .section-decisiones{
    padding-top:125px;
    padding-bottom:60px;
    scroll-margin-top:0px;
  }


  .section-decisiones .section-subtitle{
    font-size:14px;
    line-height:1.5;
    margin-bottom:-105px;
    max-width:680px;
  }

  #quienes.section{
    padding-top:64px;
    padding-bottom:64px;
  }

  #quienes .section-title{
    font-size:42px;
    margin-bottom:6px;
  }

  #quienes .about-grid{
    max-width:980px;
    grid-template-columns:180px 1fr;
    gap:34px;
    margin-top:34px;
  }

  #quienes .about-photo img{
    width:165px;
    height:210px;
    border-radius:22px;
  }

  #quienes .about-copy h3{
    font-size:26px;
    margin-bottom:8px;
  }

  #quienes .about-role{
    font-size:15px;
    margin-bottom:12px;
  }

  #quienes .about-copy p{
    font-size:14.6px;
    line-height:1.58;
    margin-bottom:10px;
  }

  #quienes .clients-title{
    font-size:25px;
    margin-top:42px;
    margin-bottom:20px;
  }

  #quienes .clients-grid{
    grid-template-columns:repeat(10,1fr);
    gap:10px;
  }

  #quienes .client-logo{
    height:74px;
    border-radius:16px;
    padding:12px;
  }

  #quienes .client-logo img{
    max-height:46px;
  }

  #ventaja.section{
    padding-top:64px;
    padding-bottom:64px;
  }

  #ventaja .section-title{
    font-size:40px;
    margin-bottom:12px;
  }

  #ventaja .section-subtitle{
    font-size:15px;
    line-height:1.5;
    margin-bottom:26px;
  }

  #ventaja .advantage-list{
    max-width:1080px;
    gap:10px;
    margin-top:24px;
  }

  #ventaja .advantage-item{
    grid-template-columns:42px 1fr;
    gap:14px;
    padding:14px 18px;
    border-radius:17px;
  }

  #ventaja .adv-number{
    width:32px;
    height:32px;
    font-size:13px;
  }

  #ventaja .advantage-item h3{
    font-size:15.5px;
    margin-bottom:4px;
  }

  #ventaja .advantage-item p{
    font-size:12.6px;
    line-height:1.45;
  }

}


/* ── Dashboard boxes ── */

/* ── Card base ── */
.area-card{overflow:hidden!important;padding:0!important;height:246px!important;width:358px!important}
.ac-head,.ac-footer,.ac-img-slot{display:none!important}

/* ── Dashboard wrapper ── */
.db,.db *{font-family:'Inter',system-ui,sans-serif;box-sizing:border-box}
.db{display:flex;flex-direction:column;width:100%;height:246px;padding:7px 9px 0;gap:3px;background:#0f172a;border-radius:17px;overflow:hidden}

/* ── Título ── */
.db-ttl{font-size:13.5px;font-weight:800;color:#22a64a;letter-spacing:.06em;text-transform:uppercase;flex-shrink:0;display:flex;align-items:center;gap:5px;margin-bottom:1px}
.db-ttl-txt{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.db-icon-svg{width:18px;height:18px;flex-shrink:0}

/* ── KPIs ── */
.db-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:2px;flex-shrink:0;text-align: center;}
.db-kpis3-full{display:grid;grid-template-columns:repeat(3,1fr);gap:2px;flex-shrink:0;margin-top:2px;width:100%}
.db-k{background:#060d18;border-radius:4px;padding:3px 5px;min-width:0;overflow:hidden}
.db-kl{font-size:7px;color:#475569;line-height:1.2;margin-bottom:1px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.db-kv{font-size:10px;font-weight:700;color:#e2e8f0;line-height:1;white-space:nowrap}
.db-kv-lg{font-size:11px!important}
.db-kd{font-size:7px;margin-top:1px;font-weight:600}
.gn{color:#22a64a!important}.rd{color:#e34948!important}.bl{color:#2a78d6!important}

/* ── Columnas ── */
.db-cols{display:grid;grid-template-columns:1fr 1fr;gap:5px;flex:1;min-height:0;overflow:hidden}
.db-col{display:flex;flex-direction:column;min-height:0;overflow:hidden;width:100%}

/* ── Sub-título ── */
.db-sub{font-size:7.5px;color:#606164;text-transform:uppercase;letter-spacing:.05em;font-weight:700;flex-shrink:0;margin-bottom:2px;margin-top: 2px;white-space:nowrap}

/* ── Barras CSS ── */
.db-bars{display:flex;flex-direction:column;justify-content:space-around;flex:1;min-height:0}
.db-br{display:flex;align-items:center;gap:4px;width:100%}
.db-bl{width:40px;font-size:7px;color:#64748b;flex-shrink:0;font-weight:500;white-space:nowrap}
.db-bt{flex:1;height:6px;background:#060d18;border-radius:2px;overflow:hidden;min-width:0}
.db-bf{height:100%;border-radius:2px;background:#2a78d6}
.db-bv{font-size:7px;color:#475569;width:28px;text-align:right;flex-shrink:0;font-weight:500}

/* ── Tabla container ── */
.db-tbl-wrap{flex:1;min-height:0;overflow:hidden;background:#060d18;border-radius:4px;}

/* ── Tabla base — sin overflow ni ellipsis, el texto se ve completo ── */
.db-tbl{width:100%;height:100%;border-collapse:collapse;font-size:7.5px;table-layout:auto}
.db-tbl th{
  color:#b6b8bc;
  font-weight:600;
  padding:2px 3px;
  border-bottom:1px solid #1e293b;
  text-align:left;
  font-size:7px;
  white-space:nowrap;
}
.db-tbl th.r,.db-tbl td.r{text-align:center}
.db-tbl tbody tr{height:0%}
.db-tbl td{
  padding:2px 2px;
  color:#64748b;
  border-bottom:1px solid #0a0f18;
  font-weight:500;
  vertical-align:middle;
  white-space:nowrap;
}
.db-tbl td:not(.r){padding-right:0}
.db-tbl th:not(.r){padding-right:0}
.db-tbl tr.g td{color:#22a64a;font-weight:700}

/* ── Tabla Finanzas: columnas con anchos exactos para evitar wrap y corte ── */
.db-tbl-fin{table-layout:fixed}
.db-tbl-fin th,.db-tbl-fin td{
/*  overflow:hidden;*/
  text-overflow:ellipsis;
  white-space:nowrap;
}
.db-tbl-fin col.c1{width:26%}  /* Opción  */
.db-tbl-fin col.c2{width:14%}  /* Tasa    */
.db-tbl-fin col.c3{width:20%}  /* VAN     */
.db-tbl-fin col.c4{width:16%}  /* TIR     */
.db-tbl-fin col.c5{width:24%}  /* Payback */

/* ── Chart canvas container ── */
.db-chart-wrap{flex:1;position:relative;min-height:0;overflow:hidden}
.db-canvas{position:absolute;inset:0;width:100%!important;height:100%!important}

/* ── Donut ── */
.db-donut{flex:1;display:flex;align-items:center;justify-content:center;gap:8px;min-height:0;overflow:hidden;background: #060d18}
.db-donut-svg{width:100px;height:100px;flex-shrink:0}
.db-donut-legend{display:flex;flex-direction:column;gap:5px}
.db-donut-item{display:flex;align-items:flex-start;gap:4px;font-size:7.5px;color:#64748b;font-weight:500;line-height:1.3}
.db-donut-item b{color:#94a3b8;font-weight:700;display:block}
.db-donut-dot{width:7px;height:7px;border-radius:1px;flex-shrink:0;margin-top:2px}

/* ── Winner ── */
.db-win{display:flex;align-items:flex-start;gap:5px;padding:5px 9px 7px;background:#060d18;border-top:1px solid #1e2d3d;flex-shrink:0;margin-top:auto;width:100%;border-radius:0 0 16px 16px;/*! margin-left: -9px; *//*! margin-right: 53px; */margin-inline: -9px;width: auto;}
.db-win-ico{font-size:17px;color:#f59e0b;flex-shrink:0;line-height:1.3}
.db-win-inner{min-width:0;flex:1}
.db-win-ttl{font-size:8px;font-weight:800;color:#f59e0b;margin-bottom:1px;text-transform:uppercase;letter-spacing:.04em}
.db-win-txt{font-size:8px;color:#94a3b8;line-height:1;margin:0;font-weight:500;word-break:break-word}

/* ── Anchos de columnas por número de columnas ── */
/* Tabla 3 cols: Prod/Rot/Días */
.db-tbl-3c col:nth-child(1){width:38%}
.db-tbl-3c col:nth-child(2){width:32%}
.db-tbl-3c col:nth-child(3){width:30%}

/* Tabla 4 cols: Camp/ROAS/CPA/Conv y Cat/Ppto/Real/% */
.db-tbl-4c col:nth-child(1){width:26%}
.db-tbl-4c col:nth-child(2){width:26%}
.db-tbl-4c col:nth-child(3){width:24%}
.db-tbl-4c col:nth-child(4){width:24%}

/* Tabla 5 cols: finanzas ya tiene db-tbl-fin */

.db-tbl td:first-child,.db-tbl th:first-child{padding-left:4px; text-align: center; }
.db-tbl td:last-child,.db-tbl th:last-child{padding-right:4px}

/* ── VARIACIONES EXCLUSIVAS PARA MODALIDAD MOBILE ── */
@media (max-width: 768px) {
  .section-title {
    letter-spacing: -0.7px;
  }

  .section-subtitle {
    margin: 0 auto 30px;
    font-size: 16px;
    line-height: 1.5;
  }

  .hero h1 {
    letter-spacing: normal; /* Cancela el -2px de escritorio */
  }

  .hero p {
    font-size: 15px;
    line-height: 1.5;
    max-width: 700px;
    margin-bottom: 27px;
  }

  .cta {
    padding: 15px 25px;
    border-radius: 16px;
  }

  .funnel-mobile {
    max-width: 384px;
  }

  .about-photo img {
    width: auto;
    height: 220px;
  }

  .about-copy p {
    font-size: 15px;
  }

  .client-logo {
    height: 77px;
    border-radius: 18px;
  }
	.about-copy {
  text-align: center;
}
}