/* MIS DÍAS · app web (PWA). Móvil primero; en pantallas grandes se centra como una app. */
.app { min-height: 100vh; background: var(--bg); overscroll-behavior-y: contain; }
.view { width: min(560px, 100%); margin: 0 auto; padding: calc(14px + env(safe-area-inset-top)) 16px 30px; outline: none; display: flex; flex-direction: column; gap: 14px; }
body.has-tabs .view { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
.view > * { margin: 0; }
.loading-view { min-height: 60vh; display: grid; place-items: center; }
.spin { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--primary-2); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn.loading { position: relative; color: transparent !important; }
.btn.loading::after { content: ''; position: absolute; width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.5); border-top-color: #fff; animation: spin .7s linear infinite; }
.btn-outline.loading::after, .btn-ghost.loading::after { border-color: var(--line); border-top-color: var(--primary); }

.splash { position: fixed; inset: 0; z-index: 100; background: var(--grad); display: grid; place-content: center; text-align: center; color: #fff; transition: opacity .35s; }
.splash img { margin: 0 auto 10px; animation: pulse 1.6s ease-in-out infinite; filter: drop-shadow(0 8px 20px rgba(0,0,0,.2)); background: #FFF7F2; border-radius: 28px; padding: 10px; }
.splash p { font-size: 1.6rem; letter-spacing: 3px; color: #fff; }
.splash.out { opacity: 0; pointer-events: none; }
@keyframes pulse { 50% { transform: scale(1.06) rotate(6deg); } }
.offline-bar { position: sticky; top: 0; z-index: 30; background: #4a2c3a; color: #fff; text-align: center; font-size: 13px; padding: 8px; }

/* Barra inferior */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; justify-content: space-around; align-items: flex-end; gap: 4px;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line); max-width: 560px; margin: 0 auto; border-radius: 22px 22px 0 0; box-shadow: 0 -6px 24px rgba(120,45,80,.08); }
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--muted); text-decoration: none; font-size: 11px; font-weight: 600; padding: 4px 0; -webkit-tap-highlight-color: transparent; }
.tab.on { color: var(--primary); }
.tab-ic { display: grid; place-items: center; height: 28px; }
.tab-main .tab-ic { width: 54px; height: 54px; margin-top: -26px; border-radius: 50%; background: var(--grad); color: #fff; box-shadow: 0 10px 24px rgba(197,27,101,.35); border: 4px solid var(--bg); }

/* Encabezados */
.page-head { display: flex; align-items: center; gap: 10px; }
.page-head h1 { flex: 1; font-size: 1.7rem; margin: 0; }
.back, .icon-btn { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--surface); color: var(--primary); border: 0; box-shadow: var(--shadow); cursor: pointer; }
.icon-btn[disabled] { opacity: .35; }
.log-head .center { flex: 1; }
.log-head h1 { font-size: 1.45rem; }
.mt { margin-top: 18px; }

/* Ingreso */
.view-login, .view-registro, .view-olvide { padding: 0; width: 100%; max-width: none; }
.auth { min-height: 100vh; background: var(--grad); padding: calc(28px + env(safe-area-inset-top)) 16px 30px; display: flex; flex-direction: column; align-items: center; }
.auth-top { text-align: center; color: #fff; margin-bottom: 18px; }
.auth-top img { margin: 0 auto; filter: drop-shadow(0 6px 16px rgba(0,0,0,.18)); }
.auth-brand { font-size: 1.9rem; letter-spacing: 3px; margin: 6px 0 0; color: #fff; }
.auth-slogan { opacity: .9; margin: 0; font-size: 14px; }
.auth-card { width: min(440px, 100%); position: relative; padding: 26px 22px; }
.auth-card h1 { font-size: 1.6rem; margin-top: 4px; padding-right: 86px; }
.auth-lang { position: absolute; top: 16px; right: 16px; }
.auth-foot { color: rgba(255,255,255,.88); text-align: center; max-width: 380px; margin-top: 16px; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; margin: 14px 0; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.alert { background: #FDECEC; color: var(--danger); border-radius: 12px; padding: 10px 14px; font-size: 14px; }
.alert.ok { background: #E8F4EE; color: var(--ok); }
.chip.trial { background: #FFF1D6; color: #8A5A00; margin-bottom: 12px; }

/* Onboarding */
.onb-head { text-align: center; }
.onb-head img { margin: 0 auto 6px; }
.step-l { font-size: 12px; font-weight: 700; color: var(--primary-2); text-transform: uppercase; letter-spacing: 1px; }
.onb-step h2 { font-size: 1.3rem; }
.onb-step h3 { margin-top: 20px; font-size: 1.05rem; }
.check { display: flex; align-items: center; gap: 10px; margin: 12px 0; font-size: 14.5px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--primary); }
.opts { display: grid; gap: 10px; }
.opt input { position: absolute; opacity: 0; }
.opt span { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 16px; border: 1.5px solid var(--line); cursor: pointer; font-weight: 600; }
.opt input:checked + span { border-color: var(--primary); background: var(--surface-2); color: var(--primary); }
.opt input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--primary-2) 40%, transparent); }
.row-btns { display: flex; gap: 10px; margin-top: 14px; }
.row-btns .btn { flex: 1; }
.stack { display: grid; gap: 10px; margin-top: 12px; }

.stepper { display: inline-flex; align-items: center; gap: 10px; background: var(--surface-2); border-radius: 999px; padding: 6px; }
.stepper button { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--surface); color: var(--primary); font-size: 22px; font-weight: 600; cursor: pointer; box-shadow: var(--shadow); }
.stepper output { min-width: 40px; text-align: center; font-family: var(--serif); font-size: 1.5rem; color: var(--primary); }

/* Inicio */
.home-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.home-head h1 { font-size: 1.75rem; margin: 0; }
.home-head p { margin: 0; text-transform: capitalize; }
.bell { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--surface); color: var(--primary); box-shadow: var(--shadow); }
.bell .dot { position: absolute; top: 4px; right: 4px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--magenta); color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; }
.ring-card { text-align: center; padding: 18px 18px 20px; background: radial-gradient(120% 70% at 50% 0%, color-mix(in srgb, var(--rosa) 22%, var(--surface)) 0%, var(--surface) 70%); }
.ring-wrap { position: relative; display: grid; place-items: center; }
.ring { display: block; }
.ring-me { animation: orbit-in .9s cubic-bezier(.2,.8,.2,1) both; transform-origin: 100px 100px; }
@keyframes orbit-in { from { transform: rotate(-40deg); opacity: 0; } }
.ring-center { position: absolute; inset: 0; margin: auto; width: 58%; max-width: 168px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 4px; }
.ph-label { font-weight: 700; font-size: 11.5px; letter-spacing: 1.4px; text-transform: uppercase; }
.ph-menstrual .ph-label { color: var(--ph-menstrual); } .ph-follicular .ph-label { color: #D9705A; } .ph-ovulation .ph-label { color: var(--ph-ovulation); } .ph-luteal .ph-label { color: var(--ph-luteal); }
[data-theme="noche"] .ph-ovulation .ph-label { color: var(--fertile); }
.ring-center b { font-family: var(--serif); font-weight: 500; font-size: 1.9rem; color: var(--primary); line-height: 1.1; }
.ring-center span { font-size: 13px; color: var(--text); line-height: 1.35; }
.ring-sub { color: var(--muted); font-size: 13.5px; margin: 2px 0 6px !important; }
.chip.fert { background: var(--fertile-soft); color: var(--verde); }
[data-theme="noche"] .chip.fert { color: #A9D3C9; }
.phase-desc { font-size: 13.5px; color: var(--muted); margin: 14px 0 0 !important; }
.hero-empty { text-align: center; }
.hero-empty img { margin: 0 auto 6px; }
.log-card { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--text); }
.log-card div { flex: 1; display: grid; }
.log-card.done { color: var(--ok); }
.log-card.done b { color: var(--text); font-weight: 600; }
.log-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-2); color: var(--primary-2); }
.tip-card, .tomorrow-card, .report-card, .plus-teaser { display: flex; gap: 14px; align-items: flex-start; text-decoration: none; color: var(--text); }
.tip-card > .ic, .tomorrow-card > .ic { color: var(--primary-2); flex: none; margin-top: 2px; }
.tip-card p, .tomorrow-card p { margin: 4px 0 0; }
.tomorrow-card { background: linear-gradient(135deg, color-mix(in srgb, var(--fertile-soft) 70%, var(--surface)), var(--surface)); }
.tomorrow-card.teaser, .plus-teaser { background: var(--grad); color: #fff; align-items: center; }
.tomorrow-card.teaser .ic, .plus-teaser .ic { color: #fff; }
.tomorrow-card.teaser div, .plus-teaser div { flex: 1; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mini-stats div { background: var(--surface); border-radius: 18px; padding: 12px; box-shadow: var(--shadow); display: grid; gap: 2px; }
.mini-stats small { color: var(--muted); font-size: 11.5px; }
.mini-stats b { font-family: var(--serif); font-weight: 500; color: var(--primary); font-size: 1.05rem; }
.article-card { display: block; text-decoration: none; color: var(--text); }
.article-card h3 { margin: 4px 0 6px; }
.article-card p { margin: 0; }
.article-card.locked h3::after { content: ' 🔒'; font-size: .8em; }
.disclaimer { padding: 0 10px; }

/* Calendario */
.cal { padding: 14px 12px 16px; }
.cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-nav h2 { margin: 0; font-size: 1.25rem; text-transform: capitalize; }
.cal-nav button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--surface-2); color: var(--primary); display: grid; place-items: center; cursor: pointer; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-grid.wd span { text-align: center; font-size: 11.5px; font-weight: 700; color: var(--muted); padding: 4px 0; }
.cd { position: relative; aspect-ratio: 1; border: 0; background: transparent; border-radius: 50%; font: 600 14.5px var(--sans); color: var(--text); cursor: pointer; display: grid; place-items: center; padding: 0; }
.cd span { position: relative; z-index: 1; }
.cd.out { opacity: .35; }
.cd.period { background: var(--ph-menstrual); color: #fff; }
.cd.period_pred { background: transparent; box-shadow: inset 0 0 0 2px var(--ph-menstrual); color: var(--ph-menstrual); border: 0; }
.cd.period_pred::before { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: repeating-linear-gradient(45deg, var(--period-soft) 0 3px, transparent 3px 6px); }
.cd.fertile { background: var(--fertile-soft); color: var(--verde); }
.cd.ovulation { background: var(--ph-ovulation); color: #fff; }
.cd.fertile_past { background: color-mix(in srgb, var(--fertile-soft) 55%, transparent); }
.cd.ovulation_past { box-shadow: inset 0 0 0 2px var(--fertile); }
[data-theme="noche"] .cd.fertile { color: #A9D3C9; }
[data-theme="noche"] .cd.ovulation { background: var(--fertile); color: #10201c; }
.cd.late { box-shadow: inset 0 0 0 2px var(--warn); }
.cd.today { outline: 2.5px solid var(--primary); outline-offset: 1px; }
.cd.today span { font-weight: 800; }
.cd .ld { position: absolute; bottom: 4px; width: 5px; height: 5px; border-radius: 50%; background: var(--primary); }
.cd.period .ld { background: #fff; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 14px; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg { width: 14px; height: 14px; border-radius: 50%; display: inline-block; }
.lg.period { background: var(--ph-menstrual); } .lg.period_pred { box-shadow: inset 0 0 0 2px var(--ph-menstrual); }
.lg.fertile { background: var(--fertile-soft); box-shadow: inset 0 0 0 1px var(--fertile); } .lg.ovulation { background: var(--ph-ovulation); }
.lg.log { width: 6px; height: 6px; background: var(--primary); }
.list-link { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); font-weight: 600; }
.list-link span { flex: 1; }
.chip.warn { background: #FFF1E3; color: var(--warn); }
.ph-chip { margin-right: 6px; }
.ph-chip.ph-menstrual { background: var(--period-soft); color: var(--ph-menstrual); }
.ph-chip.ph-ovulation { background: var(--fertile-soft); color: var(--verde); }

.plain { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.per-row { display: flex; align-items: center; gap: 12px; cursor: pointer; padding: 14px 16px; }
.per-row div { flex: 1; }
.per-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--ph-menstrual); }
.empty { text-align: center; padding: 40px 10px; color: var(--muted); }
.empty .ic { margin: 0 auto 8px; display: block; }

/* Registro */
.log-form { display: grid; gap: 12px; }
.log-form .card h3 { display: flex; align-items: center; gap: 8px; font-size: 1.02rem; margin-bottom: 12px; }
.log-form h4 { font-size: 13.5px; color: var(--muted); margin: 16px 0 8px; font-weight: 600; }
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg-b { flex: 1 1 0; min-width: 62px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: 16px; border: 1.5px solid var(--line);
  background: var(--surface); color: var(--text); font: 600 12px var(--sans); cursor: pointer; }
.seg-b.on { border-color: var(--primary); background: var(--surface-2); color: var(--primary); }
.drops { display: flex; gap: 2px; height: 16px; align-items: center; }
.drops i { width: 9px; height: 13px; background: var(--ph-menstrual); border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; }
.drops i.none { background: none; border: 1.5px dashed var(--line); }
.drops i.sm { opacity: .5; transform: scale(.7); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chip-b { padding: 9px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--text); font: 600 13px var(--sans); cursor: pointer; white-space: nowrap; }
.chip-b.on { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
details.more summary { list-style: none; cursor: pointer; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary h3::after { content: '+'; margin-left: auto; font-family: var(--sans); color: var(--muted); }
details.more[open] summary h3::after { content: '−'; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.grid2 .field span { display: flex; align-items: center; gap: 4px; }
.pill-check { margin: 26px 0 0; }
.sticky-save { position: sticky; bottom: calc(92px + env(safe-area-inset-bottom)); z-index: 5; padding-top: 4px; }
.view-recordatorios .sticky-save { bottom: calc(14px + env(safe-area-inset-bottom)); }

/* Estadísticas */
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kpi { display: grid; gap: 2px; padding: 16px; }
.kpi small { color: var(--muted); font-size: 12px; }
.kpi b { font-family: var(--serif); font-weight: 500; font-size: 2rem; color: var(--primary); line-height: 1.1; }
.kpi b.kpi-t { font-size: 1.25rem; padding: 6px 0; }
.kpi span { font-size: 12px; color: var(--muted); }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 170px; padding-top: 10px; }
.bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; min-width: 0; }
.bar i { width: 100%; max-width: 30px; border-radius: 10px 10px 4px 4px; background: linear-gradient(180deg, var(--primary-2), var(--primary)); min-height: 6px; }
.bar i.out { background: linear-gradient(180deg, #F0A65C, var(--warn)); }
.bar b { font-size: 11.5px; color: var(--primary); }
.bar small { font-size: 10px; color: var(--muted); white-space: nowrap; }
.patterns { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.patterns li { display: flex; gap: 12px; align-items: center; }
.patterns div { display: grid; }
.pdot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 8px; flex: none; }
.pdot.ph-menstrual { background: var(--ph-menstrual); } .pdot.ph-follicular { background: var(--ph-follicular); } .pdot.ph-ovulation { background: var(--ph-ovulation); } .pdot.ph-luteal { background: var(--ph-luteal); }
.ph-table, .hist { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ph-table th, .ph-table td, .hist th, .hist td { padding: 9px 4px; border-bottom: 1px solid var(--line); text-align: left; }
.ph-table thead th, .hist thead th { color: var(--muted); font-size: 12px; font-weight: 600; }
.ph-table tbody th { font-weight: 600; white-space: nowrap; }
.meter { display: inline-block; width: 64px; height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; vertical-align: middle; }
.meter i { display: block; height: 100%; background: var(--primary-2); border-radius: 4px; }
.report-card { align-items: center; }
.report-card div { flex: 1; }
.report-card p { margin: 2px 0 0; }

/* Perfil */
.prof-head { display: flex; align-items: center; gap: 14px; }
.prof-head div { flex: 1; display: grid; min-width: 0; }
.prof-head .muted { overflow: hidden; text-overflow: ellipsis; }
.avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-size: 1.5rem; flex: none; }
.plus-chip { background: #FFF1D6; color: #8A5A00; }
.plus-banner { display: flex; align-items: center; gap: 14px; text-decoration: none; background: var(--grad); color: #fff; }
.plus-banner div { flex: 1; display: grid; }
.plus-badge { width: 46px; height: 46px; border-radius: 14px; background: rgba(255,255,255,.2); display: grid; place-items: center; color: #fff; flex: none; }
.plus-badge.big { width: 64px; height: 64px; border-radius: 20px; background: var(--grad); margin: 0 auto 10px; }
.list { padding: 6px 0; }
.list-row { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 20px; color: var(--text); text-decoration: none; font: 600 15px var(--sans); background: none; border: 0; cursor: pointer; text-align: left; }
.list-row + .list-row { border-top: 1px solid var(--line); }
.list-row > .ic:first-child { color: var(--primary-2); }
.list-row span { flex: 1; }
.list-row.danger, .list-row.danger .ic { color: var(--danger); }
.mini-plus { font-style: normal; font-size: 10.5px; font-weight: 700; background: #FFF1D6; color: #8A5A00; padding: 2px 7px; border-radius: 6px; }
.badge { background: var(--magenta); color: #fff; font-size: 11px; font-weight: 700; border-radius: 9px; padding: 1px 7px; }
.ok-line { color: var(--ok); display: flex; align-items: center; gap: 8px; }
.themes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.theme-b { border: 1.5px solid var(--line); background: var(--surface); border-radius: 14px; padding: 8px 4px; display: grid; justify-items: center; gap: 4px; font: 600 11px var(--sans); color: var(--text); cursor: pointer; position: relative; }
.theme-b i { width: 28px; height: 28px; border-radius: 50%; }
.theme-b em { position: absolute; top: -7px; right: -4px; font-style: normal; font-size: 9px; background: #FFF1D6; color: #8A5A00; padding: 1px 5px; border-radius: 6px; }
.theme-b.on { border-color: var(--primary); box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 25%, transparent); }
.th-ciruela i { background: linear-gradient(135deg, #782D50, #F27679); } .th-coral i { background: linear-gradient(135deg, #C24E57, #F8B195); }
.th-verde i { background: linear-gradient(135deg, #344D49, #7FA79E); } .th-arena i { background: linear-gradient(135deg, #8A5A44, #E7C3A5); } .th-noche i { background: linear-gradient(135deg, #1C1218, #9C2A5A); }
.switch { display: flex; align-items: flex-start; gap: 12px; margin: 14px 0; cursor: pointer; }
.switch input { appearance: none; width: 46px; height: 28px; border-radius: 14px; background: var(--line); position: relative; flex: none; cursor: pointer; transition: background .2s; margin: 0; }
.switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.switch input:checked { background: var(--primary); }
.switch input:checked::after { transform: translateX(18px); }
.switch span { display: grid; gap: 2px; padding-top: 3px; }
.rem.locked { opacity: .78; }
.rem-opts { display: flex; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--muted); }
.rem-opts label { display: grid; gap: 4px; }
.rem-opts input { min-height: 42px; width: 130px; }
.rem-opts .wide { flex: 1 1 100%; }
.rem-opts .wide input { width: 100%; }
#rf { display: grid; gap: 12px; }
.danger-zone { border: 1.5px solid color-mix(in srgb, var(--danger) 30%, transparent); }
.danger-zone h3 { color: var(--danger); }

/* Plus */
.plus-hero { text-align: center; background: radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--rosa) 30%, var(--surface)), var(--surface)); }
.plans { display: grid; gap: 10px; margin-bottom: 14px; }
.plan input { position: absolute; opacity: 0; }
.plan-b { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 16px; border-radius: 18px; border: 2px solid var(--line); cursor: pointer; position: relative; }
.plan-b b { font-size: 1.05rem; }
.plan-b strong { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; color: var(--primary); grid-row: span 2; align-self: center; }
.plan-b small { color: var(--muted); }
.plan-b em { position: absolute; top: -10px; right: 14px; background: var(--magenta); color: #fff; font-style: normal; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.plan input:checked + .plan-b { border-color: var(--primary); background: var(--surface-2); }
.coupon { margin: 0 0 14px; }
.coupon summary { cursor: pointer; color: var(--primary-2); font-weight: 600; font-size: 14px; }
.inline { display: flex; gap: 8px; margin-top: 10px; }
.inline input { flex: 1; }
.strike { text-decoration: line-through; }
.share-row { display: grid; gap: 10px; }
.share-row div:first-child { display: grid; gap: 4px; }
.share-row input { font-size: 13px; }

/* Avisos y artículos */
.notifs li { padding: 0; }
.notifs a { display: block; padding: 16px 18px; color: var(--text); text-decoration: none; }
.notifs p { margin: 4px 0; color: var(--muted); }
.notifs .unread { border-left: 4px solid var(--magenta); }
.articles { display: grid; gap: 12px; }
.article h1 { font-size: 1.7rem; margin-top: 6px; }
.article .lead { font-size: 1.05rem; color: var(--muted); }
.article-body h3 { margin-top: 1.4em; }
.article-body li { margin: 6px 0; }
.locked-box { text-align: center; padding: 24px; background: var(--surface-2); border-radius: 18px; color: var(--primary); }
.locked-box .ic { margin: 0 auto; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; text-align: left; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks .ic { flex: none; color: var(--primary-2); margin-top: 2px; }

/* Hoja inferior y avisos */
.sheet-wrap { position: fixed; inset: 0; z-index: 60; }
.sheet-bg { position: absolute; inset: 0; background: rgba(42, 21, 32, .45); opacity: 0; transition: opacity .2s; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; margin: 0 auto; width: min(560px, 100%); max-height: 88vh; overflow: auto; background: var(--surface); border-radius: 26px 26px 0 0;
  padding: 26px 20px calc(24px + env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform .22s cubic-bezier(.2,.8,.2,1); }
.sheet h2 { font-size: 1.35rem; padding-right: 40px; }
.sheet-wrap.open .sheet-bg { opacity: 1; }
.sheet-wrap.open .sheet { transform: none; }
.sheet-x { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--surface-2); color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.sheet .chip { margin: 0 6px 8px 0; }
@media (min-width: 700px) { .sheet { bottom: auto; top: 50%; border-radius: 26px; transform: translateY(-40%) scale(.97); opacity: 0; transition: .2s; } .sheet-wrap.open .sheet { transform: translateY(-50%); opacity: 1; } }
.toast { position: fixed; left: 50%; bottom: calc(110px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); z-index: 80; background: #2A1520; color: #fff; padding: 12px 20px;
  border-radius: 999px; font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: .25s; max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: var(--danger); }

@media (min-width: 900px) {
  .app { background: radial-gradient(900px 600px at 100% 0%, color-mix(in srgb, var(--rosa) 35%, transparent), transparent 60%), radial-gradient(700px 500px at 0% 100%, var(--arena), transparent 60%), var(--bg); }
}

