/* ==========================================================================
   Blue Haven Digital — main.css
   Estilos base, componentes y secciones. Los ajustes por ancho de pantalla
   están en responsive.css.
   ========================================================================== */

/* ---------- Fuentes autoalojadas (sin solicitudes a terceros) ---------- */
@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Variables de marca ---------- */
:root {
  --red: #ED1C32;
  --red-hover: #C81429;
  --red-light: #F17A86;
  --black: #111111;
  --white: #FFFFFF;
  --gray-50: #F4F4F4;
  --gray: #777777;
  --border: #E6E6E6;
  --text: #111111;
  --text-2: #4a4a4a;          /* texto secundario legible (AA sobre blanco) */
  --nav-text: #111111;

  /* Botón principal: color de marca indicado en el manual.
     Para máxima accesibilidad (contraste AA en textos chicos) puede usarse
     var(--red-hover) como fondo por defecto. */
  --btn-bg: var(--red);
  --btn-bg-hover: var(--red-hover);

  --font-head: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Roboto, Arial, sans-serif;

  --container: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 2px;
  --shadow-sm: 0 1px 2px rgba(17, 17, 17, .06);
  --shadow: 0 18px 40px -18px rgba(17, 17, 17, .28);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 90px;
  --topbar-h: 44px;
}

