/* Portada: tarjeta «Suscríbete» de primera visita (SUSC-01, 20-nov-2026; DISEÑO APROBADO por el PO el 20-nov). Todo va bajo `.hpv` para no tocar nada del resto de la página.
 * Escritorio: ventana pequeña centrada sobre un fondo oscurecido (clic fuera = cerrar). Móvil (≤ 640 px): tarjeta abajo, SIN oscurecer la página y sin bloquearla
 * (Google puede bajar las páginas con ventanas que tapan el contenido en móvil). Colores y tipografía de la portada: dorado #c5a059, Outfit, botones tipo píldora. */
.hpv { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; background: rgba(5, 7, 11, .62); font-family: Outfit, sans-serif; color: #e8eefc; }
.hpv *, .hpv *::before, .hpv *::after { box-sizing: border-box; }
.hpv [hidden] { display: none !important; }
.hpv-card { position: relative; width: min(420px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow-y: auto; padding: 22px 24px 12px; border-radius: 18px; background: rgba(12, 15, 24, .97); border: 1px solid rgba(197, 160, 89, .45); box-shadow: 0 18px 50px rgba(0, 0, 0, .55); outline: none; }
.hpv-x { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); background: transparent; color: #e8eefc; font-size: 22px; line-height: 1; cursor: pointer; }
.hpv-brand { display: flex; align-items: center; gap: 6px; margin: 0 52px 12px 0; padding-bottom: 12px; border-bottom: 1px solid rgba(197, 160, 89, .28); }
.hpv-brand img { display: block; max-width: none; }
.hpv-fenix { width: 36px; height: 36px; flex: none; }
.hpv-letras { width: 150px; height: 36px; overflow: hidden; flex: none; }
.hpv-letras img { width: 150px; height: 150px; margin-top: -57px; }   /* se recorta el espacio transparente de la imagen oficial, igual que en el encabezado */
.hpv h2 { margin: 0 52px 6px 0; font: 800 24px/1.1 Outfit, sans-serif; text-transform: uppercase; letter-spacing: .6px; color: #fff; }
.hpv-sub { margin: 0 0 14px; font-size: 14px; line-height: 1.45; color: #b4bccb; }
.hpv input[type="text"], .hpv input[type="date"], .hpv select { width: 100%; min-height: 46px; padding: 0 14px; margin: 0 0 10px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .06); color: #fff; font: 16px Outfit, sans-serif; color-scheme: dark; }
.hpv select option { color: #111; background: #fff; }
.hpv input:focus-visible, .hpv select:focus-visible, .hpv button:focus-visible, .hpv a:focus-visible { outline: 3px solid #8fb4ff; outline-offset: 2px; }
.hpv-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }   /* campo trampa para robots: una persona no lo ve */
.hpv-sw { display: flex; flex-direction: row-reverse; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 14px; line-height: 1.35; color: #e8eefc; cursor: pointer; }
.hpv-sw span { flex: 1; }
.hpv-sw input { appearance: none; -webkit-appearance: none; position: relative; flex: none; width: 48px; height: 28px; margin: 0; border-radius: 28px; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .25); cursor: pointer; transition: background .2s; }
.hpv-sw input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s; }
.hpv-sw input:checked { background: #c5a059; border-color: #c5a059; }
.hpv-sw input:checked::after { transform: translateX(20px); }
.hpv-fecha { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 4px; }
.hpv-err { margin: 4px 0 8px; font-size: 13px; line-height: 1.35; color: #ff8a8a; }
.hpv-go { width: 100%; min-height: 46px; margin-top: 4px; border-radius: 50px; border: 1px solid #c5a059; background: linear-gradient(135deg, rgba(197, 160, 89, .28), rgba(197, 160, 89, .12)); color: #c5a059; font: 800 15px Arial, sans-serif; letter-spacing: 1px; text-transform: uppercase; cursor: pointer; }
.hpv-go[disabled] { opacity: .6; cursor: default; }
.hpv-legal { margin: 8px 0 0; font-size: 11.5px; line-height: 1.4; color: #8e97a8; text-align: center; }
.hpv-legal a { color: inherit; text-decoration: underline; }
.hpv-no { display: block; margin: 6px auto 0; min-height: 44px; padding: 0 16px; background: none; border: 0; color: #b4bccb; font: 14px Outfit, sans-serif; text-decoration: underline; cursor: pointer; }
.hpv-ok p, .hpv-accion p { margin: 0 0 12px; font-size: 14px; line-height: 1.45; color: #b4bccb; }
.hpv-toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 99999; display: flex; align-items: center; gap: 12px; max-width: calc(100vw - 32px); padding: 12px 14px 12px 18px; border-radius: 14px; background: rgba(12, 15, 24, .97); border: 1px solid rgba(197, 160, 89, .45); box-shadow: 0 12px 34px rgba(0, 0, 0, .5); font: 14px/1.4 Outfit, sans-serif; color: #e8eefc; }
.hpv-toast button { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); background: transparent; color: #e8eefc; font-size: 18px; cursor: pointer; }
@media (max-width: 640px) {
  .hpv { background: transparent; align-items: flex-end; pointer-events: none; }
  .hpv-card { pointer-events: auto; width: calc(100vw - 32px); margin: 0 0 12px; padding: 12px 14px 2px; border-radius: 16px; }
  .hpv-x { top: 4px; right: 4px; }
  .hpv-brand { margin: 0 48px 6px 0; padding-bottom: 6px; }
  .hpv-fenix { width: 28px; height: 28px; }
  .hpv-letras { width: 116px; height: 28px; }
  .hpv-letras img { width: 116px; height: 116px; margin-top: -44px; }
  .hpv h2 { font-size: 18px; margin-bottom: 8px; }
  /* la marca va JUNTO al título (decisión del PO, 20-nov: «bajar más»): una sola fila; si no cabe, el título baja a la línea siguiente */
  .hpv-cab { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; margin: 0 44px 8px 0; padding-bottom: 6px; border-bottom: 1px solid rgba(197, 160, 89, .28); }
  .hpv-cab .hpv-brand { margin: 0; padding: 0; border: 0; }
  .hpv-cab h2 { margin: 0; font-size: 15px; letter-spacing: .3px; }
  .hpv-sub { display: none; }   /* decisión del PO (20-nov): en móvil el subtítulo se oculta para que la tarjeta no tape tanta pantalla; el título y los interruptores ya lo explican */
  .hpv input[type="text"], .hpv input[type="date"], .hpv select { min-height: 42px; margin-bottom: 6px; font-size: 16px; }
  .hpv-sw { font-size: 13px; padding: 6px 0; }
  .hpv-err { margin: 2px 0 6px; }
  .hpv-go { min-height: 44px; margin-top: 2px; }
  .hpv-legal { font-size: 11px; line-height: 1.3; margin-top: 6px; }
  .hpv-no { margin-top: 0; min-height: 40px; }
}
@media (prefers-reduced-motion: reduce) { .hpv-sw input, .hpv-sw input::after { transition: none; } }
