.ad-volver { color: var(--pn-link); text-decoration: none; font-size: 15px; }
.ad-main { max-width: 560px; margin: 0 auto; padding: 20px 16px 40px; padding-bottom: max(40px, env(safe-area-inset-bottom)); }
.ad-main h1 { color: var(--pn-acento); font-size: 1.8rem; margin: 0 0 4px; line-height: 1.2; }
.ad-sub { margin: 0 0 18px; color: var(--pn-muted); font-size: 15px; }
.ad-fuera { background: var(--pn-card); border: 1px solid var(--pn-borde); border-radius: 14px; padding: 18px; color: var(--pn-texto); line-height: 1.6; }

.ad-escena { position: relative; width: 100%; max-width: 460px; height: 300px; margin: 0 auto; }
.ad-corona-aro { position: absolute; left: 3%; right: 3%; bottom: 0; height: 120px; border-radius: 50%;
  background:
    radial-gradient(circle at 12% 55%, #c0392b 0 5px, transparent 6px),
    radial-gradient(circle at 30% 85%, #c0392b 0 5px, transparent 6px),
    radial-gradient(circle at 52% 92%, #c0392b 0 5px, transparent 6px),
    radial-gradient(circle at 74% 82%, #c0392b 0 5px, transparent 6px),
    radial-gradient(circle at 90% 52%, #c0392b 0 5px, transparent 6px),
    radial-gradient(ellipse at center, transparent 40%, #174a2a 41%, #2c7a45 66%, #1d5b35 100%);
  filter: drop-shadow(0 6px 10px rgba(0,0,0,0.45)); }

.ad-vela { position: absolute; transform: translateX(-50%); width: 38px; height: 150px; padding: 0; border: 0; background: transparent; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; -webkit-tap-highlight-color: transparent; }
.ad-vela:nth-child(2) { left: 15%; bottom: 52px; }
.ad-vela:nth-child(3) { left: 38%; bottom: 80px; }
.ad-vela:nth-child(4) { left: 62%; bottom: 80px; }
.ad-vela:nth-child(5) { left: 85%; bottom: 52px; }

.ad-cuerpo { position: relative; width: 30px; height: 100px; border-radius: 5px 5px 3px 3px; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.9); font-weight: 700; font-size: 15px; box-shadow: inset -6px 0 8px rgba(0,0,0,0.25), inset 4px 0 6px rgba(255,255,255,0.18); background: linear-gradient(#7a4bb5, #5b2f8e); }
.ad-vela.rosa .ad-cuerpo { background: linear-gradient(#f0a1c4, #d9709f); }
.ad-mecha { width: 2px; height: 9px; background: #2a2018; margin-bottom: -1px; }

.ad-llama { position: relative; width: 16px; height: 28px; margin-bottom: -2px; border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
  background: radial-gradient(ellipse at 50% 75%, #fffbe6 0 25%, #ffd35c 50%, #ff8a1f 85%, rgba(255,90,0,0.2) 100%);
  transform: scale(0); transform-origin: 50% 100%; opacity: 0; transition: transform .6s cubic-bezier(.2,1.4,.4,1), opacity .4s; }
.ad-vela.encendida .ad-llama { transform: scale(1); opacity: 1; animation: ad-parpadeo 1.6s ease-in-out infinite .6s; }
.ad-vela.encendida::before { content: ""; position: absolute; left: 50%; top: -10px; width: 120px; height: 120px; margin-left: -60px; border-radius: 50%; background: radial-gradient(circle, rgba(255,200,90,0.45), rgba(255,160,40,0.15) 45%, transparent 70%); animation: ad-halo 2.4s ease-in-out infinite; pointer-events: none; }

.ad-vela.bloqueada { cursor: not-allowed; opacity: 0.45; filter: grayscale(0.5); }
.ad-vela:focus-visible .ad-cuerpo { outline: 2px solid var(--pn-acento); outline-offset: 3px; }
.ad-vela.pulsa:not(.encendida):not(.bloqueada) .ad-cuerpo { animation: ad-pulsa 1.8s ease-in-out infinite; }

.ad-ayuda { text-align: center; color: var(--pn-muted); font-size: 14px; margin: 14px 0 6px; }

.ad-oracion { margin-top: 14px; background: var(--pn-card); border: 1px solid var(--pn-borde); border-radius: 14px; padding: 18px; animation: ad-entra .5s ease both; }
.ad-oracion h2 { margin: 0 0 4px; color: var(--pn-acento); font-size: 1.2rem; }
.ad-lema { margin: 0 0 12px; font-style: italic; color: var(--pn-muted); font-size: 15px; }
.ad-oracion p { margin: 0 0 10px; line-height: 1.65; color: var(--pn-texto); }
.ad-oracion p:last-child { margin-bottom: 0; }
.ad-oracion .ad-resp { color: var(--pn-acento); font-weight: 600; }

@keyframes ad-parpadeo { 0%,100% { transform: scale(1) rotate(-1.5deg); } 25% { transform: scale(1.05,0.94) rotate(1.5deg); } 50% { transform: scale(0.96,1.06) rotate(-0.5deg); } 75% { transform: scale(1.03,0.97) rotate(1deg); } }
@keyframes ad-halo { 0%,100% { opacity: 0.75; transform: scale(1); } 50% { opacity: 1; transform: scale(1.12); } }
@keyframes ad-pulsa { 0%,100% { box-shadow: inset -6px 0 8px rgba(0,0,0,0.25), inset 4px 0 6px rgba(255,255,255,0.18), 0 0 0 0 rgba(244,185,66,0.0); } 50% { box-shadow: inset -6px 0 8px rgba(0,0,0,0.25), inset 4px 0 6px rgba(255,255,255,0.18), 0 0 14px 3px rgba(244,185,66,0.55); } }
@keyframes ad-entra { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (max-width: 380px) { .ad-escena { height: 270px; } .ad-vela { height: 135px; } .ad-cuerpo { height: 88px; } }
@media (prefers-reduced-motion: reduce) { .ad-llama, .ad-vela::before, .ad-oracion, .ad-cuerpo { animation: none !important; transition: none !important; } }

.ad-main h1, .ad-sub, .ad-ayuda { text-shadow: 0 1px 6px rgba(0,0,0,0.85), 0 0 2px rgba(0,0,0,0.6); }
.ad-sub { color: var(--pn-texto2); }
.ad-ayuda { color: var(--pn-texto2); }
html[data-tema="claro"] .ad-main h1, html[data-tema="claro"] .ad-sub, html[data-tema="claro"] .ad-ayuda { text-shadow: none; }

.ad-apagar-caja { text-align: center; margin: 12px 0; }
.ad-apagar { background: rgba(0,0,0,0.55); color: #fff; border: 1px solid #d4af37; border-radius: 999px; padding: 10px 20px; font: inherit; cursor: pointer; }


.ad-evangelio { margin-top: 1.4rem; padding-top: 1.1rem; border-top: 1px solid color-mix(in srgb, currentColor 25%, transparent); }
.ad-ev-titulo { margin: 0 0 .2rem; font-size: 1.05rem; }
.ad-ev-ref { margin: 0 0 .7rem; font-weight: 600; opacity: .8; }
.ad-ev-texto { line-height: 1.7; }
.ad-ev-n { font-size: .7em; margin-right: .25em; opacity: .6; font-weight: 600; }
.ad-ev-fuente { font-size: .8rem; opacity: .6; }




/* ===== Escena con foto de la corona ===== */
.ad-corona .ad-escena { max-width: none; height: auto; aspect-ratio: 1173 / 601; container-type: inline-size; border-radius: 16px; overflow: hidden; background: #0d1426 url("corona-escena.jpg") center / cover no-repeat; box-shadow: 0 10px 30px rgba(0,0,0,.45); }
.ad-corona .ad-corona-aro, .ad-corona .ad-mecha, .ad-corona .ad-cuerpo { display: none; }

.ad-corona .ad-escena .ad-vela { width: 15%; height: 56%; bottom: auto; left: var(--x); top: calc(var(--y) - 14%); opacity: 1; filter: none; display: block; }
.ad-corona .ad-escena .ad-vela:nth-child(2) { --x: 22.7%; --y: 18%; }
.ad-corona .ad-escena .ad-vela:nth-child(3) { --x: 41.3%; --y: 13.1%; }
.ad-corona .ad-escena .ad-vela:nth-child(4) { --x: 59.8%; --y: 14%; }
.ad-corona .ad-escena .ad-vela:nth-child(5) { --x: 77.8%; --y: 15.8%; }
.ad-corona .ad-escena .ad-vela:focus-visible { outline: 3px solid #e8b84a; outline-offset: 2px; border-radius: 10px; }

.ad-corona .ad-escena .ad-llama { position: absolute; left: 50%; bottom: 75%; width: 15px; height: 30px; width: 2.9cqw; height: 5.8cqw; margin: 0 0 0 -1.45cqw; }
.ad-corona .ad-escena .ad-vela.encendida::before { left: 50%; top: 25%; width: 24cqw; height: 24cqw; margin: -16cqw 0 0 -12cqw; mix-blend-mode: screen; }

.ad-corona .ad-escena .ad-vela.pulsa:not(.encendida):not(.bloqueada)::after { content: ""; position: absolute; left: 50%; top: 25%; width: 9cqw; height: 9cqw; margin: -6cqw 0 0 -4.5cqw; border-radius: 50%; background: radial-gradient(circle, rgba(255,214,120,.85), rgba(255,180,60,.25) 55%, transparent 70%); animation: ad-pulsa-foto 1.8s ease-in-out infinite; pointer-events: none; }
@keyframes ad-pulsa-foto { 0%,100% { opacity: .35; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.15); } }
@media (prefers-reduced-motion: reduce) { .ad-corona .ad-escena .ad-vela::after { animation: none !important; } }


/* ===== Luces que titilan, vista previa y aviso ===== */
.ad-corona .ad-escena::before, .ad-corona .ad-escena::after { content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; }
.ad-corona .ad-escena::before { background:
  radial-gradient(circle at 13.6% 44.6%, rgba(255,228,150,.95) 0 .35cqw, rgba(255,190,70,.4) .9cqw, transparent 1.9cqw),
  radial-gradient(circle at 29.8% 62.2%, rgba(255,228,150,.95) 0 .35cqw, rgba(255,190,70,.4) .9cqw, transparent 1.9cqw),
  radial-gradient(circle at 19.2% 71.4%, rgba(255,228,150,.95) 0 .35cqw, rgba(255,190,70,.4) .9cqw, transparent 1.9cqw),
  radial-gradient(circle at 9.8% 76.6%, rgba(255,228,150,.95) 0 .35cqw, rgba(255,190,70,.4) .9cqw, transparent 1.9cqw),
  radial-gradient(circle at 50.7% 60.1%, rgba(255,228,150,.95) 0 .35cqw, rgba(255,190,70,.4) .9cqw, transparent 1.9cqw),
  radial-gradient(circle at 71.9% 72.7%, rgba(255,228,150,.95) 0 .35cqw, rgba(255,190,70,.4) .9cqw, transparent 1.9cqw),
  radial-gradient(circle at 84.7% 62.2%, rgba(255,228,150,.95) 0 .35cqw, rgba(255,190,70,.4) .9cqw, transparent 1.9cqw),
  radial-gradient(circle at 68.6% 43.1%, rgba(255,228,150,.95) 0 .35cqw, rgba(255,190,70,.4) .9cqw, transparent 1.9cqw); animation: ad-titila 2.6s ease-in-out infinite; }
.ad-corona .ad-escena::after { background:
  radial-gradient(circle at 32.7% 43.1%, rgba(255,228,150,.95) 0 .35cqw, rgba(255,190,70,.4) .9cqw, transparent 1.9cqw),
  radial-gradient(circle at 41.3% 58.4%, rgba(255,228,150,.95) 0 .35cqw, rgba(255,190,70,.4) .9cqw, transparent 1.9cqw),
  radial-gradient(circle at 66.5% 51.3%, rgba(255,228,150,.95) 0 .35cqw, rgba(255,190,70,.4) .9cqw, transparent 1.9cqw),
  radial-gradient(circle at 81.6% 80.3%, rgba(255,228,150,.95) 0 .35cqw, rgba(255,190,70,.4) .9cqw, transparent 1.9cqw),
  radial-gradient(circle at 89.4% 72.2%, rgba(255,228,150,.95) 0 .35cqw, rgba(255,190,70,.4) .9cqw, transparent 1.9cqw),
  radial-gradient(circle at 87.0% 44.9%, rgba(255,228,150,.95) 0 .35cqw, rgba(255,190,70,.4) .9cqw, transparent 1.9cqw),
  radial-gradient(circle at 90.6% 49.2%, rgba(255,228,150,.95) 0 .35cqw, rgba(255,190,70,.4) .9cqw, transparent 1.9cqw); animation: ad-titila 3.4s ease-in-out infinite 1.1s; }
@keyframes ad-titila { 0%,100% { opacity: .25; } 50% { opacity: 1; } }
.ad-corona .ad-escena .ad-vela.bloqueada { cursor: pointer; }
.ad-oracion .ad-aviso { background: rgba(232,184,74,.15); border: 1px dashed #e8b84a; border-radius: 10px; padding: 10px 12px; font-size: .92rem; }
@media (prefers-reduced-motion: reduce) { .ad-corona .ad-escena::before, .ad-corona .ad-escena::after { animation: none !important; opacity: .7; } }


/* ===== Compartir ===== */
.ad-comp { position: relative; margin: 26px 0 8px; padding: 22px 16px 16px; text-align: center; background: var(--pn-card); border: 1px solid var(--pn-borde); border-radius: 16px; }
.ad-comp::before { content: ""; position: absolute; left: 50%; top: 0; width: 56px; height: 3px; margin-left: -28px; border-radius: 0 0 3px 3px; background: linear-gradient(90deg, #b8862b, #f3d27a, #b8862b); }
.ad-comp h2 { margin: 0 0 4px; font-size: 1.15rem; line-height: 1.3; color: var(--pn-acento); }
.ad-comp-sub { margin: 0 0 14px; font-size: 14px; color: var(--pn-muted); }
.ad-nativo { font: inherit; font-weight: 600; cursor: pointer; border: 0; border-radius: 999px; padding: 12px 28px; margin: 0 0 12px; color: #2a1c05; background: linear-gradient(135deg, #f3d27a, #d4a02f); box-shadow: 0 4px 14px rgba(212,160,47,.35); }
.ad-nativo[hidden] { display: none; }
.ad-comp-botones { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.ad-cb { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(232,184,74,.55); background: rgba(232,184,74,.08); color: var(--pn-texto); font: inherit; font-size: 14px; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, transform .15s; }
.ad-cb::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--pt, #e8b84a); }
.ad-cb.wa { --pt: #25D366; } .ad-cb.fb { --pt: #1877F2; } .ad-cb.tg { --pt: #2AABEE; } .ad-cb.xx { --pt: #9aa0a6; } .ad-cb.cp { --pt: #e8b84a; }
.ad-cb:hover { background: #e8b84a; color: #241903; transform: translateY(-1px); }
.ad-cb:focus-visible, .ad-nativo:focus-visible { outline: 3px solid #e8b84a; outline-offset: 2px; }
.ad-comp-msg { min-height: 1.4em; margin: 12px 0 0; font-size: 14px; color: var(--pn-muted); }

.ad-paso { margin: 1.6rem 0 .6rem; }