/* ---------- Reset mínimo ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 64px);
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.08;
  margin: 0 0 .6em;
  letter-spacing: -.01em;
  font-weight: 800;
}
p { margin: 0 0 1.1em; }
h1, h2, h3, p, li { overflow-wrap: break-word; }
a[href^="mailto:"] { overflow-wrap: anywhere; }
.split > *, .contact-layout > *, .hero__grid > *, .capabilities > * { min-width: 0; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
::selection { background: var(--red); color: var(--white); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 1000;
  background: var(--black); color: var(--white); padding: 12px 18px;
  font-weight: 700; text-decoration: none; transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 880px; }

/* ---------- Tipografía utilitaria ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-head); font-weight: 700; font-size: .8125rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--red);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: currentColor; }
.eyebrow--light { color: var(--white); }
.eyebrow--light::before { background: var(--red); }
.h-display {
  font-size: clamp(2.4rem, 5.2vw, 4.25rem);
  text-transform: uppercase; letter-spacing: -.015em; line-height: 1.02;
}
.h-section {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  text-transform: uppercase; letter-spacing: -.01em;
}
.h-sub { font-size: clamp(1.35rem, 2.2vw, 1.75rem); }
.lead { font-size: clamp(1.08rem, 1.4vw, 1.25rem); line-height: 1.6; color: var(--text-2); }
.text-red { color: var(--red); }
.muted { color: var(--text-2); }

/* ---------- Botones ---------- */
.btn {
  --_bg: var(--btn-bg); --_fg: var(--white); --_bd: var(--_bg);
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 14px 28px;
  font-family: var(--font-head); font-weight: 700; font-size: .9375rem;
  letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  color: var(--_fg); background: var(--_bg); border: 2px solid var(--_bd);
  border-radius: var(--radius); cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { --_bg: var(--btn-bg-hover); }
.btn:active { transform: translateY(1px); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--black { --_bg: var(--black); }
.btn--black:hover { --_bg: #2a2a2a; }
.btn--white { --_bg: var(--white); --_fg: var(--black); }
.btn--white:hover { --_bg: var(--black); --_fg: var(--white); --_bd: var(--white); }
.btn--outline { --_bg: transparent; --_fg: var(--black); --_bd: var(--black); }
.btn--outline:hover { --_bg: var(--black); --_fg: var(--white); --_bd: var(--black); }
.btn--outline-light { --_bg: transparent; --_fg: var(--white); --_bd: rgba(255,255,255,.7); }
.btn--outline-light:hover { --_bg: var(--white); --_fg: var(--black); --_bd: var(--white); }
.btn--sm { min-height: 40px; padding: 8px 18px; font-size: .8125rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: .875rem;
  letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: var(--black);
  padding-bottom: 4px; border-bottom: 2px solid var(--red);
  transition: color .2s var(--ease), gap .2s var(--ease);
}
.link-arrow:hover { color: var(--red); gap: 14px; }
.link-arrow--light { color: var(--white); }
.link-arrow--light:hover { color: var(--red-light); }

.icon { width: 24px; height: 24px; flex: none; }

/* ==========================================================================
   Encabezado
   ========================================================================== */
.topbar {
  background: var(--red); color: var(--white);
  height: var(--topbar-h); font-size: .8125rem; position: relative; z-index: 60;
}
.topbar .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.topbar__brand {
  font-family: var(--font-head); font-weight: 800; letter-spacing: .2em; font-size: .8125rem;
  text-transform: uppercase; color: var(--white); text-decoration: none;
}
.topbar__links { display: flex; align-items: center; gap: 22px; list-style: none; margin: 0; padding: 0; }
.topbar__links a { color: var(--white); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.topbar__links a:hover { text-decoration: underline; }
.topbar__links .icon { width: 16px; height: 16px; }
.topbar__lang {
  font-family: var(--font-head); font-weight: 800; letter-spacing: .12em;
  border: 1px solid rgba(255,255,255,.7); padding: 2px 8px; line-height: 1.4;
}
.topbar__cta.btn { --_bg: var(--black); --_bd: var(--black); min-height: 32px; padding: 6px 16px; font-size: .75rem; }
.topbar__cta.btn:hover { --_bg: var(--white); --_fg: var(--black); --_bd: var(--white); }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white); border-bottom: 1px solid var(--border);
  transition: box-shadow .3s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 8px 24px -14px rgba(17,17,17,.35); }
.site-header__inner {
  height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 32px;
  transition: height .3s var(--ease);
}
.site-header.is-scrolled .site-header__inner { height: 72px; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 54px; width: auto; transition: height .3s var(--ease); }
.site-header.is-scrolled .brand img { height: 44px; }

.nav__list { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px; padding: 12px 14px;
  font-family: var(--font-head); font-weight: 700; font-size: .875rem; letter-spacing: .09em;
  text-transform: uppercase; text-decoration: none; color: var(--nav-text);
  background: none; border: 0; position: relative;
}
.nav__link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav__link:hover::after, .nav__link[aria-current="page"]::after, .nav__item.is-active > .nav__link::after { transform: scaleX(1); }
.nav__link:hover { color: var(--black); }
.nav__item--dropdown { display: flex; align-items: center; }
.nav__caret {
  display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 40px;
  margin-left: -10px; padding: 0; background: none; border: 0; color: var(--black);
}
.nav__caret .chev { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.nav__caret:hover { color: var(--red); }
.nav__item--dropdown.is-open .nav__caret .chev { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + 14px); left: 50%; width: 640px;
  transform: translate(-50%, 8px); opacity: 0; visibility: hidden;
  background: var(--white); border-top: 3px solid var(--red); box-shadow: var(--shadow);
  padding: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px;
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -17px; height: 14px; }
.nav__item--dropdown.is-open .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dropdown a {
  display: flex; gap: 14px; align-items: flex-start; padding: 12px; text-decoration: none;
  border-left: 2px solid transparent; transition: background .2s, border-color .2s;
}
.dropdown a:hover, .dropdown a:focus-visible { background: var(--gray-50); border-left-color: var(--red); }
.dropdown .icon { color: var(--red); margin-top: 2px; }
.dropdown strong { display: block; font-family: var(--font-head); font-size: .95rem; }
.dropdown span { display: block; font-size: .8125rem; color: var(--text-2); line-height: 1.45; }
.dropdown__all {
  grid-column: 1 / -1; margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--border);
}
.dropdown__all a { display: inline-flex; border: 0; padding: 4px 0; font-family: var(--font-head); font-weight: 700; font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
.dropdown__all a:hover { background: none; text-decoration: underline; }

.nav-toggle {
  display: none; width: 48px; height: 48px; border: 2px solid var(--black); background: var(--white);
  align-items: center; justify-content: center; border-radius: var(--radius);
}
.nav-toggle .icon { width: 26px; height: 26px; }

/* Drawer móvil */
.drawer { position: fixed; inset: 0; z-index: 200; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(17,17,17,.6); opacity: 0; transition: opacity .3s var(--ease); }
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 92vw);
  background: var(--white); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .35s var(--ease); overflow-y: auto;
}
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.drawer__head img { height: 40px; width: auto; }
.drawer__close { width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; background: var(--black); color: var(--white); border: 0; }
.drawer__nav { padding: 8px 20px 20px; }
.drawer__nav ul { list-style: none; margin: 0; padding: 0; }
.drawer__nav > ul > li { border-bottom: 1px solid var(--border); }
.drawer__nav a, .drawer__sub-toggle {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 16px 0; font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  letter-spacing: .08em; text-transform: uppercase; text-decoration: none; background: none; border: 0; text-align: left;
}
.drawer__nav a[aria-current="page"] { color: var(--red); }
.drawer__sub { display: none; padding: 0 0 12px 14px; border-left: 2px solid var(--red); margin-bottom: 12px; }
.drawer__sub.is-open { display: block; }
.drawer__sub a { padding: 10px 0; font-size: .9rem; letter-spacing: .04em; text-transform: none; font-family: var(--font-body); font-weight: 600; }
.drawer__row { display: flex; align-items: center; }
.drawer__row a { flex: 1; }
.drawer__nav .drawer__sub-toggle { width: 48px; height: 48px; flex: none; justify-content: center; padding: 0; border: 1px solid var(--border); }
.drawer__sub-toggle .chev { transition: transform .25s; }
.drawer__sub-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
.drawer__foot { margin-top: auto; padding: 24px 20px; background: var(--black); color: var(--white); font-size: .9rem; }
.drawer__foot a { color: var(--white); }
.drawer__foot .btn { margin-top: 16px; width: 100%; }

