/* =========================================================
   Autoescuela Ibiza · Cáceres — hoja de estilos
   Colores y tipografías en :root
   ========================================================= */
@font-face { font-family: "Outfit"; font-weight: 600; font-display: swap; src: url("../fuentes/outfit-600.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 700; font-display: swap; src: url("../fuentes/outfit-700.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 800; font-display: swap; src: url("../fuentes/outfit-800.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("../fuentes/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("../fuentes/inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("../fuentes/inter-600.woff2") format("woff2"); }

:root {
  --azul: #0A2F6B;
  --azul-2: #13448F;
  --azul-3: #1D57B3;
  --azul-claro: #E9EFF9;
  --verde: #17803A;
  --verde-l: #2BB24C;
  --amarillo: #FFD21F;
  --amarillo-2: #F5C400;
  --tinta: #0F1A2E;
  --texto: #3C4658;
  --suave: #5E687A;
  --gris: #F3F5F9;
  --linea: #DDE3EC;
  --blanco: #FFFFFF;
  --titulo: "Outfit", system-ui, sans-serif;
  --cuerpo: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ancho: 1200px;
  --pad: clamp(18px, 4vw, 32px);
  --radio: 14px;
  --sombra: 0 10px 30px rgba(10, 47, 107, .10);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--cuerpo); font-size: 17px; line-height: 1.65; color: var(--texto); background: var(--blanco); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--azul-3); }
a:hover { color: var(--azul); }
h1, h2, h3, h4 { font-family: var(--titulo); color: var(--tinta); line-height: 1.12; margin: 0; letter-spacing: -.01em; }
p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--amarillo); outline-offset: 3px; }
.saltar { position: absolute; left: -9999px; }
.saltar:focus { left: 16px; top: 16px; z-index: 300; background: #fff; padding: 8px 14px; }
.cont { max-width: var(--ancho); margin: 0 auto; padding-inline: var(--pad); }
.cont--estrecho { max-width: 860px; }
.sec { padding: clamp(64px, 9vw, 110px) 0; }
.sec--gris { background: var(--gris); }
.sec--azul { background: var(--azul); color: #DCE5F4; }
.sec--azul h2 { color: #fff; }

/* Cuadros de autoescuela (amarillo y negro) */
.cuadros { --t: 14px; height: calc(var(--t) * 2); background: conic-gradient(#111 25%, var(--amarillo) 0 50%, #111 0 75%, var(--amarillo) 0) 0 0 / calc(var(--t) * 2) calc(var(--t) * 2); }
.cuadros--hero { position: absolute; right: 0; top: 0; width: 120px; height: 120px; --t: 15px; opacity: .9; clip-path: polygon(100% 0, 100% 100%, 0 0); }
.cuadros--phero { position: absolute; right: 0; bottom: 0; width: 180px; height: 28px; --t: 14px; }

/* Etiquetas y títulos */
.eyebrow { display: inline-block; font-family: var(--titulo); font-weight: 700; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--verde); margin-bottom: 12px; }
.eyebrow--claro { color: var(--amarillo); }
.cabeza { max-width: 720px; margin-bottom: 44px; }
.cabeza h2, .texto h2, .porque h2, .contacto h2, .caja h2, .formulario h2, .contacto-pagina h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; }
.cabeza > p:not(.eyebrow) { margin-top: 12px; font-size: 18px; color: var(--suave); }
.entradilla { margin-top: 18px; font-size: 18px; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 2px solid transparent; font-family: var(--titulo); font-weight: 700; font-size: 16px;
  text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), background .2s, color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn--amarillo { background: var(--amarillo); color: var(--tinta); box-shadow: 0 6px 18px rgba(255, 210, 31, .35); }
.btn--amarillo:hover { background: #FFE15C; color: var(--tinta); }
.btn--azul { background: var(--azul-2); color: #fff; }
.btn--azul:hover { background: var(--azul); color: #fff; }
.btn--verde { background: var(--verde); color: #fff; }
.btn--verde:hover { background: #106B2F; color: #fff; }
.btn--blanco { background: #fff; color: var(--azul); }
.btn--blanco:hover { color: var(--azul); }
.btn--linea { border-color: var(--azul-2); color: var(--azul-2); background: transparent; }
.btn--linea:hover { background: var(--azul-2); color: #fff; }
.btn--linea-claro { border-color: rgba(255,255,255,.6); color: #fff; background: transparent; }
.btn--linea-claro:hover { background: #fff; color: var(--azul); }
.btn--grande { min-height: 56px; padding: 0 28px; font-size: 17px; }
.btn--enorme { min-height: 68px; padding: 0 40px; font-size: 21px; }
.botones { display: flex; flex-wrap: wrap; gap: 12px; }

/* Aviso superior */
.aviso { background: var(--amarillo); color: var(--tinta); font-size: 15px; }
.aviso__in { display: flex; align-items: center; gap: 12px; padding-block: 10px; flex-wrap: wrap; }
.aviso p { font-weight: 500; }
.aviso a { color: var(--tinta); font-weight: 700; }
.aviso__punto { width: 10px; height: 10px; border-radius: 50%; background: var(--verde); box-shadow: 0 0 0 4px rgba(23,128,58,.25); }

/* Barra superior */
.topbar { background: var(--azul); color: #C9D6EE; font-size: 14px; }
.topbar__in { display: flex; justify-content: space-between; gap: 6px 24px; flex-wrap: wrap; padding-block: 8px; }
.topbar__contacto { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: var(--amarillo); }

/* Cabecera */
.cab { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.97); backdrop-filter: blur(8px); border-bottom: 1px solid var(--linea); transition: box-shadow .3s; }
.cab--sombra { box-shadow: 0 6px 20px rgba(10,47,107,.08); }
.cab__in { display: flex; align-items: center; gap: 22px; padding-block: 12px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.logo__l { width: 44px; height: 44px; border-radius: 8px; background: var(--verde-l); color: #fff; font-family: var(--titulo); font-weight: 800; font-size: 30px; display: grid; place-items: center; box-shadow: inset 0 0 0 3px #fff, 0 0 0 2px var(--verde-l); }
.logo__img { width: 44px; height: 44px; object-fit: contain; border-radius: 6px; }
.logo__txt { display: flex; flex-direction: column; line-height: 1.05; }
.logo__txt strong { font-family: var(--titulo); font-weight: 800; font-size: 21px; color: var(--azul); }
.logo__txt span { font-family: var(--titulo); font-weight: 600; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--verde); }
.nav { display: flex; gap: 4px; }
.nav a { text-decoration: none; color: var(--tinta); font-weight: 500; font-size: 15px; padding: 10px 12px; border-radius: 999px; transition: background .2s; }
.nav a:hover { background: var(--azul-claro); color: var(--azul); }
.nav a[aria-current="page"] { background: var(--azul-claro); color: var(--azul); }
.cab__tests { min-height: 44px; padding: 0 18px; font-size: 15px; white-space: nowrap; }
.hamb { display: none; width: 46px; height: 46px; border: 0; border-radius: 10px; background: var(--azul-claro); cursor: pointer; position: relative; }
.hamb span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--azul); border-radius: 2px; transition: transform .3s, opacity .3s; }
.hamb span:nth-child(1) { top: 15px; } .hamb span:nth-child(2) { top: 22px; } .hamb span:nth-child(3) { top: 29px; }
.hamb[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamb[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamb[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Portada */
.hero { position: relative; background: radial-gradient(1200px 500px at 85% -10%, #1D57B3 0%, transparent 60%), var(--azul); color: #DCE5F4; padding: clamp(48px, 7vw, 90px) 0 clamp(90px, 10vw, 130px); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { color: #fff; font-weight: 800; font-size: clamp(40px, 5.6vw, 66px); line-height: 1.04; }
.subrayado { color: var(--amarillo); }
.hero__intro { margin: 22px 0 32px; font-size: 19px; max-width: 560px; }
.sellos { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.sellos li { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); padding: 7px 14px; border-radius: 999px; }
.sellos li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--verde-l); }
.hero__media { position: relative; }
.foto { position: relative; overflow: hidden; border-radius: var(--radio); background: var(--azul-claro); isolation: isolate; margin: 0; }
.foto::after { content: attr(data-etiqueta); position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px; z-index: -1; font-family: var(--titulo); font-weight: 700; color: var(--azul-2); font-size: 18px;
  background: repeating-linear-gradient(135deg, transparent 0 22px, rgba(19,68,143,.06) 22px 44px); }
.foto img { width: 100%; height: 100%; object-fit: cover; }
.foto--hero { aspect-ratio: 4 / 3.3; border-radius: 22px; box-shadow: 0 30px 60px rgba(0,0,0,.3); background: #1A4A91; }
.foto--hero::after { color: #fff; background: repeating-linear-gradient(135deg, transparent 0 22px, rgba(255,255,255,.05) 22px 44px); }
.tarjeta-tests { position: absolute; left: -24px; bottom: -28px; display: flex; align-items: center; gap: 14px; background: #fff; color: var(--tinta); text-decoration: none; padding: 16px 22px 16px 16px; border-radius: 16px; box-shadow: 0 18px 40px rgba(0,0,0,.25); transition: transform .25s var(--ease); max-width: 320px; }
.tarjeta-tests:hover { transform: translateY(-4px); color: var(--tinta); }
.tarjeta-tests__icono { flex: 0 0 48px; height: 48px; border-radius: 12px; background: var(--amarillo); display: grid; place-items: center; }
.tarjeta-tests__icono svg { width: 26px; height: 26px; fill: none; stroke: var(--tinta); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.tarjeta-tests strong { display: block; font-family: var(--titulo); font-size: 18px; }
.tarjeta-tests span span, .tarjeta-tests > span:last-child { font-size: 15px; color: var(--suave); }

/* Accesos rápidos */
.accesos { position: relative; z-index: 2; margin-top: -56px; }
.accesos__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.acceso { background: #fff; border-radius: var(--radio); box-shadow: var(--sombra); padding: 24px 22px; text-decoration: none; display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--linea); transition: transform .25s var(--ease), box-shadow .25s; }
.acceso:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(10,47,107,.16); }
.acceso svg { width: 38px; height: 38px; fill: none; stroke: var(--azul-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 10px; }
.acceso strong { font-family: var(--titulo); font-size: 20px; color: var(--tinta); }
.acceso span { font-size: 15px; color: var(--suave); }
.acceso--tests { background: var(--amarillo); border-color: var(--amarillo); }
.acceso--tests svg { stroke: var(--tinta); }
.acceso--tests span { color: #3B3200; }

/* Permisos */
.permisos { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.permiso { position: relative; background: #fff; border: 1px solid var(--linea); border-radius: 18px; padding: 30px 28px; display: flex; flex-direction: column; gap: 10px; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.permiso:hover { transform: translateY(-4px); box-shadow: var(--sombra); border-color: #C5D3EA; }
.permiso__icono { width: 60px; height: 60px; border-radius: 16px; background: var(--azul-claro); display: grid; place-items: center; }
.permiso__icono svg { width: 34px; height: 34px; fill: none; stroke: var(--azul-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.permiso__tipo { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--verde); margin-top: 8px; }
.permiso h3 { font-size: 30px; font-weight: 800; }
.permiso h3 a { color: var(--tinta); text-decoration: none; }
.permiso h3 a::after { content: ""; position: absolute; inset: 0; }
.permiso__nota { font-size: 14px; color: var(--verde); font-weight: 500; }
.permiso__pie { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--linea); display: flex; justify-content: space-between; gap: 12px; font-weight: 600; }
.permiso__precio { color: var(--tinta); }
.permiso__ver { color: var(--azul-3); }
.nota-servicios { margin-top: 28px; text-align: center; color: var(--suave); }

/* Pasos */
.pasos { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; counter-reset: p; }
.pasos--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pasos li { position: relative; background: #fff; border-radius: var(--radio); padding: 26px 22px; border: 1px solid var(--linea); }
.pasos__n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--azul-2); color: #fff; font-family: var(--titulo); font-weight: 800; font-size: 20px; margin-bottom: 14px; }
.pasos li:last-child .pasos__n { background: var(--verde-l); }
.pasos h3 { font-size: 21px; margin-bottom: 6px; }
.pasos p { font-size: 15.5px; }

/* Bono */
.bono-banda { background: var(--verde); color: #E5F5EA; padding: 56px 0; }
.bono-banda__in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px 48px; }
.bono-banda__in > div { flex: 1 1 520px; }
.bono-banda h2 { color: #fff; font-size: clamp(28px, 3.5vw, 40px); font-weight: 800; margin-bottom: 10px; }
.bono-banda .eyebrow--claro { color: #FFE66B; }

/* Por qué */
.porque { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.porque .botones { margin-top: 28px; }
.ventajas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ventajas li { background: var(--gris); border-radius: var(--radio); padding: 22px; display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; }
.ventajas svg { grid-row: span 2; width: 44px; height: 44px; padding: 9px; border-radius: 12px; background: #fff; fill: none; stroke: var(--azul-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ventajas strong { font-family: var(--titulo); font-size: 18px; color: var(--tinta); }
.ventajas span { font-size: 15px; }

/* Galería */
.galeria { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.galeria .foto { aspect-ratio: 4 / 3; }
.galeria--alumnos { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.galeria__btn { padding: 0; border: 0; border-radius: 12px; overflow: hidden; aspect-ratio: 3 / 4; cursor: zoom-in; background: var(--gris); }
.galeria__btn img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; transition: transform .6s var(--ease); }
.galeria__btn:hover img { transform: scale(1.05); }
.visor { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 94vh; }
.visor::backdrop { background: rgba(5, 15, 35, .9); }
.visor img { max-width: 94vw; max-height: 86vh; object-fit: contain; border-radius: 8px; }
.visor p { color: #fff; text-align: center; padding-top: 8px; }
.visor__cerrar { position: fixed; top: 14px; right: 18px; width: 48px; height: 48px; border: 0; background: none; color: #fff; font-size: 40px; cursor: pointer; }
.vacio { background: var(--gris); border-radius: var(--radio); padding: 40px; text-align: center; font-size: 18px; }

/* Opiniones */
.opina { background: var(--azul-claro); padding: 44px 0; }
.opina__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 40px; }
.opina p { font-size: 19px; max-width: 700px; color: var(--tinta); }

/* Preguntas */
.faq { border-top: 1px solid var(--linea); }
.faq__item { border-bottom: 1px solid var(--linea); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 20px 0; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; flex: 0 0 34px; height: 34px; border-radius: 50%; background: var(--azul-claro); color: var(--azul-2); display: grid; place-items: center; font-size: 22px; font-weight: 500; transition: transform .3s var(--ease); }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item h3 { font-size: 20px; font-weight: 700; }
.faq__item p { padding-bottom: 22px; max-width: 760px; }

/* Contacto (portada) */
.contacto { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 72px); align-items: stretch; }
.datos { display: grid; gap: 18px; margin: 28px 0 32px; }
.datos dt { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--amarillo); }
.datos dd { font-size: 18px; color: #fff; }
.datos a { color: #fff; }
.datos--oscuro dt { color: var(--verde); }
.datos--oscuro dd, .datos--oscuro a { color: var(--tinta); }
.estado { font-size: 15px !important; color: #C9D6EE !important; }
.datos--oscuro .estado { color: var(--suave) !important; }
.estado--abierto { color: #8FE3A6 !important; font-weight: 600; }
.datos--oscuro .estado--abierto { color: var(--verde) !important; }
.mapa { position: relative; min-height: 380px; border-radius: 18px; background: var(--azul-2) repeating-linear-gradient(45deg, transparent 0 24px, rgba(255,255,255,.04) 24px 48px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; text-align: center; padding: 28px; color: #C9D6EE; overflow: hidden; }
.mapa--claro { background: var(--gris); color: var(--suave); margin-top: 28px; min-height: 300px; }
.mapa--cargado { padding: 0; }
.mapa iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Franja tests (antes del pie) */
.franja-tests { background: var(--amarillo); padding: 36px 0; }
.franja-tests__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 40px; }
.franja-tests h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; }
.franja-tests p { color: #3B3200; margin-top: 4px; }
.franja-tests .btn--amarillo { background: var(--tinta); color: #fff; box-shadow: none; }
.franja-tests .btn--amarillo:hover { background: var(--azul); color: #fff; }

/* Pie */
.pie { background: #071F48; color: #AFC0DC; font-size: 15px; }
.pie__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-block: 56px 32px; }
.pie address { font-style: normal; line-height: 1.8; margin-top: 18px; }
.pie address strong { color: #fff; }
.pie a { color: #DCE5F4; text-decoration: none; }
.pie a:hover { color: var(--amarillo); }
.logo--pie .logo__txt strong { color: #fff; }
.logo--pie .logo__txt span { color: var(--verde-l); }
.pie__nav { display: flex; flex-direction: column; gap: 8px; }
.pie__nav h3 { color: #fff; font-size: 17px; margin-bottom: 6px; }
.pie__copy { border-top: 1px solid rgba(255,255,255,.1); padding-block: 20px; font-size: 13px; }

/* Barra fija en móvil */
.barra-movil { display: none; }

/* Páginas interiores */
.phero { position: relative; background: radial-gradient(900px 400px at 90% -20%, #1D57B3 0%, transparent 60%), var(--azul); color: #DCE5F4; padding: 44px 0 70px; overflow: hidden; }
.phero h1 { color: #fff; font-weight: 800; font-size: clamp(38px, 5.4vw, 60px); max-width: 860px; }
.phero__texto { margin: 18px 0 28px; font-size: 19px; max-width: 680px; }
.migas { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; margin-bottom: 22px; color: #AFC0DC; }
.migas a { color: #fff; text-decoration: none; }
.migas a:hover { color: var(--amarillo); }
.legal .migas { color: var(--suave); }
.legal .migas a { color: var(--azul-3); }
.dos-col { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.texto h2 { font-size: clamp(26px, 3vw, 34px); margin: 34px 0 14px; }
.texto h2:first-child { margin-top: 0; }
.texto p + p { margin-top: 12px; }
.lista-check { display: grid; gap: 10px; }
.lista-check li { position: relative; padding-left: 34px; }
.lista-check li::before { content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--verde-l) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 14px no-repeat; }
.caja { position: sticky; top: 100px; background: var(--gris); border-radius: 18px; padding: 32px; display: grid; gap: 18px; border-top: 6px solid var(--amarillo); }
.caja h2 { font-size: 26px !important; }
.caja__precio { font-family: var(--titulo); font-weight: 800; font-size: 24px; color: var(--azul); }
.caja__nota { color: var(--verde); font-weight: 500; font-size: 15px; }
.aviso-legal-mini { margin-top: 18px; font-size: 14px; color: var(--suave); }
.tarjetas { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.tarjeta { background: #fff; border: 1px solid var(--linea); border-radius: var(--radio); padding: 26px; }
.tarjeta h2, .tarjeta h3 { font-size: 21px; margin-bottom: 8px; }
.cierre { background: var(--azul-claro); padding: 64px 0; text-align: center; }
.cierre__in { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.cierre h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; }
.cierre .botones { justify-content: center; margin-top: 8px; }

/* Página de tests */
.tests-hero { position: relative; background: var(--azul); color: #DCE5F4; padding: 48px 0 80px; text-align: center; overflow: hidden; }
.tests-hero__in { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.tests-hero .migas { justify-content: center; }
.tests-hero h1 { color: #fff; font-size: clamp(46px, 7vw, 80px); font-weight: 800; }
.tests-hero p { font-size: 19px; max-width: 620px; }
.tests-hero__corta { font-size: 15px !important; color: #AFC0DC; }
.tests-hero__corta strong { color: #fff; }

/* Formulario */
.contacto-pagina { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.formulario { background: var(--gris); border-radius: 18px; padding: clamp(24px, 4vw, 40px); }
.formulario h2 { margin-bottom: 18px; }
.campo { display: grid; gap: 6px; margin-bottom: 16px; }
.campo label { font-weight: 600; color: var(--tinta); font-size: 15px; }
.campo input, .campo select, .campo textarea { width: 100%; padding: 12px 14px; border: 1.5px solid #C9D3E2; border-radius: 10px; background: #fff; color: var(--tinta); min-height: 48px; }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-color: var(--azul-3); box-shadow: 0 0 0 3px rgba(29,87,179,.18); }
.campo [aria-invalid="true"] { border-color: #B42318; }
.campo__error { color: #B42318; font-size: 14px; font-weight: 500; }
.campos-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.campo--oculto { position: absolute; left: -9999px; }
.campo--check { grid-template-columns: 24px 1fr; align-items: start; column-gap: 10px; }
.campo--check input { min-height: 0; width: 22px; height: 22px; margin-top: 2px; }
.campo--check label { font-weight: 400; font-size: 14.5px; }
.campo--check .campo__error { grid-column: 2; }
.ok { background: #E6F6EC; border-left: 6px solid var(--verde-l); border-radius: 12px; padding: 24px; }
.ok h2 { color: var(--verde); margin-bottom: 8px; }

/* Legales */
.legal { padding: 48px 0 90px; }
.legal h1 { font-size: clamp(38px, 5vw, 52px); font-weight: 800; margin-bottom: 24px; }
.legal h2 { font-size: 26px; margin: 34px 0 10px; }
.legal p, .legal li { margin-bottom: 10px; }
.legal ul { list-style: disc; padding-left: 22px; }
.legal--404 .botones { margin-top: 24px; }
.legal__fecha { margin-top: 32px; font-size: 14px; color: var(--suave); }
.pendiente { background: #FFF0B8; padding: 0 4px; }

/* Animación al aparecer */
.js .revelar { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .revelar.visto { opacity: 1; transform: none; }

/* ===================== Responsive ===================== */
@media (max-width: 1100px) {
  .nav a { padding: 8px 9px; font-size: 14.5px; }
  .pasos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .hamb { display: block; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 2px; background: #fff; padding: 10px var(--pad) 18px; border-bottom: 1px solid var(--linea); box-shadow: 0 16px 30px rgba(10,47,107,.12); display: none; }
  .nav.abierto { display: flex; }
  .nav a { padding: 14px 12px; font-size: 17px; border-radius: 10px; }
  .hero__grid, .porque, .contacto, .dos-col, .contacto-pagina { grid-template-columns: minmax(0, 1fr); }
  .hero__media { max-width: 560px; }
  .accesos__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .caja { position: static; }
  .pie__grid { grid-template-columns: 1fr 1fr; }
  .pie__marca { grid-column: 1 / -1; }
  .topbar__dir { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; padding-bottom: 74px; }
  .topbar { display: none; }
  .logo__txt strong { font-size: 16px; white-space: nowrap; }
  .logo__txt span { font-size: 11px; }
  .logo__l, .logo__img { width: 38px; height: 38px; font-size: 25px; }
  .cab__tests { padding: 0 14px; font-size: 14px; min-height: 40px; }
  .cab__tests svg { display: none; }
  .cab__in { gap: 10px; }
  .hero .botones .btn { flex: 1 1 100%; }
  .tarjeta-tests { left: 12px; right: 12px; bottom: -24px; max-width: none; }
  .accesos { margin-top: -40px; }
  .accesos__grid { gap: 10px; }
  .acceso { padding: 18px 16px; }
  .acceso strong { font-size: 17px; }
  .pasos, .pasos--3, .ventajas { grid-template-columns: minmax(0, 1fr); }
  .campos-2 { grid-template-columns: 1fr; }
  .pie__grid { grid-template-columns: 1fr; }
  .btn--enorme { min-height: 60px; font-size: 19px; padding: 0 28px; }
  .barra-movil { display: grid; grid-template-columns: 1fr 1.5fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: #fff; border-top: 1px solid var(--linea); padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 24px rgba(10,47,107,.1); }
  .barra-movil a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px; border-radius: 12px; color: var(--azul); text-decoration: none; font-size: 12.5px; font-weight: 600; }
  .barra-movil svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .barra-movil__tests { background: var(--amarillo); color: var(--tinta) !important; font-size: 14px !important; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .revelar { opacity: 1; transform: none; }
}

/* Botones dentro de las cabeceras oscuras */
.phero .btn--azul { background: var(--amarillo); color: var(--tinta); }
.phero .btn--azul:hover { background: #FFE15C; color: var(--tinta); }
.phero .btn--linea { border-color: rgba(255,255,255,.6); color: #fff; }
.phero .btn--linea:hover { background: #fff; color: var(--azul); }

@media (max-width: 640px) { .galeria--alumnos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
