/* =========================================================
   Presentación animada "¿Por qué un seguro de decesos?"
   (personaje + voz + subtítulos + música generada)
   ========================================================= */


.pv {
  max-width: 1080px; margin: 0 auto; padding: 10px;
  background: #fff; border-radius: 28px; box-shadow: var(--shadow-lg);
}

/* ---------- Pantalla ---------- */
.pv__screen {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; isolation: isolate;
  border-radius: 20px; color: #fff; container-type: inline-size;
  background: radial-gradient(120% 120% at 85% 100%, #2a3aa8 0%, #0a1a8a 38%, #000d6e 72%);
}
.pv__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.pv__blob { position: absolute; border-radius: 50%; filter: blur(50px); opacity: .45; animation: pvFloat 16s ease-in-out infinite alternate; }
.pv__blob--1 { width: 40%; aspect-ratio: 1; left: -8%; top: -18%; background: #3d55ff; }
.pv__blob--2 { width: 32%; aspect-ratio: 1; right: 18%; bottom: -20%; background: #6a7bff; animation-duration: 20s; }
.pv__blob--3 { width: 22%; aspect-ratio: 1; left: 38%; top: 30%; background: #1a2bb8; animation-duration: 12s; }
.pv__dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1.2px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(120deg, #000 10%, transparent 70%);
  mask-image: linear-gradient(120deg, #000 10%, transparent 70%);
}
@keyframes pvFloat { to { transform: translate(12%, 10%) scale(1.15); } }

/* ---------- Escenas ---------- */
.pv__stage { position: absolute; left: 0; top: 0; bottom: 17%; width: 64%; }
.pv-scene {
  position: absolute; inset: 0; padding: 5% 3% 0 7%;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  opacity: 0; visibility: hidden; transition: opacity .5s, visibility .5s;
}
.pv-scene.is-active { opacity: 1; visibility: visible; }
.pv-in { opacity: 0; }
.pv-scene.is-active .pv-in { animation: pvIn .8s var(--ease) both; animation-delay: calc(var(--i, 0) * .16s + .15s); }
@keyframes pvIn {
  from { opacity: 0; transform: translateY(26px) scale(.97); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: none; }
}

.pv-chip {
  display: inline-flex; align-items: center; gap: .5em; padding: .45em 1em; border-radius: 99px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18);
  font-size: clamp(10px, 1.45cqw, 14px); font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
}
.pv-chip .icon { width: 1.3em; height: 1.3em; }
.pv-title {
  color: #fff; font-size: clamp(20px, 4.4cqw, 50px); font-weight: 600; line-height: 1.1;
  letter-spacing: -.02em; margin: .45em 0 .35em;
}
.pv-title--sm { font-size: clamp(17px, 3.2cqw, 36px); margin-top: .6em; }
.pv-title em, .pv-big {
  font-style: normal;
  background: linear-gradient(90deg, #fff, #aeb9ff); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pv-text { margin: 0; font-size: clamp(12px, 1.9cqw, 19px); line-height: 1.5; color: rgba(255, 255, 255, .78); max-width: 30em; }
.pv-big { font-size: clamp(38px, 9.5cqw, 112px); font-weight: 700; line-height: 1; letter-spacing: -.03em; margin: .25em 0 .12em; white-space: nowrap; }

.pv-tags { display: flex; flex-wrap: wrap; gap: .6em; margin-top: 1.3em; font-size: clamp(10px, 1.5cqw, 15px); }
.pv-tag {
  display: inline-flex; align-items: center; gap: .5em; padding: .5em .95em; border-radius: 12px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .15); backdrop-filter: blur(6px);
}
.pv-tag .icon { width: 1.3em; height: 1.3em; color: #aeb9ff; }

/* Motivo 2: flujo bloqueado → pago directo */
.pv-flow { display: flex; align-items: center; gap: 3%; margin-top: 1.4em; width: 100%; font-size: clamp(10px, 1.6cqw, 16px); }
.pv-box {
  flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: .3em; padding: 1.2em 1.3em; border-radius: 18px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
}
.pv-box strong { font-size: 1.25em; font-weight: 600; }
.pv-box small { font-size: .9em; color: rgba(255, 255, 255, .7); line-height: 1.4; }
.pv-box__ico { display: grid; place-items: center; width: 2.8em; height: 2.8em; border-radius: 12px; margin-bottom: .4em; }
.pv-box__ico .icon { width: 1.5em; height: 1.5em; }
.pv-box--bad .pv-box__ico { background: rgba(255, 120, 120, .18); color: #ffb3b3; }
.pv-box--good { background: #fff; color: var(--ink); }
.pv-box--good small { color: var(--text); }
.pv-box--good .pv-box__ico { background: var(--primary); color: #fff; }
.pv-scene.is-active .pv-box--bad { animation-name: pvIn, pvShake; animation-duration: .8s, .5s; animation-delay: .31s, 1.3s; }
.pv-flow__arrow .icon { width: 2em; height: 2em; color: #aeb9ff; }
@keyframes pvShake { 25% { transform: translateX(-4px); } 50% { transform: translateX(4px); } 75% { transform: translateX(-2px); } }

/* Motivo 3: checklist */
.pv-checks { list-style: none; margin: 1.1em 0 0; padding: 0; display: grid; gap: .55em; font-size: clamp(11px, 1.85cqw, 18px); }
.pv-checks li { display: flex; align-items: center; gap: .75em; }
.pv-checks b {
  position: relative; flex: none; width: 1.45em; height: 1.45em; border-radius: 7px;
  border: 2px solid rgba(255, 255, 255, .4); transition: .3s;
}
.pv-checks b::after {
  content: ""; position: absolute; left: .42em; top: .18em; width: .35em; height: .7em;
  border: solid var(--primary); border-width: 0 .18em .18em 0; transform: rotate(45deg) scale(0);
}
.pv-scene.is-active .pv-checks b { animation: pvBox .4s var(--ease) both; animation-delay: calc(var(--i) * .35s + .6s); }
.pv-scene.is-active .pv-checks b::after { animation: pvTick .4s var(--ease) both; animation-delay: calc(var(--i) * .35s + .7s); }
@keyframes pvBox { to { background: #fff; border-color: #fff; } }
@keyframes pvTick { to { transform: rotate(45deg) scale(1); } }

/* Motivo 4: mapa con avión */
.pv-map { width: 100%; max-width: 520px; margin-top: .8em; overflow: visible; }
.pv-route { fill: none; stroke: rgba(255, 255, 255, .25); stroke-width: 2; stroke-dasharray: 4 7; }
.pv-route-draw { fill: none; stroke: #aeb9ff; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.pv-scene.is-active .pv-route-draw { animation: pvDraw 2.6s cubic-bezier(.45, 0, .2, 1) .5s forwards; }
@keyframes pvDraw { to { stroke-dashoffset: 0; } }
.pv-dot { fill: #fff; }
.pv-dot--end { fill: #aeb9ff; stroke: rgba(174, 185, 255, .35); stroke-width: 10; }
.pv-map text { fill: rgba(255, 255, 255, .7); font-size: 13px; font-family: var(--font); }

/* Motivo 5: servicios en vida */
.pv-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: .7em; width: 100%; max-width: 560px; margin-top: 1.2em; font-size: clamp(11px, 1.7cqw, 17px); }
.pv-tile {
  display: flex; align-items: center; gap: .7em; padding: 1em 1.1em; border-radius: 16px; font-weight: 500;
  background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .15);
}
.pv-tile .icon { width: 1.9em; height: 1.9em; padding: .4em; border-radius: 10px; background: #fff; color: var(--primary); box-sizing: content-box; }
.pv-scene.is-active .pv-tile { animation-name: pvPop; animation-timing-function: cubic-bezier(.3, 1.6, .5, 1); }
@keyframes pvPop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }

/* Motivo 6: familia */
.pv-family { display: flex; gap: .7em; margin-top: 1.2em; font-size: clamp(12px, 2cqw, 20px); }
.pv-family span { display: grid; place-items: center; width: 3.4em; height: 3.4em; border-radius: 50%; background: #fff; color: var(--primary); }
.pv-family .icon { width: 1.6em; height: 1.6em; }
.pv-family__pet { background: #aeb9ff !important; }
.pv-scene.is-active .pv-family span { animation-name: pvPop; animation-timing-function: cubic-bezier(.3, 1.6, .5, 1); }

/* Cierre */
.pv-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 1.6em; }
.pv-replay {
  height: 48px; padding: 0 20px; border-radius: 99px; border: 1.5px solid rgba(255, 255, 255, .35);
  background: transparent; color: #fff; font: inherit; font-size: 14px; cursor: pointer; transition: .3s;
}
.pv-replay:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }

/* ---------- Personaje ---------- */
.pv__host { position: absolute; right: 1%; bottom: 0; height: 86%; aspect-ratio: 240 / 320; z-index: 2; }
.pv__host svg { width: 100%; height: 100%; overflow: visible; display: block; }
.pv-char { animation: pvBreath 4s ease-in-out infinite; }
.pv-face { transform-box: view-box; transform-origin: 120px 165px; animation: pvHead 7s ease-in-out infinite; }
.pv-eyes ellipse { transform-box: fill-box; transform-origin: center; animation: pvBlink 4.6s infinite; }
.pv-mouth-open { opacity: 0; transform-box: fill-box; transform-origin: center top; }
.pv-mouth-smile { transition: opacity .1s; }
.is-talking .pv-mouth-smile { opacity: 0; }
.is-talking .pv-mouth-open { opacity: 1; animation: pvTalk .26s ease-in-out infinite alternate; }
.is-talking .pv-face { animation-duration: 3s; }
.pv-arm { transform-box: view-box; transform-origin: 66px 190px; transition: transform 1s var(--ease); }
.pose-explain .pv-arm { transform: rotate(62deg); }
.is-talking.pose-explain .pv-arm { animation: pvGesture 2.6s ease-in-out infinite; }
.pose-point .pv-arm { transform: rotate(100deg); }
.pose-wave .pv-arm { transform: rotate(150deg); animation: pvWave .9s ease-in-out infinite alternate; }

@keyframes pvBreath { 50% { transform: translateY(-3px); } }
@keyframes pvHead { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2.5deg); } }
@keyframes pvBlink { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }
@keyframes pvTalk { 0% { transform: scale(.9, .25); } 60% { transform: scale(1, 1); } 100% { transform: scale(1.05, .55); } }
@keyframes pvWave { from { transform: rotate(136deg); } to { transform: rotate(164deg); } }
@keyframes pvGesture { 0%, 100% { transform: rotate(62deg); } 40% { transform: rotate(84deg); } 70% { transform: rotate(55deg); } }

/* ---------- Subtítulos ---------- */
.pv__cc { position: absolute; left: 4%; right: 30%; bottom: 5%; z-index: 4; text-align: center; pointer-events: none; }
.pv__cc span {
  display: inline; padding: .22em .6em; border-radius: 8px; line-height: 1.65;
  background: rgba(0, 5, 45, .74); color: #fff; font-size: clamp(12px, 2cqw, 21px); font-weight: 400;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.pv__cc span:empty { display: none; }
.pv__cc.is-swap span { animation: pvCc .35s var(--ease); }
@keyframes pvCc { from { opacity: 0; } to { opacity: 1; } }
.pv.no-cc .pv__cc { display: none; }

/* ---------- Botón "Activar sonido" sobre el vídeo ---------- */
.pv__unmute {
  position: absolute; top: 4%; right: 3%; z-index: 5; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px 9px 12px; border: 0; border-radius: 99px; cursor: pointer;
  background: #fff; color: var(--primary); font: 500 14px var(--font); box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
  animation: pvPulse 2.2s ease-in-out infinite; transition: opacity .3s, transform .3s;
}
.pv__unmute .icon { width: 18px; height: 18px; }
.pv__unmute:hover { transform: scale(1.05); }
.pv.has-sound .pv__unmute, .pv:not(.is-started) .pv__unmute { opacity: 0; pointer-events: none; transform: scale(.8); }
@keyframes pvPulse { 50% { box-shadow: 0 8px 24px rgba(0, 0, 0, .25), 0 0 0 8px rgba(255, 255, 255, .18); } }

/* ---------- Portada (antes de empezar) ---------- */
.pv__poster {
  position: absolute; inset: 0; z-index: 6; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  border: 0; cursor: pointer; color: #fff; font: 500 clamp(14px, 2cqw, 20px) var(--font);
  background: rgba(0, 8, 70, .45); backdrop-filter: blur(3px); transition: opacity .5s, visibility .5s;
}
.pv__poster-play {
  display: grid; place-items: center; width: clamp(64px, 11cqw, 96px); aspect-ratio: 1; border-radius: 50%;
  background: #fff; color: var(--primary); box-shadow: 0 0 0 12px rgba(255, 255, 255, .15); transition: transform .3s var(--ease);
}
.pv__poster-play svg { width: 40%; fill: currentColor; margin-left: 8%; }
.pv__poster:hover .pv__poster-play { transform: scale(1.08); }
.pv.is-started .pv__poster { opacity: 0; visibility: hidden; }

/* Pausa: congela todas las animaciones */
.pv.is-paused .pv__screen *, .pv.is-paused .pv__screen *::before, .pv.is-paused .pv__screen *::after { animation-play-state: paused !important; }

/* ---------- Barra de controles ---------- */
.pv__bar { display: flex; align-items: center; gap: 12px; padding: 12px 6px 2px; }
.pv__btn {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--primary-50); color: var(--primary); transition: .25s var(--ease);
}
.pv__btn:hover { background: var(--primary-100); }
.pv__btn .icon { width: 20px; height: 20px; }
.pv__btn--main { background: var(--primary); color: #fff; }
.pv__btn--main:hover { background: var(--primary-600); }
.pv__btn[aria-pressed="true"] { background: var(--primary); color: #fff; }
.pv__chapters { flex: 1; display: flex; gap: 5px; min-width: 0; }
.pv__chap { flex: 1; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.pv__chap::before, .pv__chap i {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 6px; margin-top: -3px; border-radius: 6px; background: var(--primary-100);
}
.pv__chap i { background: var(--primary); transform-origin: left; transform: scaleX(var(--p, 0)); }
.pv__chap:hover::before { background: #cfd3ec; }
.pv__label { flex: none; min-width: 150px; font-size: 13px; color: var(--muted); white-space: nowrap; }

/* ---------- Móvil ---------- */
@media (max-width: 700px) {
  .pv { padding: 6px; border-radius: 22px; }
  .pv__screen { aspect-ratio: 4 / 5; border-radius: 17px; }
  .pv__stage { width: 100%; bottom: 40%; }
  .pv-scene { padding: 17% 6% 0; justify-content: flex-start; }
  .pv__host { height: 46%; right: -4%; }
  .pv__cc { left: 4%; right: 40%; bottom: 5%; text-align: left; }
  .pv__cc span { font-size: 13px; }
  .pv-flow { flex-direction: column; align-items: stretch; gap: .5em; }
  .pv-flow__arrow { align-self: center; transform: rotate(90deg); }
  .pv-flow__arrow .icon { width: 1.4em; height: 1.4em; }
  .pv-box { padding: .8em 1em; flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: .8em; }
  .pv-box__ico { margin: 0; width: 2.4em; height: 2.4em; }
  .pv-box small { flex-basis: 100%; }
  .pv-tiles { gap: .5em; }
  .pv-tile { padding: .7em .8em; }
  .pv-cta .btn { height: 46px; }
  .pv__unmute { font-size: 13px; padding: 7px 13px 7px 10px; top: 3%; }
  .pv__label { display: none; }
  .pv__bar { gap: 8px; }
  .pv__btn { width: 40px; height: 40px; }
}

/* ---------- Presentación dentro de la portada ---------- */
.hero__video { position: relative; min-width: 0; }
.hero__video .pv { max-width: none; }
@media (max-width: 980px) { .hero__video { max-width: 640px; width: 100%; margin: 0 auto; } }

/* ---------- Coberturas principales (ilustración + checks) ---------- */
.covers-section { padding-top: 40px; }
.covers { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.covers__list { list-style: none; padding: 0; margin: 28px 0 34px; display: grid; gap: 14px; }
.covers__list li { display: flex; align-items: flex-start; gap: 14px; }
.covers__ico { flex: none; display: grid; place-items: center; width: 30px; height: 30px; margin-top: 2px; border-radius: 50%; background: var(--primary); color: #fff; }
.covers__ico .icon { width: 15px; height: 15px; stroke-width: 2.6; }
.covers__list strong { display: block; color: var(--ink); font-weight: 500; line-height: 1.35; }
.covers__list small { display: block; color: var(--text); font-size: 14.5px; line-height: 1.5; }
@media (max-width: 980px) {
  .covers { grid-template-columns: 1fr; gap: 20px; }
  .covers .hero__visual { order: 2; }
}