/* ==========================================================================
   Hero de inicio
   ========================================================================== */
.hero { position: relative; color: var(--white); background: var(--black); overflow: hidden; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(17,17,17,.92) 0%, rgba(17,17,17,.78) 38%, rgba(17,17,17,.35) 68%, rgba(17,17,17,.25) 100%),
    linear-gradient(0deg, rgba(17,17,17,.55) 0%, rgba(17,17,17,0) 40%);
}
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 4fr); gap: clamp(32px, 4vw, 64px);
  align-items: center; padding-block: clamp(56px, 7vw, 96px);
}
.hero__title { font-size: clamp(2.5rem, 4.9vw, 4.25rem); text-transform: uppercase; line-height: 1; margin-bottom: 26px; letter-spacing: -.02em; }
.hero__title span { display: block; }
.hero__title .accent { color: var(--white); position: relative; display: inline-block; }
.hero__title .accent::after { content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .12em; background: var(--red); z-index: -1; }
.hero__lead { font-size: clamp(1.05rem, 1.35vw, 1.2rem); max-width: 600px; color: rgba(255,255,255,.9); margin-bottom: 30px; }

.hero-features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 0 32px; padding: 0; list-style: none; max-width: 640px; }
.hero-feature {
  background: var(--white); color: var(--black); padding: 16px 12px 14px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  border-bottom: 3px solid var(--red);
  transition: transform .3s var(--ease);
}
.hero-feature:hover { transform: translateY(-3px); }
.hero-feature .icon { color: var(--red); width: 28px; height: 28px; }
.hero-feature span { font-family: var(--font-head); font-weight: 800; font-size: .8125rem; letter-spacing: .1em; }

