: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;
}

.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:84px;
  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;
}

/* Mobile SVG: oculto por defecto en desktop */
.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:190px;
  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;
}

.funnel-caption{
  text-align:center;
  margin-top:10px;
  color:#94a3b8;
  font-size:11px;
  font-weight:500;
  letter-spacing:.04em;
  text-transform:uppercase;
}

/* =========================
DECISIONES POR ÁREA
========================= */

.areas-shell{
  position:relative;
  max-width:1220px;
  min-height:980px;
  margin:0 auto;
}

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

.center-node{
  position:absolute;
  z-index:2;
  top:54%;
  left:50%;
  transform:translate(-50%,-50%);
  width:22px;
  height:22px;
  border-radius:50%;
  background:var(--vp-green);
  box-shadow:0 0 0 8px rgba(34,166,74,.12);
  font-size:0;
}

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

.area-card{
  position:absolute;
  z-index:3;
  width:330px;
  background:#fff;
  border:1px solid var(--vp-border);
  border-radius:24px;
  box-shadow:var(--shadow-soft);
  padding:18px 18px 16px;
  transition:box-shadow .25s ease,border-color .25s ease;
}

.area-card:hover{
  border-color:rgba(34,166,74,.45);
  box-shadow:0 24px 52px rgba(15,23,42,.11);
}

.area-card.sales{
  top:0;
  left:50%;
  transform:translateX(-50%);
}

.area-card.marketing{
  top:250px;
  left:18px;
}

.area-card.production{
  top:250px;
  right:18px;
}

.area-card.finance{
  top:640px;
  left:215px;
}

.area-card.accounting{
  top:640px;
  right:215px;
}

.area-head{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:14px;
}

.area-icon{
  width:36px;
  height:36px;
  border-radius:50%;
  background:#eef8f0;
  color:var(--vp-green-dark);
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 36px;
}

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

.area-title{
  font-size:18px;
  font-weight:900;
  letter-spacing:-.3px;
  margin:0;
}

.area-list{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.decision{
  font-size:11.6px;
  line-height:1.38;
  font-weight:800;
  color:#0f172a;
}

.based{
  margin-top:2px;
  color:#7f8ea3;
  font-size:8.1px;
  line-height:1.28;
}

.based .label{
  display:block;
  font-size:7.2px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.12em;
  color:#9aa8ba;
  margin-bottom:1px;
}

.see-more{
  margin-top:12px;
  color:var(--vp-green-dark);
  font-size:11.6px;
  font-weight:900;
  cursor:pointer;
}

.more-content{
  max-height:0;
  overflow:hidden;
  transition:max-height .35s ease, padding-top .35s ease, margin-top .35s ease;
  border-top:1px solid transparent;
}

.area-card:hover .more-content,
.area-card.open .more-content{
  max-height:460px;
  margin-top:10px;
  padding-top:10px;
  border-top-color:#e2e8f0;
}

.more-content ul{
  padding-left:14px;
  margin-bottom:8px;
}

.more-content li{
  font-size:10.8px;
  line-height:1.35;
  font-weight:700;
  margin-bottom:5px;
  color:#1f2937;
}

@media(max-width:1120px){
  .areas-shell{
    min-height:auto;
  }

  #areasCards{
    display:flex;
    flex-direction:column;
    gap:18px;
  }

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

  .area-card,
  .area-card.sales,
  .area-card.marketing,
  .area-card.production,
  .area-card.finance,
  .area-card.accounting{
    position:relative;
    top:auto;
    left:auto;
    right:auto;
    bottom:auto;
    transform:none;
    width:100%;
  }
}

/* =========================
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-shell{
    height:auto;
    display:flex;
    flex-direction:column;
    gap:18px;
  }

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

  .area-card,
  .area-card.sales,
  .area-card.marketing,
  .area-card.production,
  .area-card.finance,
  .area-card.accounting{
    position:relative;
    top:auto;
    left:auto;
    right:auto;
    bottom:auto;
    transform:none;
    width:100%;
  }

  .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 COMPACTO DESKTOP
========================= */

@media(min-width:1121px){

  #decisiones.section{
    padding-top:34px;
    padding-bottom:26px;
  }

  #decisiones .section-title{
    font-size:34px;
    margin-bottom:6px;
  }

  #decisiones .section-subtitle{
    font-size:12.8px;
    line-height:1.34;
    margin-bottom:14px;
    max-width:760px;
  }

  #decisiones .areas-shell{
    max-width:1180px;
    min-height:490px;
    height:490px;
  }

  #decisiones .areas-svg{
    top:0;
  }

  #decisiones .center-node{
    top:67%;
    left:50%;
    width:18px;
    height:18px;
    box-shadow:0 0 0 7px rgba(34,166,74,.12);
  }

  #decisiones .area-card{
    width:340px;
    padding:12px 14px 10px;
    border-radius:20px;
  }

  #decisiones .area-card:hover,
  #decisiones .area-card.open{
    z-index:50;
  }

  #decisiones .area-card.sales{
    top:0;
    left:50%;
    transform:translateX(-50%);
  }

  #decisiones .area-card.marketing{
    top:92px;
    left:8px;
  }

  #decisiones .area-card.production{
    top:92px;
    right:8px;
  }

  #decisiones .area-card.finance{
    top:275px;
    left:214px;
  }

  #decisiones .area-card.accounting{
    top:275px;
    right:214px;
  }

  #decisiones .area-head{
    gap:8px;
    margin-bottom:7px;
  }

  #decisiones .area-icon{
    width:26px;
    height:26px;
    flex-basis:26px;
  }

  #decisiones .area-icon svg{
    width:14px;
    height:14px;
  }

  #decisiones .area-title{
    font-size:15px;
  }

  #decisiones .area-list{
    gap:5px;
  }

  #decisiones .decision{
    font-size:9.8px;
    line-height:1.17;
  }

  #decisiones .based{
    font-size:7px;
    line-height:1.14;
    margin-top:1px;
  }

  #decisiones .based .label{
    display:inline;
    font-size:7px;
    font-weight:900;
    text-transform:uppercase;
    letter-spacing:.08em;
    color:#9aa8ba;
    margin-bottom:0;
  }

  #decisiones .see-more{
    margin-top:6px;
    font-size:9.8px;
  }

  #decisiones .more-content li{
    font-size:9.4px;
    line-height:1.2;
  }

  #decisiones .area-card:hover .more-content,
  #decisiones .area-card.open .more-content{
    max-height:340px;
    margin-top:6px;
    padding-top:6px;
  }

  #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;
  }

  #decisiones .areas-svg line{
    stroke-width:2;
  }
}
