:root{
  --navy:#0f1f3a;
  --navy-deep:#0c182c;
  --orange:#f46a1f;
  --orange-dark:#d85a13;
  --paper:#f2f5f9;
  --band:#e9eef5;
  --ink:#0f1f3a;
  --ink-soft:#5c6879;
  --line:#e1e7ee;
  --white:#fff;
  --maxw:1180px;
}
*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{ margin:0; font-family:'Plus Jakarta Sans', system-ui, sans-serif; background:#fff; color:var(--ink); line-height:1.5; -webkit-font-smoothing:antialiased; }
img{ max-width:100%; display:block; }
a{ color:inherit; }
p{ margin:0; }
h1,h2,h3{ margin:0; color:var(--navy); font-weight:800; letter-spacing:-0.02em; line-height:1.12; }
.wrap{ max-width:var(--maxw); margin:0 auto; padding:0 28px; }
.visually-hidden{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.accent{ color:var(--orange); }
.kicker{ color:var(--orange); font-weight:700; font-size:.92rem; }
.kicker.caps{ text-transform:uppercase; letter-spacing:.14em; font-size:.74rem; font-weight:800; }
:focus-visible{ outline:3px solid #ffa56e; outline-offset:2px; }

/* ---------- Buttons ---------- */
.btn{ display:inline-flex; align-items:center; justify-content:center; gap:10px; padding:14px 26px; border-radius:6px; font-weight:700; font-size:.95rem; text-decoration:none; border:1.5px solid transparent; cursor:pointer; font-family:inherit; transition:background .15s, border-color .15s, transform .15s; }
.btn-primary{ background:var(--orange); color:#fff; }
.btn-primary:hover{ background:var(--orange-dark); transform:translateY(-1px); }
.btn-outline{ background:#fff; color:var(--navy); border-color:var(--navy); }
.btn-outline:hover{ background:var(--navy); color:#fff; }
.btn-outline-dark{ background:transparent; color:#fff; border-color:rgba(255,255,255,.85); }
.btn-outline-dark:hover{ background:#fff; color:var(--navy); }
.btn-outline-orange{ background:#fff; color:var(--orange); border-color:var(--orange); }
.btn-outline-orange:hover{ background:var(--orange); color:#fff; }
.btn-sm{ padding:10px 22px; font-size:.86rem; }
.btn-ctas{ display:flex; gap:14px; flex-wrap:wrap; }

/* ---------- Header ---------- */
header{ position:sticky; top:0; z-index:100; background:#fff; border-bottom:1px solid var(--line); }
.header-inner{ display:flex; align-items:center; justify-content:space-between; gap:24px; height:72px; }
.logo-link img{ height:42px; width:auto; }
nav.main-nav{ display:flex; align-items:center; gap:26px; }
nav.main-nav a{ text-decoration:none; font-size:.84rem; font-weight:600; color:var(--navy); white-space:nowrap; }
nav.main-nav a:hover, nav.main-nav a.active{ color:var(--orange); }
.nav-mobile-contact{ display:none; }
.nav-toggle{ display:none; background:none; border:0; cursor:pointer; padding:6px; }
.nav-toggle svg{ width:26px; height:26px; }
@media (max-width:1060px){
  nav.main-nav{ position:absolute; top:100%; left:0; right:0; background:#fff; flex-direction:column; align-items:flex-start; padding:20px 28px 26px; gap:16px; border-bottom:1px solid var(--line); display:none; }
  nav.main-nav.open{ display:flex; }
  .nav-toggle{ display:inline-flex; }
  .nav-mobile-contact{ display:flex; flex-direction:column; gap:8px; border-top:1px solid var(--line); padding-top:14px; width:100%; }
  .nav-mobile-contact a{ font-weight:700; }
  .header-actions .btn{ display:none; }
}

/* ---------- Hero: dark split (Inicio) ---------- */
.hero-home{ display:grid; grid-template-columns:1fr 1fr; min-height:440px; background:var(--navy-deep); }
.hero-home .hh-text{ display:flex; flex-direction:column; justify-content:center; padding:56px 24px 56px max(28px, calc((100vw - var(--maxw))/2 + 28px)); }
.hero-home .kicker{ font-size:1.05rem; }
.hero-home h1{ color:#fff; font-size:clamp(2rem,3.4vw,2.75rem); margin-top:20px; }
.hero-home .lede{ color:rgba(255,255,255,.88); font-size:1.12rem; margin-top:22px; max-width:30em; }
.hero-home .btn-ctas{ margin-top:30px; }
.hero-home .hh-photo{ position:relative; min-height:300px; }
.hero-home .hh-photo img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
@media (max-width:900px){
  .hero-home{ grid-template-columns:1fr; }
  .hero-home .hh-photo{ order:2; height:260px; min-height:0; }
  .hero-home .hh-text{ padding:44px 24px; }
}

/* Benefit strip */
.benefit-strip{ background:#fff; }
.benefit-strip .bs-grid{ display:grid; grid-template-columns:repeat(3,1fr); }
.benefit-strip .b-item{ display:flex; align-items:center; gap:20px; padding:30px 30px; border-left:1px solid var(--line); }
.benefit-strip .b-item:first-child{ border-left:0; }
.b-icon svg{ width:46px; height:46px; stroke:var(--orange); flex-shrink:0; }
.b-item h3{ font-size:1.02rem; }
.b-item p{ font-size:.9rem; color:var(--ink-soft); margin-top:4px; }
@media (max-width:860px){
  .benefit-strip .bs-grid{ grid-template-columns:1fr; }
  .benefit-strip .b-item{ border-left:0; border-top:1px solid var(--line); padding:22px 4px; }
  .benefit-strip .b-item:first-child{ border-top:0; }
}

/* ---------- Hero: photo fading into white (Importaciones, Bodega) ---------- */
.hero-fade{ position:relative; background:#fff; min-height:440px; overflow:hidden; display:flex; align-items:center; }
.hero-fade .hf-photo{ position:absolute; top:0; right:0; bottom:0; width:68%; }
.hero-fade .hf-photo img{ width:100%; height:100%; object-fit:cover; object-position:left center; }
.hero-fade::after{ content:""; position:absolute; inset:0; background:linear-gradient(90deg,#fff 0%,#fff 34%,rgba(255,255,255,.85) 44%,rgba(255,255,255,0) 62%); }
.hero-fade .hf-inner{ position:relative; z-index:2; width:100%; padding:60px 0; }
.hero-fade .hf-text{ max-width:600px; }
.hero-fade h1, .hero-light h1, .hero-top h1{ font-size:clamp(1.9rem,3.1vw,2.5rem); margin-top:14px; }
.hero-fade .lede, .hero-light .lede, .hero-top .lede{ font-size:1.05rem; margin-top:20px; color:var(--navy); max-width:34em; }
.hero-fade .lede-sm, .hero-light .lede-sm{ font-size:.92rem; color:var(--ink-soft); margin-top:12px; max-width:34em; }
.hero-fade .btn-ctas, .hero-light .btn-ctas{ margin-top:26px; }
@media (max-width:900px){
  .hero-fade{ display:block; min-height:0; }
  .hero-fade .hf-photo{ position:relative; width:100%; height:230px; }
  .hero-fade::after{ display:none; }
  .hero-fade .hf-inner{ padding:36px 0 44px; }
}

/* ---------- Hero: white left / photo right (Asesoría) ---------- */
.hero-light{ display:grid; grid-template-columns:41.5% 58.5%; background:#fff; min-height:440px; }
.hero-light .hl-text{ display:flex; flex-direction:column; justify-content:center; padding:56px 40px 56px max(28px, calc((100vw - var(--maxw))/2 + 28px)); }
.hero-light .hl-photo{ position:relative; min-height:300px; }
.hero-light .hl-photo img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.hero-light .btn{ padding:13px 16px; font-size:.88rem; }
.hero-light .btn-ctas{ gap:10px; flex-wrap:nowrap; }
@media (max-width:900px){
  .hero-light{ grid-template-columns:1fr; }
  .hero-light .hl-photo{ order:-1; height:240px; min-height:0; }
  .hero-light .hl-text{ padding:36px 24px 44px; }
}

/* ---------- Hero: top banner photo (Última milla) ---------- */
.hero-top .ht-photo{ width:100%; height:clamp(200px,24vw,320px); object-fit:cover; }
.hero-top .ht-text{ background:#fff; padding:42px 0 46px; }
.hero-top .ht-row{ display:flex; align-items:center; justify-content:space-between; gap:36px; flex-wrap:wrap; }
.hero-top .lede{ max-width:32em; }

/* ---------- Sections ---------- */
section{ padding:64px 0; }
section.hero-home, section.hero-fade, section.hero-light, section.hero-top{ padding:0; }
.bg-paper{ background:var(--paper); }
.bg-band{ background:var(--band); }
.sec-title{ font-size:clamp(1.6rem,2.6vw,2.1rem); }
.sec-title.center{ text-align:center; }
.sec-lede{ color:var(--ink-soft); margin-top:12px; max-width:56ch; }
.sec-lede.center{ margin-left:auto; margin-right:auto; text-align:center; }
.sec-head{ margin-bottom:28px; }
.page-title{ font-size:clamp(2.2rem,4.8vw,3.5rem); letter-spacing:-0.03em; }

/* ---------- Photo cards ---------- */
.card-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
@media (max-width:900px){ .card-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:600px){ .card-grid{ grid-template-columns:1fr; } }
.photo-card{ display:block; text-decoration:none; background:#fff; border:1px solid var(--line); border-radius:8px; overflow:hidden; box-shadow:0 2px 10px rgba(15,31,58,.05); transition:transform .15s, box-shadow .15s; }
.photo-card:hover{ transform:translateY(-3px); box-shadow:0 10px 24px rgba(15,31,58,.12); }
.photo-card img{ width:100%; height:176px; object-fit:cover; }
.photo-card .pc-body{ padding:16px 20px 20px; }
.photo-card h3{ font-size:1.12rem; display:flex; justify-content:space-between; align-items:center; gap:10px; }
.photo-card h3 .arrow{ color:var(--orange); font-size:1.2rem; }
.photo-card p{ margin-top:6px; color:var(--ink-soft); font-size:.92rem; }

/* ---------- Process: orange circles ---------- */
.steps-circle{ display:flex; align-items:center; gap:0; margin-top:26px; }
.steps-circle .sc-item{ display:flex; align-items:center; gap:14px; }
.steps-circle .sc-num{ flex-shrink:0; width:60px; height:60px; border-radius:50%; background:var(--orange); color:#fff; font-weight:800; font-size:1.3rem; display:flex; align-items:center; justify-content:center; }
.steps-circle .sc-text{ font-weight:700; font-size:1.05rem; line-height:1.25; color:var(--navy); max-width:9.5em; }
.steps-circle .sc-line{ flex:1; height:1px; background:#b4bfcd; margin:0 16px; min-width:20px; }
.steps-note{ text-align:center; color:var(--ink-soft); font-size:.86rem; margin-top:22px; }
@media (max-width:900px){
  .steps-circle{ flex-direction:column; align-items:flex-start; gap:18px; }
  .steps-circle .sc-line{ display:none; }
}

/* ---------- Process: boxed cards w/ icons + arrows ---------- */
.steps-box{ display:flex; align-items:stretch; margin-top:26px; }
.steps-box .sb-card{ flex:1; background:#fff; border-radius:8px; box-shadow:0 2px 12px rgba(15,31,58,.07); padding:18px 16px 24px; text-align:center; position:relative; }
.steps-box .sb-num{ position:absolute; left:18px; top:16px; color:var(--orange); font-weight:800; font-size:1.05rem; }
.steps-box .sb-icon{ display:flex; justify-content:center; margin-bottom:8px; }
.steps-box .sb-icon svg{ width:62px; height:62px; stroke:var(--orange); }
.steps-box h3{ font-size:1.08rem; }
.steps-box p{ margin-top:6px; color:var(--ink-soft); font-size:.92rem; }
.steps-box .sb-arrow{ flex:0 0 44px; display:flex; align-items:center; justify-content:center; color:#9aa6b6; font-size:2rem; font-weight:300; }
.steps-box.orange-arrows .sb-arrow{ color:var(--orange); font-size:1.5rem; }
@media (max-width:900px){
  .steps-box{ flex-direction:column; }
  .steps-box .sb-arrow{ flex:0 0 36px; transform:rotate(90deg); }
}

/* mode / route rows below steps */
.mode-row{ display:flex; align-items:center; margin-top:34px; }
.mode-row .m-line{ flex:1; height:1px; background:var(--line); min-width:20px; }
.mode-row .m-item{ display:flex; align-items:center; gap:14px; padding:4px 40px; border-left:1px solid var(--line); font-weight:700; font-size:.95rem; }
.mode-row .m-item:first-of-type{ border-left:0; }
.mode-row svg{ width:40px; height:40px; stroke:var(--orange); }
.route-row .m-item{ border-left:0; padding:4px 26px; text-transform:uppercase; letter-spacing:.16em; font-size:.8rem; }
.route-row .m-arrow{ color:var(--orange); font-size:1.6rem; }
.route-row .flag{ width:58px; height:38px; flex-shrink:0; box-shadow:0 1px 4px rgba(0,0,0,.2); }
@media (max-width:760px){
  .mode-row{ flex-wrap:wrap; justify-content:center; gap:14px; }
  .mode-row .m-line{ display:none; }
  .mode-row .m-item{ border-left:0; padding:4px 12px; }
}

/* ---------- Feature cards (icon left) ---------- */
.feature-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
@media (max-width:900px){ .feature-grid{ grid-template-columns:1fr; } }
.feature-card{ display:flex; gap:22px; align-items:center; background:#fff; border-radius:8px; box-shadow:0 2px 12px rgba(15,31,58,.06); padding:24px 26px; }
.feature-card .f-icon svg{ width:56px; height:56px; stroke:var(--orange); flex-shrink:0; }
.feature-card h3{ font-size:1.12rem; }
.feature-card p{ margin-top:6px; color:var(--ink-soft); font-size:.92rem; }

/* ---------- Dark bands ---------- */
.band-dark{ background:var(--navy); color:#fff; padding:36px 0 26px; }
.band-dark .bd-row{ display:flex; align-items:center; justify-content:space-between; gap:32px; flex-wrap:wrap; }
.band-dark h2, .band-dark h3{ color:#fff; font-size:clamp(1.4rem,2.4vw,1.9rem); }
.band-dark .bd-sub{ color:rgba(255,255,255,.85); margin-top:6px; }
.band-dark .bd-cta{ display:flex; align-items:center; gap:36px; }
.band-dark .bd-sep{ width:1px; align-self:stretch; background:rgba(255,255,255,.25); }
.band-dark .bd-note{ margin-top:18px; font-size:.82rem; color:rgba(255,255,255,.6); }
.band-dark .bd-note.center{ text-align:center; border-top:1px solid rgba(255,255,255,.18); padding-top:16px; margin-top:26px; }
.band-dark .btn-primary{ color:var(--navy); font-weight:800; }
.band-dark .btn-primary:hover{ color:#fff; }
@media (max-width:760px){ .band-dark .bd-sep{ display:none; } }

/* ---------- Split: photo + text (Laredo, proveedor) ---------- */
.split{ display:grid; grid-template-columns:1.05fr 1fr; gap:0; align-items:stretch; }
.split .sp-photo img{ width:100%; height:100%; object-fit:cover; min-height:260px; }
.split .sp-text{ display:flex; flex-direction:column; justify-content:center; padding:36px 0 36px 44px; }
.split .sp-text h2{ font-size:clamp(1.8rem,3.2vw,2.5rem); }
.split .sp-text p{ margin-top:16px; color:var(--ink-soft); font-size:1.08rem; }
.split .sp-text .btn{ margin-top:24px; align-self:flex-start; }
@media (max-width:860px){ .split{ grid-template-columns:1fr; } .split .sp-text{ padding:26px 0 0; } }
section.flush{ padding:0; }

/* ---------- Export + doc-list ---------- */
.export-grid{ display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:start; }
@media (max-width:900px){ .export-grid{ grid-template-columns:1fr; gap:32px; } }
.pills{ display:flex; flex-wrap:wrap; gap:10px; margin-top:20px; }
.pill{ background:#fff; border:1px solid var(--line); border-radius:999px; padding:8px 14px; font-size:.82rem; font-weight:600; color:var(--ink-soft); }
.doc-list{ display:flex; flex-direction:column; gap:14px; }
.doc-item{ display:flex; gap:16px; align-items:flex-start; padding:16px 20px; background:#fff; border-radius:8px; box-shadow:0 2px 10px rgba(15,31,58,.05); }
.doc-item svg{ width:26px; height:26px; stroke:var(--orange); flex-shrink:0; margin-top:1px; }
.doc-item p{ font-size:.92rem; color:var(--ink-soft); }
.doc-item strong{ color:var(--navy); }

/* ---------- FAQ ---------- */
.faq-list{ display:flex; flex-direction:column; gap:12px; max-width:820px; }
details.faq-item{ background:#fff; border:1px solid var(--line); border-radius:8px; padding:2px 22px; }
details.faq-item summary{ list-style:none; cursor:pointer; padding:18px 0; display:flex; align-items:center; justify-content:space-between; gap:16px; font-weight:700; color:var(--navy); }
details.faq-item summary::-webkit-details-marker{ display:none; }
details.faq-item .faq-chevron{ width:20px; height:20px; stroke:var(--orange); flex-shrink:0; transition:transform .2s; }
details.faq-item[open] .faq-chevron{ transform:rotate(180deg); }
details.faq-item .faq-answer{ padding:0 0 20px; color:var(--ink-soft); font-size:.94rem; max-width:68ch; }

/* ---------- Contact band (dark) with white form card ---------- */
.contact-band{ background:var(--navy); padding:56px 0; }
.contact-band .cb-grid{ display:grid; grid-template-columns:.85fr 1.15fr; gap:48px; align-items:center; }
.contact-band h2{ color:#fff; font-size:clamp(1.9rem,3.4vw,2.6rem); }
.contact-band .cb-lede{ color:rgba(255,255,255,.88); font-size:1.12rem; margin-top:18px; max-width:24em; }
.contact-band .cb-facts{ margin-top:26px; display:flex; flex-direction:column; gap:10px; font-size:.92rem; color:rgba(255,255,255,.78); }
.contact-band .cb-facts a{ text-decoration:none; }
.form-card{ background:#fff; border-radius:10px; padding:22px; box-shadow:0 20px 50px -18px rgba(0,0,0,.5); }
.form-grid{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.form-field.full{ grid-column:1 / -1; }
.form-field input, .form-field select, .form-field textarea{ width:100%; padding:12px 14px; border:1px solid #d9e0e9; border-radius:5px; background:#f8fafc; font-family:inherit; font-size:.9rem; color:var(--ink); resize:vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus{ outline:none; border-color:var(--orange); background:#fff; }
.form-field label.lbl{ display:block; font-size:.78rem; font-weight:700; margin-bottom:5px; color:var(--navy); }
.form-check{ display:flex; gap:10px; align-items:center; font-size:.85rem; color:var(--navy); }
.form-check input{ accent-color:var(--orange); width:16px; height:16px; }
.form-actions{ display:flex; align-items:center; gap:22px; margin-top:16px; flex-wrap:wrap; }
.form-actions .btn-primary{ flex:1; min-width:200px; }
.form-actions .wa-link{ color:var(--orange); font-weight:700; text-decoration:underline; font-size:.95rem; padding-left:22px; border-left:1px solid #cfd7e1; }
details.more{ margin-top:12px; }
details.more summary{ cursor:pointer; font-size:.84rem; font-weight:700; color:var(--orange); }
details.more .form-grid{ margin-top:12px; }
.radio-group{ display:flex; gap:8px; }
.radio-chip{ flex:1; text-align:center; padding:11px 8px; border:1px solid #d9e0e9; border-radius:5px; font-size:.85rem; font-weight:600; color:var(--ink-soft); cursor:pointer; background:#f8fafc; }
.radio-chip input{ display:none; }
.radio-chip.checked{ border-color:var(--orange); color:var(--orange); background:#fff3ec; }
@media (max-width:900px){ .contact-band .cb-grid{ grid-template-columns:1fr; } }
@media (max-width:560px){ .form-grid{ grid-template-columns:1fr; } .form-actions .wa-link{ border-left:0; padding-left:0; } }

/* ---------- Footer ---------- */
footer{ background:var(--navy-deep); color:rgba(255,255,255,.7); padding:52px 0 28px; }
.footer-top{ display:flex; justify-content:space-between; gap:40px; flex-wrap:wrap; padding-bottom:32px; border-bottom:1px solid rgba(255,255,255,.1); }
.footer-brand .logo-box{ background:#fff; display:inline-block; padding:8px 12px; border-radius:6px; margin-bottom:14px; }
.footer-brand img{ height:34px; }
.footer-brand p{ max-width:36ch; font-size:.88rem; }
.footer-brand a{ color:#fff; text-decoration:none; font-weight:700; }
.footer-cols{ display:flex; gap:60px; flex-wrap:wrap; }
.footer-col h4{ color:#fff; font-size:.86rem; margin:0 0 14px; }
.footer-col a{ display:block; text-decoration:none; color:rgba(255,255,255,.68); font-size:.88rem; margin-bottom:10px; }
.footer-col a:hover{ color:#fff; }
.footer-bottom{ display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; padding-top:24px; font-size:.8rem; }

/* ---------- WhatsApp float ---------- */
.wa-float{ position:fixed; bottom:22px; right:22px; z-index:200; display:flex; align-items:center; gap:10px; background:var(--navy); color:#fff; padding:13px 18px; border-radius:999px; text-decoration:none; font-weight:700; font-size:.9rem; box-shadow:0 10px 24px rgba(12,24,44,.3); }
.wa-float:hover{ background:var(--orange); }
.wa-float svg{ width:18px; height:18px; }
@media (max-width:560px){ .wa-float span{ display:none; } .wa-float{ padding:13px; } }

/* =====================================================================
   PREMIUM MOTION LAYER (solo efectos; no altera diseño, textos ni fotos)
   ===================================================================== */
:root{ interpolate-size:allow-keywords; --ease:cubic-bezier(.22,.7,.2,1); }

/* --- Entrada de página --- */
@keyframes pageIn{ from{ opacity:0; } to{ opacity:1; } }

/* --- Barra de progreso de scroll --- */
.scroll-progress{ position:fixed; top:0; left:0; right:0; height:3px; z-index:400; transform-origin:0 50%; transform:scaleX(0); background:linear-gradient(90deg,var(--orange),#ffa05c); pointer-events:none; }

/* --- Header --- */
header{ transition:box-shadow .35s ease, background .35s ease; }
header.is-scrolled{ box-shadow:0 8px 28px -10px rgba(15,31,58,.18); background:rgba(255,255,255,.9); backdrop-filter:saturate(1.4) blur(14px); -webkit-backdrop-filter:saturate(1.4) blur(14px); }
.header-inner{ transition:height .35s var(--ease); }
header.is-scrolled .header-inner{ height:62px; }
.logo-link img{ transition:height .35s var(--ease); }
header.is-scrolled .logo-link img{ height:36px; }
nav.main-nav a{ position:relative; }
nav.main-nav a::after{ content:""; position:absolute; left:0; right:0; bottom:-6px; height:2px; background:var(--orange); transform:scaleX(0); transform-origin:left; transition:transform .35s var(--ease); }
nav.main-nav a:hover::after, nav.main-nav a.active::after{ transform:scaleX(1); }

/* --- Heroes: entrada escalonada + zoom lento de la foto --- */
@keyframes riseIn{ from{ opacity:0; translate:0 26px; } to{ opacity:1; translate:0 0; } }
@keyframes heroZoom{ from{ scale:1.16; } to{ scale:1.06; } }
.hh-text > *, .hf-text > *, .hl-text > *, .ht-row > *{ animation:riseIn 1s var(--ease) both; }
.hh-text > :nth-child(1), .hf-text > :nth-child(1), .hl-text > :nth-child(1), .ht-row > :nth-child(1){ animation-delay:.12s; }
.hh-text > :nth-child(2), .hf-text > :nth-child(2), .hl-text > :nth-child(2), .ht-row > :nth-child(2){ animation-delay:.26s; }
.hh-text > :nth-child(3), .hf-text > :nth-child(3), .hl-text > :nth-child(3){ animation-delay:.4s; }
.hh-text > :nth-child(4), .hf-text > :nth-child(4), .hl-text > :nth-child(4){ animation-delay:.54s; }
.hh-text > :nth-child(5), .hf-text > :nth-child(5){ animation-delay:.68s; }
.hh-photo, .hf-photo, .hl-photo{ overflow:hidden; }
.hero-top{ overflow:hidden; }
.hero-top .ht-text{ position:relative; z-index:1; }
.hh-photo img, .hf-photo img, .hl-photo img, .hero-top .ht-photo{ animation:heroZoom 2.4s var(--ease) both; translate:0 var(--py,0px); will-change:translate, scale; }
.hero-home{ background:radial-gradient(620px 420px at 8% 108%, rgba(244,106,31,.16), transparent 70%), var(--navy-deep); }

/* --- Revelado al hacer scroll (lo activa el JS) --- */
html.js .rv{ opacity:0; translate:0 30px; transition:opacity .95s var(--ease), translate .95s var(--ease); will-change:opacity, translate; }
html.js .rv.in{ opacity:1; translate:0 0; }
html.js .steps-circle .sc-line{ scale:0 1; transform-origin:left center; transition:scale 1.2s var(--ease) .4s; }
html.js .steps-circle.in .sc-line{ scale:1 1; }
html.js .mode-row .m-line{ scale:0 1; transition:scale 1.2s var(--ease) .3s; }
html.js .mode-row .m-line:first-child{ transform-origin:right center; }
html.js .mode-row .m-line:last-child{ transform-origin:left center; }
html.js .mode-row.in .m-line{ scale:1 1; }

/* --- Botones --- */
.btn{ position:relative; isolation:isolate; overflow:hidden; transition:background .2s, border-color .2s, color .2s, transform .25s var(--ease), box-shadow .3s ease; }
.btn-primary::after{ content:""; position:absolute; inset:0; z-index:-1; background:linear-gradient(110deg,transparent 30%,rgba(255,255,255,.38) 50%,transparent 70%); translate:-130% 0; transition:translate .8s var(--ease); }
.btn-primary:hover::after{ translate:130% 0; }
.btn-primary:hover{ box-shadow:0 14px 28px -10px rgba(244,106,31,.65); }
.btn-outline:hover, .btn-outline-dark:hover, .btn-outline-orange:hover{ box-shadow:0 12px 26px -12px rgba(15,31,58,.45); transform:translateY(-1px); }
.btn:active{ transform:translateY(0) scale(.97); }

/* --- Tarjetas con foto --- */
.photo-card{ transition:transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s; }
.photo-card:hover{ transform:translateY(-6px); box-shadow:0 22px 44px -18px rgba(15,31,58,.32); border-color:#ffd2b8; }
.photo-card img{ transition:transform 1s var(--ease); }
.photo-card:hover img{ transform:scale(1.07); }
.photo-card h3 .arrow{ transition:transform .35s var(--ease); display:inline-block; }
.photo-card:hover h3 .arrow{ transform:translateX(6px); }

/* --- Tarjetas de iconos y pasos --- */
.feature-card, .sb-card, .doc-item{ transition:transform .4s var(--ease), box-shadow .4s var(--ease); position:relative; }
.feature-card:hover, .sb-card:hover, .doc-item:hover{ transform:translateY(-5px); box-shadow:0 20px 40px -18px rgba(15,31,58,.3); }
.feature-card::before, .sb-card::before{ content:""; position:absolute; inset:0; border-radius:inherit; pointer-events:none; opacity:0; transition:opacity .35s; background:radial-gradient(260px circle at var(--mx,50%) var(--my,50%), rgba(244,106,31,.10), transparent 65%); }
.feature-card:hover::before, .sb-card:hover::before{ opacity:1; }
.f-icon svg, .sb-icon svg, .b-icon svg, .m-item svg, .doc-item svg{ transition:transform .5s var(--ease); }
.feature-card:hover .f-icon svg, .sb-card:hover .sb-icon svg{ transform:translateY(-4px) scale(1.08); }
.b-item:hover .b-icon svg{ transform:scale(1.12) rotate(-4deg); }
.b-item{ transition:background .35s; }
.b-item:hover{ background:#fafbfd; }
.m-item:hover svg{ transform:translateY(-3px) scale(1.1); }
.steps-box .sb-arrow{ transition:transform .35s var(--ease); }

/* --- Círculos de pasos --- */
.steps-circle .sc-num{ transition:transform .45s var(--ease), box-shadow .45s; box-shadow:0 8px 18px -8px rgba(244,106,31,.55); }
.steps-circle .sc-item:hover .sc-num{ transform:scale(1.12); box-shadow:0 0 0 8px rgba(244,106,31,.16), 0 12px 24px -8px rgba(244,106,31,.6); }

/* --- Bandas oscuras: brillo ambiental --- */
.band-dark, .contact-band{ position:relative; overflow:hidden; }
.band-dark > .wrap, .contact-band > .wrap{ position:relative; z-index:1; }
.band-dark::before, .contact-band::before{ content:""; position:absolute; right:-8%; top:-70%; width:560px; height:560px; background:radial-gradient(circle, rgba(244,106,31,.2), transparent 65%); pointer-events:none; animation:glowDrift 12s ease-in-out infinite alternate; }
.contact-band::after{ content:""; position:absolute; left:-10%; bottom:-60%; width:520px; height:520px; background:radial-gradient(circle, rgba(70,110,190,.22), transparent 65%); pointer-events:none; animation:glowDrift 15s ease-in-out infinite alternate-reverse; }
@keyframes glowDrift{ from{ translate:0 0; } to{ translate:-60px 40px; } }

/* --- Formularios --- */
.form-card{ transition:box-shadow .4s; }
.form-card:focus-within{ box-shadow:0 28px 60px -18px rgba(0,0,0,.6), 0 0 0 1px rgba(244,106,31,.35); }
.form-field input, .form-field select, .form-field textarea{ transition:border-color .25s, background .25s, box-shadow .25s; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus{ box-shadow:0 0 0 4px rgba(244,106,31,.16); }
.form-actions .wa-link{ transition:color .2s, letter-spacing .3s; }
.form-actions .wa-link:hover{ color:var(--orange-dark); }

/* --- FAQ con apertura suave --- */
details.faq-item{ transition:box-shadow .3s, border-color .3s; }
details.faq-item:hover{ box-shadow:0 10px 26px -16px rgba(15,31,58,.3); border-color:#ffd2b8; }
details.faq-item::details-content{ block-size:0; overflow:hidden; transition:block-size .4s var(--ease), content-visibility .4s allow-discrete; }
details.faq-item[open]::details-content{ block-size:auto; }

/* --- WhatsApp flotante --- */
.wa-float{ transition:transform .3s var(--ease), background .25s; }
.wa-float::before{ content:""; position:absolute; inset:0; border-radius:inherit; animation:waPulse 2.8s ease-out infinite; pointer-events:none; }
@keyframes waPulse{ 0%{ box-shadow:0 0 0 0 rgba(244,106,31,.55); } 70%,100%{ box-shadow:0 0 0 18px rgba(244,106,31,0); } }

/* --- Pies de foto / footer links --- */
.footer-col a{ transition:color .2s, translate .25s var(--ease); }
.footer-col a:hover{ translate:4px 0; }
::selection{ background:rgba(244,106,31,.25); }

/* --- Cortina de transición entre páginas --- */
.pt-curtain{ position:fixed; inset:0; z-index:1000; background:var(--navy-deep); pointer-events:none; transform:translateY(101%); transition:transform .55s cubic-bezier(.76,0,.24,1); display:flex; align-items:center; justify-content:center; }
.pt-curtain::before{ content:""; position:absolute; top:-3px; left:0; right:0; height:3px; background:var(--orange); box-shadow:0 0 24px 4px rgba(244,106,31,.6); }
.pt-curtain::after{ content:""; width:46px; height:46px; border-radius:50%; border:3px solid rgba(255,255,255,.18); border-top-color:var(--orange); animation:ptSpin .8s linear infinite; opacity:0; transition:opacity .3s .25s; }
body.leaving .pt-curtain{ transform:translateY(0); }
body.leaving .pt-curtain::after{ opacity:1; }
@keyframes ptSpin{ to{ transform:rotate(360deg); } }
html.pt-in .pt-curtain{ transform:translateY(0); transition:none; }
html.pt-in.pt-out .pt-curtain{ transform:translateY(-101%); transition:transform .7s cubic-bezier(.76,0,.24,1); }
html.pt-in:not(.pt-out) :is(.hh-text,.hf-text,.hl-text,.ht-row) > *,
html.pt-in:not(.pt-out) :is(.hh-photo,.hf-photo,.hl-photo) img,
html.pt-in:not(.pt-out) .ht-photo{ animation-play-state:paused; }

/* Reducir movimiento: se mantienen fades y hover; se quita parallax, zoom, deriva y pulso */
@media (prefers-reduced-motion:reduce){
  html{ scroll-behavior:auto; }
  .hh-photo img, .hf-photo img, .hl-photo img, .hero-top .ht-photo{ animation:none !important; scale:1.04; translate:none !important; }
  .band-dark::before, .contact-band::before, .contact-band::after, .wa-float::before, .pt-curtain::after{ animation:none !important; }
  @keyframes riseIn{ from{ opacity:0; translate:0 0; } to{ opacity:1; translate:0 0; } }
  html.js .rv{ translate:0 10px; }
  html.js .rv.in{ translate:0 0; }
}

/* --- Estado del formulario / honeypot --- */
.hp{ position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }
.form-status{ display:none; margin-top:14px; padding:12px 14px; border-radius:6px; font-size:.9rem; font-weight:600; line-height:1.45; }
.form-status.ok{ display:block; background:#e8f7ee; color:#146c3a; }
.form-status.err{ display:block; background:#fdecec; color:#a12a2a; }
.form-status a{ color:inherit; text-decoration:underline; }
.form-card button[disabled]{ opacity:.75; cursor:progress; }

/* ===== Aviso de privacidad: banner inferior (no modal, sin CLS) ===== */
.privacy-banner{ position:fixed; left:0; right:0; bottom:0; z-index:300; padding:14px 16px; pointer-events:none; translate:0 110%; opacity:0; transition:translate .6s var(--ease), opacity .4s; }
.privacy-banner[hidden]{ display:none; }
.privacy-banner.show{ translate:0 0; opacity:1; }
.privacy-inner{ pointer-events:auto; max-width:1040px; margin:0 auto; background:var(--navy-deep); color:#e8eef7; border-radius:16px; padding:16px 20px; display:flex; align-items:center; gap:20px; box-shadow:0 -6px 40px rgba(12,24,44,.35); border:1px solid rgba(255,255,255,.1); }
.privacy-text{ margin:0; font-size:.88rem; line-height:1.5; flex:1; }
.privacy-text a{ color:#ffb88f; text-decoration:underline; }
.privacy-actions{ display:flex; align-items:center; gap:16px; flex-shrink:0; }
.privacy-link{ color:#fff; font-size:.86rem; font-weight:600; text-decoration:underline; text-underline-offset:3px; }
body.has-privacy .wa-float{ transform:translateY(-88px); }
@media (max-width:640px){
  .privacy-inner{ flex-direction:column; align-items:stretch; gap:12px; padding:14px 16px; }
  .privacy-actions{ justify-content:space-between; }
  body.has-privacy .wa-float{ transform:translateY(-150px); }
}
/* Formulario: aviso simplificado */
.form-legal{ font-size:.76rem; line-height:1.5; color:#5b6b82; margin:6px 0 14px; }
.form-legal a, .form-check a{ color:var(--orange); text-decoration:underline; }
/* Página del aviso */
.legal-hero{ background:var(--navy); color:#fff; padding:56px 0 44px; }
.legal-hero h1{ color:#fff; margin:0 0 8px; font-size:clamp(1.8rem,4vw,2.6rem); }
.legal-hero p{ margin:0; color:#c5d1e3; }
.legal{ max-width:820px; margin:0 auto; padding:48px 20px 72px; color:#22324a; line-height:1.7; }
.legal h2{ margin:2.2em 0 .6em; font-size:1.35rem; color:var(--navy); }
.legal h3{ margin:1.6em 0 .5em; font-size:1.05rem; color:var(--navy); }
.legal p{ margin:0 0 1em; }
.legal ol, .legal ul{ margin:0 0 1.2em; padding-left:1.4em; }
.legal li{ margin-bottom:.4em; }
.legal table{ width:100%; border-collapse:collapse; margin:0 0 1.6em; font-size:.92rem; background:#fff; border:1px solid #d9e1ec; border-radius:10px; overflow:hidden; }
.legal th, .legal td{ text-align:left; vertical-align:top; padding:10px 14px; border-bottom:1px solid #e4eaf2; }
.legal thead th{ background:var(--band); color:var(--navy); font-weight:700; }
.legal tbody th{ width:28%; background:#f7f9fc; color:var(--navy); font-weight:600; }
@media (max-width:640px){
  .legal table, .legal tbody, .legal tr, .legal td, .legal th{ display:block; width:100%; }
  .legal thead{ position:absolute; left:-9999px; }
  .legal tr{ border-bottom:2px solid #d9e1ec; padding:6px 0; }
  .legal td[data-l]::before, .legal tbody th[data-l]::before{ content:attr(data-l); display:block; font-size:.72rem; text-transform:uppercase; letter-spacing:.06em; color:#7a8aa3; margin-bottom:2px; font-weight:700; }
  .legal tbody th{ width:100%; background:#f7f9fc; border-bottom:0; }
  .legal td{ border-bottom:0; padding-top:6px; padding-bottom:6px; }
}
