/* PORTADA CON MAR EN MOVIMIENTO — opcion 1 «Cristal» (dueno, 18/10/2026: video 2 de 6 s con texto
   y logo encima). Sustituye la escena 3D del hero. Vidrio blanco esmerilado como el portal B2B:
   barra y tarjeta de cristal con texto marino; el mar y las sandalias se ven a traves.
   Clases con prefijo pp- para no chocar con las reglas heredadas de la portada.
   Movil primero; escritorio desde 900 px. Origen y opciones: docs/hero-playa-2026-10-18. */

@font-face { font-family: Geist; src: url(/fonts/GeistVF.woff) format("woff"); font-weight: 100 900; font-display: swap; }

.portada-playa {
  --pp-marino: #153050;          /* color del logo */
  --pp-tinta: #13263D;
  --pp-tinta-suave: #2C3E53;
  --pp-turquesa: #12A6B5;        /* acento tomado del mar */
  --pp-cielo: #5CB6EF;           /* cielo del primer cuadro, arriba */
  --pp-vidrio: rgba(255, 255, 255, .66);
  --pp-vidrio-alto: rgba(255, 255, 255, .74);
  --pp-desenfoque: blur(22px) saturate(170%);
  --pp-anillo: inset 0 0 0 1px rgba(255, 255, 255, .72), inset 0 1px 0 rgba(255, 255, 255, .95);
  --pp-sombra: 0 30px 70px -32px rgba(8, 28, 52, .5), 0 2px 8px rgba(8, 28, 52, .08);
  --pp-margen: clamp(16px, 4vw, 64px);
  --pp-fuente: Geist, Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --pp-curva: cubic-bezier(.22, 1, .36, 1);
}
.portada-playa :focus-visible { outline: 3px solid var(--pp-turquesa); outline-offset: 3px; }