/* ---------- Tarjeta de formulario ---------- */
.lead-card {
  background: var(--white); color: var(--black);
  border: 1px solid var(--border); border-top: 4px solid var(--red);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.55);
  padding: clamp(24px, 2.6vw, 34px);
}
.lead-card__title { font-size: 1.5rem; text-transform: uppercase; letter-spacing: .02em; margin-bottom: 6px; }
.lead-card__desc { color: var(--text-2); font-size: .95rem; margin-bottom: 20px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 14px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .8125rem; font-weight: 600; color: var(--black); }
.field .req { color: var(--red); margin-left: 2px; }
.field .opt { color: var(--text-2); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; font-size: .95rem;
  background: var(--white); border: 1px solid #cfcfcf; border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 96px; resize: vertical; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23111' stroke-width='1.8'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: #9a9a9a; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--black); box-shadow: 0 0 0 3px rgba(237,28,50,.22); }
.field [aria-invalid="true"] { border-color: var(--red); background: #fff7f8; }
.field-error { font-size: .8125rem; color: #B3122A; font-weight: 600; min-height: 0; }
.field-error:empty { display: none; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .8125rem; line-height: 1.5; color: var(--text-2); }
.check input { width: 18px; height: 18px; min-height: 0; margin-top: 2px; accent-color: var(--red); flex: none; }
.check a { color: var(--black); font-weight: 600; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 14px; font-size: .9rem; padding: 12px 14px; border-left: 3px solid var(--red); background: #fff2f3; }
.form-status:empty { display: none; }
.form-status.is-info { border-left-color: var(--black); background: var(--gray-50); }
.form-note { margin-top: 12px; font-size: .75rem; color: var(--text-2); }
.spinner { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.4); border-top-color: var(--white); border-radius: 50%; animation: spin .8s linear infinite; display: none; }
.is-loading .spinner { display: inline-block; }
.is-loading .arrow { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   Barra negra de secciones
   ========================================================================== */
.section-nav { background: var(--black); position: sticky; top: var(--header-sticky, 72px); z-index: 40; }
.section-nav__list {
  display: flex; gap: 6px; list-style: none; margin: 0; padding: 0;
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.section-nav__list::-webkit-scrollbar { display: none; }
.section-nav a {
  display: block; white-space: nowrap; padding: 18px 18px 16px; color: var(--white); text-decoration: none;
  font-family: var(--font-head); font-weight: 700; font-size: .8125rem; letter-spacing: .14em;
  position: relative;
}
.section-nav a::after {
  content: ""; position: absolute; left: 18px; right: 18px; bottom: 8px; height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.section-nav a:hover::after, .section-nav a.is-active::after { transform: scaleX(1); }
.section-nav a.is-active { color: var(--white); }

/* ==========================================================================
   Secciones genéricas
   ========================================================================== */
.section { padding-block: clamp(64px, 8vw, 120px); position: relative; }
.section--gray { background: var(--gray-50); }
.section--black { background: var(--black); color: var(--white); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section-head { max-width: 820px; margin-bottom: clamp(36px, 4vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--split { max-width: none; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: end; }
.section-head--split p { margin: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 96px); align-items: center; }
.split--wide-media { grid-template-columns: 1.15fr 1fr; }
.split--reverse > :first-child { order: 2; }
.media-frame { position: relative; }
.media-frame img { width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; position: relative; z-index: 1; }
.media-frame::before {
  content: ""; position: absolute; left: -18px; bottom: -18px; width: 44%; height: 58%;
  background: var(--red); z-index: 0;
}
.media-frame--right::before { left: auto; right: -18px; }
.media-frame--black::before { background: var(--black); }
.media-frame__tag {
  position: absolute; z-index: 2; right: 0; bottom: 0; background: var(--black); color: var(--white);
  padding: 16px 22px; font-family: var(--font-head); font-weight: 700; font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase;
}
.img-zoom { overflow: hidden; }
.img-zoom img { transition: transform .8s var(--ease); }
.img-zoom:hover img, a:hover .img-zoom img, a:focus-visible .img-zoom img { transform: scale(1.05); }

.check-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list li::before {
  content: ""; flex: none; width: 20px; height: 20px; margin-top: 4px; background: var(--red);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12.5 9.5 18 20 6' fill='none' stroke='%23000' stroke-width='3'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12.5 9.5 18 20 6' fill='none' stroke='%23000' stroke-width='3'/%3E%3C/svg%3E") center / contain no-repeat;
}
.section--black .check-list li::before { background: var(--red-light); }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--border); margin-top: 32px; }
.stat-row > div { padding: 20px 20px 0 0; }
.stat-row strong { display: block; font-family: var(--font-head); font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; }
.stat-row span { font-size: .9rem; color: var(--text-2); }

/* ---------- Servicios (mosaico de inicio) ---------- */
.svc-mosaic { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.svc-panel {
  position: relative; display: flex; flex-direction: column; background: var(--white);
  border: 1px solid var(--border); text-decoration: none; color: var(--black);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
}
.svc-panel::after {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 4px; width: 0; background: var(--red);
  transition: width .45s var(--ease);
}
.svc-panel:hover { border-color: #d4d4d4; box-shadow: var(--shadow); transform: translateY(-4px); }
.svc-panel:hover::after, .svc-panel:focus-visible::after { width: 100%; }
.svc-panel__media { aspect-ratio: 16 / 10; }
.svc-panel__media img { width: 100%; height: 100%; object-fit: cover; }
.svc-panel__body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.svc-panel__num { font-family: var(--font-head); font-weight: 800; font-size: .8125rem; letter-spacing: .14em; color: var(--red); margin-bottom: 10px; }
.svc-panel__title { font-size: 1.375rem; text-transform: uppercase; margin-bottom: 10px; }
.svc-panel__text { color: var(--text-2); font-size: .975rem; margin-bottom: 20px; }
.svc-panel .link-arrow { margin-top: auto; align-self: flex-start; }
.svc-panel--small { grid-column: span 3; }
.svc-panel--feature { grid-column: span 6; grid-row: span 2; color: var(--white); border: 0; min-height: 560px; justify-content: flex-end; overflow: hidden; }
.svc-panel--feature .svc-panel__media { position: absolute; inset: 0; aspect-ratio: auto; }
.svc-panel--feature::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(17,17,17,.95) 0%, rgba(17,17,17,.55) 48%, rgba(17,17,17,.1) 100%); }
.svc-panel--feature .svc-panel__body { position: relative; z-index: 2; flex: none; padding: 36px; }
.svc-panel--feature .svc-panel__title { font-size: clamp(1.8rem, 2.6vw, 2.4rem); }
.svc-panel--feature .svc-panel__text { color: rgba(255,255,255,.88); font-size: 1.05rem; max-width: 520px; }
.svc-panel--feature .link-arrow { color: var(--white); }
.svc-panel--wide { grid-column: span 12; flex-direction: row; background: var(--black); color: var(--white); border-color: var(--black); }
.svc-panel--wide .svc-panel__media { flex: 0 0 46%; aspect-ratio: auto; min-height: 320px; }
.svc-panel--wide .svc-panel__body { padding: clamp(28px, 4vw, 56px); justify-content: center; }
.svc-panel--wide .svc-panel__title { font-size: clamp(1.6rem, 2.4vw, 2.2rem); }
.svc-panel--wide .svc-panel__text { color: rgba(255,255,255,.82); max-width: 560px; }
.svc-panel--wide .link-arrow { color: var(--white); }

/* ---------- Propuesta de valor ---------- */
.values { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--black); }
.value { padding: 36px 28px 8px 0; position: relative; }
.value + .value { padding-left: 28px; border-left: 1px solid var(--border); }
.value__icon { width: 52px; height: 52px; display: grid; place-items: center; background: var(--gray-50); color: var(--red); margin-bottom: 22px; transition: background .3s, color .3s; }
.value:hover .value__icon { background: var(--red); color: var(--white); }
.value h3 { font-size: 1.2rem; text-transform: uppercase; margin-bottom: 12px; }
.value p { color: var(--text-2); font-size: .975rem; }

/* ---------- Declaración visual ---------- */
.statement { position: relative; color: var(--white); padding-block: clamp(96px, 13vw, 180px); isolation: isolate; overflow: hidden; }
.statement__media { position: absolute; inset: 0; z-index: -2; }
.statement__media img { width: 100%; height: 100%; object-fit: cover; }
.statement::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(17,17,17,.9), rgba(17,17,17,.62)); }
.statement__title { font-size: clamp(2.2rem, 5.4vw, 4.6rem); text-transform: uppercase; line-height: 1.02; max-width: 1000px; margin-bottom: 36px; }
.statement__title span { display: block; color: var(--red-light); }

/* ---------- Proceso horizontal ---------- */
.process { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; list-style: none; margin: 0; padding: 0; counter-reset: step; position: relative; }
.process::before { content: ""; position: absolute; left: 0; right: 0; top: 27px; height: 2px; background: var(--border); }
.process__step { position: relative; padding: 0 22px 0 0; }
.process__dot {
  position: relative; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--white); border: 2px solid var(--black); font-family: var(--font-head); font-weight: 800; font-size: 1rem;
  margin-bottom: 26px; transition: background .3s, color .3s, border-color .3s;
}
.process__step:hover .process__dot, .process__step.is-visible .process__dot { background: var(--red); border-color: var(--red); color: var(--white); }
.process__step h3 { font-size: 1.15rem; text-transform: uppercase; margin-bottom: 10px; }
.process__step p { color: var(--text-2); font-size: .95rem; }

/* ---------- Capacidades ---------- */
.capabilities { display: grid; grid-template-columns: 1fr 1fr; min-height: 620px; background: var(--black); color: var(--white); }
.capabilities__media { position: relative; overflow: hidden; }
.capabilities__media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.capabilities__body { padding: clamp(48px, 7vw, 110px) clamp(24px, 6vw, 96px); display: flex; flex-direction: column; justify-content: center; }
.capabilities__body p { color: rgba(255,255,255,.82); }
.cap-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 18px 0 34px; border-top: 1px solid rgba(255,255,255,.18); }
.cap-grid div { padding: 18px 18px 18px 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.cap-grid div:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.18); }
.cap-grid div:nth-child(even) { padding-left: 18px; }
.cap-grid strong { display: block; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .1em; font-size: .875rem; margin-bottom: 4px; color: var(--white); }
.cap-grid span { font-size: .9rem; color: rgba(255,255,255,.72); }

