/* /premium: Shiru Premium (los planes, lo que incluye, regalar a un amigo y el pago). Los colores
   son los mismos que usa el resto del sitio, así el tema de Halloween (season.js) los cambia igual. */
.premium-page { --tile: rgba(17, 24, 38, 0.78); }
.pm-wrap { position: relative; z-index: 1; max-width: 1120px; margin: 0 auto; padding: 44px 20px 70px; min-height: 60vh; }
.pm-ico { width: 1.05em; height: 1.05em; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.pm-center { text-align: center; }

/* Cabecera, centrada */
.pm-hero { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; padding: 10px 0 6px; }
.pm-pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 14px; border-radius: 999px; background: rgba(165, 122, 216, 0.18); border: 1px solid rgba(165, 122, 216, 0.5); color: #f9b6ff; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.3px; }
.pm-hero h1 { margin: 0; max-width: 18ch; font: 800 clamp(2rem, 5.4vw, 3.3rem) 'Baloo 2', sans-serif; line-height: 1.06; text-wrap: balance; }
.pm-hero p { margin: 0; max-width: 62ch; color: var(--text-muted); font-size: 1.02rem; line-height: 1.65; text-wrap: pretty; }

/* Avisos y estado */
.pm-notice { margin: 22px auto 0; max-width: 760px; padding: 14px 18px; border-radius: 16px; background: var(--accent-soft); border: 1px solid rgba(122, 214, 255, 0.32); color: var(--text); text-align: center; }
.pm-notice.is-error { background: rgba(255, 107, 122, 0.12); border-color: rgba(255, 107, 122, 0.4); }
.pm-status { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin: 26px auto 0; max-width: 860px; padding: 20px 24px; border-radius: 20px; background: linear-gradient(135deg, rgba(122, 214, 255, 0.16), rgba(165, 122, 216, 0.14)); border: 1px solid rgba(122, 214, 255, 0.34); }
.pm-status h2 { display: flex; align-items: center; gap: 9px; margin: 0 0 4px; font: 800 1.35rem 'Baloo 2', sans-serif; }
.pm-status h2 .pm-ico { color: var(--accent); }
.pm-status p { margin: 0; }

/* Secciones */
.pm-section { margin-top: 46px; }
.pm-section > h2 { margin: 0 0 20px; font: 800 1.7rem 'Baloo 2', sans-serif; }

/* Planes: una tarjeta por plan, con su arte arriba */
.pm-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 22px; align-items: stretch; max-width: 860px; margin: 0 auto; }
.pm-plans.is-wide { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); max-width: none; }
.pm-plan { position: relative; display: flex; flex-direction: column; border-radius: 22px; background: var(--tile); border: 1px solid var(--border); overflow: hidden; transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease; }
.pm-plan:hover, .pm-plan:focus-within { transform: translateY(-5px); border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent), 0 26px 50px -30px var(--accent); }
.pm-plan.is-best { border-color: rgba(122, 214, 255, 0.6); }
.pm-plan-art { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(160deg, rgba(165, 122, 216, 0.3), rgba(122, 214, 255, 0.14) 60%, rgba(17, 24, 38, 0)); overflow: hidden; }
.pm-plan-art img, .pm-plan-art video { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.pm-plan:hover .pm-plan-art img, .pm-plan:hover .pm-plan-art video { transform: scale(1.05); }
.pm-plan-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17, 24, 38, 0) 55%, rgba(17, 24, 38, 0.85)); pointer-events: none; }
.pm-plan-kind, .pm-tag { z-index: 1; }
/* El retrato del plan de 3 meses es cuadrado: se encuadra hacia la cara */
[data-plan-card="quarterly"] .pm-plan-art img { object-position: 50% 24%; }
.pm-plan-kind { position: absolute; right: 12px; bottom: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; background: rgba(5, 9, 18, 0.72); border: 1px solid var(--border); font-size: 0.72rem; font-weight: 600; color: var(--text-muted); }
.pm-tag { position: absolute; left: 12px; top: 12px; padding: 3px 12px; border-radius: 999px; background: var(--accent); color: var(--accent-text); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.3px; }
.pm-plan-body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 20px 20px 22px; }
.pm-plan h3 { margin: 0; font: 800 1.3rem 'Baloo 2', sans-serif; }
.pm-plan-sub { margin: 0; font-size: 0.86rem; line-height: 1.5; }
.pm-plan-list { list-style: none; margin: 4px 0 6px; padding: 0; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.pm-plan-list li { display: flex; gap: 9px; font-size: 0.88rem; line-height: 1.45; color: var(--text-muted); }
.pm-plan-list b { color: var(--text); font-weight: 600; }
.pm-plan-list .pm-check { width: 18px; height: 18px; padding: 3px; margin-top: 1px; }
.pm-price { display: flex; align-items: baseline; gap: 8px; }
.pm-price b { font: 800 2rem 'Baloo 2', sans-serif; line-height: 1; font-variant-numeric: tabular-nums; }
.pm-price span { color: var(--text-muted); font-size: 0.86rem; }
.pm-plan-actions { display: flex; flex-direction: column; gap: 8px; }
.pm-plan .btn { justify-content: center; text-align: center; gap: 8px; }
.btn-gift { display: inline-flex; align-items: center; background: rgba(165, 122, 216, 0.18); border: 1px solid rgba(165, 122, 216, 0.55); color: #f9b6ff; }
.btn-gift:hover { background: rgba(165, 122, 216, 0.3); }
.pm-secure { margin: 16px auto 0; max-width: 70ch; font-size: 0.84rem; text-align: center; }
/* Cerrado: el aviso y las tarjetas sin botón de compra */
.pm-soon { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; max-width: 860px; margin: 0 auto 22px; padding: 18px 22px; border-radius: 18px; background: rgba(165, 122, 216, 0.14); border: 1px dashed rgba(165, 122, 216, 0.55); }
.pm-soon > .pm-ico { width: 30px; height: 30px; color: #f9b6ff; }
.pm-soon > div { flex: 1 1 260px; min-width: 0; }
.pm-soon h3 { margin: 0 0 3px; font: 800 1.15rem 'Baloo 2', sans-serif; }
.pm-soon p { margin: 0; font-size: 0.9rem; line-height: 1.55; }
.pm-closed { display: inline-flex; align-items: center; cursor: not-allowed; opacity: 0.85; }

/* Lo que incluye, con detalle */
.pm-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 16px; align-items: start; }
.pm-group { padding: 22px 22px 10px; border-radius: 20px; background: var(--tile); border: 1px solid var(--border); }
.pm-group h3 { margin: 0 0 12px; font: 800 1.1rem 'Baloo 2', sans-serif; color: var(--accent); }
.pm-group ul { list-style: none; margin: 0; padding: 0; }
.pm-perk { display: flex; gap: 12px; padding: 0 0 16px; }
.pm-perk div { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pm-perk b { font-weight: 600; }
.pm-perk span { color: var(--text-muted); font-size: 0.88rem; line-height: 1.55; }
.pm-check { flex-shrink: 0; width: 22px; height: 22px; margin-top: 1px; padding: 4px; border-radius: 50%; background: var(--accent-soft); fill: none; stroke: var(--accent); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.premium-page code { padding: 1px 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.07); font-size: 0.86em; }

/* Preguntas */
.pm-faq { display: flex; flex-direction: column; gap: 8px; max-width: 860px; margin: 0 auto; }
.pm-faq details { border-radius: 16px; background: var(--tile); border: 1px solid var(--border); }
.pm-faq summary { padding: 15px 20px; cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.pm-faq summary::-webkit-details-marker { display: none; }
.pm-faq summary::after { content: '+'; color: var(--accent); font-weight: 700; transition: transform 0.2s ease; }
.pm-faq details[open] summary::after { transform: rotate(45deg); }
.pm-faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 16px; }
.pm-faq p { margin: 0; padding: 0 20px 16px; }

/* La ventana de regalar */
body.pm-modal-open { overflow: hidden; }
.pm-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 18px; background: rgba(5, 9, 18, 0.74); backdrop-filter: blur(6px); overflow-y: auto; }
.pm-modal-box { position: relative; width: min(100%, 460px); display: flex; flex-direction: column; gap: 14px; padding: 26px 24px 22px; border-radius: 24px; background: #111826; border: 1px solid rgba(165, 122, 216, 0.45); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.95); }
.pm-modal-box h2 { display: flex; align-items: center; gap: 9px; margin: 0; font: 800 1.45rem 'Baloo 2', sans-serif; }
.pm-modal-box h2 .pm-ico { color: #f9b6ff; }
.pm-modal-box > p { margin: 0; font-size: 0.9rem; line-height: 1.55; }
.pm-modal-x { position: absolute; right: 14px; top: 12px; width: 34px; height: 34px; border: none; border-radius: 50%; background: transparent; color: var(--text-muted); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.pm-modal-x:hover, .pm-modal-x:focus-visible { background: var(--accent-soft); color: var(--text); outline: none; }
.pm-field { display: flex; flex-direction: column; gap: 7px; }
.pm-field > span { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; color: var(--text-muted); }
.pm-field input { width: 100%; padding: 11px 15px; border-radius: 14px; border: 1px solid var(--border); background: rgba(5, 9, 18, 0.6); color: var(--text); font: inherit; font-size: 0.94rem; }
.pm-field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.pm-gift-results { display: flex; flex-direction: column; gap: 4px; min-height: 22px; }
.pm-friend { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 10px; border-radius: 12px; border: 1px solid transparent; background: transparent; color: var(--text); font: inherit; font-weight: 600; text-align: left; cursor: pointer; }
.pm-friend:hover, .pm-friend:focus-visible { background: var(--accent-soft); outline: none; }
.pm-friend img { width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; object-fit: cover; }
.pm-friend span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-friend.is-picked { cursor: default; border-color: rgba(122, 214, 255, 0.4); background: var(--accent-soft); }
.pm-friend-x { width: 28px; height: 28px; border: none; border-radius: 50%; background: transparent; color: var(--text-muted); font-size: 1.2rem; line-height: 1; cursor: pointer; }
.pm-friend-x:hover { color: var(--text); background: rgba(255, 255, 255, 0.08); }
.pm-gift-note { margin: 0; font-size: 0.84rem; line-height: 1.5; }
.pm-gift-note.is-error { color: #ffb4bc; }
.pm-months { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.pm-month { padding: 10px 4px; border-radius: 12px; border: 1px solid var(--border); background: transparent; color: var(--text-muted); font: 600 0.86rem 'Inter', sans-serif; cursor: pointer; transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease; }
.pm-month:hover { color: var(--text); border-color: var(--accent); }
.pm-month.active { color: var(--accent-text); background: var(--accent); border-color: var(--accent); }
.pm-month:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pm-gift-total { display: flex; align-items: baseline; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--border); }
.pm-gift-total b { font: 800 1.7rem 'Baloo 2', sans-serif; font-variant-numeric: tabular-nums; }
.pm-modal-box .btn { justify-content: center; }
.pm-gift-fine { margin: 0; font-size: 0.78rem; text-align: center; }

.pm-loading { display: flex; justify-content: center; gap: 8px; padding: 90px 0; }
.pm-loading span { width: 11px; height: 11px; border-radius: 50%; background: var(--accent); animation: pm-bounce 0.9s ease-in-out infinite; }
.pm-loading span:nth-child(2) { animation-delay: 0.15s; }
.pm-loading span:nth-child(3) { animation-delay: 0.3s; }
@keyframes pm-bounce { 0%, 100% { transform: translateY(0); opacity: 0.5; } 50% { transform: translateY(-9px); opacity: 1; } }

@media (max-width: 760px) {
    .pm-wrap { padding: 28px 16px 60px; }
    .pm-section { margin-top: 36px; }
    .pm-months { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
    .pm-plan, .pm-plan-art img, .pm-plan-art video, .pm-loading span, .pm-month { transition: none; animation: none; }
    .pm-plan:hover .pm-plan-art img, .pm-plan:hover .pm-plan-art video { transform: none; }
}
