/* ================================================
   BINGU — Planes (premium.php), diseño 2026 versión sencilla
   Usa tokens y componentes de brand.css (.b-*); aquí solo la maquetación propia (prefijo pp-).
   Boceto de referencia: mockups/precios-rediseno-2026.html
   ================================================ */
body:has(.pp) { background: var(--b-bg); }

.pp { padding-bottom: 80px; }
.pp-wrap { width: var(--b-max); margin: 0 auto; }   /* mismo ancho que la portada */

/* Arriba */
.pp-hero { padding: 48px 0 8px; text-align: center; }
.pp-hero h1 { font-size: var(--b-fs-h1, clamp(38px, 4vw, 58px)); font-weight: 800; line-height: 1.05; }
.pp-hero p { margin-top: 12px !important; color: var(--b-muted); font-size: var(--b-fs-lead, 20px); max-width: 640px; margin-left: auto !important; margin-right: auto !important; }

/* Guía rápida: situación → plan */
.pp-guide { list-style: none; padding: 0; margin: 24px auto 0 !important; max-width: 560px; text-align: left; border-radius: 20px; background: var(--b-surface); box-shadow: var(--b-shadow); }
.pp-guide li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--b-line); font-size: 18px; font-weight: 600; }
.pp-guide li:last-child { border-bottom: 0; }
.pp-guide-label { display: inline-flex; align-items: center; gap: 12px; }
.pp-guide-label .pp-ico { flex-shrink: 0; width: 32px; height: 32px; }
/* Lo que incluyen todos los planes: etiquetas con icono */
.pp-includes { list-style: none; padding: 0; margin: 18px auto 0 !important; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 900px; }
.pp-includes li { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 10px; border-radius: 999px; background: var(--b-surface); box-shadow: var(--b-shadow); font-size: 17px; font-weight: 700; }
.pp-includes .pp-ico { width: 36px; height: 36px; }
.pp-guide a { color: var(--b-pink-ink); font-weight: 800; white-space: nowrap; text-decoration: underline; text-underline-offset: 3px; }
.pp-demo { font-size: 18px !important; }
.pp-demo a { color: var(--b-text); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.pp-feats li small { display: block; color: var(--b-muted); font-size: 15px; font-weight: 600; }
.pp-block-head p strong { color: var(--b-text); font-weight: 800; }


/* Cada bloque: pago único / mensual */
.pp-block { margin-top: 48px; }
.pp-block-head { margin-bottom: 20px; }
.pp-block-head h2 { font-size: var(--b-fs-h2, clamp(26px, 2.6vw, 34px)); font-weight: 800; line-height: 1.1; }
.pp-block-head p { margin-top: 6px !important; color: var(--b-muted); font-size: var(--b-fs-lead, 19px); }
.pp-block + .pp-block { padding-top: 48px; border-top: 2px solid var(--b-line); }
.pp-cards { display: grid; gap: 20px; }
.pp-block--once .pp-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }   /* mismas columnas que los mensuales: tarjetas alineadas */
.pp-block--monthly .pp-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Tarjeta de plan */
.pp-plan {
    scroll-margin-top: calc(var(--site-header-h, 80px) + 24px);
    display: flex; flex-direction: column;
    padding: 26px 24px 24px;
    border: 3px solid transparent;
    border-radius: var(--b-radius-lg);
    background: var(--b-surface);
    box-shadow: var(--b-shadow);
}
.pp-plan.is-active { border-color: var(--b-green); }
.pp-plan-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pp-plan-name { display: flex; align-items: center; gap: 10px; font-size: var(--b-fs-h3, 24px); font-weight: 800; line-height: 1.15; }
.pp-plan-name .pp-ico { flex-shrink: 0; width: 40px; height: 40px; }
.pp-plan-current { color: var(--b-green-ink); font-size: 16px; font-weight: 800; white-space: nowrap; }
.pp-plan-for { margin-top: 4px !important; color: var(--b-muted); font-size: 17px; line-height: 1.35; }
.pp-price { display: flex; align-items: baseline; gap: 6px; margin-top: 18px; }
.pp-price-num { font-size: 44px; font-weight: 800; line-height: 1; }
.pp-price-rest { color: var(--b-muted); font-size: 17px; font-weight: 700; }
.pp-feats { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; gap: 8px; }
.pp-feats li { position: relative; padding-left: 26px; font-size: 17px; font-weight: 600; line-height: 1.35; }
.pp-feats li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--b-green); font-weight: 800; }
.pp-plan .b-btn { width: 100%; margin-top: auto; }
.pp-plan .b-btn[disabled] { cursor: default; background: var(--b-green-soft); border-color: var(--b-green-soft); color: var(--b-green-ink); }
.pp-note { margin-top: 16px !important; color: var(--b-muted); font-size: 16px; }