/* ---------- Recursos / artículos ---------- */
.article-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.article-card { display: flex; flex-direction: column; text-decoration: none; color: var(--black); background: var(--white); border: 1px solid var(--border); transition: box-shadow .3s, transform .3s; }
.article-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.article-card__media { aspect-ratio: 16 / 10; }
.article-card__media img { width: 100%; height: 100%; object-fit: cover; }
.article-card__body { padding: 24px 24px 28px; display: flex; flex-direction: column; flex: 1; }
.article-card__meta { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: 10px; }
.article-card h3 { font-size: 1.25rem; line-height: 1.2; margin-bottom: 12px; }
.article-card p { color: var(--text-2); font-size: .95rem; }
.article-card .link-arrow { margin-top: auto; align-self: flex-start; }

/* ---------- CTA negro ---------- */
.cta-band { background: var(--black); color: var(--white); padding-block: clamp(72px, 9vw, 130px); position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border: 60px solid var(--red); opacity: .9; transform: rotate(45deg); }
.cta-band .container { position: relative; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: end; }
.cta-band__title { font-size: clamp(2.2rem, 5vw, 4.25rem); text-transform: uppercase; line-height: 1; margin: 0; }
.cta-band p { color: rgba(255,255,255,.85); font-size: 1.125rem; }

/* ==========================================================================
   Páginas interiores
   ========================================================================== */
