@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=EB+Garamond:ital,wght@0,400;0,500;1,400;1,500&family=DM+Mono:wght@400;500&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root { --ink: #202523; --muted: #69736e; --paper: #f5f2eb; --panel: #fffdf8; --line: #d9d5ca; --accent: #d94b4b; --teal: #2d6a6a; --gold: #d98b3d; --remaining: #e8d8c8; }
* { box-sizing: border-box; }
html { background: var(--paper); }
body { margin: 0; color: var(--ink); background: radial-gradient(circle at 80% 0%, #fff8e9 0, transparent 34rem), var(--paper); font-family: 'Space Grotesk', sans-serif; line-height: 1.45; }
body[data-theme='dark'] { --ink: #f5f2eb; --muted: #aeb9b2; --paper: #182321; --panel: #22302c; --line: #40514b; --remaining: #4b443c; background: var(--paper); }
body[data-theme='paper'] { --paper: #e7dfce; --panel: #f7f0df; }
.app-shell { max-width: 1180px; margin: 0 auto; padding: 32px 24px 48px; }
.title-box { padding: 24px 0 38px; max-width: 720px; }
.eyebrow, .section-kicker { color: var(--teal); font: 500 .73rem 'DM Mono', monospace; letter-spacing: .08em; margin: 0 0 10px; }
h1, h2, h3, p { margin-top: 0; } h1 { font-size: clamp(2.3rem, 6vw, 5.2rem); letter-spacing: -.06em; line-height: .95; margin-bottom: 18px; } h2 { font-size: 1.35rem; letter-spacing: -.03em; margin-bottom: 0; } h3 { font-size: 1rem; margin: 0 0 12px; }
.subtitle { color: var(--muted); font-size: 1.05rem; max-width: 560px; }
.unitbox, select, input, textarea, button, .button { border: 1px solid var(--line); border-radius: 3px; font: inherit; color: inherit; background: var(--panel); }
.unitbox { color: var(--accent); border-width: 0 0 2px; border-radius: 0; padding: 0 4px; font-weight: 600; font-size: .72em; vertical-align: .08em; }
.panel { background: color-mix(in srgb, var(--panel) 88%, transparent); border: 1px solid var(--line); padding: 22px; }
.setup-panel { display: flex; gap: 32px; justify-content: space-between; align-items: end; margin-bottom: 16px; }
.dob label { color: var(--muted); font-size: .88rem; display: grid; gap: 7px; } .dob label > span { display: flex; gap: 6px; } .dob select, .dob input { padding: 9px 8px; } .dob input { width: 76px; } .dob input:last-child { width: 88px; }
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 16px; } .stats article { background: var(--panel); padding: 18px; } .stats strong { display: block; color: var(--accent); font: 500 1.8rem 'DM Mono', monospace; } .stats span { color: var(--muted); font-size: .78rem; }
.toolbar { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-bottom: 58px; font-size: .85rem; color: var(--muted); } .toolbar label { display: flex; gap: 8px; align-items: center; } .small-input { width: 62px; padding: 5px; } .toolbar select { padding: 5px 8px; }
.switch input { position: absolute; opacity: 0; } .switch-ui { width: 36px; height: 20px; border-radius: 20px; background: var(--line); position: relative; pointer-events: none; } .switch-ui:after { content: ''; position: absolute; width: 14px; height: 14px; background: var(--panel); border-radius: 50%; top: 3px; left: 3px; transition: transform .2s; } .switch input:checked + .switch-ui { background: var(--teal); } .switch input:checked + .switch-ui:after { transform: translateX(16px); }
.chart-wrap { overflow-x: auto; padding-bottom: 20px; } .chart-heading { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 28px; } .chart-order { display: block; color: var(--muted); font: 400 .68rem 'DM Mono', monospace; margin-top: 8px; } .legend { color: #cbd5e1; font-size: .82rem; font-weight: 600; margin: 0; white-space: nowrap; display: flex; align-items: center; gap: 16px; } .legend-item { display: inline-flex !important; align-items: center !important; gap: 6px !important; width: auto !important; height: auto !important; color: #f1f5f9 !important; font-weight: 600 !important; } .legend-item span { display: inline-block; width: 10px; height: 10px; min-width: 10px; border-radius: 2px; } .legend-lived { background: var(--accent); } .legend-remaining { background: var(--remaining); } .legend-event { background: var(--teal); } .legend-goal { background: var(--gold); }
.chart { list-style: none; margin: 0 auto 54px; padding: 0; display: grid; gap: 5px; } .chart li { border: 1px solid var(--line); background: transparent; cursor: pointer; transition: transform .15s, background .15s, opacity .2s; } .chart li:hover, .chart li:focus-visible { transform: scale(1.35); outline: 2px solid var(--teal); z-index: 2; } .chart li.is-lived { background: var(--accent); border-color: var(--accent); } .chart li.is-remaining { background: var(--remaining); border-color: var(--remaining); } .chart li.is-beyond { display: none; } .chart.focus-remaining li.is-lived { opacity: .28; } .chart.focus-remaining li.is-remaining { opacity: 1; } .chart li.has-event { box-shadow: inset 0 -3px var(--teal); } .chart li.has-goal { box-shadow: inset 0 -3px var(--gold); }
.years { max-width: 620px; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 7px; } .years li { aspect-ratio: 1; margin: 0; } .years li:hover, .years li:focus-visible { transform: scale(1.18); } .months { max-width: 760px; grid-template-columns: repeat(24, minmax(0, 1fr)); } .months li { aspect-ratio: 1; border-radius: 50%; } .weeks { max-width: 900px; grid-template-columns: repeat(52, minmax(0, 1fr)); gap: 3px; } .weeks li { aspect-ratio: 1 / 1.5; }
.workspace-grid { display: grid; grid-template-columns: minmax(240px, .75fr) 1.7fr; gap: 16px; margin-bottom: 16px; } .period-detail { min-height: 220px; } .period-detail h3 { color: var(--accent); font: 500 1.3rem 'DM Mono', monospace; } .period-detail label { display: grid; gap: 6px; color: var(--muted); font-size: .8rem; margin-top: 22px; } textarea { min-height: 85px; resize: vertical; padding: 9px; } .save-note, button { cursor: pointer; background: var(--ink); color: var(--panel); border: 0; padding: 9px 13px; } .save-note { margin-top: 8px; background: var(--teal); } .tag { border-left: 3px solid; padding-left: 8px; font-size: .82rem; } .event-tag { border-color: var(--teal); } .goal-tag { border-color: var(--gold); }
.entry-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 22px; } .inline-form { display: grid; grid-template-columns: 1fr 66px auto; gap: 5px; margin-bottom: 13px; } .inline-form input { min-width: 0; padding: 7px; font-size: .8rem; } .inline-form button { padding: 6px 8px; font-size: .78rem; } .item-list { list-style: none; padding: 0; margin: 0; } .item-list li { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; border-top: 1px solid var(--line); padding: 9px 0; font-size: .8rem; } .item-list small, .muted { color: var(--muted); } .item-list button { background: transparent; color: var(--muted); padding: 0; font-size: .72rem; } .empty { color: var(--muted); font-size: .8rem; }
.tools { display: flex; justify-content: space-between; gap: 22px; align-items: center; } .button-row { display: flex; gap: 8px; flex-wrap: wrap; } .button { display: inline-block; padding: 9px 13px; cursor: pointer; background: var(--ink); color: var(--panel); font-size: .85rem; } .secondary { background: transparent; color: var(--ink); } .danger { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
footer { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; padding-top: 26px; color: var(--muted); font-size: .75rem; } footer p { margin: 0 auto 0 0; } footer a { color: inherit; }
.guide-help { position: fixed; right: 20px; bottom: 20px; z-index: 1001; width: 42px; height: 42px; border-radius: 50%; padding: 0; background: var(--teal); color: #fff; font: 500 1.1rem 'DM Mono', monospace; box-shadow: 0 5px 18px rgba(0,0,0,.16); }
.guide-overlay[hidden] { display: none; } .guide-overlay { position: fixed; inset: 0; z-index: 1000; } .guide-dim { position: absolute; inset: 0; background: rgba(20, 27, 25, .64); } .guide-card { position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%); width: min(450px, calc(100% - 28px)); background: var(--panel); border: 1px solid var(--line); padding: 24px; box-shadow: 0 18px 55px rgba(0,0,0,.24); } .guide-card h2 { color: var(--ink); margin-bottom: 10px; } .guide-text { color: var(--muted); margin-bottom: 22px; } .guide-progress { color: var(--muted); font: .72rem 'DM Mono', monospace; } .guide-actions { display: flex; align-items: center; gap: 8px; } .guide-actions span { flex: 1; } .guide-actions button { padding: 8px 12px; } .guide-actions .guide-skip, .guide-actions .guide-back { background: transparent; color: var(--muted); padding-left: 0; } .guide-actions .guide-back:disabled { opacity: .4; }
.guide-target { position: relative; z-index: 1001; outline: 3px solid var(--gold); outline-offset: 7px; box-shadow: 0 0 0 9999px rgba(20, 27, 25, .64); }
.guide-active .guide-help { display: none; }
.view-nav { display: flex; align-items: center; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 42px; font-size: .78rem; }
.view-nav a { color: var(--muted); text-decoration: none; } .view-nav a:hover, .view-nav a.active { color: var(--accent); } .view-nav .brand { color: var(--ink); font: 500 .82rem 'DM Mono', monospace; letter-spacing: .08em; } .view-links { display: flex; align-items: center; gap: 16px; margin-left: auto; } .nav-toggle { display: none; margin-left: auto; background: transparent; color: var(--ink); border: 1px solid var(--line); padding: 7px 10px; }
.view-header { max-width: 760px; padding-bottom: 36px; } .view-header h1 { max-width: 720px; }
.dashboard-stats { margin-bottom: 16px; } .dashboard-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; margin-bottom: 16px; } .now-card h2, .next-card h2 { color: var(--accent); font-size: 2.2rem; margin-bottom: 10px; } .next-card h2 { color: var(--teal); font-size: 1.5rem; } .progress { height: 8px; background: var(--line); margin: 26px 0 8px; } .progress span { display: block; height: 100%; background: var(--accent); } .now-card small { color: var(--muted); } .quick-links div { display: flex; gap: 12px; flex-wrap: wrap; } .quick-links a { color: var(--teal); border-bottom: 1px solid var(--teal); text-decoration: none; padding-bottom: 3px; }
.full-timeline li { padding: 18px 0; } .full-timeline li > span { white-space: nowrap; } .tag { display: inline-block; margin-left: 8px; border: 0; padding: 2px 6px; font: .68rem 'DM Mono', monospace; } .evento-tag { background: color-mix(in srgb, var(--teal) 18%, transparent); color: var(--teal); } .meta-tag { background: color-mix(in srgb, var(--gold) 20%, transparent); color: var(--gold); }
.journal-panel { display: grid; grid-template-columns: minmax(220px, .7fr) 1.3fr; gap: 32px; } .journal-form { display: grid; align-content: start; gap: 14px; } .journal-form label { display: grid; gap: 7px; color: var(--muted); font-size: .82rem; } .journal-form input, .journal-form textarea, .compare-form input { padding: 9px; } .journal-form textarea { min-height: 150px; } .journal-list { border-left: 1px solid var(--line); padding-left: 28px; } .journal-list article { border-bottom: 1px solid var(--line); padding: 0 0 18px; margin-bottom: 18px; } .journal-list article p:nth-child(2) { white-space: pre-wrap; } .journal-list button { background: transparent; color: var(--teal); padding: 0; font-size: .78rem; }
.pattern-panel { overflow: hidden; } .pattern-grid { display: grid; grid-template-columns: repeat(52, 1fr); gap: 3px; } .pattern-cell { aspect-ratio: 1; background: var(--line); border-radius: 1px; } .pattern-cell.lived { background: var(--accent); } .pattern-cell.event { background: var(--teal); } .pattern-cell.goal { background: var(--gold); } .pattern-cell.note { outline: 2px solid var(--ink); outline-offset: -2px; } .pattern-legend { color: var(--muted); font-size: .75rem; margin-top: 18px; } .pattern-legend span { display: inline-block; height: 9px; width: 9px; margin: 0 4px 0 12px; background: var(--line); } .pattern-legend .lived-dot { background: var(--accent); } .pattern-legend .event-dot { background: var(--teal); } .pattern-legend .goal-dot { background: var(--gold); } .pattern-legend .note-dot { outline: 2px solid var(--ink); }
.poster { max-width: 900px; margin: 0 auto; padding: clamp(24px, 6vw, 70px); } .poster h1 { font-size: clamp(3rem, 9vw, 7rem); max-width: 700px; } .poster-age { color: var(--teal); font: 500 1rem 'DM Mono', monospace; } .poster-grid { display: grid; grid-template-columns: repeat(26, 1fr); gap: 4px; margin: 55px 0; } .poster-grid i { aspect-ratio: 1; background: var(--line); } .poster-grid i.filled { background: var(--accent); } .poster-foot { color: var(--muted); font-size: .8rem; } .print-controls { text-align: center; margin: 18px; }
.poster-settings { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; } .poster-settings label { display: grid; gap: 6px; color: var(--muted); font-size: .78rem; } .poster-settings input { padding: 8px; min-width: 180px; } .poster-settings input[type='color'] { min-width: 52px; width: 52px; height: 38px; padding: 3px; } .poster-settings button { margin-left: auto; }
.compare-form { display: flex; align-items: end; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; } .compare-form label { display: grid; gap: 7px; color: var(--muted); font-size: .8rem; } .compare-form input { min-width: 180px; } .compare-stats { min-height: 120px; }
.date-calculator { display: grid; grid-template-columns: 1.4fr auto 1.5fr; gap: 20px; align-items: center; margin: 16px 0; } .date-calculator label { display: grid; gap: 7px; color: var(--muted); font-size: .8rem; } .date-calculator input { padding: 9px; } .target-result { display: grid; gap: 4px; border-left: 2px solid var(--teal); padding-left: 16px; } .target-result strong { color: var(--accent); } .target-result span, .target-result small { color: var(--muted); font-size: .78rem; }
.world-controls { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; } .world-controls label { display: grid; gap: 6px; color: var(--muted); font-size: .8rem; } .world-controls select, .world-controls input { padding: 9px; min-width: 170px; } .world-controls button { margin-left: auto; } .world-stats { grid-template-columns: repeat(4, 1fr); margin-bottom: 28px; } .world-stats .metric { min-width: 0; } .world-stats .metric strong, .world-stats .metric span { overflow-wrap: anywhere; } .world-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; } .api-source { display: block; color: var(--muted); font-size: .7rem; margin-top: 14px; } .feature-output { min-height: 190px; } .moon-visual { width: 130px; height: 130px; border-radius: 50%; background: #ded8bd; box-shadow: inset -30px 0 0 #27312e, 0 0 0 10px color-mix(in srgb, var(--teal) 15%, transparent); margin: 15px 0 25px; } .image-output img { display: block; width: 100%; max-height: 230px; object-fit: cover; margin-bottom: 12px; } .image-output p { margin-bottom: 4px; font-size: .8rem; } .history-api-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; } .history-api-card { border-top: 2px solid var(--teal); padding-top: 12px; } .history-api-card h3 { color: var(--teal); } .history-api-card ul { padding-left: 18px; margin: 0; } .history-api-card li { margin-bottom: 10px; font-size: .82rem; } .history-api-card small { color: var(--muted); } .source-note { margin-top: 16px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 22px; }
.identity-grid, .cards-grid, .milestone-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 16px; }
.identity-grid { grid-template-columns: 2fr 1fr 1fr; }
.identity-card, .info-card, .milestone { background: var(--panel); padding: 20px; }
.identity-card strong, .info-card strong { display: block; color: var(--accent); font-size: 1.35rem; margin-bottom: 8px; }
.identity-card span, .info-card p, .milestone span { color: var(--muted); font-size: .82rem; }
.cards-grid { grid-template-columns: repeat(3, 1fr); }
.info-card { min-height: 145px; }
.info-card h3 { color: var(--teal); font-size: .92rem; }
.milestone-grid { grid-template-columns: repeat(5, 1fr); }
.milestone strong, .milestone span { display: block; }
.milestone strong { font-size: .88rem; margin-bottom: 12px; }
.history-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.history-item { display: grid; grid-template-columns: auto 1fr; gap: 13px; background: var(--panel); padding: 20px; }
.history-item span { color: var(--accent); font: 500 .78rem 'DM Mono', monospace; }
.history-item p { margin: 0; font-size: .88rem; }
.timeline { list-style: none; padding: 0 0 0 22px; margin: 0; border-left: 2px solid var(--teal); }
.timeline li { position: relative; display: flex; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); padding: 12px 0; }
.timeline li:before { content: ''; position: absolute; left: -29px; top: 17px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); border: 3px solid var(--panel); }
.timeline span { color: var(--muted); font: .76rem 'DM Mono', monospace; }
.privacy-panel { color: var(--muted); font-size: .85rem; }
.article-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 16px; }
.article-grid { grid-template-columns: repeat(2, 1fr); } .article-card h2 { margin-bottom: 12px; } .article-card p { color: var(--muted); } .article-card a, .long-article a { color: var(--teal); } .newsletter { margin-top: 16px; } .long-article { max-width: 720px; margin: 0 auto; } .long-article h1 { font-size: clamp(2.5rem, 6vw, 5rem); } .long-article h2 { margin-top: 36px; margin-bottom: 10px; } .long-article p { color: var(--muted); font-size: 1.05rem; } .long-article .lead { color: var(--ink); font-size: 1.25rem; } .simple-page footer, .article-page footer { max-width: 720px; margin: 0 auto; }
@media (max-width: 720px) { .article-grid { grid-template-columns: 1fr; } }
@media print { body, html { background: #fff; } .toolbar, .workspace-grid, .tools, footer { display: none; } .chart-wrap { overflow: visible; } .chart { min-width: 0; } .chart li { print-color-adjust: exact; -webkit-print-color-adjust: exact; } }
@media print { .view-nav, .view-header, .poster-settings, .print-controls { display: none !important; } .poster { border: 0; max-width: none; min-height: 90vh; } .poster-grid i { print-color-adjust: exact; -webkit-print-color-adjust: exact; } }
@media (max-width: 720px) { .guide-card { bottom: 14px; padding: 18px; } .guide-help { right: 14px; bottom: 14px; } }

.card-image-wrap { margin-bottom: 15px; border-radius: 6px; overflow: hidden; background: #e9e9e9; aspect-ratio: 1 / 1; } .card-image { width: 100%; height: 100%; object-fit: cover; display: block; } .info-card { display: flex; flex-direction: column; } .info-card h3 { margin-top: auto; }

/* ORACLE UI */
.oracle-container { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin-top: 24px; }
.oracle-tabs { display: flex; background: #f5f5f5; border-bottom: 1px solid var(--line); }
.oracle-tabs button { flex: 1; padding: 14px; border: none; background: transparent; font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 0.95rem; cursor: pointer; color: var(--muted); transition: 0.2s ease; }
.oracle-tabs button.active { background: white; color: var(--ink); border-bottom: 2px solid var(--teal); }
.oracle-tabs button:hover:not(.active) { background: #eaeaea; }
.oracle-content { padding: 32px; background: white; min-height: 250px; }
.oracle-message-box { font-size: 1.15rem; line-height: 1.7; color: var(--ink); font-style: italic; text-align: center; max-width: 650px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.oracle-message-box p:first-child { color: var(--teal); font-weight: 600; font-style: normal; font-size: 0.9rem; letter-spacing: 1px; text-transform: uppercase; }
.api-setup-box { max-width: 500px; margin: 0 auto; text-align: left; }
.api-setup-box h3 { margin-bottom: 12px; }
.api-setup-box ol { margin: 16px 0 16px 20px; color: var(--muted); line-height: 1.6; font-size: 0.95rem; }
.api-setup-box a { color: var(--teal); text-decoration: underline; }
.api-setup-box input { width: 100%; padding: 12px; margin-bottom: 16px; border: 1px solid var(--line); border-radius: 4px; font-family: "DM Mono", monospace; }
.api-setup-box .button { width: 100%; padding: 12px; background: var(--ink); color: white; border: none; border-radius: 4px; font-weight: 600; cursor: pointer; transition: 0.2s; }
.api-setup-box .button:hover { background: var(--teal); }
.api-setup-box .privacy-note { font-size: 0.8rem; margin-top: 12px; text-align: center; }
.chat-interface { display: flex; flex-direction: column; height: 100%; }
.chat-history { flex-grow: 1; max-height: 350px; overflow-y: auto; margin-bottom: 20px; padding: 10px; display: flex; flex-direction: column; gap: 12px; }
.chat-msg { padding: 12px 16px; border-radius: 8px; max-width: 85%; line-height: 1.5; font-size: 0.95rem; }
.chat-msg.user { background: #f0f0f0; align-self: flex-end; color: var(--ink); border-bottom-right-radius: 2px; }
.chat-msg.oracle { background: rgba(0,128,128,0.08); align-self: flex-start; color: var(--ink); border-bottom-left-radius: 2px; border-left: 3px solid var(--teal); }
.chat-input-box { display: flex; gap: 8px; margin-bottom: 12px; }
.chat-input-box input { flex-grow: 1; padding: 12px; border: 1px solid var(--line); border-radius: 4px; font-family: inherit; font-size: 1rem; }
.chat-input-box button { padding: 0 24px; background: var(--teal); color: white; border: none; border-radius: 4px; font-weight: 600; cursor: pointer; transition: 0.2s; }
.chat-input-box button:hover { background: #006666; }
.chat-input-box button:disabled { background: var(--line); cursor: not-allowed; }

/* ══════════════════════════════════════════════════════════
   MODO CÓSMICO DE LUJO (DARK LUXURY COSMIC - FECHA & PORTAL)
   ══════════════════════════════════════════════════════════ */
html[data-page="fecha"],
body.cosmic-theme {
  background: radial-gradient(circle at 50% -10%, rgba(212, 168, 67, 0.12) 0%, transparent 55%),
              radial-gradient(circle at 85% 25%, rgba(30, 58, 138, 0.22) 0%, transparent 45%),
              radial-gradient(circle at 15% 75%, rgba(88, 28, 135, 0.16) 0%, transparent 45%),
              #060913 !important;
  color: #f1f5f9 !important;
  min-height: 100vh;
}

html[data-page="fecha"] .app-shell {
  max-width: 1140px;
}

/* Paneles de Cristal Cósmico */
html[data-page="fecha"] .panel {
  background: rgba(13, 19, 36, 0.72) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(212, 168, 67, 0.28) !important;
  border-radius: 14px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
  margin-bottom: 24px;
}

html[data-page="fecha"] .title-box {
  margin-bottom: 28px;
}

html[data-page="fecha"] h1.cosmic-title {
  color: #f8fafc;
  font-family: 'Cinzel', serif;
  text-shadow: 0 4px 24px rgba(212, 168, 67, 0.25);
}
html[data-page="fecha"] .cosmic-tagline {
  color: #f5c358 !important;
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 1.25rem;
}
html[data-page="fecha"] .subtitle,
html[data-page="fecha"] .muted {
  color: #94a3b8 !important;
}
html[data-page="fecha"] .eyebrow,
html[data-page="fecha"] .section-kicker {
  color: #f5c358 !important;
  letter-spacing: 0.1em;
}
html[data-page="fecha"] h2 {
  color: #f8fafc !important;
  font-family: 'Cinzel', serif;
  letter-spacing: 0.02em;
}

/* Inputs y Selectores del Portal de Consulta */
html[data-page="fecha"] .dob select,
html[data-page="fecha"] .dob input {
  background: rgba(8, 13, 26, 0.85) !important;
  color: #f8fafc !important;
  border: 1px solid rgba(212, 168, 67, 0.35) !important;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.2s ease;
}
html[data-page="fecha"] .dob select:focus,
html[data-page="fecha"] .dob input:focus {
  border-color: #f5c358 !important;
  outline: none;
  box-shadow: 0 0 12px rgba(245, 195, 88, 0.3);
}
html[data-page="fecha"] .dob label {
  color: #cbd5e1 !important;
}

/* Resumen Ejecutivo Bento (Edad exacta, próximo cumpleaños, generación) */
html[data-page="fecha"] .identity-grid {
  background: rgba(212, 168, 67, 0.2) !important;
  border: 1px solid rgba(212, 168, 67, 0.35) !important;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  margin-bottom: 28px;
}
html[data-page="fecha"] .identity-card {
  background: rgba(11, 16, 32, 0.85) !important;
  padding: 22px;
}
html[data-page="fecha"] .identity-card strong {
  color: #ffd700 !important;
  text-shadow: 0 2px 10px rgba(255, 215, 0, 0.25);
}
html[data-page="fecha"] .identity-card span {
  color: #cbd5e1 !important;
}

/* ══ BARRA DE PESTAÑAS SAGRADAS (SEGMENTED TABS) ══ */
.cosmic-tabs-nav {
  display: flex;
  gap: 10px;
  margin: 32px 0 28px;
  padding: 6px;
  background: rgba(13, 19, 36, 0.85);
  border: 1px solid rgba(212, 168, 67, 0.35);
  border-radius: 14px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow-x: auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.cosmic-tab-btn {
  flex: 1;
  min-width: 140px;
  padding: 14px 18px;
  background: transparent;
  border: none;
  border-radius: 10px;
  color: #94a3b8;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s ease;
}
.cosmic-tab-btn:hover {
  color: #f8fafc;
  background: rgba(212, 168, 67, 0.08);
}
.cosmic-tab-btn.active {
  background: linear-gradient(135deg, rgba(212, 168, 67, 0.25) 0%, rgba(212, 168, 67, 0.1) 100%);
  color: #ffd700;
  border: 1px solid rgba(212, 168, 67, 0.55);
  box-shadow: 0 4px 18px rgba(212, 168, 67, 0.2);
}
.cosmic-tab-btn .tab-icon {
  font-size: 1.1rem;
}
@media (max-width: 640px) {
  .cosmic-tabs-nav {
    padding: 4px;
    gap: 6px;
  }
  .cosmic-tab-btn {
    min-width: 120px;
    padding: 10px 12px;
    font-size: 0.85rem;
  }
}

.cosmic-tab-panel {
  display: none;
  animation: fadeInTab 0.35s ease forwards;
}
.cosmic-tab-panel.active {
  display: block;
}
@keyframes fadeInTab {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ══ MÓDULO ESOTÉRICO (PORTAL) CON MÁXIMO CONTRASTE Y LEGIBILIDAD ══ */
#dash-content {
  margin-top: 10px;
  margin-bottom: 24px;
}
.dash-section {
  margin-bottom: 28px;
  background: linear-gradient(145deg, #0b1120 0%, #131c33 100%) !important;
  color: #f1f5f9 !important;
  padding: 28px 32px;
  border-radius: 14px;
  border: 1px solid rgba(212, 168, 67, 0.4);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
  font-family: 'Space Grotesk', sans-serif;
}
.dash-section .card-title {
  color: #f5c358 !important;
  font-family: 'Cinzel', serif !important;
  font-size: 1.35rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  text-shadow: 0 2px 10px rgba(245, 195, 88, 0.25);
}
.dash-section .dash-subtitle {
  color: #f8fafc !important;
  font-size: 1.05rem !important;
  font-weight: 500;
  margin-bottom: 16px;
}
.dash-section .dash-text {
  color: #e2e8f0 !important;
  font-size: 0.98rem !important;
  line-height: 1.7;
}
.dash-section .dash-text p {
  color: #e2e8f0 !important;
  margin: 10px 0 !important;
}
.dash-section .dash-text b,
.dash-section .dash-text strong {
  color: #ffd700 !important;
  font-weight: 600 !important;
}
.dash-section .dash-meta {
  color: #fcd34d !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  margin-top: 6px !important;
  opacity: 1 !important;
}
.dash-section .mantra-box {
  margin-top: 18px;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.55;
  border-left: 3px solid #f5c358 !important;
  padding: 14px 20px;
  background: rgba(212, 168, 67, 0.12) !important;
  color: #ffffff !important;
  border-radius: 0 8px 8px 0;
  font-weight: 500;
}
.dash-section .z-item {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(212, 168, 67, 0.35) !important;
  border-radius: 12px;
  padding: 18px;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.dash-section .z-item:hover {
  transform: translateY(-3px);
  border-color: rgba(212, 168, 67, 0.7) !important;
}
.dash-section .z-item div {
  color: #f8fafc !important;
  font-family: 'Cinzel', serif !important;
  font-weight: 600;
}
.dash-section hr {
  border: 0 !important;
  border-top: 1px solid rgba(212, 168, 67, 0.3) !important;
  margin: 22px 0 !important;
}

/* Tarjetas de Contenido en Bento Grid */
html[data-page="fecha"] .cards-grid,
html[data-page="fecha"] .milestone-grid,
html[data-page="fecha"] .history-grid {
  background: rgba(212, 168, 67, 0.18) !important;
  border: 1px solid rgba(212, 168, 67, 0.3) !important;
  border-radius: 14px;
  overflow: hidden;
}
html[data-page="fecha"] .info-card,
html[data-page="fecha"] .milestone,
html[data-page="fecha"] .history-item {
  background: rgba(11, 16, 32, 0.88) !important;
  color: #f1f5f9 !important;
  border: 1px solid rgba(212, 168, 67, 0.15);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
html[data-page="fecha"] .info-card:hover,
html[data-page="fecha"] .milestone:hover,
html[data-page="fecha"] .history-item:hover {
  transform: translateY(-3px);
  border-color: rgba(212, 168, 67, 0.55);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
html[data-page="fecha"] .info-card h3,
html[data-page="fecha"] .history-item span {
  color: #f5c358 !important;
  font-family: 'Cinzel', serif;
  letter-spacing: 0.03em;
}
html[data-page="fecha"] .info-card strong,
html[data-page="fecha"] .milestone strong {
  color: #f8fafc !important;
}
html[data-page="fecha"] .info-card p,
html[data-page="fecha"] .milestone span,
html[data-page="fecha"] .history-item p {
  color: #cbd5e1 !important;
}
html[data-page="fecha"] .info-card span[style*="var(--teal)"] {
  color: #fcd34d !important;
  font-weight: 600;
}

/* Matriz completa de 9 tarjetas (3x3) en Cielo y Símbolos */
#symbol-output .info-card {
  display: flex !important;
}

/* Oráculo y Chat Astral con IA */
html[data-page="fecha"] .oracle-container {
  background: rgba(11, 16, 32, 0.9) !important;
  border: 1px solid rgba(212, 168, 67, 0.35) !important;
  border-radius: 14px;
}
html[data-page="fecha"] .oracle-tabs {
  background: rgba(7, 10, 20, 0.95) !important;
  border-bottom: 1px solid rgba(212, 168, 67, 0.25) !important;
}
html[data-page="fecha"] .oracle-tabs button {
  color: #94a3b8 !important;
}
html[data-page="fecha"] .oracle-tabs button.active {
  background: rgba(212, 168, 67, 0.15) !important;
  color: #ffd700 !important;
  border-bottom: 2px solid #ffd700 !important;
}
html[data-page="fecha"] .oracle-content {
  background: transparent !important;
  color: #f1f5f9 !important;
}
html[data-page="fecha"] .oracle-message-box {
  color: #f8fafc !important;
}
html[data-page="fecha"] .oracle-message-box p:first-child {
  color: #f5c358 !important;
}
html[data-page="fecha"] .chat-msg.user {
  background: rgba(212, 168, 67, 0.15) !important;
  color: #ffd700 !important;
  border: 1px solid rgba(212, 168, 67, 0.3) !important;
}
html[data-page="fecha"] .chat-msg.oracle {
  background: rgba(19, 28, 51, 0.8) !important;
  color: #f8fafc !important;
  border-left: 3px solid #f5c358 !important;
}
html[data-page="fecha"] .chat-input-box input {
  background: rgba(8, 13, 26, 0.85) !important;
  color: #f8fafc !important;
  border: 1px solid rgba(212, 168, 67, 0.35) !important;
}
html[data-page="fecha"] .chat-input-box button {
  background: #d4a843 !important;
  color: #060913 !important;
  font-weight: 700 !important;
}
html[data-page="fecha"] .chat-input-box button:hover {
  background: #f5c358 !important;
}
html[data-page="fecha"] .api-setup-box ol {
  color: #cbd5e1 !important;
}
html[data-page="fecha"] .api-setup-box a {
  color: #f5c358 !important;
}
html[data-page="fecha"] .api-setup-box input {
  background: rgba(8, 13, 26, 0.85) !important;
  color: #f8fafc !important;
  border: 1px solid rgba(212, 168, 67, 0.35) !important;
}
html[data-page="fecha"] .api-setup-box .button {
  background: #d4a843 !important;
  color: #060913 !important;
  font-weight: 700 !important;
}
html[data-page="fecha"] .api-setup-box .button:hover {
  background: #f5c358 !important;
}

/* Línea de vida y Pie de página */
html[data-page="fecha"] .timeline {
  border-left-color: #d4a843 !important;
}
html[data-page="fecha"] .timeline li:before {
  background: #ffd700 !important;
  border-color: #0b1120 !important;
}
html[data-page="fecha"] .timeline strong {
  color: #f8fafc !important;
}
html[data-page="fecha"] .timeline span {
  color: #cbd5e1 !important;
}
html[data-page="fecha"] footer {
  border-top: 1px solid rgba(212, 168, 67, 0.2);
  margin-top: 40px;
}
html[data-page="fecha"] footer a {
  color: #f5c358 !important;
}
html[data-page="fecha"] footer a:hover {
  color: #ffd700 !important;
  text-decoration: underline;
}

html[data-page="fecha"] .cultural-page {
  padding-top: 76px;
}

/* ══════════════════════════════════════════════════════════
   GUÍA CÓSMICA / RECORRIDO MAPA DE VIDA (DARK LUXURY GLASS)
   ══════════════════════════════════════════════════════════ */
.guide-dim[hidden],
.guide-card[hidden] {
  display: none !important;
}

html[data-page="fecha"] .guide-dim,
.cosmic-theme .guide-dim,
body.cosmic-mode .guide-dim,
.guide-dim {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(4, 7, 16, 0.55) !important;
  z-index: 9990 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html[data-page="fecha"] .guide-card,
.cosmic-theme .guide-card,
body.cosmic-mode .guide-card,
.guide-card {
  position: fixed !important;
  left: 50% !important;
  bottom: 24px;
  transform: translateX(-50%) !important;
  width: min(460px, calc(100% - 32px)) !important;
  background: linear-gradient(145deg, rgba(13, 19, 36, 0.98) 0%, rgba(20, 28, 54, 0.98) 100%) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border: 1px solid rgba(212, 168, 67, 0.55) !important;
  border-radius: 16px !important;
  padding: 24px !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.9), 0 0 40px rgba(212, 168, 67, 0.25) !important;
  color: #f1f5f9 !important;
  z-index: 10010 !important;
  transition: top 0.25s ease, bottom 0.25s ease !important;
}

html[data-page="fecha"] .guide-card .section-kicker,
.cosmic-theme .guide-card .section-kicker,
body.cosmic-mode .guide-card .section-kicker {
  color: #f5c358 !important;
  font-family: 'DM Mono', monospace !important;
  font-size: 0.76rem !important;
  letter-spacing: 0.14em !important;
  margin-bottom: 6px !important;
}

html[data-page="fecha"] .guide-card h2,
.cosmic-theme .guide-card h2,
body.cosmic-mode .guide-card h2 {
  color: #ffd700 !important;
  font-family: 'Cinzel', serif !important;
  font-size: 1.38rem !important;
  font-weight: 700 !important;
  margin-bottom: 12px !important;
  letter-spacing: 0.03em !important;
  text-shadow: 0 2px 12px rgba(212, 168, 67, 0.3) !important;
}

html[data-page="fecha"] .guide-card .guide-text,
.cosmic-theme .guide-card .guide-text,
body.cosmic-mode .guide-card .guide-text {
  color: #cbd5e1 !important;
  font-family: 'Space Grotesk', sans-serif !important;
  font-size: 0.95rem !important;
  line-height: 1.6 !important;
  margin-bottom: 22px !important;
}

html[data-page="fecha"] .guide-card .guide-progress,
.cosmic-theme .guide-card .guide-progress,
body.cosmic-mode .guide-card .guide-progress {
  color: #94a3b8 !important;
  font-family: 'DM Mono', monospace !important;
  font-size: 0.78rem !important;
  letter-spacing: 0.05em !important;
}

html[data-page="fecha"] .guide-card .guide-skip,
html[data-page="fecha"] .guide-card .guide-back,
.cosmic-theme .guide-card .guide-skip,
.cosmic-theme .guide-card .guide-back,
body.cosmic-mode .guide-card .guide-skip,
body.cosmic-mode .guide-card .guide-back {
  background: transparent !important;
  color: #94a3b8 !important;
  font-family: 'Space Grotesk', sans-serif !important;
  font-size: 0.88rem !important;
  font-weight: 500 !important;
  border: none !important;
  cursor: pointer !important;
  transition: color 0.2s ease !important;
}

html[data-page="fecha"] .guide-card .guide-skip:hover,
html[data-page="fecha"] .guide-card .guide-back:hover,
.cosmic-theme .guide-card .guide-skip:hover,
.cosmic-theme .guide-card .guide-back:hover,
body.cosmic-mode .guide-card .guide-skip:hover,
body.cosmic-mode .guide-card .guide-back:hover {
  color: #ffd700 !important;
}

html[data-page="fecha"] .guide-card .guide-back:disabled,
.cosmic-theme .guide-card .guide-back:disabled,
body.cosmic-mode .guide-card .guide-back:disabled {
  opacity: 0.3 !important;
  cursor: not-allowed !important;
}

html[data-page="fecha"] .guide-card .guide-next,
.cosmic-theme .guide-card .guide-next,
body.cosmic-mode .guide-card .guide-next {
  background: linear-gradient(135deg, #d4a843 0%, #b3892b 100%) !important;
  color: #060913 !important;
  font-family: 'Space Grotesk', sans-serif !important;
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 10px 20px !important;
  cursor: pointer !important;
  box-shadow: 0 4px 16px rgba(212, 168, 67, 0.4) !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}

html[data-page="fecha"] .guide-card .guide-next:hover,
.cosmic-theme .guide-card .guide-next:hover,
body.cosmic-mode .guide-card .guide-next:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 20px rgba(212, 168, 67, 0.55) !important;
}

html[data-page="fecha"] .guide-target,
.cosmic-theme .guide-target,
body.cosmic-mode .guide-target {
  position: relative !important;
  z-index: 9995 !important;
  outline: 2px solid #ffd700 !important;
  outline-offset: 6px !important;
  box-shadow: 0 0 25px rgba(212, 168, 67, 0.6) !important;
  border-radius: 12px !important;
  transition: outline-offset 0.25s ease !important;
}

.guide-target-parent {
  position: relative !important;
  z-index: 9994 !important;
}
header.cosmic-topbar.guide-target-parent {
  position: fixed !important;
  z-index: 9995 !important;
}

/* ══ RESALTADO DE PESTAÑAS EN LA GUÍA INTERACTIVA ══ */
.cosmic-tabs-nav.guide-target-parent {
  position: relative !important;
  z-index: 9994 !important;
  overflow: visible !important;
  border-color: rgba(212, 168, 67, 0.75) !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.75), 0 0 35px rgba(212, 168, 67, 0.4) !important;
}

.cosmic-tab-btn.guide-target {
  position: relative !important;
  z-index: 9995 !important;
  background: linear-gradient(135deg, rgba(212, 168, 67, 0.45) 0%, rgba(20, 28, 54, 0.95) 100%) !important;
  color: #ffd700 !important;
  outline: 3px solid #ffd700 !important;
  outline-offset: 4px !important;
  border-radius: 10px !important;
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.85), 0 4px 15px rgba(0, 0, 0, 0.5) !important;
  animation: cosmicTabPulse 1.8s ease-in-out infinite alternate !important;
}

/* ══ CONTENIDO DE LA PESTAÑA EN MODO PREVIEW (100% NÍTIDO Y VISIBLE) ══ */
.cosmic-tab-panel.guide-panel-preview {
  position: relative !important;
  z-index: 9993 !important;
  opacity: 1 !important;
  filter: none !important;
  pointer-events: none;
}

.cosmic-tab-panel.guide-panel-preview .panel,
.cosmic-tab-panel.guide-panel-preview .dash-section {
  border-color: rgba(212, 168, 67, 0.5) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(212, 168, 67, 0.15) !important;
}

#cosmic-nav-toggle.guide-target {
  position: relative !important;
  z-index: 9995 !important;
  outline: 3px solid #ffd700 !important;
  outline-offset: 4px !important;
  border-radius: 8px !important;
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.9) !important;
  animation: cosmicTabPulse 1.8s ease-in-out infinite alternate !important;
}

@keyframes cosmicTabPulse {
  0% {
    box-shadow: 0 0 16px rgba(255, 215, 0, 0.65), 0 4px 15px rgba(0, 0, 0, 0.5);
    outline-color: #f5c358;
    transform: scale(1.02);
  }
  100% {
    box-shadow: 0 0 35px rgba(255, 215, 0, 0.98), 0 6px 20px rgba(212, 168, 67, 0.4);
    outline-color: #ffd700;
    transform: scale(1.06);
  }
}

html[data-page="fecha"] .guide-help,
.cosmic-theme .guide-help,
body.cosmic-mode .guide-help {
  background: linear-gradient(135deg, rgba(212, 168, 67, 0.3) 0%, rgba(20, 28, 54, 0.8) 100%) !important;
  border: 1px solid rgba(212, 168, 67, 0.5) !important;
  color: #ffd700 !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  font-family: 'DM Mono', monospace !important;
  font-size: 1.15rem !important;
  font-weight: 600 !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), 0 0 15px rgba(212, 168, 67, 0.25) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  cursor: pointer !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

html[data-page="fecha"] .guide-help:hover,
.cosmic-theme .guide-help:hover,
body.cosmic-mode .guide-help:hover {
  transform: scale(1.1) !important;
  box-shadow: 0 8px 25px rgba(212, 168, 67, 0.5) !important;
}

/* ══════════════════════════════════════════════════════════
   BARRA DE NAVEGACIÓN CÓSMICA GLOBAL Y CAJÓN LATERAL (DRAWER)
   ══════════════════════════════════════════════════════════ */
.cosmic-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(6, 9, 19, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(212, 168, 67, 0.25);
  z-index: 999;
}

.cosmic-topbar .brand-link {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.15em;
  color: #f5c358;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  text-shadow: 0 0 12px rgba(245, 195, 88, 0.3);
  transition: color 0.25s ease, transform 0.2s ease;
}
.cosmic-topbar .brand-link:hover {
  color: #ffd700;
  transform: scale(1.02);
}

.cosmic-topbar .topbar-center {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cosmic-topbar .topbar-link {
  color: #cbd5e1;
  text-decoration: none;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 6px;
  transition: all 0.2s ease;
}
.cosmic-topbar .topbar-link:hover {
  color: #ffd700;
  background: rgba(212, 168, 67, 0.1);
}

.cosmic-topbar .back-portal-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #f5c358;
  text-decoration: none;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 7px 16px;
  border: 1px solid rgba(212, 168, 67, 0.45);
  border-radius: 20px;
  background: rgba(212, 168, 67, 0.08);
  transition: all 0.25s ease;
}
.cosmic-topbar .back-portal-btn:hover {
  background: rgba(212, 168, 67, 0.2);
  border-color: #ffd700;
  color: #ffffff;
  box-shadow: 0 0 15px rgba(212, 168, 67, 0.3);
  transform: translateX(-2px);
}

.cosmic-topbar .cosmic-menu-btn {
  background: rgba(212, 168, 67, 0.12);
  border: 1px solid rgba(212, 168, 67, 0.35);
  border-radius: 8px;
  color: #f8fafc;
  padding: 8px 16px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}
.cosmic-topbar .cosmic-menu-btn:hover {
  background: rgba(212, 168, 67, 0.25);
  border-color: #ffd700;
  color: #ffd700;
  box-shadow: 0 0 12px rgba(212, 168, 67, 0.2);
}

/* CAJÓN LATERAL DE NAVEGACIÓN (SLIDE-OVER DRAWER) */
.cosmic-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 5, 12, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.cosmic-drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.cosmic-drawer-content {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 440px;
  background: #080c18;
  border-left: 1px solid rgba(212, 168, 67, 0.3);
  box-shadow: -15px 0 45px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}
.cosmic-drawer-overlay.open .cosmic-drawer-content {
  transform: translateX(0);
}

.drawer-header {
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(212, 168, 67, 0.2);
}
.drawer-brand {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  color: #f5c358;
  font-size: 1.15rem;
  letter-spacing: 0.12em;
}
.drawer-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
  padding: 0 4px;
}
.drawer-close:hover {
  color: #ffd700;
}

.drawer-sections {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  flex: 1;
}
.drawer-group-title {
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: #f5c358;
  text-transform: uppercase;
  margin-bottom: 12px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(212, 168, 67, 0.15);
}
.drawer-link {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
  margin-bottom: 6px;
}
.drawer-link:hover {
  background: rgba(212, 168, 67, 0.1);
  transform: translateX(4px);
}
.drawer-link .d-icon {
  font-size: 1.3rem;
  line-height: 1.2;
}
.drawer-link strong {
  display: block;
  color: #f8fafc;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  margin-bottom: 2px;
}
.drawer-link small {
  display: block;
  color: #94a3b8;
  font-size: 0.78rem;
  line-height: 1.35;
}
.drawer-footer {
  padding: 18px 28px;
  border-top: 1px solid rgba(212, 168, 67, 0.15);
  font-size: 0.75rem;
  color: rgba(238, 232, 213, 0.4);
  font-family: 'DM Mono', monospace;
  text-align: center;
}

@media (max-width: 768px) {
  .cosmic-topbar {
    padding: 0 16px;
  }
  .cosmic-topbar .topbar-center {
    display: none;
  }
}

/* ═══ FOOTER CÓSMICO ZEN (OPCIÓN A) ═══ */
.cosmic-footer {
  margin-top: 56px;
  padding: 40px 20px 70px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-top: 1px solid rgba(212, 168, 67, 0.18);
  width: 100%;
  box-sizing: border-box;
}

.cosmic-footer .footer-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin-bottom: 32px;
}

.cosmic-footer .footer-explore-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 26px;
  background: linear-gradient(135deg, rgba(212, 168, 67, 0.18), rgba(245, 195, 88, 0.28));
  border: 1px solid rgba(212, 168, 67, 0.45);
  color: #f5c358;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.cosmic-footer .footer-explore-btn:hover {
  background: linear-gradient(135deg, rgba(212, 168, 67, 0.35), rgba(245, 195, 88, 0.5));
  border-color: #ffd700;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 26px rgba(212, 168, 67, 0.45);
}

.cosmic-footer .footer-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #94a3b8;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.cosmic-footer .footer-back-btn:hover {
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(212, 168, 67, 0.35);
  color: #f8fafc;
  transform: translateY(-2px);
}

.cosmic-footer .footer-divider {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(212, 168, 67, 0.45), transparent);
  margin: 0 auto 24px;
}

.cosmic-footer .footer-privacy {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem;
  color: #64748b;
  margin: 0 0 16px;
  letter-spacing: 0.02em;
}

.cosmic-footer .footer-author {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  color: #94a3b8;
  margin: 0;
  letter-spacing: 0.03em;
}

.cosmic-footer .footer-author a {
  color: #f5c358;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dashed rgba(212, 168, 67, 0.4);
  padding-bottom: 2px;
  transition: all 0.25s ease;
}

.cosmic-footer .footer-author a:hover {
  color: #ffd700;
  border-bottom-color: #ffd700;
  text-shadow: 0 0 14px rgba(212, 168, 67, 0.7);
}

/* ═══ MAPAS TEMPORALES CÓSMICOS (MESES, SEMANAS, AÑOS) ═══ */
html[data-unit] {
  background: #060913 !important;
  color: #f8fafc;
}
html[data-unit] body {
  background: radial-gradient(circle at 50% 0%, #0d172e 0%, #060913 65%) !important;
  color: #f8fafc;
  min-height: 100vh;
}
html[data-unit] .app-shell {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 20px 60px;
}
html[data-unit] .title-box {
  padding: 12px 0 20px;
  text-align: center;
  max-width: 100%;
}
html[data-unit] .title-box h1 {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  color: #f8fafc;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
html[data-unit] .title-box .eyebrow {
  color: #f5c358;
  letter-spacing: 0.15em;
  font-size: 0.72rem;
  margin-bottom: 6px;
}
html[data-unit] .title-box .subtitle {
  color: #94a3b8;
  font-size: 0.95rem;
  max-width: 620px;
  margin: 0 auto;
}
html[data-unit] .unitbox {
  background: rgba(15, 23, 42, 0.85) !important;
  border: 1px solid rgba(212, 168, 67, 0.4) !important;
  border-radius: 8px !important;
  color: #f5c358 !important;
  padding: 2px 10px !important;
  font-family: 'Space Grotesk', sans-serif !important;
  font-size: 0.8em !important;
  cursor: pointer;
  vertical-align: middle;
}

/* Batería Vital (Stats de Progreso) */
html[data-unit] .stats {
  display: grid !important;
  grid-template-columns: 1fr 1.6fr 1fr !important;
  gap: 16px !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin-bottom: 24px !important;
  align-items: stretch !important;
}
html[data-unit] .stats article {
  background: rgba(15, 23, 42, 0.85) !important;
  border: 1px solid rgba(212, 168, 67, 0.3) !important;
  border-radius: 14px !important;
  padding: 16px 20px !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}
html[data-unit] .stats .stat-lived {
  text-align: left !important;
}
html[data-unit] .stats .stat-remaining {
  text-align: right !important;
}
html[data-unit] .stats .stat-kicker {
  font-size: 0.72rem !important;
  font-family: 'DM Mono', monospace !important;
  color: #f5c358 !important;
  letter-spacing: 0.12em !important;
  margin: 0 0 6px !important;
  font-weight: 600 !important;
}
html[data-unit] .stats strong {
  display: block !important;
  font-family: 'Space Grotesk', sans-serif !important;
  font-size: 1.35rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
}
html[data-unit] .stats .stat-lived strong {
  color: #ffd700 !important;
  text-shadow: 0 0 12px rgba(245, 195, 88, 0.4);
}
html[data-unit] .stats .stat-remaining strong {
  color: #ffffff !important;
}
html[data-unit] .stats span {
  font-size: 0.84rem !important;
  color: #cbd5e1 !important;
  margin-top: 4px !important;
}
html[data-unit] .stats .stat-progress-box {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  text-align: center !important;
}
html[data-unit] .stats .stat-bar-track {
  width: 100% !important;
  height: 12px !important;
  background: rgba(30, 41, 59, 0.9) !important;
  border: 1px solid rgba(148, 163, 184, 0.25) !important;
  border-radius: 999px !important;
  overflow: hidden !important;
  position: relative !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5) !important;
}
html[data-unit] .stats .stat-bar-fill {
  height: 100% !important;
  background: linear-gradient(90deg, #d4a843, #f5c358) !important;
  border-radius: 999px !important;
  box-shadow: 0 0 12px rgba(245, 195, 88, 0.6) !important;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
html[data-unit] .stats .stat-bar-label {
  font-size: 0.84rem !important;
  color: #f8fafc !important;
  font-family: 'Space Grotesk', sans-serif !important;
  font-weight: 500 !important;
}

/* Gráficos Panorámicos Compactos (Fit-to-Screen) */
html[data-unit] .chart-wrap {
  text-align: center;
  margin: 0 auto 32px;
  padding: 0;
  overflow: visible;
}
html[data-unit] .chart-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  padding: 0 4px;
}
html[data-unit] .chart-heading h2 {
  font-family: 'Cinzel', serif;
  font-size: 1.15rem;
  color: #f8fafc;
}
html[data-unit] .chart-order {
  color: #64748b;
  font-size: 0.7rem;
}
html[data-unit] .legend {
  font-size: 0.75rem;
  color: #94a3b8;
}
html[data-unit] .legend-lived {
  background: #f5c358 !important;
  box-shadow: 0 0 6px rgba(245, 195, 88, 0.5);
}
html[data-unit] .legend-remaining {
  background: rgba(148, 163, 184, 0.2) !important;
}

/* Cuadrícula Meses: 24 columnas, 40 filas = 960 bolitas compactas */
.months {
  max-width: 320px !important;
  grid-template-columns: repeat(24, minmax(0, 1fr)) !important;
  gap: 2.5px !important;
  margin: 0 auto 30px !important;
}
.months li {
  aspect-ratio: 1 !important;
  border-radius: 50% !important;
  border: 1px solid rgba(148, 163, 184, 0.22) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}
.months li.is-lived {
  background: linear-gradient(135deg, #d4a843, #f5c358) !important;
  border-color: #f5c358 !important;
  box-shadow: 0 0 4px rgba(245, 195, 88, 0.35) !important;
}
.months li.is-remaining {
  background: rgba(148, 163, 184, 0.07) !important;
  border-color: rgba(148, 163, 184, 0.15) !important;
}
.months li:hover, .months li:focus-visible {
  transform: scale(2.6) !important;
  outline: 2px solid #ffd700 !important;
  z-index: 20 !important;
  box-shadow: 0 0 16px rgba(245, 195, 88, 0.9) !important;
  background: #ffd700 !important;
}

/* Cuadrícula Semanas: 52 columnas, 80 filas = 4160 micro-celdas */
.weeks {
  max-width: 440px !important;
  grid-template-columns: repeat(52, minmax(0, 1fr)) !important;
  gap: 1.5px !important;
  margin: 0 auto 30px !important;
}
.weeks li {
  aspect-ratio: 1 !important;
  border-radius: 1px !important;
  border: 0.5px solid rgba(148, 163, 184, 0.2) !important;
  background: rgba(255, 255, 255, 0.03) !important;
  transition: transform 0.15s ease !important;
}
.weeks li.is-lived {
  background: #f5c358 !important;
  border-color: #f5c358 !important;
}
.weeks li.is-remaining {
  background: rgba(148, 163, 184, 0.08) !important;
  border-color: rgba(148, 163, 184, 0.12) !important;
}
.weeks li:hover, .weeks li:focus-visible {
  transform: scale(4.5) !important;
  outline: 2px solid #ffd700 !important;
  z-index: 20 !important;
  box-shadow: 0 0 14px rgba(245, 195, 88, 0.9) !important;
  background: #ffd700 !important;
}

/* Cuadrícula Años: 10 columnas, 8-10 filas = 100 bloques */
.years {
  max-width: 340px !important;
  grid-template-columns: repeat(10, minmax(0, 1fr)) !important;
  gap: 6px !important;
  margin: 0 auto 30px !important;
}
.years li {
  aspect-ratio: 1 !important;
  border-radius: 6px !important;
  border: 1px solid rgba(148, 163, 184, 0.25) !important;
  background: rgba(255, 255, 255, 0.04) !important;
}
.years li.is-lived {
  background: linear-gradient(135deg, #d4a843, #f5c358) !important;
  border-color: #f5c358 !important;
}
.years li.is-remaining {
  background: rgba(148, 163, 184, 0.07) !important;
  border-color: rgba(148, 163, 184, 0.15) !important;
}
.years li:hover, .years li:focus-visible {
  transform: scale(1.3) !important;
  outline: 2px solid #ffd700 !important;
  z-index: 20 !important;
}

/* Paneles de herramientas y workspace en dark mode */
html[data-unit] .panel {
  background: rgba(15, 23, 42, 0.6) !important;
  border: 1px solid rgba(212, 168, 67, 0.2) !important;
  border-radius: 14px;
  color: #f8fafc;
}
html[data-unit] .toolbar {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 32px;
  background: transparent !important;
  border: none !important;
  padding: 0;
}
html[data-unit] .toolbar label {
  color: #94a3b8;
  font-size: 0.84rem;
}
html[data-unit] .toolbar input {
  background: rgba(15, 23, 42, 0.8) !important;
  border: 1px solid rgba(212, 168, 67, 0.3) !important;
  color: #f5c358;
  border-radius: 6px;
  padding: 4px 8px;
}
html[data-unit] .workspace-grid {
  margin-top: 16px;
}
html[data-unit] .item-list li {
  border-color: rgba(148, 163, 184, 0.15) !important;
}
html[data-unit] input, html[data-unit] textarea {
  background: rgba(11, 17, 32, 0.8) !important;
  border: 1px solid rgba(148, 163, 184, 0.25) !important;
  color: #f8fafc !important;
  border-radius: 6px;
}
html[data-unit] button {
  background: rgba(212, 168, 67, 0.2) !important;
  border: 1px solid rgba(212, 168, 67, 0.4) !important;
  color: #f5c358 !important;
  border-radius: 6px;
  transition: all 0.2s ease;
}
html[data-unit] button:hover {
  background: rgba(212, 168, 67, 0.4) !important;
  color: #ffffff !important;
}

/* Estilos de alto contraste para Fecha Objetivo */
html[data-unit] .date-calculator {
  background: rgba(15, 23, 42, 0.85) !important;
  border: 1px solid rgba(212, 168, 67, 0.3) !important;
  border-radius: 14px !important;
  padding: 24px 28px !important;
  margin: 36px auto 24px !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}
html[data-unit] .date-calculator .section-kicker {
  color: #f5c358 !important;
  font-size: 0.74rem !important;
  font-family: 'DM Mono', monospace !important;
  letter-spacing: 0.12em !important;
  font-weight: 600 !important;
  margin-bottom: 6px !important;
}
html[data-unit] .date-calculator h2 {
  color: #f8fafc !important;
  font-family: 'Cinzel', serif !important;
  font-size: 1.3rem !important;
  margin-bottom: 6px !important;
}
html[data-unit] .date-calculator .muted {
  color: #cbd5e1 !important;
  font-size: 0.88rem !important;
}
html[data-unit] .date-calculator label {
  color: #f5c358 !important;
  font-weight: 600 !important;
  font-size: 0.88rem !important;
}
html[data-unit] .date-calculator input[type="date"] {
  background: rgba(30, 41, 59, 0.95) !important;
  border: 1px solid rgba(212, 168, 67, 0.4) !important;
  color: #ffffff !important;
  font-family: 'Space Grotesk', sans-serif !important;
  padding: 8px 12px !important;
  border-radius: 8px !important;
  font-size: 0.9rem !important;
}
html[data-unit] .target-result {
  border-left: 2px solid #f5c358 !important;
  padding-left: 18px !important;
}
html[data-unit] .target-result strong {
  color: #ffd700 !important;
  font-size: 1.25rem !important;
  display: block !important;
  font-family: 'Space Grotesk', sans-serif !important;
  text-shadow: 0 0 10px rgba(245, 195, 88, 0.4);
}
html[data-unit] .target-result span {
  color: #f8fafc !important;
  font-size: 0.88rem !important;
  display: block !important;
  margin-top: 4px !important;
}
html[data-unit] .target-result small {
  color: #94a3b8 !important;
  font-size: 0.78rem !important;
  display: block !important;
  margin-top: 4px !important;
}

/* Legibilidad del subtítulo y orden de la cuadrícula */
html[data-unit] .chart-heading h2 {
  color: #f8fafc !important;
  font-size: 1.4rem !important;
  font-family: 'Cinzel', serif !important;
}
html[data-unit] .chart-order {
  color: #cbd5e1 !important;
  font-size: 0.82rem !important;
  margin-top: 6px !important;
  letter-spacing: 0.04em !important;
  font-family: 'Space Grotesk', sans-serif !important;
}
html[data-unit] .legend {
  color: #e2e8f0 !important;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
}

/* ══════════════════════════════════════════════════════════════════════════════
   ECOSISTEMA BITÁCORA DE VIDA (DASHBOARD, DIARIO, CRONOLOGÍA, PATRONES, PÓSTER)
   ══════════════════════════════════════════════════════════════════════════════ */
body[data-view] {
  background: #060913 !important;
  color: #f8fafc !important;
  min-height: 100vh;
  font-family: 'Space Grotesk', sans-serif;
  margin: 0;
  position: relative;
}

body[data-view]::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, #0d172e 0%, #060913 75%);
  z-index: -1;
  pointer-events: none;
}

body[data-view] .app-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 70px;
}

/* Barra Superior Bitácora */
.bitacora-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  background: rgba(11, 17, 32, 0.92);
  border-bottom: 1px solid rgba(212, 168, 67, 0.25);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  margin: 0 -24px 36px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.bitacora-topbar .brand-link {
  font-family: 'Cinzel', serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: #f5c358;
  text-decoration: none;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.bitacora-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.85);
  padding: 4px 6px;
  border-radius: 999px;
  border: 1px solid rgba(212, 168, 67, 0.25);
}

.bitacora-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  border-radius: 999px;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.bitacora-tab:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.08);
}

.bitacora-tab.active {
  color: #ffd700;
  background: rgba(212, 168, 67, 0.22);
  border: 1px solid rgba(212, 168, 67, 0.45);
  box-shadow: 0 0 14px rgba(245, 195, 88, 0.3);
  font-weight: 600;
}

.bitacora-tab .tab-icon {
  font-size: 0.95rem;
}

.bitacora-topbar .topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

/* Cabecera de Vista */
body[data-view] .view-header {
  max-width: 800px;
  padding-bottom: 28px;
}

body[data-view] .view-header h1 {
  font-family: 'Cinzel', serif;
  color: #f8fafc;
  font-size: clamp(2rem, 4.5vw, 3rem);
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}

body[data-view] .view-header .eyebrow {
  color: #f5c358;
  font-size: 0.74rem;
  font-family: 'DM Mono', monospace;
  letter-spacing: 0.14em;
  margin-bottom: 6px;
  font-weight: 600;
}

body[data-view] .view-header .subtitle {
  color: #cbd5e1;
  font-size: 1rem;
  line-height: 1.5;
  margin: 0;
}

/* Estadísticas del Dashboard (4 tarjetas) */
body[data-view] .dashboard-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  background: transparent !important;
  border: none !important;
  margin-bottom: 24px;
}

body[data-view] .dashboard-stats article {
  background: rgba(15, 23, 42, 0.85) !important;
  border: 1px solid rgba(212, 168, 67, 0.28) !important;
  border-radius: 14px;
  padding: 18px 20px;
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

body[data-view] .dashboard-stats strong {
  color: #ffd700 !important;
  font-size: 1.5rem !important;
  font-family: 'Space Grotesk', sans-serif !important;
  font-weight: 700 !important;
  text-shadow: 0 0 12px rgba(245, 195, 88, 0.35);
  display: block;
}

body[data-view] .dashboard-stats span {
  color: #cbd5e1 !important;
  font-size: 0.82rem !important;
  margin-top: 4px;
  display: block;
}

/* Cuadrícula Live (Ahora vs Próximo Hito) */
body[data-view] .dashboard-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 18px;
  margin-bottom: 36px;
}

body[data-view] .now-card,
body[data-view] .next-card {
  background: rgba(15, 23, 42, 0.85) !important;
  border: 1px solid rgba(212, 168, 67, 0.25) !important;
  border-radius: 16px;
  padding: 24px 28px;
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

body[data-view] .now-card h2 {
  color: #ffd700 !important;
  font-family: 'Cinzel', serif;
  font-size: 1.85rem;
  margin-bottom: 10px;
}

body[data-view] .next-card h2 {
  color: #38bdf8 !important;
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  margin-bottom: 10px;
}

body[data-view] .progress {
  height: 10px;
  background: rgba(30, 41, 59, 0.9);
  border-radius: 999px;
  overflow: hidden;
  margin: 20px 0 8px;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

body[data-view] .progress span {
  background: linear-gradient(90deg, #d4a843, #f5c358);
  box-shadow: 0 0 10px rgba(245, 195, 88, 0.5);
  display: block;
  height: 100%;
}

body[data-view] .now-card small {
  color: #cbd5e1;
  font-size: 0.78rem;
  font-family: 'DM Mono', monospace;
}

/* Hub Bento de las 4 Puertas de la Bitácora */
.bitacora-hub-section {
  margin-top: 40px;
  margin-bottom: 40px;
}

.bitacora-hub-section .hub-heading {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 32px;
}

.bitacora-hub-section .hub-heading h2 {
  font-family: 'Cinzel', serif;
  font-size: 1.9rem;
  color: #f8fafc;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.bitacora-hub-section .hub-heading .subtitle {
  color: #cbd5e1;
  font-size: 0.95rem;
  margin: 0 auto;
}

.bitacora-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.bitacora-card {
  position: relative;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(212, 168, 67, 0.25);
  border-radius: 18px;
  padding: 26px 24px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bitacora-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 168, 67, 0.6);
  box-shadow: 0 14px 40px rgba(212, 168, 67, 0.15);
  background: rgba(20, 30, 55, 0.92);
}

.bitacora-card .card-badge {
  position: absolute;
  top: 16px;
  right: 20px;
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  color: rgba(212, 168, 67, 0.45);
  font-weight: 700;
}

.bitacora-card .card-icon {
  font-size: 2rem;
  line-height: 1;
  background: rgba(212, 168, 67, 0.12);
  border: 1px solid rgba(212, 168, 67, 0.3);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bitacora-card .card-category {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: #f5c358;
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}

.bitacora-card h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.3rem;
  color: #f8fafc;
  margin: 0 0 8px;
}

.bitacora-card p {
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.55;
  margin: 0 0 16px;
}

.bitacora-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: rgba(212, 168, 67, 0.15);
  border: 1px solid rgba(212, 168, 67, 0.4);
  color: #ffd700;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.25s ease;
  cursor: pointer;
}

.bitacora-btn:hover {
  background: rgba(212, 168, 67, 0.35);
  color: #ffffff;
  box-shadow: 0 0 14px rgba(245, 195, 88, 0.45);
}

/* Paneles y Formularios Generales en Modo Cósmico */
body[data-view] .panel {
  background: rgba(15, 23, 42, 0.82) !important;
  border: 1px solid rgba(212, 168, 67, 0.25) !important;
  border-radius: 16px;
  color: #f8fafc;
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

body[data-view] input,
body[data-view] textarea,
body[data-view] select {
  background: rgba(30, 41, 59, 0.9) !important;
  border: 1px solid rgba(212, 168, 67, 0.35) !important;
  color: #ffffff !important;
  border-radius: 8px;
  padding: 8px 12px;
  font-family: 'Space Grotesk', sans-serif;
}

body[data-view] .journal-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) 1.2fr;
  gap: 32px;
  padding: 28px;
}

body[data-view] .journal-form label {
  color: #f5c358;
  font-weight: 600;
  font-size: 0.85rem;
}

body[data-view] .journal-list {
  border-left: 1px solid rgba(148, 163, 184, 0.2);
  padding-left: 28px;
}

body[data-view] .journal-list article {
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  padding-bottom: 18px;
  margin-bottom: 18px;
}

body[data-view] .journal-list article p:nth-child(2) {
  color: #e2e8f0;
  font-size: 0.95rem;
  line-height: 1.55;
}

body[data-view] .full-timeline li {
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

body[data-view] .full-timeline strong {
  color: #f8fafc;
  font-size: 1.05rem;
}

body[data-view] .full-timeline span {
  color: #cbd5e1;
}

body[data-view] .pattern-panel {
  padding: 28px;
}

body[data-view] .pattern-cell {
  background: rgba(148, 163, 184, 0.12);
}

body[data-view] .pattern-cell.lived {
  background: #f5c358;
}

body[data-view] .poster {
  background: rgba(15, 23, 42, 0.9) !important;
  border: 1px solid rgba(212, 168, 67, 0.4) !important;
  border-radius: 20px;
  margin: 30px auto;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.6);
}

body[data-view] .poster h1 {
  font-family: 'Cinzel', serif;
  color: #ffd700;
}

body[data-view] .poster-grid i {
  background: rgba(148, 163, 184, 0.15);
}

body[data-view] .poster-grid i.filled {
  background: #f5c358;
}

/* Responsividad */
@media (max-width: 860px) {
  .bitacora-topbar {
    flex-wrap: wrap;
    padding: 12px 16px;
    margin: 0 -16px 24px;
  }
  .bitacora-tabs {
    order: 3;
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
    padding: 4px;
  }
  body[data-view] .dashboard-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  body[data-view] .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .bitacora-grid {
    grid-template-columns: 1fr;
  }
  body[data-view] .journal-panel {
    grid-template-columns: 1fr;
  }
  body[data-view] .journal-list {
    border-left: none;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    padding-left: 0;
    padding-top: 24px;
  }
}

/* ══════════════════════════════════════════════════════════════════════════════
   BOTÓN Y ESTILOS DE LÁMINA ARTÍSTICA IMPRIMIBLE (AÑOS, MESES, SEMANAS)
   ══════════════════════════════════════════════════════════════════════════════ */
/* ══════════════════════════════════════════════════════════════════════════════
   BARRA DE ACCIÓN: BOTÓN DE IMPRESIÓN Y SELECTOR DE EXPECTATIVA EN PANTALLA
   ══════════════════════════════════════════════════════════════════════════════ */
.print-action-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0 auto 28px;
}

