/* «Cabecera de página de venta» — copia exacta de la cabecera de las landings (page-curso-de-socorrista-en-getafe.php:74-91),
   del curso de instructor (la misma), de Madrid (page-curso-de-socorrista-en-madrid.php:178-203) y de la portada
   (front-page.php:197-233 y 886-1029). Las plantillas viejas dependían de su reset global (*{margin:0;padding:0}): aquí cada
   elemento lleva su propio margen y relleno y su propio box-sizing, y nada depende del marco de la página.
   La cabecera es un <section>: en las plantillas viejas heredaba «section{padding:5rem 5%}» (3,5rem en el móvil; 7rem y 5rem en la
   portada), y por eso mide 40 px más que 100vh: aquí el relleno va escrito en el propio bloque.
   Colores de la marca: #00131c (más oscuro), #002c41 (marino), #00bd9c (turquesa), #33d4b8 (turquesa claro), #007a65. */
.eafev-hero{display:block;margin:0;padding:0;font-family:inherit;font-size:16px;line-height:normal}
.eafev-hero,.eafev-hero *,.eafev-hero *::before,.eafev-hero *::after{box-sizing:border-box}
.eafev-hero__sec{min-height:100vh;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden;margin:0;padding:5rem 5%;background:#00131c}
.eafev-hero__fondo{position:absolute;inset:0;background-repeat:no-repeat;background-position:center;background-size:cover;opacity:.22}
.eafev-hero__velo{position:absolute;inset:0;background:linear-gradient(135deg,rgba(0,44,65,.96) 0%,rgba(0,19,28,.85) 60%,rgba(0,44,65,.6) 100%)}
.eafev-hero__contenido{position:relative;z-index:1;text-align:center;padding:7rem 5% 4rem;max-width:900px;margin:0 auto}
.eafev-hero .eafev-hero__etiqueta{display:inline-flex;align-items:center;gap:.5rem;margin:0 0 1.6rem;padding:.45rem 1.1rem;background:rgba(0,189,156,.12);border:1px solid rgba(0,189,156,.3);border-radius:999px;color:#33d4b8;font-size:.78rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase}
.eafev-hero .eafev-hero__titulo{margin:0 0 1.2rem;padding:0;border:0;color:#fff;font-size:clamp(2.2rem,5vw,3.6rem);font-weight:900;line-height:1.1;letter-spacing:-.02em;text-align:inherit;text-transform:none}
.eafev-hero .eafev-hero__titulo :is(em,i){font-style:normal;color:#00bd9c}
.eafev-hero .eafev-hero__sub{max-width:640px;margin:0 auto 2.5rem;padding:0;color:rgba(255,255,255,.68);font-size:clamp(1rem,2vw,1.2rem);line-height:1.7}
.eafev-hero .eafev-hero__sub a{color:inherit;text-decoration:underline}
.eafev-hero .eafev-hero__botones{display:flex;gap:1rem;justify-content:center;flex-wrap:wrap;margin:0 0 3.5rem;padding:0}
.eafev-hero .eafev-hero__boton{display:inline-block;margin:0;text-decoration:none;font-size:1rem;border-radius:10px;transition:all .22s ease;cursor:pointer}
.eafev-hero .eafev-hero__boton--principal{padding:.9rem 2.2rem;background:#00bd9c;color:#00131c;font-weight:800;border:0}
.eafev-hero .eafev-hero__boton--principal:hover{background:#33d4b8;color:#00131c;transform:translateY(-2px);box-shadow:0 8px 28px rgba(0,189,156,.4)}
.eafev-hero .eafev-hero__boton--secundario{padding:.9rem 2.2rem;background:rgba(255,255,255,.08);color:#fff;font-weight:600;border:1.5px solid rgba(255,255,255,.22)}
.eafev-hero .eafev-hero__boton--secundario:hover{background:rgba(255,255,255,.15);color:#fff;border-color:rgba(255,255,255,.5)}
.eafev-hero .eafev-hero__boton:focus-visible{outline:2px solid #33d4b8;outline-offset:3px}
.eafev-hero .eafev-hero__cifras{display:flex;gap:1.5rem;justify-content:center;flex-wrap:wrap;margin:0;padding:0}
.eafev-hero .eafev-hero__cifra{margin:0;padding:1.1rem 1.8rem;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.1);border-radius:14px;text-align:center;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.eafev-hero .eafev-hero__valor{display:block;margin:0;padding:0;color:#00bd9c;font-size:1.6rem;font-weight:900;line-height:1}
.eafev-hero .eafev-hero__rotulo{display:block;margin:.3rem 0 0;padding:0;color:rgba(255,255,255,.55);font-size:.75rem;text-transform:uppercase;letter-spacing:.08em}
.eafev-hero .eafev-hero__desde{font-size:.5em;font-weight:700;letter-spacing:.04em;text-transform:uppercase;opacity:.85}
.eafev-hero .eafev-hero__ola{display:block;width:100%;margin:0 0 -2px;padding:0;line-height:0}
@media (max-width:640px){
	.eafev-hero__sec{padding:3.5rem 5%}
	.eafev-hero .eafev-hero__cifras{flex-direction:column;align-items:center}
}

/* —— Madrid: rejilla de líneas, titular con degradado y barra de 4 cifras pegadas —— */
.eafev-hero--madrid .eafev-hero__fondo{opacity:.18}
.eafev-hero--madrid .eafev-hero__velo{background:linear-gradient(135deg,rgba(0,19,28,.97) 0%,rgba(0,44,65,.88) 50%,rgba(0,19,28,.95) 100%)}
.eafev-hero__rejilla{position:absolute;inset:0;background-image:linear-gradient(rgba(0,189,156,.04) 1px,transparent 1px),linear-gradient(90deg,rgba(0,189,156,.04) 1px,transparent 1px);background-size:60px 60px;pointer-events:none}
.eafev-hero--madrid .eafev-hero__contenido{padding:8rem 5% 5rem;max-width:960px}
.eafev-hero--madrid .eafev-hero__etiqueta{margin-bottom:1.8rem;padding:.45rem 1.2rem;background:rgba(0,189,156,.1);border-color:rgba(0,189,156,.28);font-size:.75rem;letter-spacing:.14em}
.eafev-hero--madrid .eafev-hero__titulo{margin-bottom:1.4rem;font-size:clamp(2.4rem,5.5vw,4rem);line-height:1.08;letter-spacing:-.03em}
.eafev-hero--madrid .eafev-hero__titulo :is(em,i){color:inherit;background:linear-gradient(135deg,#00bd9c 0%,#33d4b8 100%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}
.eafev-hero--madrid .eafev-hero__etiqueta .eafev-hero__icono{width:11px;height:11px}
.eafev-hero--madrid .eafev-hero__sub{max-width:660px;margin-bottom:3rem;color:rgba(255,255,255,.62);line-height:1.75}
.eafev-hero--madrid .eafev-hero__botones{margin-bottom:4rem}
.eafev-hero--madrid .eafev-hero__boton--principal{padding:.95rem 2.4rem}
.eafev-hero--madrid .eafev-hero__boton--principal:hover{box-shadow:0 10px 32px rgba(0,189,156,.4)}
.eafev-hero--madrid .eafev-hero__boton--secundario{padding:.95rem 2.4rem;background:rgba(255,255,255,.07);border-color:rgba(255,255,255,.2)}
.eafev-hero--madrid .eafev-hero__boton--secundario:hover{background:rgba(255,255,255,.13);border-color:rgba(255,255,255,.38)}
.eafev-hero--madrid .eafev-hero__cifras{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;justify-content:normal;flex-wrap:nowrap;max-width:780px;margin:0 auto;background:rgba(0,189,156,.12);border:1px solid rgba(0,189,156,.18);border-radius:18px;overflow:hidden}
.eafev-hero--madrid .eafev-hero__cifras--n1{grid-template-columns:1fr}
.eafev-hero--madrid .eafev-hero__cifras--n2{grid-template-columns:repeat(2,1fr)}
.eafev-hero--madrid .eafev-hero__cifras--n3{grid-template-columns:repeat(3,1fr)}
.eafev-hero--madrid .eafev-hero__cifra{padding:1.4rem 1rem;background:rgba(255,255,255,.04);border:0;border-radius:0;-webkit-backdrop-filter:none;backdrop-filter:none;transition:background .2s}
.eafev-hero--madrid .eafev-hero__cifra:hover{background:rgba(0,189,156,.08)}
.eafev-hero--madrid .eafev-hero__valor{font-size:1.9rem;letter-spacing:-.03em}
.eafev-hero--madrid .eafev-hero__rotulo{margin-top:.35rem;color:rgba(255,255,255,.48);font-size:.72rem;letter-spacing:.1em}
/* «259,99€» es más ancho que las otras cifras: en el móvil no cabía en su celda. */
.eafev-hero--madrid .eafev-hero__valor--precio{font-size:clamp(1.45rem,5.2vw,1.9rem)}
@media (max-width:960px){
	.eafev-hero--madrid .eafev-hero__cifras:not(.eafev-hero__cifras--n1):not(.eafev-hero__cifras--n3){grid-template-columns:repeat(2,1fr)}
	.eafev-hero--madrid .eafev-hero__cifras--n4{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:640px){
	.eafev-hero--madrid .eafev-hero__cifras{flex-direction:initial;align-items:initial}
}

/* —— Portada: cabecera clara con polaroids, titular con palabra que rota y ola doble —— */
.eafev-hero--portada .eafev-hero__sec{align-items:flex-end;justify-content:flex-start;padding:7rem 5%;background:#f0f9f7}
.eafev-hero--portada .eafev-hero__contenido{z-index:3;display:flex;flex-direction:column;align-items:center;width:100%;max-width:none;margin:0;padding:0 5% 90px}
.eafev-hero--portada .eafev-hero__etiqueta{margin-bottom:1.6rem;padding:.45rem 1.1rem;background:#fff;border:1px solid rgba(0,44,65,.13);border-radius:50px;color:#3f6f66;font-size:.78rem;font-weight:600;letter-spacing:.02em;text-transform:none;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);animation:eafev-hero-sube .8s .05s ease both}
.eafev-hero--portada .eafev-hero__etiqueta .eafev-hero__icono{flex-shrink:0;color:#007a65}
.eafev-hero--portada .eafev-hero__titulo{max-width:700px;margin-bottom:1.4rem;color:#0d2c25;font-size:clamp(2.6rem,5.5vw,4.4rem);line-height:1.08;letter-spacing:-.02em;animation:eafev-hero-sube .8s .15s ease both}
.eafev-hero .eafev-hero__palabras{display:block;position:relative;height:1.15em;margin-top:.05em;overflow:hidden;white-space:nowrap}
.eafev-hero .eafev-hero__palabra{position:absolute;left:0;right:0;text-align:center;color:#00806b;font-weight:900;line-height:1.15;opacity:0;transform:translateY(110%);transition:transform .6s cubic-bezier(.4,0,.2,1),opacity .5s ease;pointer-events:none}
.eafev-hero .eafev-hero__palabra.is-activa{opacity:1;transform:translateY(0)}
.eafev-hero .eafev-hero__palabra.is-sale{opacity:0;transform:translateY(-110%)}
/* sin JavaScript, la primera palabra se ve */
.eafev-hero .eafev-hero__palabras:not(.is-lista) .eafev-hero__palabra:first-child{opacity:1;transform:none}
.eafev-hero--portada .eafev-hero__sub{max-width:540px;margin:0 0 2.2rem;color:#3f6f66;font-size:1.05rem;line-height:1.75;animation:eafev-hero-sube .8s .35s ease both}
.eafev-hero--portada .eafev-hero__botones{flex-wrap:wrap;gap:.9rem;justify-content:flex-start;margin:0;animation:eafev-hero-sube .8s .4s ease both}
.eafev-hero--portada .eafev-hero__boton{display:inline-flex;align-items:center;gap:.55rem;padding:1rem 2.2rem;font-size:.97rem;transition:all .35s cubic-bezier(.4,0,.2,1)}
.eafev-hero--portada .eafev-hero__boton--principal{box-shadow:0 4px 28px rgba(0,189,156,.45)}
.eafev-hero--portada .eafev-hero__boton--principal:hover{transform:translateY(-3px);box-shadow:0 10px 36px rgba(0,189,156,.6)}
.eafev-hero--portada .eafev-hero__boton--secundario{background:rgba(255,255,255,.6);color:#002c41;border-color:#007a65}
.eafev-hero--portada .eafev-hero__boton--secundario:hover{background:#007a65;color:#fff;border-color:#007a65}
.eafev-hero--portada .eafev-hero__ola--doble{position:absolute;bottom:-1px;left:0;right:0;z-index:2;margin:0;line-height:normal;pointer-events:none}
.eafev-hero--portada .eafev-hero__ola--doble svg{display:block;width:100%}
.eafev-hero__polaroid{position:absolute;z-index:2;padding:10px 10px 0;background:#fdf8ef;border-radius:1px;box-shadow:0 14px 45px rgba(0,0,0,.55),inset 0 0 0 1px rgba(0,0,0,.08)}
.eafev-hero .eafev-hero__polaroid img{display:block;width:190px;height:155px;max-width:none;margin:0;padding:0;border:0;border-radius:0;object-fit:cover;filter:contrast(1.04) saturate(.95)}
.eafev-hero__polaroid-pie{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-top:6px;padding:9px 5px 13px;border-top:1px solid rgba(180,160,130,.18)}
.eafev-hero__polaroid-texto{color:#5a4a3a;font-size:.64rem;font-weight:600;font-style:italic;letter-spacing:.01em;white-space:nowrap}
.eafev-hero__polaroid-sello{display:inline-block;padding:.1rem .38rem .08rem;color:rgba(0,150,120,.7);font-size:.5rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase;border:1.5px solid rgba(0,150,120,.3);border-radius:2px;transform:rotate(1deg);opacity:.85}
.eafev-hero__polaroid--1{top:14%;left:8%;transform:rotate(-7deg);animation:eafev-hero-flota 6s ease-in-out infinite}
.eafev-hero__polaroid--2{top:10%;right:8%;transform:rotate(5deg);animation:eafev-hero-flota 7s ease-in-out infinite reverse}
.eafev-hero__polaroid--3{bottom:20%;left:7%;transform:rotate(6deg);animation:eafev-hero-flota 8s ease-in-out infinite .5s}
.eafev-hero__polaroid--4{bottom:18%;right:7%;transform:rotate(-5deg);animation:eafev-hero-flota 7s ease-in-out infinite reverse .8s}
@keyframes eafev-hero-flota{0%,100%{margin-top:0}50%{margin-top:-12px}}
@keyframes eafev-hero-sube{from{opacity:0;transform:translateY(28px)}to{opacity:1;transform:translateY(0)}}
@media (max-width:960px){
	.eafev-hero__polaroid{display:none}
}
@media (min-width:1400px){
	.eafev-hero--portada .eafev-hero__sec{align-items:center}
	.eafev-hero--portada .eafev-hero__titulo{font-size:clamp(4.4rem,4.5vw,6rem)}
	.eafev-hero--portada .eafev-hero__sub{max-width:620px;font-size:1.2rem}
	.eafev-hero--portada .eafev-hero__etiqueta{padding:.55rem 1.4rem;font-size:.9rem}
	.eafev-hero--portada .eafev-hero__boton{padding:1.1rem 2.5rem;font-size:1.05rem}
	.eafev-hero--portada .eafev-hero__contenido{padding:90px 5% 60px}
	.eafev-hero .eafev-hero__polaroid img{width:240px;height:195px}
	.eafev-hero__polaroid--1{left:max(4%,calc(50% - 720px))}
	.eafev-hero__polaroid--2{right:max(4%,calc(50% - 720px))}
	.eafev-hero__polaroid--3{left:max(3%,calc(50% - 740px))}
	.eafev-hero__polaroid--4{right:max(3%,calc(50% - 740px))}
}
@media (min-width:1800px){
	.eafev-hero--portada .eafev-hero__titulo{font-size:clamp(5rem,4vw,7rem)}
	.eafev-hero--portada .eafev-hero__sub{max-width:680px;font-size:1.35rem}
	.eafev-hero .eafev-hero__polaroid img{width:290px;height:235px}
}
@media (max-width:640px){
	.eafev-hero--portada .eafev-hero__sec{align-items:flex-start;min-height:82vh;min-height:82svh;padding:5rem 5%}
	.eafev-hero--portada .eafev-hero__contenido{z-index:2;justify-content:flex-start;padding:45px 6% 40px}
	.eafev-hero--portada .eafev-hero__etiqueta{max-width:19em;margin-bottom:1.3rem;padding:.4rem .9rem;font-size:.7rem;line-height:1.4;text-align:center;white-space:normal}
	.eafev-hero--portada .eafev-hero__titulo{font-size:2.3rem;line-height:1.05;letter-spacing:-.03em;margin-bottom:1.1rem}
	.eafev-hero--portada .eafev-hero__palabras{height:1.15em}
	.eafev-hero--portada .eafev-hero__palabra{font-size:.85em}
	.eafev-hero--portada .eafev-hero__sub{max-width:34ch;margin-bottom:1.8rem;font-size:.95rem;line-height:1.6}
	.eafev-hero--portada .eafev-hero__botones{flex-direction:column;gap:.6rem;width:100%;max-width:400px}
	.eafev-hero--portada .eafev-hero__boton{justify-content:center;width:100%}
	.eafev-hero--portada .eafev-hero__boton--secundario{padding:.75rem 1.2rem;font-size:.9rem;font-weight:700}
}
@media (prefers-reduced-motion:reduce){
	.eafev-hero *,.eafev-hero *::before,.eafev-hero *::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.15ms!important}
	.eafev-hero__polaroid{animation:none!important}
}
