:root{
  --navy:#0E1935;
  --navy-deep:#020518;
  --steel:#C9CED6;
  --steel-light:#EEF0F3;
  --blue:#4A86B0;
  --blue-bright:#6BAAD4;
  --text:#1b2438;
  --muted:#5a6479;
  --white:#fff;
  --radius:14px;
  --shadow:0 10px 30px rgba(14,25,53,.12);
  --head:'Barlow Condensed','Arial Narrow',sans-serif;
  --body:'Inter',system-ui,-apple-system,'Segoe UI',sans-serif;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;scroll-padding-top:80px}
body{font-family:var(--body);color:var(--text);background:#fff;line-height:1.65;font-size:17px}
img{max-width:100%;height:auto;display:block}
a{color:inherit}
ul{list-style:none}
.container{width:min(1160px,100% - 40px);margin-inline:auto}

h1,h2,h3{font-family:var(--head);line-height:1.1;color:var(--navy);letter-spacing:.01em}
h1{font-size:clamp(2.3rem,5.4vw,4rem);font-weight:700}
h2{font-size:clamp(1.9rem,3.6vw,2.8rem);font-weight:700;margin-bottom:1rem}
h3{font-size:1.4rem;font-weight:600}
p+p{margin-top:1rem}

/* Buttons */
.btn{display:inline-block;background:var(--blue);color:#fff;text-decoration:none;font-weight:600;
  padding:.9rem 1.5rem;border-radius:10px;transition:.2s;border:2px solid var(--blue);text-align:center}
.btn:hover{background:var(--navy);border-color:var(--navy);transform:translateY(-2px)}
.btn-sm{padding:.55rem 1rem;font-size:.95rem}
.btn-ghost{background:transparent;color:var(--navy);border-color:var(--navy)}
.btn-ghost:hover{background:var(--navy);color:#fff}
.btn-wa{background:#1fa855;border-color:#1fa855}
.btn-wa:hover{background:var(--navy);border-color:var(--navy)}

/* Header */
.site-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.94);backdrop-filter:blur(10px);border-bottom:1px solid #e3e6eb}
.nav{display:flex;align-items:center;justify-content:space-between;height:72px}
.brand img{height:40px;width:auto}
.menu{display:flex;align-items:center;gap:1.6rem}
.menu a{text-decoration:none;font-weight:500;font-size:.97rem;color:var(--navy)}
.menu a:not(.btn):hover{color:var(--blue)}
.menu .btn{color:#fff}
.nav-toggle{display:none;background:none;border:0;width:44px;height:44px;cursor:pointer}
.nav-toggle span{display:block;height:3px;background:var(--navy);margin:5px 8px;border-radius:2px;transition:.2s}

/* Hero */
.hero{background:linear-gradient(135deg,#f4f5f7 0%,#c9ced6 100%);position:relative;overflow:hidden}
.hero::before{content:"";position:absolute;inset:0;
  background:repeating-linear-gradient(115deg,rgba(255,255,255,.28) 0 2px,transparent 2px 14px);opacity:.6}
.hero-grid{position:relative;display:grid;grid-template-columns:1.1fr .9fr;gap:3rem;align-items:center;padding:5rem 0}
.eyebrow{text-transform:uppercase;letter-spacing:.14em;font-size:.8rem;font-weight:600;color:var(--blue);margin-bottom:1rem}
.lead{font-size:1.15rem;color:var(--text);margin:1.2rem 0 1.8rem;max-width:56ch}
.hero-cta{display:flex;gap:1rem;flex-wrap:wrap}
.hero-stats{display:flex;gap:2rem;margin-top:2.5rem;flex-wrap:wrap}
.hero-stats strong{display:block;font-family:var(--head);font-size:2.2rem;color:var(--navy);line-height:1}
.hero-stats span{font-size:.85rem;color:var(--muted)}
.hero-media{position:relative}
.hero-badge{position:absolute;left:-1.5rem;bottom:-1.5rem;background:#fff;padding:.8rem 1.2rem;border-radius:12px;box-shadow:var(--shadow)}
.hero-badge img{height:48px;width:auto}

/* ===== Carrusel hero ===== */
.showcase{position:relative;height:calc(100vh - 72px);height:calc(100svh - 72px);min-height:560px;max-height:980px;background:var(--navy-deep);overflow:hidden;color:#fff}
.slides,.slide{position:absolute;inset:0}
.slide{opacity:0;visibility:hidden;transition:opacity .9s ease,visibility .9s;display:flex;align-items:center}
.slide.is-active{opacity:1;visibility:visible;z-index:1}
.slide::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(2,5,24,.9) 0%,rgba(2,5,24,.7) 38%,rgba(2,5,24,0) 72%);pointer-events:none}
.scene{position:absolute;inset:0;width:100%;height:100%;transform:scale(1.04);transition:transform 8s ease-out}
.slide.is-active .scene{transform:scale(1.12)}
.slide-content{position:relative;z-index:2;max-width:1160px}
.slide-content > *{max-width:620px;opacity:0;transform:translateY(26px);transition:opacity .8s ease,transform .8s ease}
.slide.is-active .slide-content > *{opacity:1;transform:none}
.slide.is-active .slide-content > :nth-child(2){transition-delay:.15s}
.slide.is-active .slide-content > :nth-child(3){transition-delay:.3s}
.slide.is-active .slide-content > :nth-child(4){transition-delay:.45s}
.slide-content h1,.slide-content h2{color:#fff;font-size:clamp(2.2rem,5vw,4.1rem);font-weight:700;margin-bottom:0}
.slide-content h2 em{font-style:normal;color:var(--blue-bright)}
.slide-content .lead{color:#dfe6f3}
.slide-content .eyebrow{color:var(--blue-bright)}
.btn-light{background:transparent;border-color:#fff;color:#fff}
.btn-light:hover{background:#fff;border-color:#fff;color:var(--navy)}

.car-btn{position:absolute;top:50%;transform:translateY(-50%);z-index:5;width:52px;height:52px;border-radius:50%;
  border:1px solid rgba(255,255,255,.35);background:rgba(2,5,24,.45);cursor:pointer;display:grid;place-items:center;transition:.2s;backdrop-filter:blur(4px)}
.car-btn:hover{background:var(--blue);border-color:var(--blue)}
.car-btn svg{width:24px;height:24px;fill:none;stroke:#fff;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.car-btn.prev{left:20px}.car-btn.next{right:20px}
.dots{position:absolute;left:50%;bottom:28px;transform:translateX(-50%);z-index:5;display:flex;gap:.7rem}
.dot-btn{width:54px;height:20px;background:none;border:0;cursor:pointer;display:grid;align-items:center}
.dot-btn i{display:block;height:4px;border-radius:2px;background:rgba(255,255,255,.35);position:relative;overflow:hidden}
.dot-btn i::after{content:"";position:absolute;inset:0;background:var(--blue-bright);transform:scaleX(0);transform-origin:left}
.dot-btn.is-active i::after{animation:progress var(--dur,7s) linear forwards}
.showcase.paused .dot-btn.is-active i::after{animation-play-state:paused}
@keyframes progress{to{transform:scaleX(1)}}

/* Animaciones de escena */
.spin{animation:spin 6s linear infinite}
.spin.slow{animation-duration:30s}.spin.fast{animation-duration:1.4s}.spin.rev{animation-direction:reverse}
@keyframes spin{to{transform:rotate(360deg)}}
.box{animation:belt 9s linear infinite}
@keyframes belt{from{transform:translateX(0)}to{transform:translateX(900px)}}
.belt-line{animation:dash 1s linear infinite}
@keyframes dash{to{stroke-dashoffset:-48}}
.arm1{animation:arm1 3.2s ease-in-out infinite alternate}
.arm2{animation:arm2 3.2s ease-in-out infinite alternate}
@keyframes arm1{from{transform:rotate(-18deg)}to{transform:rotate(14deg)}}
@keyframes arm2{from{transform:rotate(8deg)}to{transform:rotate(-34deg)}}
.blink{animation:blink 1.2s steps(2,start) infinite}.blink.b2{animation-delay:-.6s}
@keyframes blink{50%{opacity:.15}}
.drop{animation:fall 1.3s ease-in infinite}.drop.d2{animation-delay:-.43s}.drop.d3{animation-delay:-.86s}
@keyframes fall{0%{transform:translateY(0);opacity:0}15%{opacity:1}100%{transform:translateY(75px);opacity:0}}
.stripes{animation:drift 1.1s linear infinite}
@keyframes drift{to{transform:translateX(-60px)}}
.draw{stroke-dasharray:1200;animation:draw 5s ease-in-out infinite}
@keyframes draw{0%{stroke-dashoffset:1200}60%,100%{stroke-dashoffset:0}}
.eq{transform-box:fill-box;transform-origin:bottom;animation:eq 1.6s ease-in-out infinite alternate}
.eq.e2{animation-delay:-.4s;animation-duration:1.9s}.eq.e3{animation-delay:-.9s;animation-duration:1.3s}.eq.e4{animation-delay:-1.2s}
@keyframes eq{from{transform:scaleY(.25)}to{transform:scaleY(2.6)}}
.slide:not(.is-active) .scene *{animation-play-state:paused}

/* Botón flotante WhatsApp */
.wa-float{position:fixed;right:22px;bottom:22px;z-index:60;width:62px;height:62px;border-radius:50%;background:#25D366;display:grid;place-items:center;
  box-shadow:0 8px 24px rgba(0,0,0,.3);text-decoration:none;transition:transform .2s}
.wa-float:hover{transform:scale(1.08)}
.wa-float svg{width:34px;height:34px;fill:#fff}
.wa-float::before{content:"";position:absolute;inset:0;border-radius:50%;background:#25D366;z-index:-1;animation:pulse 2s ease-out infinite}
@keyframes pulse{0%{transform:scale(1);opacity:.6}100%{transform:scale(1.7);opacity:0}}
.wa-tip{position:absolute;right:76px;top:50%;transform:translateY(-50%);background:#fff;color:var(--navy);font-weight:600;font-size:.9rem;white-space:nowrap;
  padding:.5rem .9rem;border-radius:999px;box-shadow:var(--shadow);opacity:0;pointer-events:none;transition:.2s}
.wa-float:hover .wa-tip,.wa-float:focus-visible .wa-tip{opacity:1}

@media (max-width:900px){
  .slide::after{background:linear-gradient(180deg,rgba(2,5,24,.55),rgba(2,5,24,.85))}
  /* Flechas junto a los puntos, abajo y centradas */
  .car-btn{top:auto;bottom:14px;transform:none;width:40px;height:40px}
  .car-btn.prev{left:calc(50% - 65px - 50px)}
  .car-btn.next{right:calc(50% - 65px - 50px)}
  .dots{bottom:24px;gap:.35rem}
  .dot-btn{width:36px}
  .slide-content{padding-bottom:70px}
  .wa-float{width:56px;height:56px;right:16px;bottom:16px}
  .wa-tip{display:none}
}
@media (prefers-reduced-motion:reduce){
  .scene *,.wa-float::before{animation:none !important}
  .scene{transition:none}
  .slide-content > *{transition:none}
}

/* Placeholders */
.placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.4rem;text-align:center;
  min-height:420px;border-radius:var(--radius);border:2px dashed rgba(255,255,255,.45);
  background:linear-gradient(160deg,var(--navy),#1b2d57);color:#dfe6f3;padding:1.5rem}
.placeholder.light{background:var(--steel-light);border-color:#a7afbd;color:var(--muted)}
.placeholder.small{min-height:220px;margin-top:1.5rem}
.placeholder svg{width:48px;height:48px;fill:currentColor;opacity:.7}
.placeholder span{font-weight:600}
.placeholder small{opacity:.75;font-size:.8rem}
.hero .placeholder{min-height:460px;border-color:rgba(255,255,255,.35)}

.art{width:100%;border-radius:var(--radius);box-shadow:var(--shadow);object-fit:cover}
.hero .art{height:100%;max-height:560px}
.art-sm{margin-top:1.5rem}

/* Sections */
.section{padding:5.5rem 0}
.section-dark{background:var(--navy);color:#dfe6f3;position:relative}
.section-dark h2,.section-dark h3{color:#fff}
.section-grey{background:var(--steel-light)}
.section-tag{display:inline-flex;align-items:center;gap:.7rem;text-transform:uppercase;letter-spacing:.12em;font-size:.8rem;font-weight:600;color:var(--navy);margin-bottom:1rem}
.section-tag span{background:var(--navy);color:#fff;padding:.25rem .7rem;font-family:var(--head);font-size:1rem;letter-spacing:.05em}
.section-tag.on-dark{color:var(--steel)}
.section-tag.on-dark span{background:var(--blue)}
.muted{color:var(--muted)}
.section-grey .muted{margin-top:1.5rem}
.split{display:grid;grid-template-columns:1fr 1fr;gap:4rem;align-items:start}
.split.center{align-items:center}

/* Cards */
.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:1.4rem;margin-top:2.5rem}
.card{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12);border-radius:var(--radius);padding:1.8rem;transition:.25s}
.card:hover{transform:translateY(-5px);background:rgba(255,255,255,.1);border-color:var(--blue-bright)}
.card h3{margin:1rem 0 .5rem}
.card p{font-size:.95rem;color:#c3cde0}
.icon{width:52px;height:52px;border-radius:12px;background:var(--blue);display:grid;place-items:center}
.icon svg{width:28px;height:28px;fill:none;stroke:#fff;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

/* Lists */
.check-list li{position:relative;padding:.7rem 0 .7rem 2.2rem;border-bottom:1px solid #e3e6eb;font-weight:500}
.check-list li::before{content:"";position:absolute;left:0;top:1.05rem;width:1.1rem;height:1.1rem;border-radius:50%;
  background:var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/70% no-repeat}
.mission{background:var(--navy);color:#dfe6f3;border-radius:var(--radius);padding:2.5rem;box-shadow:var(--shadow)}
.mission .section-tag{color:var(--steel)}
.mission .section-tag span{background:var(--blue)}
.mission-lead{font-family:var(--head);font-size:1.7rem;line-height:1.2;color:#fff;margin-bottom:1.4rem}
.pill-list li{background:rgba(255,255,255,.08);border-radius:10px;padding:.8rem 1rem;margin-top:.6rem;border-left:4px solid var(--blue-bright)}
.chips{display:flex;flex-wrap:wrap;gap:.8rem;margin-top:1.5rem}
.chips li{background:#fff;padding:.7rem 1.2rem;border-radius:999px;font-weight:500;color:var(--navy);box-shadow:0 2px 8px rgba(14,25,53,.08);border:1px solid #d5d9e0}

/* Project */
.project-grid{display:grid;grid-template-columns:1fr 1.1fr;gap:3rem;margin-top:2.5rem;align-items:start}
.project-info h3{margin-bottom:.5rem}
.chart-card{background:var(--steel-light);border-radius:var(--radius);padding:2rem}
.chart-sub{color:var(--muted);font-size:.9rem;margin:.2rem 0 .8rem}
.legend{display:flex;align-items:center;gap:.5rem;font-size:.85rem;margin-bottom:1.2rem;flex-wrap:wrap}
.dot{width:12px;height:12px;border-radius:3px;display:inline-block;margin-left:.8rem}
.dot:first-child{margin-left:0}
.dot.man{background:#8e98ab}.dot.auto{background:var(--blue)}
.bar-row{display:grid;grid-template-columns:78px 1fr;gap:.2rem .8rem;align-items:center;margin-bottom:1rem}
.bar-label{font-weight:600;font-size:.9rem;color:var(--navy)}
.bar-track{display:flex;flex-direction:column;gap:4px}
.bar{display:block;height:11px;border-radius:0 6px 6px 0;width:0;transition:width 1.1s cubic-bezier(.2,.7,.2,1)}
.bar.man{background:#8e98ab}.bar.auto{background:var(--blue)}
.in-view .bar{width:calc(var(--w) / 9 * 100%)}
.bar-val{grid-column:2;font-size:.78rem;color:var(--muted)}
.sr-table{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}

/* Contact */
.contact{background:linear-gradient(180deg,#fff,var(--steel-light))}
.cta-box{background:linear-gradient(160deg,var(--navy),#1b2d57);color:#dfe6f3;border-radius:22px;padding:4rem 2rem;text-align:center;box-shadow:var(--shadow)}
.cta-logo{height:60px;width:auto;margin:0 auto 1.5rem;filter:brightness(0) invert(1)}
.cta-box h2{color:#fff;max-width:20ch;margin-inline:auto;max-width:28ch}
.people{display:grid;grid-template-columns:1fr 1fr;gap:1.5rem;max-width:820px;margin:2.5rem auto 1.5rem}
.person{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.15);border-radius:var(--radius);padding:1.6rem}
.person h3{margin-bottom:1rem;font-size:1.3rem}
.person .btn{display:block;margin-bottom:.6rem}
.tel{color:var(--blue-bright);font-weight:500;text-decoration:none}
.tel:hover{text-decoration:underline}
.mail{display:inline-block;margin-top:.5rem;color:#fff;font-weight:600;font-size:1.1rem}

.contact-form{max-width:820px;margin:2.5rem auto 0;background:#fff;color:var(--text);border-radius:var(--radius);padding:2rem;text-align:left;box-shadow:var(--shadow)}
.contact-form h3{color:var(--navy);margin-bottom:1.2rem;text-align:center}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
.contact-form label{display:flex;flex-direction:column;gap:.35rem;font-weight:600;font-size:.9rem;color:var(--navy)}
.contact-form .full{grid-column:1/-1}
.contact-form input,.contact-form select,.contact-form textarea{font:inherit;font-weight:400;color:var(--text);padding:.75rem .9rem;border:1.5px solid #c4cad6;border-radius:10px;background:#fff;width:100%}
.contact-form textarea{resize:vertical}
.contact-form input:focus,.contact-form select:focus,.contact-form textarea:focus{outline:none;border-color:var(--blue);box-shadow:0 0 0 3px rgba(74,134,176,.25)}
.contact-form .invalid{border-color:#c0392b}
.form-error{color:#c0392b;font-weight:600;margin-top:1rem;font-size:.9rem}
.form-actions{display:flex;gap:.8rem;margin-top:1.2rem;flex-wrap:wrap}
.form-actions .btn{flex:1 1 220px;cursor:pointer;font:inherit;font-weight:600}
.contact-form .btn-light{color:var(--navy);border-color:var(--navy)}
.contact-form .btn-light:hover{background:var(--navy);color:#fff}
@media (max-width:600px){.form-grid{grid-template-columns:1fr}.contact-form{padding:1.4rem}}

.address{font-style:normal;margin-top:2rem;padding-top:1.5rem;border-top:1px solid rgba(255,255,255,.15);
  display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:.5rem .8rem}
.address svg{width:22px;height:22px;fill:none;stroke:var(--blue-bright);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.address a{color:var(--blue-bright);font-weight:600;text-decoration:none}
.address a:hover{text-decoration:underline}

.map{margin-top:1.8rem;border-radius:var(--radius);overflow:hidden;border:1px solid rgba(255,255,255,.2);box-shadow:var(--shadow)}
.map iframe{display:block;width:100%;height:380px}

/* Footer */
.site-footer{background:var(--navy-deep);color:#9ba6bf;font-size:.93rem;border-top:4px solid var(--blue)}
.foot-grid{display:grid;grid-template-columns:1.4fr 1fr 1.1fr 1.6fr;gap:2.5rem;padding:4rem 0 3rem;text-align:left}
.foot-logo{height:38px;width:auto;margin:0 0 1.2rem;filter:brightness(0) invert(1)}
.foot-brand p{max-width:34ch}
.foot-zone{margin-top:1rem !important;color:var(--blue-bright);font-weight:500}
.foot-col h4{font-family:var(--head);font-size:1.2rem;letter-spacing:.08em;text-transform:uppercase;color:#fff;margin-bottom:1.1rem;position:relative;padding-bottom:.6rem}
.foot-col h4::after{content:"";position:absolute;left:0;bottom:0;width:32px;height:3px;background:var(--blue)}
.foot-col li{padding:.3rem 0}
.foot-col a{color:#c3cde0;text-decoration:none;transition:.2s}
.foot-col a:hover{color:var(--blue-bright)}
.foot-contact li{line-height:1.5}
.foot-contact a[href^="tel"],.foot-contact a[href^="mailto"]{color:#fff;font-weight:600}
.foot-bottom{border-top:1px solid rgba(255,255,255,.1);padding:1.2rem 0}
.foot-bottom-in{display:flex;justify-content:space-between;align-items:center;gap:1rem;flex-wrap:wrap}
.copy{font-size:.82rem;opacity:.75}
.tagline{font-family:var(--head);letter-spacing:.18em;text-transform:uppercase;font-size:.95rem;color:var(--steel)}
@media (max-width:900px){.foot-grid{grid-template-columns:1fr 1fr;padding:3rem 0 2rem}.foot-brand{grid-column:1/-1}}
@media (max-width:600px){.foot-grid{grid-template-columns:1fr}.foot-bottom-in{flex-direction:column;text-align:center}}

/* Reveal */
.reveal{opacity:0;transform:translateY(24px);transition:.7s ease}
.reveal.in-view{opacity:1;transform:none}

/* Responsive */
@media (max-width:900px){
  .hero-grid,.split,.project-grid{grid-template-columns:1fr;gap:2.5rem}
  .hero-grid{padding:3.5rem 0}
  .hero .placeholder{min-height:300px}
  .hero-badge{left:1rem;bottom:-1rem}
  .cards{grid-template-columns:1fr 1fr}
  .section{padding:4rem 0}
  .nav-toggle{display:block}
  .menu{position:absolute;top:72px;left:0;right:0;background:#fff;flex-direction:column;align-items:stretch;
    padding:1rem 20px 1.5rem;gap:1rem;border-bottom:1px solid #e3e6eb;display:none}
  .menu.open{display:flex}
  .menu .btn{text-align:center}
}
@media (max-width:600px){
  body{font-size:16px}
  .cards,.people{grid-template-columns:1fr}
  .brand img{height:34px}
  .hero-stats{gap:1.4rem}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .reveal{opacity:1;transform:none;transition:none}
  .bar{transition:none}
}
