/* Landing AimHarder — maquetado desde Figma (frame 1:2 "AimHarder — Landing Page").
   Diseño de referencia: 1440px. Los breakpoints son adaptación nuestra: el Figma
   solo trae la version de escritorio. */

/* ---------- Tipografias autoalojadas ----------
   Descargadas de Google Fonts y servidas desde nuestro dominio: la landing recibe
   trafico de Ads en la UE y llamar a fonts.gstatic.com envia la IP del visitante a
   Google sin base legal. Aqui no sale ninguna peticion a terceros.
   Solo los subsets latin y latin-ext. Cada familia es una fuente variable: los
   pesos de una misma familia comparten fichero (4 woff2, 200 KB en disco; el
   navegador normalmente solo baja los dos "latin", ~86 KB). */

/* Montserrat 600 - latin-ext */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/montserrat-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Montserrat 600 - latin */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/montserrat-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Montserrat 700 - latin-ext */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/montserrat-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Montserrat 700 - latin */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/montserrat-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Open Sans 400 - latin-ext */
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/open-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Open Sans 400 - latin */
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/open-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Open Sans 600 - latin-ext */
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/open-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Open Sans 600 - latin */
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/open-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Open Sans 700 - latin-ext */
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/open-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Open Sans 700 - latin */
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/open-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --azul: #2490f4;
  --azul-suave: #ebf2ff;
  --azul-bloque: #f0f5ff;
  --tinta: #141820;
  --gris: #6b7380;
  --gris-claro: #bfc7d6;
  --borde: #d9dee5;
  --borde-suave: #ebedf2;
  --campo: #fafafc;
  --panel: #f5f7fa;
  --verde: #299959;
  --amarillo: #fabf24;
  --noche: #0b101b;
  --titulo: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --texto: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: #fff;
  color: var(--tinta);
  font-family: var(--texto);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* El height:auto es obligatorio: sin el, el atributo height del HTML manda cuando
   el max-width encoge la imagen y esta se aplasta. Los iconos que fijan width y
   height por CSS mas abajo lo sobreescriben por especificidad. */
img, svg { display: block; max-width: 100%; height: auto; }

h1, h2, h3 { font-family: var(--titulo); font-weight: 700; margin: 0; }
p { margin: 0; }

.azul { color: var(--azul); }

.wrap {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Salta a la vista solo con teclado: la landing no tiene menu, pero el formulario
   es el objetivo real de la pagina. */
.skip {
  position: absolute; left: -9999px; top: 0;
  background: #fff; color: var(--tinta); padding: .75rem 1rem; z-index: 10;
}
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: #0c121e url("img/hero.webp") center / cover no-repeat;
  padding: 64px 0;
  overflow: hidden;
}

/* PENDIENTE (foto definitiva de AimHarder): el sujeto de la foto placeholder esta
   al 68% del ancho, justo detras de la tarjeta del formulario. No se corrige por
   CSS: el hero es mas apaisado que la foto (2.6 frente a 1.5), asi que cover
   escala por el ancho, no deja margen lateral y background-position no tiene nada
   que mover. Ampliar la imagen para forzar ese margen la escalaba 1.73x, asi que
   se descarto. Hace falta la foto encuadrada para este layout: el sujeto centrado
   sobre el 52% del ancho, ancho >= 2400px, y ademas una version vertical para movil.
   El 0-46% lo tapa el texto y el 62-100% la tarjeta del formulario, asi que la
   franja util es esa de en medio. Con la foto bien encuadrada, cover centrado basta. */
/* Dos capas, igual que en Figma: degradado de lectura + oscurecido general. */
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(268.847deg, rgba(12,18,30,1) .85%, rgba(12,18,30,0) 50.45%),
    linear-gradient(90deg, rgba(11,16,27,.92) 0%, rgba(11,16,27,.55) 55%, rgba(11,16,27,.2) 100%);
}
.hero > .wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.hero__texto { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero__logo { width: 467px; max-width: 100%; height: auto; }
.hero h1 {
  max-width: 560px;
  font-size: 44px;
  line-height: 1.18;
  color: #fff;
}
.hero__entrada {
  max-width: 480px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--gris-claro);
}