.page-hero { position: relative; color: var(--white); background: var(--black); isolation: isolate; overflow: hidden; }
.page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(17,17,17,.9) 0%, rgba(17,17,17,.7) 50%, rgba(17,17,17,.35) 100%); }
.page-hero__inner { padding-block: clamp(64px, 9vw, 130px) clamp(56px, 7vw, 100px); max-width: 860px; }
.page-hero__title { font-size: clamp(2.3rem, 5vw, 4rem); text-transform: uppercase; line-height: 1.02; margin-bottom: 22px; }
.page-hero__lead { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: rgba(255,255,255,.9); max-width: 680px; margin-bottom: 30px; }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.breadcrumb { font-size: .8125rem; margin-bottom: 26px; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumb li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before { content: "/"; opacity: .6; }
.breadcrumb a { color: inherit; opacity: .85; text-decoration: none; }
.breadcrumb a:hover { opacity: 1; text-decoration: underline; }
.breadcrumb [aria-current] { font-weight: 700; }
.breadcrumb--dark { color: var(--black); }

/* Hero con tarjeta blanca superpuesta (Nosotros) */
.hero-card { position: relative; background: var(--black); }
.hero-card__media img { width: 100%; height: clamp(380px, 52vw, 640px); object-fit: cover; }
.hero-card__box {
  position: relative; margin-top: -180px; background: var(--white); color: var(--black);
  padding: clamp(28px, 4vw, 56px); max-width: 860px; border-top: 5px solid var(--red); box-shadow: var(--shadow);
}
.hero-card__box h1 { font-size: clamp(2.1rem, 4.4vw, 3.6rem); text-transform: uppercase; }
.hero-card-wrap { background: linear-gradient(180deg, var(--black) 0 50%, var(--white) 50% 100%); }

/* Hero dividido (Servicios / Contacto) */
.hero-split { display: grid; grid-template-columns: 1fr 1fr; background: var(--black); color: var(--white); min-height: 560px; }
.hero-split__body { padding: clamp(56px, 7vw, 110px) clamp(24px, 5vw, 80px); display: flex; flex-direction: column; justify-content: center; position: relative; }
.hero-split__body::after { content: ""; position: absolute; left: 0; top: 0; width: 6px; height: 40%; background: var(--red); }
.hero-split__media { position: relative; }
.hero-split__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Hero tipográfico (Metodología / Recursos) */
.hero-type { padding-block: clamp(64px, 8vw, 120px) clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--border); }
.hero-type__title { font-size: clamp(2.6rem, 7vw, 6rem); text-transform: uppercase; line-height: .95; letter-spacing: -.03em; margin-bottom: 28px; }
.hero-type__title em { font-style: normal; color: var(--red); }
.hero-type__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: end; }
.hero-strip { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 16px; margin-top: 48px; }
.hero-strip img { width: 100%; height: clamp(200px, 26vw, 360px); object-fit: cover; }

/* Misión / visión */
.mv { display: grid; grid-template-columns: 1fr 1fr; }
.mv__item { padding: clamp(36px, 5vw, 72px); }
.mv__item--red { background: var(--red); color: var(--white); }
.mv__item--black { background: var(--black); color: var(--white); }
.mv__item h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); text-transform: uppercase; }
.mv__item p { font-size: 1.125rem; line-height: 1.6; margin: 0; }

.numbered { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; counter-reset: n; border-left: 1px solid var(--border); border-top: 1px solid var(--border); }
.numbered > div { padding: 32px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); counter-increment: n; position: relative; transition: background .3s; }
.numbered > div:hover { background: var(--gray-50); }
.numbered > div::before { content: counter(n, decimal-leading-zero); font-family: var(--font-head); font-weight: 800; font-size: 2.6rem; color: var(--red); line-height: 1; display: block; margin-bottom: 18px; }
.numbered h3 { font-size: 1.15rem; text-transform: uppercase; }
.numbered p { color: var(--text-2); font-size: .975rem; margin: 0; }

/* Tarjetas de ofertas en servicios */
.offer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.offer { padding: 30px 28px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--white); position: relative; transition: background .3s; }
.offer::before { content: ""; position: absolute; left: -1px; top: -1px; width: 3px; height: 0; background: var(--red); transition: height .35s var(--ease); }
.offer:hover::before { height: calc(100% + 2px); }
.offer h3 { font-size: 1.1rem; text-transform: uppercase; margin-bottom: 10px; display: flex; gap: 12px; align-items: baseline; }
.offer h3 small { font-size: .8rem; color: var(--red); letter-spacing: .1em; }
.offer p { color: var(--text-2); font-size: .95rem; margin: 0; }

.benefits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.benefit { display: flex; gap: 18px; padding: 26px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.14); }
.benefit .icon { color: var(--red-light); width: 30px; height: 30px; }
.benefit h3 { font-size: 1.1rem; text-transform: uppercase; margin-bottom: 8px; }
.benefit p { color: rgba(255,255,255,.78); margin: 0; font-size: .95rem; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.steps li { border-top: 3px solid var(--black); padding-top: 22px; transition: border-color .3s; }
.steps li:hover { border-color: var(--red); }
.steps .step-n { font-family: var(--font-head); font-weight: 800; color: var(--red); font-size: .875rem; letter-spacing: .14em; }
.steps h3 { font-size: 1.1rem; text-transform: uppercase; margin: 8px 0 10px; }
.steps p { font-size: .95rem; color: var(--text-2); margin: 0; }

.related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.related a { display: flex; flex-direction: column; gap: 12px; padding: 26px; background: var(--white); border: 1px solid var(--border); text-decoration: none; transition: border-color .3s, transform .3s; }
.related a:hover { border-color: var(--black); transform: translateY(-3px); }
.related .icon { color: var(--red); width: 30px; height: 30px; }
.related strong { font-family: var(--font-head); font-size: 1.15rem; text-transform: uppercase; }
.related span { color: var(--text-2); font-size: .925rem; }

/* Lista de servicios (página Servicios) */
.svc-rows { display: grid; gap: clamp(56px, 7vw, 96px); }
.svc-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.svc-row:nth-child(even) .svc-row__media { order: 2; }
.svc-row__media { position: relative; }
.svc-row__media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.svc-row__num { position: absolute; left: 0; top: 0; background: var(--red); color: var(--white); font-family: var(--font-head); font-weight: 800; padding: 12px 18px; font-size: 1.1rem; z-index: 1; }
.svc-row h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); text-transform: uppercase; }
.svc-row .tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 28px; }
.svc-row .tags li { font-size: .8125rem; font-weight: 600; padding: 6px 12px; border: 1px solid var(--border); background: var(--gray-50); }