/* Extras: packs de cartones y tema a medida */
.pp-extras { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.pp-extra { display: flex; flex-direction: column; padding: 26px 24px; }
.pp-extra > .pp-ico { width: 48px; height: 48px; margin-bottom: 10px; }
.pp-extra h3 { font-size: var(--b-fs-h3, 22px); font-weight: 800; line-height: 1.15; }
.pp-extra > p { margin-top: 6px !important; color: var(--b-muted); font-size: 17px; line-height: 1.4; }
.pp-rows { list-style: none; padding: 0; margin: 16px 0 20px; }
.pp-rows li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--b-line); font-size: 18px; font-weight: 600; }
.pp-rows li:last-child { border-bottom: 0; }
.pp-rows strong { font-weight: 800; white-space: nowrap; }
.pp-extra .b-btn { align-self: flex-start; margin-top: auto; }

/* Preguntas */
.pp-faq { display: grid; gap: 10px; }
.pp-faq details { border-radius: 20px; background: var(--b-surface); box-shadow: var(--b-shadow); }
.pp-faq summary {
    display: flex; align-items: center; gap: 12px;
    padding: 18px 22px;
    font-size: 19px; font-weight: 800; line-height: 1.25;
    cursor: pointer; list-style: none;
}
.pp-faq summary::-webkit-details-marker { display: none; }
.pp-faq summary::after {
    content: '+'; margin-left: auto; flex-shrink: 0;
    width: 32px; height: 32px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--b-surface-2); font-size: 22px; line-height: 1;
}
.pp-faq details[open] summary::after { content: '−'; }
.pp-faq details p { padding: 0 22px 20px; color: var(--b-muted); font-size: 18px; }

@media (max-width: 960px) {
    .pp-block--monthly .pp-cards { grid-template-columns: 1fr; max-width: 520px; }
    .pp-block--once .pp-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 780px; }
    .pp-extras { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .pp-hero { padding-top: 28px; }
    .pp-hero p { font-size: var(--b-fs-lead, 18px); }
    .pp-guide li { padding: 10px 14px; font-size: 16px; }
    .pp-includes li { font-size: 15px; padding: 6px 12px 6px 8px; }
    .pp-includes .pp-ico { width: 30px; height: 30px; }
    .pp-block { margin-top: 36px; }
    .pp-block + .pp-block { padding-top: 36px; }
    .pp-block-head p { font-size: var(--b-fs-lead, 17px); }
    .pp-block--once .pp-cards { grid-template-columns: 1fr; }
    .pp-plan { padding: 22px 18px 18px; }
    .pp-price-num { font-size: 40px; }
    .pp-extra { padding: 20px 18px; }
    .pp-extra .b-btn { align-self: stretch; }
    .pp-faq summary { padding: 16px; font-size: 17px; }
    .pp-faq details p { padding: 0 16px 16px; font-size: 17px; }
}
.pp-faq details p a { color: var(--b-pink-ink); font-weight: 800; }

/* Nota del plan de prueba (solo admin) */
.pp-admin-note { margin-top: 6px !important; color: var(--b-pink-ink); font-size: 15px; font-weight: 800; }

/* Resaltado al llegar desde la guía rápida (flashPlanCard en premium.php) */
.pp-plan { transition: box-shadow .3s ease; }
.pp-plan.plan-anchor-flash { box-shadow: 0 0 0 6px rgba(26, 188, 245, .35), var(--b-shadow-hover); }

/* Aviso inferior (showToast en premium.php) */
.toast {
    position: fixed; bottom: 30px; left: 50%; z-index: 1000;
    max-width: min(90vw, 520px);
    padding: 14px 22px;
    border-radius: 16px;
    background: var(--b-text); color: #fff;
    font-family: var(--b-font); font-size: 17px; font-weight: 700; text-align: center;
    opacity: 0; pointer-events: none;
    transform: translateX(-50%) translateY(100px);
    transition: transform .3s ease, opacity .3s ease;
}
.toast.visible { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (prefers-reduced-motion: reduce) {
    .pp *, .toast { transition: none !important; }
}