.stats { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; padding-top: 12px; }
.stat { display: flex; gap: 10px; align-items: center; }
.stat__icono {
  flex: none;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  background: var(--azul); border-radius: 50%;
}
/* Los iconos de Figma vienen con viewBox rectangular (ej. 16.5x12). Metidos en
   una caja cuadrada se deformarian: object-fit los encaja sin estirarlos. */
.stat__icono img { width: 18px; height: 18px; object-fit: contain; }
.stat__texto { display: flex; flex-direction: column; gap: 2px; }
.stat__cifra { font-family: var(--titulo); font-weight: 700; font-size: 18px; color: #fff; }
.stat__pie { max-width: 110px; font-size: 11px; line-height: 1.25; color: var(--gris-claro); }

.rating { display: flex; gap: 10px; align-items: center; padding-top: 8px; }
.rating img { width: 37px; height: 37px; flex: none; }
.rating__nota { font-family: var(--titulo); font-weight: 700; font-size: 16px; color: #fff; }
.rating__estrellas { font-family: var(--titulo); font-weight: 700; font-size: 16px; color: var(--amarillo); }
.rating__texto { font-size: 13px; color: #fff; }
.rating__texto b { font-weight: 700; }

/* ---------- Tarjeta del formulario ---------- */

.tarjeta {
  flex: none;
  width: 420px;
  max-width: 100%;
  background: #fff;
  border-radius: 16px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.tarjeta__titulo { font-family: var(--titulo); font-weight: 700; font-size: 24px; line-height: 1.15; }
.tarjeta__titulo span { display: block; }
.tarjeta__entrada { font-size: 13px; line-height: 1.45; color: var(--gris); }

/* El formulario es un unico hijo de .tarjeta, asi que el gap de la tarjeta no
   separa lo que hay dentro: la separacion la pone el propio form. */
#lead { display: flex; flex-direction: column; gap: 18px; }

/* Vacio no debe ocupar ni generar gap; solo aparece al responder submit.php. */
#result:empty { display: none; }

.campos { display: flex; flex-direction: column; gap: 12px; }

.field { display: flex; flex-direction: column; }
.field__caja {
  display: flex; align-items: center; gap: 10px;
  background: var(--campo);
  border: 1px solid var(--borde);
  border-radius: 8px;
  padding: 12px 14px;
}
.field__caja:focus-within { border-color: var(--azul); box-shadow: 0 0 0 3px rgba(36,144,244,.15); }
.field__caja img { width: 16px; height: 16px; flex: none; object-fit: contain; }
.field__caja input {
  width: 100%;
  border: 0; background: none; padding: 0;
  font-family: inherit; font-size: 13px; color: var(--tinta);
}
.field__caja input:focus { outline: none; }
.field__caja input::placeholder { color: var(--gris); opacity: 1; }

.oculto-visual {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.boton {
  width: 100%;
  display: flex; align-items: center; justify-content: center;
  padding: 14px;
  border: 0; border-radius: 8px;
  background: var(--azul); color: #fff;
  font-family: var(--texto); font-size: 15px; font-weight: 600;
  cursor: pointer;
}
.boton:hover { background: #1a7fdc; }
.boton:disabled { opacity: .6; cursor: not-allowed; }

/* Consentimiento RGPD: no esta en el Figma, se anade porque submit.php lo exige.
   Lleva tambien la clase .field para que el JS pueda colgar ahi el error, y .field
   es flex-direction: column; hay que devolverlo a fila o la casilla queda encima
   del texto. */
.consent { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.consent input { margin: 2px 0 0; accent-color: var(--azul); flex: none; }
.consent label { flex: 1 1 0; min-width: 0; font-size: 11px; line-height: 1.45; color: var(--gris); }
.consent a { color: var(--azul); }
/* El error de consent lo cuelga el JS aqui dentro: que baje a su propia linea. */
.consent .err { flex-basis: 100%; margin-top: 0; }

.checks { display: flex; flex-wrap: wrap; gap: 16px; }
.check { display: flex; gap: 5px; align-items: center; }
.check__tic { font-weight: 700; font-size: 12px; color: var(--verde); }
.check__texto { font-size: 11px; color: var(--gris); }

/* Errores de campo y mensaje global: el JS de form.php los inyecta tal cual. */
.err { display: block; margin-top: 5px; font-size: 11px; color: #c0392b; }
.msg { margin-top: 4px; padding: 10px 12px; border-radius: 8px; font-size: 12.5px; line-height: 1.45; }
.msg--ok  { background: rgba(41,153,89,.1);  border: 1px solid rgba(41,153,89,.3);  color: #1e7043; }
.msg--bad { background: rgba(192,57,43,.07); border: 1px solid rgba(192,57,43,.25); color: #a5301f; }

/* Honeypot: fuera de la vista por posicionamiento, nunca display:none.
   Un display:none lo delata ante los bots que leen el CSS. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Bloques de contenido ---------- */

.seccion { padding: 96px 0; }
.seccion--corta { padding: 32px 0 96px; }
.seccion--caja { padding: 20px 0 96px; }

.seccion__titulo { font-size: 32px; text-align: center; margin-bottom: 56px; }
.seccion__titulo--sm { font-size: 30px; }

.rejilla { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px 24px; }

.carta { display: flex; flex-direction: column; gap: 14px; width: 280px; }
.carta__icono {
  width: 48px; height: 48px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--azul-suave); border-radius: 10px;
}
.carta__icono img { width: 24px; height: 24px; object-fit: contain; }
.carta h3 { font-weight: 600; font-size: 17px; }
.carta p { font-size: 13px; line-height: 1.45; color: var(--gris); }

.carta--sm { width: 200px; gap: 12px; }
.carta--sm .carta__icono { width: 44px; height: 44px; }
.carta--sm .carta__icono img { width: 22px; height: 22px; object-fit: contain; }
.carta--sm h3 { font-size: 15px; }
.carta--sm p { font-size: 12.5px; }

/* ---------- Gestiona desde cualquier lugar ---------- */

.bloque {
  background: var(--azul-bloque);
  border-radius: 24px;
  padding: 56px 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
}
.bloque__texto { width: 460px; max-width: 100%; display: flex; flex-direction: column; gap: 18px; }
.eyebrow { font-size: 12px; font-weight: 600; color: var(--azul); letter-spacing: .02em; }
.bloque__texto h2 { max-width: 420px; font-size: 30px; line-height: 1.2; }

.lista { display: flex; flex-direction: column; gap: 14px; padding-top: 6px; }
.lista__linea { display: flex; gap: 12px; align-items: flex-start; }
.lista__tic {
  width: 22px; height: 22px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--azul); border-radius: 50%;
  color: #fff; font-size: 12px; font-weight: 600;
}
.lista__linea p { max-width: 380px; font-size: 14px; }

.enlace {
  display: inline-block; margin-top: 8px;
  font-size: 14px; font-weight: 600; color: var(--azul); text-decoration: none;
}
.enlace:hover { text-decoration: underline; }

.bloque__imagen { width: 784px; max-width: 100%; border-radius: 14px; overflow: hidden; }

/* ---------- Testimonios ---------- */

.panel {
  background: var(--panel);
  border-radius: 20px;
  padding: 48px;
  display: flex; gap: 40px;
  align-items: stretch;   /* las tres tarjetas, misma altura */
  flex-wrap: nowrap;      /* y siempre en una linea */
}
/* El stretch del panel es para las tarjetas; el bloque del 4,9 no debe estirarse. */
.resumen { width: 170px; flex: none; align-self: center; display: flex; flex-direction: column; gap: 8px; }
.resumen__nota { font-family: var(--titulo); font-weight: 700; font-size: 34px; }
.resumen__estrellas { font-size: 16px; font-weight: 700; color: var(--amarillo); }
.resumen__marca { display: flex; gap: 4px; align-items: center; padding-top: 4px; font-size: 12px; color: var(--gris); }
.resumen__marca b { font-weight: 600; color: var(--azul); }
.resumen img { width: 53px; height: 53px; }

/* flex-basis 0, no 300px: con wrap el reparto en lineas se hace con el basis
   ANTES de encoger, asi que un basis de 300 mandaba la tercera tarjeta a una
   segunda fila. Con 0 caben las tres y luego crecen hasta el tope de 300. */
.testimonio {
  flex: 1 1 0; min-width: 0; max-width: 300px;
  background: #fff; border-radius: 14px; padding: 24px;
  display: flex; flex-direction: column; gap: 16px;
}
.testimonio__cabecera { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.testimonio__comilla { font-family: var(--titulo); font-weight: 700; font-size: 26px; line-height: 1; color: var(--azul); }
.testimonio__estrellas { font-size: 13px; letter-spacing: 1px; color: var(--amarillo); }

.testimonio__autor { display: flex; align-items: center; gap: 10px; }
/* Sirve igual para el <span> con iniciales y para el <img> del dia que haya fotos. */
.avatar {
  width: 40px; height: 40px; flex: none;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--azul-suave); color: var(--azul);
  font-family: var(--titulo); font-weight: 600; font-size: 13px;
  object-fit: cover;
}
.testimonio blockquote { margin: 0; font-size: 13px; line-height: 1.45; }
/* Las reseñas de Google traen un solo nombre, no la pareja centro + persona con
   cargo que planteaba el Figma. .testimonio__centro y .testimonio__cargo se
   quedaron sin uso y se retiran. Algunos nombres son largos y ocupan dos líneas. */
.testimonio__firma {
  min-width: 0;
  font-family: var(--titulo); font-weight: 600; font-size: 13px; line-height: 1.3;
}
/* Con las tarjetas igualadas, el sobrante caeria bajo el cargo y las tres firmas
   quedarian a distinta altura. Asi el hueco va entre la cita y la firma, y los
   tres nombres se alinean abajo. */
.testimonio > :last-child { margin-top: auto; }

/* ---------- CTA final ---------- */

.cta {
  border-top: 1px solid var(--borde-suave);
  padding: 56px 0;
}
.cta > .wrap { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta__texto { max-width: 642px; display: flex; flex-direction: column; gap: 8px; }
.cta__texto h2 { font-size: 24px; }
.cta__texto p { max-width: 560px; font-size: 13.5px; color: var(--gris); }
.cta__lado { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.cta__boton {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 24px; border-radius: 8px;
  background: var(--azul); color: #fff;
  font-size: 14px; font-weight: 600; text-decoration: none;
}
.cta__boton:hover { background: #1a7fdc; }
.cta__checks { display: flex; gap: 14px; }

/* ---------- Pie ---------- */

.pie { background: var(--noche); padding: 28px 0; }
/* Los huecos son ajustados a proposito: la fila mide 1240px fijos y los tres
   bloques (logo 290px + copyright + legales) caben por poco. Con gap 24 y 20 se
   pasaba de largo al alargar el correo del pie y el <nav> caia a una segunda
   linea. Con 16 y 14 sobra sitio incluso con support@ en todas las paginas. */
.pie > .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.pie__logo { width: 290px; height: auto; }
.pie p { font-size: 11.5px; color: #99a1ad; }
.pie__legal { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 11.5px; }
.pie__legal a { color: #cfd6e0; text-decoration: none; }
.pie__legal a:hover { text-decoration: underline; }
/* La pagina en la que ya estamos no se enlaza a si misma: se pinta apagada. */
.pie__legal [aria-current] { color: #6d7684; }
/* Es un boton por semantica, pero en el pie tiene que leerse como un enlace mas. */
.pie__cookies {
  padding: 0; border: 0; background: none;
  font-family: var(--texto); font-size: 11.5px; color: #cfd6e0;
  cursor: pointer;
}
.pie__cookies:hover { text-decoration: underline; }

/* ---------- Paginas legales ---------- */

.legal { padding: 56px 0 80px; }
/* 68 caracteres por linea: mas ancho y el ojo pierde el salto de renglon. */
.legal .wrap { max-width: 780px; }
.legal h1 { font-size: 34px; line-height: 1.2; margin-bottom: 8px; }
.legal h2 { font-size: 20px; line-height: 1.3; margin: 40px 0 12px; }
.legal h3 { font-size: 16px; line-height: 1.3; margin: 24px 0 8px; }
.legal p, .legal li { font-size: 15px; line-height: 1.65; color: #3a4250; }
.legal p { margin-bottom: 14px; }
.legal ul { margin: 0 0 14px; padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--azul); }
.legal code { font-size: 13px; background: var(--panel); padding: 1px 5px; border-radius: 4px; }
.legal__fecha { font-size: 13px; color: var(--gris); margin-bottom: 32px; }
.legal__volver {
  display: inline-block; margin-bottom: 28px;
  font-size: 14px; color: var(--azul); text-decoration: none;
}
.legal__volver:hover { text-decoration: underline; }

/* ---------- Banner de cookies ----------
   Va abajo y por encima de todo. No bloquea la pagina a proposito: la AEPD no
   exige muro, y un muro delante del formulario en trafico de pago cuesta
   conversiones. Lo que si exige es que rechazar cueste lo mismo que aceptar, y
   de eso se encarga .cc__btn: los tres botones miden igual. */

.cc {
  position: fixed; z-index: 9999;
  left: 0; right: 0; bottom: 0;
  padding: 16px;
}
.cc__caja {
  max-width: 900px; margin: 0 auto;
  padding: 20px 22px;
  background: #fff;
  border: 1px solid #dde3ec;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(11, 16, 27, .18);
  max-height: 80vh; overflow-y: auto;
}
/* Recibe el foco por codigo al abrirse, para que el teclado y el lector de
   pantalla entren en el aviso. No es tabulable, asi que no necesita indicador:
   pintarselo solo haria parecer que hay algo seleccionado. */
.cc__caja:focus { outline: none; }
.cc__titulo { font-size: 17px; line-height: 1.3; margin-bottom: 8px; }
.cc__texto { font-size: 13.5px; line-height: 1.6; color: #3a4250; }
.cc__texto a { color: var(--azul); }

.cc__acciones {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 18px;
}
/* Los tres botones son EL MISMO boton con distinto texto. Ni color ni relleno
   distinguen a ninguno: asi no hay manera de sostener que el diseno empuje hacia
   aceptar, que es lo que invalida el consentimiento.

   El borde es var(--gris) y no un gris claro a proposito: sin relleno de color,
   el borde es lo unico que dibuja el control, y WCAG 1.4.11 pide 3:1 para eso.
   El #c8d0dc que habia antes da 1,6:1 y solo se sostenia porque dos de los tres
   iban rellenos de azul. */
.cc__btn {
  flex: 1 1 auto; min-width: 150px;
  padding: 11px 18px;
  border: 1px solid var(--gris);
  border-radius: 8px;
  background: #fff; color: #2a3240;
  font-family: var(--texto); font-size: 14px; font-weight: 600;
  cursor: pointer;
}
.cc__btn:hover { background: var(--panel); border-color: #4b5563; }
.cc__btn:focus-visible { outline: 2px solid var(--azul); outline-offset: 2px; }

.cc__grupo { padding: 12px 0; border-top: 1px solid #eef1f6; }
.cc__grupo:first-of-type { border-top: 0; }
.cc__grupo-cab { display: flex; align-items: center; gap: 9px; cursor: pointer; }
.cc__grupo-cab input { width: 16px; height: 16px; accent-color: var(--azul); }
.cc__grupo-cab input:disabled { cursor: not-allowed; }
.cc__grupo-nombre { font-family: var(--titulo); font-size: 14px; font-weight: 600; }
.cc__grupo-desc { margin: 5px 0 0 25px; font-size: 12.5px; line-height: 1.5; color: var(--gris); }

@media (max-width: 520px) {
  .cc { padding: 10px; }
  .cc__caja { padding: 16px; }
  .cc__btn { flex: 1 1 100%; }
}

/* ---------- Pagina de gracias ----------
   Destino de la conversion. Deliberadamente sobria y sin nada que clicar salvo
   la vuelta al inicio: quien llega aqui ya ha hecho lo que se le pedia. */

/* Pie pegado al fondo de la ventana. Solo en esta pagina: es la unica tan corta
   que, en una pantalla normal, el pie termina a media altura y deja una franja
   blanca debajo. El cuerpo ocupa la ventana entera y el <main> se queda con el
   sobrante, asi que el pie cae al fondo sin numeros magicos ni position:fixed
   (si algun dia el texto crece, la pagina simplemente hace scroll).
   dvh detras de vh: en moviles el 100vh cuenta la barra del navegador y sobra
   pantalla; los que no entiendan dvh se quedan con el vh de antes. */
.pagina-gracias {
  display: flex; flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}
/* El 78vh de abajo era el apaño para que la pagina no quedara raquitica; con el
   cuerpo ocupando la ventana ya no hace falta y estorba en pantallas bajas. */
.pagina-gracias .gracias { flex: 1 0 auto; min-height: 0; }

.gracias {
  display: flex; align-items: center;
  min-height: 78vh;
  padding: 56px 0;
  background: var(--azul-bloque);
  text-align: center;
}
.gracias .wrap { max-width: 620px; }
.gracias__marca {
  width: 56px; height: 56px; margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--azul); color: #fff;
  font-size: 26px; line-height: 1;
}
.gracias h1 { font-size: 30px; line-height: 1.25; margin-bottom: 16px; }
.gracias__texto { font-size: 15.5px; line-height: 1.65; color: #3a4250; margin-bottom: 14px; }
.gracias__texto a { color: var(--azul); }
.gracias__cta {
  display: inline-block; margin-top: 20px;
  padding: 13px 28px;
  border-radius: 8px;
  background: var(--azul); color: #fff;
  font-family: var(--texto); font-size: 15px; font-weight: 600;
  text-decoration: none;
}
.gracias__cta:hover { background: #1a7fdc; }

/* ---------- Aparicion al hacer scroll ----------
   La clase .reveal la pone el JS, nunca el HTML: si el JS falla o el navegador
   no soporta IntersectionObserver, no se oculta nada. El hero y el formulario
   quedan fuera a proposito (LCP y CTA: se pintan ya).
   Solo se animan opacity y transform, asi no hay reflow ni CLS. */

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .4s ease-out, transform .4s ease-out;
  will-change: opacity, transform;
}
.reveal.visible {
  opacity: 1;
  transform: none;
  will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Adaptacion a pantallas menores ---------- */

@media (max-width: 1100px) {
  .hero > .wrap { flex-direction: column; align-items: stretch; }
  .hero h1, .hero__entrada { max-width: none; }
  .tarjeta { width: 100%; align-self: center; max-width: 480px; }
  .bloque { flex-direction: column; padding: 40px; }
  .bloque__texto { width: 100%; }
  .rejilla { justify-content: flex-start; }
  .carta, .carta--sm { width: calc(50% - 12px); min-width: 220px; }
  /* Ya no caben tres en linea sin dejarlas ilegibles: aqui si se reparten. */
  .panel { flex-wrap: wrap; }
  .testimonio { flex: 1 1 260px; max-width: none; }
}

@media (max-width: 760px) {
  .hero { padding: 40px 0; }
  .hero h1 { font-size: 32px; }
  .hero__logo { width: 300px; }
  .stats { gap: 20px; }
  .seccion { padding: 64px 0; }
  .seccion--corta { padding: 24px 0 64px; }
  .seccion--caja { padding: 16px 0 64px; }
  .seccion__titulo { font-size: 24px; margin-bottom: 32px; }
  .seccion__titulo--sm { font-size: 22px; }
  .carta, .carta--sm { width: 100%; }
  .tarjeta { padding: 24px; }
  .bloque { padding: 28px; }
  .bloque__texto h2 { font-size: 24px; }
  .panel { padding: 24px; }
  .testimonio { flex: 1 1 100%; max-width: none; }
  .cta__lado { align-items: flex-start; }
  .pie > .wrap { flex-direction: column; align-items: flex-start; }
}