/* FAQ */
.faq { border-top: 2px solid var(--black); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 48px 22px 0; position: relative;
  font-family: var(--font-head); font-weight: 700; font-size: 1.125rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; color: var(--red); transition: transform .25s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details > div { padding: 0 0 22px; color: var(--text-2); max-width: 820px; }

/* Timeline vertical (Metodología) */
.vtimeline { list-style: none; margin: 0; padding: 0; position: relative; }
.vtimeline::before { content: ""; position: absolute; left: 39px; top: 0; bottom: 0; width: 2px; background: var(--border); }
.vtimeline > li { display: grid; grid-template-columns: 80px 1fr; gap: 32px; padding-bottom: 56px; position: relative; }
.vtimeline__n { width: 80px; height: 80px; display: grid; place-items: center; background: var(--black); color: var(--white); font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; position: relative; z-index: 1; transition: background .3s; }
.vtimeline > li:hover .vtimeline__n { background: var(--red); }
.vtimeline__body { display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; padding-top: 8px; }
.vtimeline__body h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); text-transform: uppercase; }
.vtimeline__box { background: var(--gray-50); padding: 26px; border-top: 3px solid var(--red); align-self: start; }
.vtimeline__box h3 { font-size: .875rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; }
.vtimeline__box ul { margin: 0; padding-left: 1.1em; font-size: .95rem; color: var(--text-2); }

/* Artículos y textos legales */
.article-hero { padding-block: clamp(48px, 6vw, 88px) 0; }
.article-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.6rem); line-height: 1.05; max-width: 960px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .875rem; color: var(--text-2); margin-bottom: 36px; }
.article-meta strong { color: var(--black); }
.article-cover img { width: 100%; height: clamp(260px, 42vw, 560px); object-fit: cover; }
.article-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.toc { position: sticky; top: calc(var(--header-sticky, 72px) + 24px); font-size: .9rem; border-top: 3px solid var(--red); padding-top: 18px; }
.toc p { font-family: var(--font-head); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: .8125rem; margin-bottom: 12px; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.toc a { display: block; padding: 6px 0 6px 12px; border-left: 2px solid var(--border); text-decoration: none; color: var(--text-2); transition: color .2s, border-color .2s; }
.toc a:hover, .toc a.is-active { color: var(--black); border-left-color: var(--red); }

.prose { font-size: 1.0625rem; line-height: 1.75; max-width: 760px; }
.prose h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin: 2em 0 .7em; text-transform: none; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.25rem; margin: 1.6em 0 .6em; }
.prose p, .prose li { color: #2b2b2b; }
.prose li { margin-bottom: .5em; }
.prose a { color: var(--red-hover); font-weight: 600; }
.prose figure { margin: 2.2em 0; }
.prose figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.prose figcaption { font-size: .85rem; color: var(--text-2); margin-top: 10px; }
.callout { background: var(--gray-50); border-left: 4px solid var(--red); padding: 22px 26px; margin: 2em 0; }
.callout p:last-child { margin: 0; }
.callout strong { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .08em; font-size: .875rem; display: block; margin-bottom: 6px; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose th { background: var(--black); color: var(--white); font-family: var(--font-head); font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; }
.table-wrap { overflow-x: auto; }

.legal-hero { background: var(--gray-50); padding-block: clamp(48px, 6vw, 88px); border-bottom: 1px solid var(--border); }
.legal-hero h1 { font-size: clamp(2rem, 4vw, 3.2rem); text-transform: uppercase; }
.legal-hero p { color: var(--text-2); margin: 0; }

/* Recursos: destacado */
.feature-article { display: grid; grid-template-columns: 1.3fr 1fr; background: var(--black); color: var(--white); text-decoration: none; }
.feature-article__media { min-height: 420px; position: relative; }
.feature-article__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature-article__body { padding: clamp(32px, 4vw, 64px); display: flex; flex-direction: column; justify-content: center; }
.feature-article__body h2 { font-size: clamp(1.7rem, 3vw, 2.6rem); }
.feature-article__body p { color: rgba(255,255,255,.82); }
.feature-article .link-arrow { color: var(--white); align-self: flex-start; }
.topic-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; list-style: none; padding: 0; margin: 0; }
.topic-list li { padding: 22px; background: var(--white); border: 1px solid var(--border); }
.topic-list strong { display: block; font-family: var(--font-head); text-transform: uppercase; margin-bottom: 6px; }
.topic-list span { font-size: .9rem; color: var(--text-2); }

/* Contacto */
.contact-layout { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact-info { display: grid; gap: 0; border-top: 2px solid var(--black); margin: 32px 0; }
.contact-info > div { display: flex; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--border); }
.contact-info .icon { color: var(--red); width: 26px; height: 26px; margin-top: 2px; }
.contact-info h2 { font-size: .8125rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 6px; }
.contact-info p { margin: 0; }
.contact-info a { font-weight: 600; }
.contact-form-box { background: var(--white); border: 1px solid var(--border); border-top: 5px solid var(--red); padding: clamp(24px, 4vw, 48px); box-shadow: var(--shadow); }
.contact-form-box h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); text-transform: uppercase; }