.print-poster-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 26px;
  background: linear-gradient(135deg, rgba(212, 168, 67, 0.28), rgba(245, 195, 88, 0.15)) !important;
  border: 1px solid rgba(212, 168, 67, 0.55) !important;
  border-radius: 999px !important;
  color: #ffd700 !important;
  font-family: 'Space Grotesk', sans-serif !important;
  font-size: 0.92rem !important;
  font-weight: 600 !important;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.print-poster-btn:hover {
  background: linear-gradient(135deg, rgba(212, 168, 67, 0.5), rgba(245, 195, 88, 0.3)) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245, 195, 88, 0.35);
  border-color: #ffd700 !important;
}

.print-poster-btn .btn-icon {
  font-size: 1.15rem;
}

.expectancy-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(212, 168, 67, 0.45);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  color: #cbd5e1;
  font-size: 0.85rem;
  font-family: 'Space Grotesk', sans-serif;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.expectancy-pill .pill-icon {
  font-size: 1rem;
}

.expectancy-pill label {
  color: #ffd700;
  font-weight: 600;
  cursor: pointer;
}

.expectancy-select {
  background: rgba(6, 9, 19, 0.95);
  border: 1px solid rgba(212, 168, 67, 0.5);
  border-radius: 6px;
  color: #ffffff;
  padding: 4px 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s ease;
}

