/* ==========================================================================
   Normando · Consultoría y cumplimiento normativo
   Hoja de estilos principal. Sin dependencias externas.
   ========================================================================== */

/* ---------- Fuentes (autoalojadas) ---------- */
@font-face { font-family: "Montserrat"; font-weight: 600; font-style: normal; font-display: swap; src: url("../assets/fonts/montserrat-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 700; font-style: normal; font-display: swap; src: url("../assets/fonts/montserrat-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 800; font-style: normal; font-display: swap; src: url("../assets/fonts/montserrat-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("../assets/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: url("../assets/fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("../assets/fonts/inter-latin-600-normal.woff2") format("woff2"); }

/* ---------- Variables ---------- */
:root {
  --navy-950: #071b30;
  --navy-900: #0a2742;
  --navy-800: #0f3254;
  --navy-700: #174470;
  --gold-700: #855626;
  --gold-600: #9a6830;
  --gold-500: #b88746;
  --gold-300: #e1b67d;
  --paper: #f6f4f0;
  --paper-2: #efece6;
  --white: #ffffff;
  --ink: #14212f;
  --muted: #566475;
  --line: rgba(15, 50, 84, 0.13);
  --line-strong: rgba(15, 50, 84, 0.22);

  --gold-grad: linear-gradient(135deg, #855626 0%, #c9954f 48%, #e1b67d 100%);

  --font-head: "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(10, 39, 66, 0.06), 0 2px 8px rgba(10, 39, 66, 0.05);
  --shadow: 0 10px 30px -12px rgba(10, 39, 66, 0.28);
  --shadow-lg: 0 30px 60px -24px rgba(7, 27, 48, 0.45);

  --container: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --header-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -0.01em; margin: 0; color: var(--navy-800); }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--navy-800); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none; font-weight: 600;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Botones ---------- */
.btn {
  --btn-bg: var(--navy-800); --btn-fg: #fff; --btn-bd: var(--navy-800);
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .92rem 1.55rem; border-radius: 999px;
  font-family: var(--font-head); font-weight: 700; font-size: .95rem; letter-spacing: .01em; text-decoration: none;
  background: var(--btn-bg); color: var(--btn-fg); border: 2px solid var(--btn-bd);
  cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn--gold { --btn-bg: var(--gold-grad); background: var(--gold-grad); --btn-fg: #fff; --btn-bd: transparent; text-shadow: 0 1px 1px rgba(70, 40, 10, .25); }
.btn--gold:hover { filter: brightness(1.06); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--navy-800); --btn-bd: var(--line-strong); }
.btn--ghost:hover { --btn-bd: var(--navy-800); background: rgba(15, 50, 84, .04); box-shadow: none; }
.btn--light { --btn-bg: #fff; --btn-fg: var(--navy-800); --btn-bd: #fff; }
.btn--block { width: 100%; }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(246, 244, 240, .86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s, background .25s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(10, 39, 66, .35); background: rgba(246, 244, 240, .94); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }

.brand { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; }
.brand img { width: 46px; height: auto; }
.brand-text { display: grid; line-height: 1; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 1.32rem; letter-spacing: .06em; color: var(--navy-800); }
.brand-tag { font-family: var(--font-head); font-weight: 600; font-size: .58rem; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); margin-top: .4rem; }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav-list { display: flex; align-items: center; gap: 1.7rem; }
.nav-list a { position: relative; font-weight: 500; font-size: .95rem; text-decoration: none; color: var(--ink); padding: .4rem 0; }
.nav-list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--gold-500); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav-list a:hover::after, .nav-list a[aria-current="true"]::after { transform: scaleX(1); }
.nav .btn { padding: .68rem 1.2rem; font-size: .88rem; }

.nav-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line-strong); border-radius: 12px; background: transparent; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 20px; height: 2px; background: var(--navy-800); border-radius: 2px; transition: transform .25s, opacity .25s, background .25s; content: ""; position: relative; }
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* ---------- Secciones genéricas ---------- */
section { position: relative; }
.section { padding-block: clamp(72px, 9vw, 120px); }
.section--tight { padding-block: clamp(56px, 7vw, 88px); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .7rem;
  font-family: var(--font-head); font-weight: 700; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-700);
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--gold-grad); border-radius: 2px; }
.section-head { max-width: 720px; display: grid; gap: 1.05rem; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 800; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(52px, 7vw, 104px) clamp(64px, 8vw, 112px); overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(900px 520px at 88% -8%, rgba(225, 182, 125, .34), transparent 60%),
    radial-gradient(700px 480px at -10% 110%, rgba(15, 50, 84, .10), transparent 60%),
    var(--paper);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .55;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 60% at 70% 30%, #000 0%, transparent 78%);
  mask-image: radial-gradient(70% 60% at 70% 30%, #000 0%, transparent 78%);
}
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(36px, 5vw, 76px); align-items: center; }
.hero-copy { display: grid; gap: 1.6rem; }
.hero h1 { font-size: clamp(2.35rem, 5.3vw, 4.05rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.04; }
.hero h1 .accent { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { font-size: clamp(1.08rem, 1.5vw, 1.24rem); color: var(--muted); max-width: 580px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: .4rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; margin-top: .8rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .92rem; color: var(--muted); }
.hero-meta li { display: inline-flex; align-items: center; gap: .55rem; }
.hero-meta svg { width: 18px; height: 18px; color: var(--gold-600); flex: none; }

/* Tarjeta "ruta regulatoria" */
.route {
  position: relative; border-radius: var(--radius-lg); padding: clamp(26px, 3.2vw, 40px);
  background: linear-gradient(160deg, var(--navy-800) 0%, var(--navy-950) 100%);
  color: #e6edf5; box-shadow: var(--shadow-lg); overflow: hidden;
}
.route::before { content: ""; position: absolute; width: 380px; height: 380px; right: -140px; top: -150px; border-radius: 50%; background: radial-gradient(circle, rgba(225, 182, 125, .28), transparent 66%); }
.route-mark { position: absolute; right: 22px; bottom: 18px; width: 120px; opacity: .08; pointer-events: none; }
.route-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.8rem; position: relative; }
.route-title { font-family: var(--font-head); font-weight: 700; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-300); }
.route-badge { font-size: .72rem; font-weight: 600; padding: .3rem .7rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .22); color: #cfdbe8; white-space: nowrap; }
.route-steps { position: relative; display: grid; gap: 0; counter-reset: step; }
.route-steps::before { content: ""; position: absolute; left: 19px; top: 18px; bottom: 18px; width: 2px; background: linear-gradient(var(--gold-300), rgba(225, 182, 125, .12)); }
.route-step { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 1.1rem; padding-block: .85rem; align-items: start; }
.route-num {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; z-index: 1;
  font-family: var(--font-head); font-weight: 800; font-size: .9rem; color: var(--navy-900);
  background: var(--gold-grad); box-shadow: 0 0 0 5px var(--navy-900);
}
.route-step h3 { font-size: 1.04rem; font-weight: 700; color: #fff; margin-bottom: .2rem; }
.route-step p { font-size: .92rem; line-height: 1.55; color: #b8c8d8; }

/* ---------- Franja de pilares ---------- */
.pillars { background: var(--navy-800); color: #fff; }
.pillars-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.pillar { display: flex; align-items: center; gap: 1rem; padding: 1.7rem 1.4rem; border-right: 1px solid rgba(255, 255, 255, .12); }
.pillar:last-child { border-right: 0; }
.pillar svg { width: 34px; height: 34px; color: var(--gold-300); flex: none; }
.pillar strong { display: block; font-family: var(--font-head); font-weight: 700; font-size: .98rem; line-height: 1.25; }
.pillar span { display: block; font-size: .85rem; color: #b8c8d8; line-height: 1.4; margin-top: .15rem; }

/* ---------- Servicios ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.card {
  position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.8rem 1.9rem; display: grid; gap: .9rem; align-content: start;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.card::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--gold-grad); border-radius: var(--radius) 0 0 0; transition: width .4s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::before { width: 100%; border-radius: var(--radius) var(--radius) 0 0; }
.card-icon { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(145deg, #f3e9db, #fbf7f0); color: var(--gold-700); border: 1px solid rgba(184, 135, 70, .25); }
.card-icon svg { width: 28px; height: 28px; }
.card h3 { font-size: 1.2rem; font-weight: 700; margin-top: .3rem; }
.card p { color: var(--muted); font-size: .98rem; }
.card ul { display: grid; gap: .45rem; margin-top: .3rem; padding-top: 1rem; border-top: 1px dashed var(--line-strong); }
.card li { position: relative; padding-left: 1.4rem; font-size: .92rem; color: var(--ink); }
.card li::before { content: ""; position: absolute; left: 0; top: .55em; width: 9px; height: 5px; border-left: 2px solid var(--gold-600); border-bottom: 2px solid var(--gold-600); transform: rotate(-45deg); }

/* ---------- Etapas de servicios ---------- */
.stage { margin-top: clamp(40px, 5vw, 64px); }
.stage:first-of-type { margin-top: 0; }
.stage-head { display: grid; grid-template-columns: 56px 1fr; gap: 1.2rem; align-items: center; margin-bottom: 1.6rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--line); }
.stage-num { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; color: #fff; background: var(--gold-grad); box-shadow: 0 0 0 6px rgba(184, 135, 70, .16); }
.stage-head h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); font-weight: 800; }
.stage-head p { color: var(--muted); margin-top: .25rem; }
.card .meta { margin-top: auto; padding-top: 1rem; border-top: 1px dashed var(--line-strong); font-size: .86rem; color: var(--muted); }
.card .meta strong { color: var(--gold-700); font-weight: 600; }
.services-note { margin-top: clamp(36px, 5vw, 56px); padding: 1.3rem 1.6rem; border-left: 3px solid var(--gold-500); background: var(--white); border-radius: 0 var(--radius) var(--radius) 0; color: var(--muted); max-width: 760px; }
.stage .services-grid { align-items: stretch; }

/* ---------- Proceso ---------- */
.process { background: var(--white); border-block: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; top: 31px; left: 8%; right: 8%; height: 2px; background: repeating-linear-gradient(90deg, var(--gold-500) 0 8px, transparent 8px 16px); opacity: .55; }
.step { position: relative; display: grid; gap: .8rem; text-align: left; }
.step-num {
  position: relative; z-index: 1; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 800; font-size: 1.35rem; color: var(--navy-800);
  background: var(--paper); border: 2px solid var(--gold-500); box-shadow: 0 0 0 8px var(--white);
}
.step h3 { font-size: 1.14rem; font-weight: 700; margin-top: .5rem; }
.step p { color: var(--muted); font-size: .97rem; }

/* ---------- Sectores ---------- */
.sectors-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.sector { padding: 1.8rem 1.5rem; border-radius: var(--radius); background: linear-gradient(170deg, var(--navy-800), var(--navy-950)); color: #fff; display: grid; gap: .7rem; position: relative; overflow: hidden; }
.sector::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, rgba(225, 182, 125, .3), transparent 70%); }
.sector svg { width: 34px; height: 34px; color: var(--gold-300); }
.sector h3 { color: #fff; font-size: 1.1rem; font-weight: 700; }
.sector p { color: #b8c8d8; font-size: .93rem; line-height: 1.55; }

/* ---------- Por qué Normando ---------- */
.why { background: var(--paper-2); }
.why-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 6vw, 88px); align-items: start; }
.why-grid .section-head { margin-bottom: 0; position: sticky; top: calc(var(--header-h) + 28px); }
.why-list { display: grid; gap: 1.1rem; }
.why-item { display: grid; grid-template-columns: 56px 1fr; gap: 1.2rem; padding: 1.6rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); transition: box-shadow .3s, transform .3s; }
.why-item:hover { box-shadow: var(--shadow); transform: translateX(4px); }
.why-item .card-icon { width: 56px; height: 56px; }
.why-item h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: .35rem; }
.why-item p { color: var(--muted); font-size: .97rem; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 860px; margin-inline: auto; display: grid; gap: .9rem; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .25s, box-shadow .25s; }
.faq-item[open] { border-color: rgba(184, 135, 70, .55); box-shadow: var(--shadow-sm); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; padding: 1.3rem 1.6rem; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--navy-800); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2.5px solid var(--gold-600); border-bottom: 2.5px solid var(--gold-600); transform: rotate(45deg); transition: transform .3s; margin-top: -4px; }
.faq-item[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.faq-body { padding: 0 1.6rem 1.5rem; color: var(--muted); display: grid; gap: .7rem; }

/* ---------- Contacto ---------- */
.contact { background: linear-gradient(165deg, var(--navy-800), var(--navy-950)); color: #e6edf5; overflow: hidden; isolation: isolate; }
.contact::before { content: ""; position: absolute; z-index: -1; width: 640px; height: 640px; left: -240px; top: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(225, 182, 125, .2), transparent 65%); }
.contact .eyebrow { color: var(--gold-300); }
.contact h2 { color: #fff; }
.contact-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.contact-info { display: grid; gap: 1.8rem; }
.contact-info .section-head { margin-bottom: 0; }
.contact-info .section-head p { color: #b8c8d8; }
.contact-list { display: grid; gap: 1.1rem; }
.contact-list li { display: grid; grid-template-columns: 46px 1fr; gap: 1rem; align-items: center; }
.contact-list .ci { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); color: var(--gold-300); }
.contact-list .ci svg { width: 22px; height: 22px; }
.contact-list small { display: block; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: #9fb3c7; font-weight: 600; }
.contact-list a, .contact-list span.v { color: #fff; font-weight: 500; text-decoration: none; word-break: break-word; }
.contact-list a:hover { color: var(--gold-300); text-decoration: underline; }

.form-card { background: var(--white); border-radius: var(--radius-lg); padding: clamp(24px, 3.2vw, 40px); box-shadow: var(--shadow-lg); color: var(--ink); }
.form-card h3 { font-size: 1.35rem; font-weight: 800; margin-bottom: .35rem; }
.form-card .sub { color: var(--muted); font-size: .95rem; margin-bottom: 1.5rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.1rem; }
.field { display: grid; gap: .4rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .85rem; font-weight: 600; color: var(--navy-800); }
.field label .req { color: var(--gold-700); }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem 1rem; border: 1.5px solid var(--line-strong); border-radius: 10px; background: #fbfaf8; transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold-500); background: #fff; box-shadow: 0 0 0 4px rgba(184, 135, 70, .18); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: #b3261e; }
.field .err { display: none; color: #b3261e; font-size: .82rem; font-weight: 500; }
.field.has-error .err { display: block; }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: .7rem; align-items: start; font-size: .86rem; color: var(--muted); }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--navy-800); }
.consent a { color: var(--navy-800); font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: .9rem; }
.form-status { margin-top: 1rem; padding: .9rem 1rem; border-radius: 10px; font-size: .93rem; display: none; }
.form-status.is-ok { display: block; background: #e8f4ec; color: #14532d; border: 1px solid #b5dcc3; }
.form-status.is-err { display: block; background: #fdecea; color: #7a1a14; border: 1px solid #f2b8b3; }

/* ---------- Pie ---------- */
.site-footer { background: var(--navy-950); color: #b8c8d8; padding-block: 64px 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; padding-bottom: 2.6rem; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.footer-brand { display: grid; gap: 1.1rem; align-content: start; max-width: 380px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-tag { color: #8da3b8; }
.footer-brand p { font-size: .94rem; line-height: 1.6; }
.site-footer h4 { color: #fff; font-size: .8rem; letter-spacing: .15em; text-transform: uppercase; margin-bottom: 1.1rem; font-weight: 700; }
.footer-links { display: grid; gap: .65rem; font-size: .95rem; }
.footer-links a { text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--gold-300); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem 2rem; padding-top: 1.6rem; font-size: .85rem; color: #8da3b8; }
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: var(--gold-300); }

/* Botón flotante WhatsApp */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(145deg, #2ee27a, #1ebe5b 60%, #14a64c); color: #fff; box-shadow: 0 12px 28px -8px rgba(8, 60, 30, .55), 0 0 0 1px rgba(255, 255, 255, .25) inset; transition: transform .25s, box-shadow .25s; text-decoration: none; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(37, 211, 102, .55); animation: wa-pulse 2.6s ease-out infinite; pointer-events: none; }
.wa-float svg { width: 32px; height: 32px; }
.wa-float:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -8px rgba(8, 60, 30, .6), 0 0 0 1px rgba(255, 255, 255, .3) inset; }
.wa-bubble { position: absolute; right: 74px; bottom: 6px; display: grid; gap: 2px; width: max-content; max-width: 220px; padding: 10px 14px; background: #fff; color: var(--navy-900, #0f3254); border-radius: 14px 14px 4px 14px; box-shadow: 0 12px 28px -10px rgba(7, 27, 48, .45); opacity: 0; transform: translateX(8px); pointer-events: none; transition: opacity .3s, transform .3s; }
.wa-bubble strong { font-family: var(--font-head); font-size: .95rem; line-height: 1.2; }
.wa-bubble small { display: flex; align-items: center; gap: 6px; font-size: .78rem; color: #4a5a68; }
.wa-bubble i { width: 8px; height: 8px; border-radius: 50%; background: #25d366; box-shadow: 0 0 0 3px rgba(37, 211, 102, .25); flex: none; }
.wa-float:hover .wa-bubble, .wa-float:focus-visible .wa-bubble, .wa-bubble.is-on { opacity: 1; transform: none; }
@keyframes wa-pulse { 0% { transform: scale(1); opacity: .9; } 70%, 100% { transform: scale(1.35); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .wa-float::before { animation: none; } }

/* ---------- Páginas internas (privacidad, 404) ---------- */
.page-hero { padding-block: clamp(44px, 6vw, 80px) 28px; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; margin-top: .9rem; }
.prose { max-width: 800px; padding-bottom: clamp(60px, 8vw, 110px); display: grid; gap: 1.1rem; }
.prose h2 { font-size: 1.35rem; font-weight: 700; margin-top: 1.6rem; }
.prose p, .prose li { color: #34424f; }
.prose ul { display: grid; gap: .5rem; padding-left: 1.2rem; list-style: disc; }
.prose a { color: var(--navy-800); font-weight: 600; }
.notfound { min-height: 62vh; display: grid; place-items: center; text-align: center; padding-block: 80px; }
.notfound .big { font-family: var(--font-head); font-weight: 800; font-size: clamp(5rem, 16vw, 10rem); line-height: 1; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.notfound p { color: var(--muted); max-width: 460px; margin: 1rem auto 1.8rem; }

/* ---------- Animaciones de entrada ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1060px) {
  .hero-grid { grid-template-columns: 1fr; }
  .route { max-width: 640px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .pillar:nth-child(2) { border-right: 0; }
  .pillar:nth-child(-n+2) { border-bottom: 1px solid rgba(255, 255, 255, .12); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 2.6rem; }
  .steps::before { display: none; }
  .sectors-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid, .contact-grid { grid-template-columns: 1fr; }
  .why-grid .section-head { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; max-width: none; }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -24px rgba(10, 39, 66, .4);
    padding: 1rem var(--gutter) 1.6rem; transform: translateY(-12px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s, visibility .25s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list a { display: block; padding: 1rem 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .nav-list a::after { display: none; }
  .nav .btn { margin-top: 1.2rem; padding: .95rem 1.4rem; font-size: .95rem; }
}

@media (max-width: 640px) {
  :root { --header-h: 68px; }
  body { font-size: 1rem; }
  .brand img { width: 40px; }
  .brand-name { font-size: 1.15rem; }
  .brand-tag { display: none; }
  .services-grid, .sectors-grid, .steps { grid-template-columns: 1fr; }
  .pillars-grid { grid-template-columns: 1fr; }
  .pillar { border-right: 0 !important; border-bottom: 1px solid rgba(255, 255, 255, .12); padding: 1.2rem .4rem; }
  .pillar:last-child { border-bottom: 0; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .hero-cta .btn { width: 100%; }
  .why-item { grid-template-columns: 1fr; gap: .9rem; }
  .step { grid-template-columns: 64px 1fr; column-gap: 1.1rem; align-items: start; }
  .step-num { grid-row: span 2; box-shadow: none; }
  .step h3 { margin-top: .3rem; }
  .wa-float { width: 56px; height: 56px; right: 14px; bottom: 14px; } .wa-float svg { width: 30px; height: 30px; } .wa-bubble { right: 68px; max-width: 180px; }
}

/* ---------- Ilustraciones ---------- */
.hero-art { margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); line-height: 0; max-width: 560px; justify-self: end; width: 100%; }
.hero-art svg { width: 100%; height: auto; display: block; }
.stage-head { grid-template-columns: 56px 1fr auto; }
.stage-art { width: 132px; height: auto; flex: none; opacity: .95; }
.contact::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='400' viewBox='0 0 600 400' fill='none' stroke='%23e1b67d' stroke-opacity='.12' stroke-width='1.2'%3E%3Cpath d='M-20 60C100 20 200 100 320 60S520 20 620 70'/%3E%3Cpath d='M-20 110C100 70 200 150 320 110S520 70 620 120'/%3E%3Cpath d='M-20 160C100 120 200 200 320 160S520 120 620 170'/%3E%3Cpath d='M-20 210C100 170 200 250 320 210S520 170 620 220'/%3E%3Cpath d='M-20 260C100 220 200 300 320 260S520 220 620 270'/%3E%3Cpath d='M-20 310C100 270 200 350 320 310S520 270 620 320'/%3E%3C/svg%3E") center/cover; }
@media (max-width: 1060px) { .hero-art { justify-self: start; } }
@media (max-width: 760px) { .stage-head { grid-template-columns: 56px 1fr; } .stage-art { display: none; } }