/* Gracias */
.thanks { min-height: 60vh; display: grid; place-items: center; text-align: center; padding-block: clamp(64px, 10vw, 140px); }
.thanks__icon { width: 88px; height: 88px; margin: 0 auto 28px; display: grid; place-items: center; background: var(--red); color: var(--white); }
.thanks__icon .icon { width: 44px; height: 44px; }
.thanks h1 { font-size: clamp(2rem, 4.6vw, 3.6rem); text-transform: uppercase; }
.thanks p { max-width: 640px; margin-inline: auto; color: var(--text-2); font-size: 1.125rem; }
.thanks__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
[data-thanks-state][hidden] { display: none !important; }

/* ==========================================================================
   Pie de página
   ========================================================================== */
.site-footer { background: var(--black); color: rgba(255,255,255,.78); font-size: .95rem; }
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 48px; padding-block: 80px 56px; border-bottom: 1px solid rgba(255,255,255,.14); }
.footer-brand img { height: 50px; width: auto; margin-bottom: 22px; }
.footer-brand p { max-width: 360px; }
.site-footer h2 { color: var(--white); font-size: .8125rem; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--red); display: inline-block; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-contact li { display: flex; gap: 10px; }
.footer-contact .icon { width: 18px; height: 18px; color: var(--red-light); margin-top: 4px; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-block: 24px; font-size: .8125rem; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0; padding: 0; }
.link-button { background: none; border: 0; padding: 0; color: rgba(255,255,255,.85); font-size: inherit; text-decoration: none; cursor: pointer; }
.link-button:hover { color: var(--white); text-decoration: underline; }

/* ==========================================================================
   Consentimiento de cookies
   ========================================================================== */
.consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 300; max-width: 1080px; margin-inline: auto;
  background: var(--white); color: var(--black); border-top: 4px solid var(--red); box-shadow: 0 24px 60px -20px rgba(0,0,0,.5);
  padding: 22px 26px; display: grid; grid-template-columns: 1fr auto; gap: 18px 32px; align-items: center;
  transform: translateY(20px); opacity: 0; transition: transform .35s var(--ease), opacity .35s var(--ease);
}
.consent.is-visible { transform: none; opacity: 1; }
.consent[hidden] { display: none; }
.consent h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.consent p { font-size: .875rem; color: var(--text-2); margin: 0; }
.consent__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.consent__actions .btn { min-height: 44px; padding: 10px 20px; font-size: .8125rem; }

.consent-dialog { border: 0; padding: 0; width: min(620px, calc(100vw - 32px)); max-height: calc(100vh - 32px); background: var(--white); color: var(--black); box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.consent-dialog::backdrop { background: rgba(17,17,17,.65); }
.consent-dialog__inner { padding: 30px; border-top: 5px solid var(--red); }
.consent-dialog h2 { font-size: 1.4rem; text-transform: uppercase; }
.consent-option { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--border); align-items: start; }
.consent-option h3 { font-size: 1rem; margin-bottom: 4px; }
.consent-option p { font-size: .875rem; color: var(--text-2); margin: 0; }
.switch { position: relative; width: 52px; height: 30px; flex: none; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; background: #c9c9c9; border-radius: 30px; transition: background .2s; }
.switch span::after { content: ""; position: absolute; top: 4px; left: 4px; width: 22px; height: 22px; background: var(--white); border-radius: 50%; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.switch input:checked + span { background: var(--red-hover); }
.switch input:checked + span::after { transform: translateX(22px); }
.switch input:focus-visible + span { outline: 3px solid var(--black); outline-offset: 2px; }
.switch input:disabled + span { background: var(--black); opacity: .5; }
.consent-dialog__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.consent-dialog__actions .btn { flex: 1 1 160px; min-height: 46px; font-size: .8125rem; }

/* ==========================================================================
   Animaciones de aparición (se desactivan con prefers-reduced-motion)
   ========================================================================== */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal-delay-1 { transition-delay: .08s; }
.js .reveal-delay-2 { transition-delay: .16s; }
.js .reveal-delay-3 { transition-delay: .24s; }
.js .reveal-delay-4 { transition-delay: .32s; }

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