@import url('./cycle-styles.css');
@import url('./welcome-fields.css');
@import url('./fichas/fichas.css');
/* Inherit existing KRATOS fonts and theme; never restyle legacy surfaces. */
/* Destination filtering is opt-in and keeps legacy handlers and routes intact. */
[data-personal-screen='calendar'] .kratos-shell>:not([data-personal-greeting]):not([data-personal-care-top]):not([data-terms-surface]):not(.opening-reflection):not([data-personal-today]):not(.day-hero):not([data-personal-reading]):not([data-editorial-home]):not([data-purchase-root]){display:none!important}
[data-personal-screen='calendar'] .calendar-block{display:none!important}
[data-personal-screen='calendar'] .opening-reflection .section-order{display:none}
[data-personal-screen='calendar'] .section-block .quote-card:not(:first-child){display:none}
[data-personal-screen='calendar'] [data-editorial-home]>article:not(:first-child){display:none}
[data-personal-screen='calendar'] .v2-calendar-selector{display:none}
[data-personal-screen='calendar'] .day-hero{padding:16px;margin:12px 0}
[data-personal-screen='calendar'] .day-hero h1{font-size:2rem;letter-spacing:normal}
[data-personal-screen='calendar'] .personal-surface{padding:8px 0;margin:0}
[data-personal-screen='calendar'] .personal-card h2{font-size:1.3rem}
[data-personal-screen='calendar'] .cycle-ring{width:64px;height:64px}
[data-personal-screen='calendar'] .quote-card{padding:16px}
[data-personal-screen='library'] .kratos-shell>:not(.rhythm-panel):not(.section-block):not(.sequence-card):not(.month-perspective):not(.moon-card):not([data-personal-route-link]){display:none!important}
[data-personal-screen='you'] .kratos-shell>:not([data-path-root]){display:none!important}
[data-personal-screen='you'] .kratos-shell{min-height:0}
[data-personal-shell] .start-invitation{display:none}
[data-personal-screen='settings'] .screen-awake-control{display:block!important}
[data-personal-screen='settings'] .control-panel>:not(.screen-awake-control):not(.appearance-control):not(.language-toggle):not([data-engagement-settings]):not([data-personal-route-link]):not([data-notice-settings]):not(.about-entry){display:none!important}
[data-personal-screen='calendars'] .screen-awake-control{display:none!important}
/* v4-post header: logo, Tú, Ajustes and «Ampliar». Language and theme live in Ajustes; the guide stays in Ajustes. */
[data-personal-shell] .editorial-controls>button:nth-last-child(2),
[data-personal-shell] .editorial-controls>:is(.editorial-language,.editorial-theme-quick),
[data-personal-shell] .editorial-controls>[data-header-expanded]:not([data-personal-expand]),
[data-personal-shell] .editorial-controls>[data-header-expanded][hidden],
[data-personal-shell][data-personal-entitled] .editorial-controls>[data-header-expanded],
[data-personal-shell][data-personal-care-day] .editorial-controls>[data-header-expanded],
/* Decision of Sel (08/11/2026): on Hoy the invitation is only «Sigue descubriendo», at the end. */
body:has([data-personal-screen='calendar']) .editorial-controls>[data-header-expanded]{display:none!important}
[data-personal-shell] .editorial-controls>[data-personal-expand]{min-height:44px;font-size:.9rem;border:1px solid var(--gold);border-radius:22px;padding:0 14px;color:var(--gold);background:transparent}
.personal-you{display:inline-flex;align-items:center;gap:6px;min-height:44px;min-width:44px;padding:0 12px;border:1px solid var(--line,currentColor);border-radius:22px;background:transparent;color:var(--text);font:inherit;font-size:.95rem;cursor:pointer}
.personal-you svg{flex:none}
.personal-you:focus-visible,[data-personal-expand]:focus-visible,.about-entry:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
/* Footer links leave the shell: privacy, terms, legal notice and contact live in «Acerca de y ayuda». */
[data-personal-screen] .editorial-note>p:has(a),[data-personal-screen] .editorial-note>.about-panel{display:none!important}
/* «Acerca de y ayuda»: small entry at the end of Ajustes, and its screen. */
[data-personal-screen='settings'] .control-panel>.about-entry{display:block!important}
.about-entry{min-height:44px;margin-top:16px;border:0;background:transparent;color:var(--muted);font:inherit;font-size:.85rem;text-decoration:underline;text-underline-offset:4px;cursor:pointer}
.personal-surface [data-about-section] h2{font-size:1.2rem}
.personal-surface [data-about-section] .personal-quiet,.personal-quiet{font-size:.85rem;color:var(--muted)}
.personal-surface [data-about-statistics]{display:flex;gap:8px;align-items:center;min-height:44px}
.personal-surface{--ink:var(--text);--quiet:var(--muted);--accent:var(--gold);--paper:var(--bg);--card:var(--panel);max-width:900px;margin:0 auto 24px;padding:24px;color:var(--ink)}
.personal-surface[hidden]{display:none}
.personal-surface h1,.personal-surface h2{letter-spacing:normal;background:transparent;font-weight:400;line-height:1.25}
.personal-surface h1{font-size:clamp(1.9rem,5vw,2.8rem)}
.personal-surface .personal-card{padding:16px 0;border:0;background:transparent}
.personal-surface button{min-height:44px;border:0;border-radius:0;background:transparent;color:var(--accent);padding:10px 8px;text-decoration:underline;text-underline-offset:5px;font:inherit;cursor:pointer}
.personal-surface button.personal-primary{background:var(--accent);color:var(--bg);padding:12px 20px;border-radius:8px;text-decoration:none}
.personal-surface :is(button,input,a,summary):focus-visible{outline:2px solid var(--accent);outline-offset:4px}
.personal-surface label{display:block;margin:20px 0}
.personal-surface input:not([type=checkbox]):not([type=radio]){display:block;width:100%;min-width:0;min-height:44px;padding:10px;background:var(--paper);color:var(--ink);border:1px solid var(--quiet);font:inherit}
.personal-surface .calendar-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:24px}
.personal-surface .calendar-grid article{border-bottom:1px solid var(--quiet);padding:12px 0}
.personal-surface .choices{display:flex;flex-wrap:wrap;gap:8px}
.personal-surface .portrait{font-size:1.5rem;line-height:1.5}
.personal-surface .cycle-ring{width:100px;height:100px;color:var(--accent)}
.personal-surface .cycle-summary{display:flex;align-items:center;flex-wrap:wrap;gap:12px}
.personal-surface .cycle-summary{display:grid;grid-template-columns:64px minmax(0,1fr);gap:8px 12px}
.personal-surface .cycle-summary .cycle-ring{grid-row:1 / 3;width:64px;height:64px}
.personal-surface .cycle-summary h2{margin:0}
.personal-surface .cycle-summary button{grid-column:2;justify-self:start}
[data-personal-greeting]{position:relative;transform:none;margin:16px 0 24px;line-height:1.3;isolation:isolate}
[data-personal-screen='calendar'] .opening-reflection{position:relative;transform:none;margin-top:0;clear:both}
.personal-surface .portrait-recognition-choices{display:flex;gap:12px;flex-wrap:nowrap}
.personal-surface .portrait-recognition-choices button{flex:1;white-space:nowrap}
.personal-surface .portrait-recognition-choices [aria-pressed='true']{background:var(--accent);color:var(--bg);border-radius:8px;text-decoration:none}
.personal-surface fieldset{border:0;padding:0}
.personal-surface .checkin-dots{display:flex;justify-content:space-between}
.personal-surface .checkin-dots label{min-width:44px;min-height:44px;display:grid;place-items:center;margin:8px 0}
.personal-surface .checkin-dots input{appearance:none;width:14px;height:14px;border-radius:50%;border:1px solid var(--accent)}
.personal-surface .checkin-dots input:checked{background:var(--accent)}
.personal-surface .purchase-panel,.personal-surface .purchase-panel p,.personal-surface #purchase-title{background:var(--card);color:var(--ink)}
.personal-avatar{border-radius:50%;min-width:44px;min-height:44px}
body:has([data-personal-welcome]) .editorial-mark{flex-basis:64px}
body:has([data-personal-welcome]) .editorial-mark img{width:64px;height:64px}
body:has([data-personal-welcome]) .editorial-controls [data-header-expanded]{display:none}
[data-personal-welcome] h1{font-size:1.65rem;margin:8px 0 16px;font-family:var(--serif)}
[data-personal-welcome] .eyebrow{margin:0}
[data-personal-welcome] .personal-trust{font-size:.8rem;line-height:1.5}
[data-personal-welcome] .purchase-panel{border:0;box-shadow:none;padding:0;background:transparent;border-radius:0}
[data-personal-welcome] .purchase-panel p{background:transparent}
.personal-offer-preview{display:grid;gap:2px;border-inline-start:2px solid var(--accent);padding:4px 12px;margin:12px 0;font-size:.85rem}
.personal-offer-preview strong{font-weight:500;color:var(--accent)}
[data-personal-welcome] .personal-benefits{padding-inline-start:20px;font-size:.9rem;line-height:1.5;margin:12px 0}
[data-welcome-step='5'] h1{font-size:1.4rem;margin:6px 0 10px}
[data-welcome-step='5'] .purchase-panel{margin:8px 0}
[data-welcome-step='5'] .purchase-panel p{margin:6px 0}
[data-welcome-step='5'] .personal-offer-preview{margin:8px 0}
@media(max-width:400px){.personal-surface{padding:16px}}
.personal-surface .today-checkin{margin:12px 0}
.personal-surface .today-checkin h3{font-size:1rem;margin:0 0 4px}
.personal-surface .cycle-checkin-summary{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.cycle-care ul{list-style:none;padding:0;margin:8px 0}
.cycle-care li{margin:4px 0}
.cycle-care a{color:var(--accent);font-size:1.25rem;display:inline-flex;align-items:center;min-height:44px;text-underline-offset:4px}
.personal-surface .today-checkin{grid-column:2;min-width:0}
.personal-surface .today-checkin legend{font-size:.85rem;color:var(--quiet)}
.personal-surface .today-checkin .checkin-dots input{width:14px;height:14px;min-width:0;min-height:0;padding:0;margin:0}
[data-personal-care] [data-purchase-root]{display:none!important}
[data-personal-care-top]{padding-top:0;padding-bottom:0}
.cycle-care .cycle-care-call{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 20px;margin:8px 0;border-radius:24px;background:var(--accent,var(--gold));color:var(--paper,var(--bg));font-size:1.05rem;text-decoration:none}
.cycle-care .cycle-care-emergency{font-size:.95rem}
.personal-surface:has(>[data-welcome-step='5']){padding-top:4px}
.personal-surface .personal-card[data-welcome-step='5']{padding-top:4px}
[data-welcome-step='5'] .personal-offer-preview{display:block;margin:6px 0;padding:2px 10px}
[data-welcome-step='5'] .personal-benefits{margin:8px 0;line-height:1.4}
[data-welcome-step='5'] .personal-trust{margin:6px 0}
[data-welcome-step='5'] .purchase-panel{margin:4px 0}
[data-welcome-step='5'] .purchase-panel p{margin:4px 0;font-size:.92rem;line-height:1.4}
/* vc8 notice (DEFINICION 16.3): «Sí» and «Ahora no» with the same visual weight. */
.notice-proposal .notice-choice{display:block}
.notice-times button{margin-right:8px}
.notice-settings.personal-surface{padding:16px 0;margin:0}
.notice-status{color:var(--muted);margin:0}
.opening-reflection[data-notice-focus]{outline:1px solid var(--gold);outline-offset:8px;border-radius:8px}
/* v4-post: official Google Play badge and the withdrawal line under the buy button. */
.kratos-play-badge{display:inline-block;min-height:44px;margin:8px 0;border:0;text-decoration:none}
.kratos-play-badge img{display:block;height:56px;width:auto}
.kratos-play-badge-large img{height:72px}
.kratos-withdrawal{font-size:.8rem;line-height:1.5;color:var(--muted);margin:8px 0 0}
[data-personal-shell] .editorial-controls>[data-personal-expand]{flex:none;width:auto;min-width:0;max-width:max-content;white-space:nowrap}
.personal-surface [data-about-section] a{color:var(--gold);text-underline-offset:4px}
.personal-surface [data-about-section] ul{padding-left:20px}
.personal-surface [data-about-section] li{margin:6px 0;min-height:24px}
.personal-legal-line{font-size:.8rem;line-height:1.5;color:var(--muted)}
.personal-legal-line a,.personal-terms-update a{color:var(--gold)}
/* «Intro» (decision of Sel): first option of the menu (ES/EN), illustration in the 4.0 tokens, editorial text. */
@media(max-width:650px){[data-personal-shell] .editorial-primary:has([data-personal-intro]){grid-template-columns:repeat(5,minmax(0,1fr))}
 [data-personal-shell] .editorial-primary:has([data-personal-intro]) button{font-size:12px;overflow-wrap:normal;word-break:normal;padding:6px 1px}}
.personal-surface .intro-art{display:block;width:100%;max-width:560px;height:auto;margin:8px auto 16px;color:var(--gold)}
.intro-art .intro-line{fill:none;stroke:var(--gold);stroke-width:1.4;stroke-linecap:round;opacity:.85;stroke-dasharray:1;stroke-dashoffset:0;animation:intro-draw 1.6s ease-out both;animation-delay:calc(var(--i) * 90ms)}
.intro-art .intro-ring{fill:none;stroke:var(--gold);stroke-width:1;opacity:.6}
.intro-art .intro-point{fill:var(--text)}
@keyframes intro-draw{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}
@media (prefers-reduced-motion:reduce){.intro-art .intro-line{animation:none}}
.personal-surface .intro h1{font-family:var(--serif)}
.personal-surface .intro-text{font-family:var(--serif);font-size:1.2rem;line-height:1.7;max-width:62ch}
.personal-surface .intro-blocks{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:8px 32px}
.personal-surface .intro-block{border-top:1px solid var(--line);padding:12px 0}
.personal-surface .intro-block h3{font-family:var(--serif);font-weight:400;font-size:1.2rem;margin:4px 0}
.personal-surface .intro-block p{margin:4px 0 8px}
.personal-surface .intro-go{padding-left:0}
.personal-surface .intro-link{font-size:.85rem;color:var(--muted)}