/* ---------- Cabecera de vidrio ---------- */
.pp-cabecera {
  position: absolute; z-index: 40; top: 12px; left: 12px; right: 12px; display: flex; align-items: center; gap: 16px;
  min-height: 60px; padding: 8px 8px 8px 20px; border-radius: 999px; font-family: var(--pp-fuente);
  background: var(--pp-vidrio); -webkit-backdrop-filter: var(--pp-desenfoque); backdrop-filter: var(--pp-desenfoque);
  box-shadow: var(--pp-anillo), var(--pp-sombra);
}
.pp-marca { display: block; border-radius: 8px; }
.pp-marca img { display: block; height: 24px; width: auto; }
.pp-menu { display: none; }
.pp-menu a { color: var(--pp-tinta); font: 500 15px/1 var(--pp-fuente); text-decoration: none; padding: 12px 0; white-space: nowrap; border-radius: 6px; }
.pp-menu a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1.5px; }
.pp-cabecera-acciones { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.pp-solo-escritorio { display: none !important; }
.pp-icono {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; text-decoration: none;
  color: var(--pp-marino); background: rgba(255, 255, 255, .55); box-shadow: inset 0 0 0 1px rgba(21, 48, 80, .14);
  transition: background-color .25s var(--pp-curva);
}
.pp-icono:hover { background: #fff; }
.pp-icono svg { width: 20px; height: 20px; }

/* ---------- Botones ---------- */
.pp-boton {
  --alto: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--alto); padding: 0 22px; border-radius: 999px; font: 600 15px/1 var(--pp-fuente);
  letter-spacing: -.005em; text-decoration: none; white-space: nowrap;
  transition: transform .25s var(--pp-curva), background-color .25s var(--pp-curva), box-shadow .25s var(--pp-curva);
}
.pp-boton:hover { transform: translateY(-1px); }
.pp-boton:active { transform: scale(.98); }
.pp-boton svg { width: 18px; height: 18px; flex: none; }
.pp-boton-chico { --alto: 44px; padding: 0 18px; font-size: 14px; }
.pp-principal { background: var(--pp-marino); color: #fff; box-shadow: 0 12px 26px -14px rgba(21, 48, 80, .8); }
.pp-principal:hover { background: #0E2540; }
.pp-secundario {
  background: rgba(255, 255, 255, .6); color: var(--pp-marino); box-shadow: inset 0 0 0 1px rgba(21, 48, 80, .16);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.pp-secundario:hover { background: rgba(255, 255, 255, .85); }

/* ---------- Hero: video y tarjeta ---------- */
.pp-hero {
  position: relative; isolation: isolate; min-height: 100vh; min-height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; padding-bottom: 88px; font-family: var(--pp-fuente); color: var(--pp-tinta);
  background: linear-gradient(180deg, #EAF6FD 0%, #CBE7F8 20%, #8ECBF1 36%, var(--pp-cielo) 46%, var(--pp-cielo) 100%);
}
/* hero-automatico.css (escena 3D retirada) fijaba la altura de #hero-stage; aqui manda el contenido. */
#hero-stage.pp-hero { height: auto; min-height: 100vh; min-height: 100svh; overflow: hidden; }
.pp-medio { position: absolute; left: 0; right: 0; bottom: 0; height: 56%; z-index: -1; background: url(/portada-playa/playa-poster.webp) 58% 50% / cover no-repeat; }
/* Union con el cielo: velo del mismo azul encima del borde superior del video (sin mascara,
   que en algunos moviles hace que el navegador trate el video como no visible y lo pause). */
.pp-medio::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 16%; background: linear-gradient(180deg, var(--pp-cielo), rgba(92, 182, 239, 0)); pointer-events: none; }
.pp-video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 58% 50%; }
.pp-video[hidden], .pp-pausa[hidden] { display: none; }

.pp-tarjeta {
  position: relative; z-index: 1; margin: 84px 12px 0; padding: 22px 20px; border-radius: 26px; max-width: 580px;
  background: var(--pp-vidrio-alto); -webkit-backdrop-filter: blur(26px) saturate(165%); backdrop-filter: blur(26px) saturate(165%);
  box-shadow: var(--pp-anillo), var(--pp-sombra);
}
.pp-kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0; color: var(--pp-marino); font: 600 12px/1.2 var(--pp-fuente); letter-spacing: .16em; text-transform: uppercase; }
.pp-kicker-punto { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--pp-turquesa); box-shadow: 0 0 0 4px rgba(18, 166, 181, .24); }
.pp-hero h1 {
  width: auto; margin: 14px 0 0; color: var(--pp-marino); font-family: var(--pp-fuente); font-weight: 760;
  font-size: clamp(36px, 10vw, 44px); line-height: .96; letter-spacing: -.042em; text-wrap: balance;
}
.pp-texto { margin: 16px 0 0; color: var(--pp-tinta-suave); font-size: 15px; line-height: 1.5; max-width: 38ch; text-wrap: pretty; }
.pp-acciones { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.pp-acciones .pp-boton { flex: 1 1 auto; padding: 0 16px; font-size: 14px; gap: 8px; }
.pp-capsulas { display: none; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 20px 0 0; list-style: none; border-top: 1px solid rgba(21, 48, 80, .1); }
.pp-capsulas li {
  display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 12px; border-radius: 999px; white-space: nowrap;
  color: var(--pp-tinta); font: 500 13px/1 var(--pp-fuente); background: rgba(255, 255, 255, .62); box-shadow: inset 0 0 0 1px rgba(21, 48, 80, .1);
}
.pp-capsulas li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; }

/* ---------- Controles inferiores (el lado derecho queda libre para Maxi) ---------- */
.pp-bajar, .pp-pausa {
  position: absolute; z-index: 2; bottom: max(20px, env(safe-area-inset-bottom)); color: var(--pp-marino);
  background: var(--pp-vidrio); -webkit-backdrop-filter: var(--pp-desenfoque); backdrop-filter: var(--pp-desenfoque);
  box-shadow: var(--pp-anillo), 0 14px 30px -18px rgba(8, 28, 52, .55);
}
.pp-bajar {
  left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border-radius: 999px; font: 600 14px/1 var(--pp-fuente); text-decoration: none; white-space: nowrap;
}
.pp-bajar span { display: inline-block; animation: pp-bajar 2.4s var(--pp-curva) infinite; }
.pp-pausa { left: var(--pp-margen); width: 44px; height: 44px; border: 0; border-radius: 50%; padding: 0; display: grid; place-items: center; cursor: pointer; }
.pp-pausa svg { width: 16px; height: 16px; }
.pp-pausa .pp-icono-reproducir, .pp-pausa[aria-pressed="true"] .pp-icono-pausa { display: none; }
.pp-pausa[aria-pressed="true"] .pp-icono-reproducir { display: block; }

@media (min-width: 600px) { .pp-capsulas { display: flex; } }

/* Escritorio: video a pantalla completa y tarjeta que termina antes de la sandalia naranja del
   frente. Con el video en cover a 88 %, esa sandalia empieza en min(40vw, 88vw - 85.3vh). */
@media (min-width: 900px) {
  .pp-cabecera { top: 20px; left: 24px; right: 24px; min-height: 64px; padding: 8px 8px 8px 26px; }
  .pp-marca img { height: 28px; }
  .pp-menu { display: flex; gap: 30px; position: absolute; left: 50%; transform: translateX(-50%); }
  .pp-solo-escritorio { display: inline-flex !important; }
  .pp-hero { background: var(--pp-cielo); }
  .pp-medio { top: 0; height: auto; background-position: 88% 50%; }
  .pp-medio::after { display: none; }
  .pp-video { object-position: 88% 50%; }
  .pp-tarjeta {
    --ancho: clamp(380px, min(40vw, 88vw - 85.3vh) - var(--pp-margen) - 12px, 580px);
    margin: clamp(120px, 16vh, 168px) 0 0 var(--pp-margen); width: var(--ancho);
    padding: clamp(30px, calc(var(--ancho) * .07), 40px) clamp(28px, calc(var(--ancho) * .07), 40px) 30px; border-radius: 30px;
  }
  .pp-hero h1 { font-size: clamp(44px, calc((var(--ancho) - 76px) / 5.5), 78px); }
  .pp-texto { font-size: clamp(15px, 1.25vw, 18px); }
  .pp-acciones { gap: 10px; margin-top: 24px; }
  .pp-acciones .pp-boton { flex: 0 0 auto; padding: 0 22px; font-size: 15px; gap: 10px; }
}

/* ---------- Entrada del texto ---------- */
@keyframes pp-subir { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pp-bajar { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }
@media (prefers-reduced-motion: no-preference) {
  .pp-tarjeta > * { animation: pp-subir .9s var(--pp-curva) both; }
  .pp-tarjeta > :nth-child(2) { animation-delay: .1s; }
  .pp-tarjeta > :nth-child(3) { animation-delay: .22s; }
  .pp-tarjeta > :nth-child(4) { animation-delay: .34s; }
  .pp-tarjeta > :nth-child(5) { animation-delay: .46s; }
}
@media (prefers-reduced-motion: reduce) {
  .pp-bajar span { animation: none; }
  .pp-boton, .pp-icono { transition: none; }
}

/* ---------- Escena 3D anterior como ultima seccion (dueno, 19/10/2026) ----------
   La sandalia de particulas con el logo vive en /escena-3d.html y se carga en un iframe al
   acercarse el visitante; su alto cubre el minimo del hero anterior para que no haya scroll interno. */
.pp-escena { margin: 0; padding: 0; background: #01040a; }
.pp-escena iframe { display: block; width: 100%; height: 100vh; height: 100svh; min-height: 700px; max-height: 1000px; border: 0; }
@media (max-width: 700px) { .pp-escena iframe { min-height: 740px; } }