.expectancy-select:focus {
  border-color: #ffd700;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.print-watermark {
  display: none;
}

.print-title {
  display: none;
}

/* ══════════════════════════════════════════════════════════════════════════════
   LÁMINA ARTÍSTICA DE MUSEO PARA IMPRESIÓN / GUARDADO EN PDF (1 SOLA HOJA ESTRICTA)
   ══════════════════════════════════════════════════════════════════════════════ */
@media print {
  @page {
    size: A4 portrait;
    margin: 12mm 15mm 12mm 15mm;
  }

  html,
  html[data-unit],
  html body,
  html[data-unit] body,
  body,
  body.cosmic-mode,
  body[data-unit],
  body[data-view] {
    width: 100% !important;
    height: 100% !important;
    max-height: 100vh !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    background-image: none !important;
    color: #000000 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    page-break-after: avoid !important;
    break-after: avoid !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  /* Ocultar interfaz web, herramientas, cajas de texto redundantes y ruido */
  header.cosmic-topbar,
  .print-action-bar,
  .expectancy-pill,
  .toolbar,
  .workspace-grid,
  .setup-panel,
  .date-calculator,
  .cosmic-footer,
  footer:not(.print-watermark),
  #cosmic-drawer,
  #cosmic-drawer-overlay,
  .guide-help,
  .guide-overlay,
  .screen-title,
  .chart-order,
  .section-kicker,
  .switch,
  #unitbox,
  html[data-unit] .title-box .eyebrow,
  .title-box .eyebrow,
  .chart-heading h2,
  .stats,
  html[data-unit] .stats,
  body.cosmic-mode .stats {
    display: none !important;
  }

  /* Contenedor centralizado para 1 sola hoja - Visual como Héroe */
  /* Contenedor centralizado para 1 sola hoja - Visual como Héroe */
  html[data-unit] .app-shell,
  .app-shell {
    max-width: 580px !important;
    width: 100% !important;
    height: 100vh !important;
    max-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 6mm 0 !important;
    margin: 0 auto !important;
    background: transparent !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  /* Cabecera de la Lámina - Título Sólido Negro y Métricas Claras */
  html[data-unit] .title-box,
  .title-box {
    padding: 0 !important;
    margin: 0 auto 10px auto !important;
    text-align: center !important;
    background: transparent !important;
    width: 100% !important;
  }

  html[data-unit] .title-box h1.screen-title,
  .title-box h1.screen-title {
    display: none !important;
  }

  html[data-unit] .title-box h1.print-title,
  .title-box h1.print-title,
  #print-user-title {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    color: #0b0f19 !important;
    margin: 0 0 6px 0 !important;
    line-height: 1.2 !important;
    text-align: center !important;
  }

  .print-kicker {
    display: block !important;
    font-family: 'DM Mono', monospace !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    color: #9a3412 !important;
    letter-spacing: 0.18em !important;
    text-transform: uppercase !important;
    margin-bottom: 4px !important;
  }

  .print-name {
    display: block !important;
    font-family: 'Cinzel', serif !important;
    font-size: 1.55rem !important;
    font-weight: 800 !important;
    color: #000000 !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    margin-bottom: 3px !important;
  }

  .print-meta {
    display: block !important;
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    color: #334155 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
  }

  /* Subtítulo / Métricas Claras de Alto Contraste */
  html[data-unit] .title-box .subtitle,
  .title-box .subtitle {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    color: #1e293b !important;
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: 0.92rem !important;
    font-weight: 600 !important;
    margin: 0 auto 10px auto !important;
    max-width: 560px !important;
    line-height: 1.4 !important;
    text-align: center !important;
  }

  .print-stat-lived strong {
    color: #9a3412 !important;
    font-weight: 800 !important;
  }

  .print-stat-remaining strong {
    color: #0f172a !important;
    font-weight: 800 !important;
  }

  .print-stat-dot {
    color: #94a3b8 !important;
    font-weight: 900 !important;
    margin: 0 4px !important;
  }

  /* Micro Leyenda - Alto Contraste */
  html[data-unit] .chart-wrap,
  body.cosmic-mode .chart-wrap,
  .chart-wrap {
    margin: 0 auto !important;
    text-align: center !important;
    overflow: visible !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    display: block !important;
    width: 100% !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .chart-heading {
    display: block !important;
    width: 100% !important;
    margin: 0 auto 10px auto !important;
    text-align: center !important;
    background: transparent !important;
  }
  .chart-heading > div {
    display: none !important;
  }

  .legend {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 22px !important;
    width: 100% !important;
    margin: 0 auto 12px auto !important;
    background: transparent !important;
  }

  .legend-item {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    width: auto !important;
    height: auto !important;
    color: #0b0f19 !important;
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: 0.86rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.02em !important;
    text-transform: capitalize !important;
    white-space: nowrap !important;
  }

  .legend-lived,
  .legend-remaining,
  .legend-event,
  .legend-goal {
    display: inline-block !important;
    width: 13px !important;
    height: 13px !important;
    min-width: 13px !important;
    max-width: 13px !important;
    border-radius: 2px !important;
    margin: 0 !important;
    vertical-align: middle !important;
  }

  .legend-lived {
    background: #c2410c !important;
    border: 1px solid #7c2d12 !important;
  }

  .legend-remaining {
    background: #ffffff !important;
    border: 1.5px solid #0f172a !important;
  }

  .legend-event {
    display: inline-block !important;
    background: #0d9488 !important;
    border: 1px solid #0f766e !important;
  }

  .legend-goal {
    display: inline-block !important;
    background: #d97706 !important;
    border: 1px solid #b45309 !important;
  }

  /* ═══ VISUAL EXPANDIDO - EL GRÁFICO ES EL HÉROE DE LA LÁMINA ═══ */
  /* Semanas: 52 columnas x 80-100 filas -> 535px de ancho y 6.6px de alto */
  .weeks {
    max-width: 535px !important;
    width: 535px !important;
    grid-template-columns: repeat(52, 1fr) !important;
    gap: 1.6px !important;
    margin: 0 auto 12px auto !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }
  .weeks li {
    height: 6.6px !important;
    aspect-ratio: auto !important;
    border-radius: 0.8px !important;
  }

  /* Meses: 24 columnas x 40-50 filas -> 480px de ancho y 12px de alto */
  .months {
    max-width: 480px !important;
    width: 480px !important;
    grid-template-columns: repeat(24, 1fr) !important;
    gap: 2.8px !important;
    margin: 0 auto 12px auto !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }
  .months li {
    height: 12px !important;
    aspect-ratio: auto !important;
    border-radius: 50% !important;
  }

  /* Años: 10 columnas x 10 filas -> 480px de ancho y 42px de alto */
  .years {
    max-width: 480px !important;
    width: 480px !important;
    grid-template-columns: repeat(10, 1fr) !important;
    gap: 7px !important;
    margin: 0 auto 12px auto !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }
  .years li {
    height: 42px !important;
    aspect-ratio: auto !important;
    border-radius: 4px !important;
  }

  /* Casillas Vividas (Terracota Intenso) vs Restantes (Borde Slate Oscuro Nítido) */
  .months li.is-lived,
  .weeks li.is-lived,
  .years li.is-lived {
    background: #c2410c !important;
    border: 0.5px solid #7c2d12 !important;
    box-shadow: none !important;
  }

  .months li.is-remaining,
  .weeks li.is-remaining,
  .years li.is-remaining {
    background: #ffffff !important;
    border: 1px solid #475569 !important;
    box-shadow: none !important;
  }

  /* Pie de Lámina Elegante y Dignificado */
  .print-watermark {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    margin: 12px auto 0 auto !important;
    padding-top: 10px !important;
    border-top: 1px solid #cbd5e1 !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    width: 100% !important;
    max-width: 535px !important;
    background: transparent !important;
  }

  .print-quote {
    display: block !important;
    font-family: 'Cinzel', serif !important;
    font-style: italic !important;
    font-size: 0.82rem !important;
    color: #475569 !important;
    margin: 0 0 6px 0 !important;
    letter-spacing: 0.03em !important;
    line-height: 1.35 !important;
  }

  .print-credits {
    display: block !important;
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: 0.8rem !important;
    color: #64748b !important;
    font-weight: 500 !important;
    margin: 0 !important;
  }

  .print-credits-link {
    display: inline !important;
    color: #0f172a !important;
    font-weight: 700 !important;
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
    cursor: pointer !important;
  }
}




