/* ===== PÁGINA DE ASTRONOMÍA ===== */
.astro-page {
    --bg-dark: #0a1628;
    --bg-card: #111d32;
    --bg-lighter: #162236;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent: #3b82f6;
    --border: #1e3a5f;
    --gold: #fbbf24;
    
    background: var(--bg-dark);
    min-height: 80vh;
    padding: 1rem 0 3rem;
}

.astro-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header de la página */
.astro-header {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem 0;
}

.astro-header-top {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.astro-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    margin: 0;
}

.location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.location svg { width: 16px; height: 16px; }

/* Date display */
.date-display {
    text-align: center;
    margin: 1rem 0;
}

.current-date {
    font-size: 1.0625rem;
    color: var(--text-secondary);
}

/* Moon section */
.moon-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.moon-image-container {
    width: 280px;
    height: 280px;
    margin: 1rem 0;
    position: relative;
}

.moon-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    filter: drop-shadow(0 0 40px rgba(180, 190, 220, 0.25));
}

/* Full moon special name badge */
.full-moon-badge {
    display: none;
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #1e3a5f 0%, #0a1628 100%);
    border: 2px solid var(--gold);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--gold);
    white-space: nowrap;
    z-index: 10;
}

.full-moon-badge.active { display: flex; align-items: center; gap: 0.4rem; }

/* Day slider */
.day-slider-container {
    width: 100%;
    max-width: 600px;
    margin: 1.5rem 0;
}

.day-slider {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 0.75rem 0;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
    position: relative; /* Establece offsetParent para los .day-item */
}

.day-slider::-webkit-scrollbar { height: 6px; }
.day-slider::-webkit-scrollbar-track { background: transparent; }
.day-slider::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.day-item {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 52px;
    background: var(--bg-card);
}

.day-item:hover { background: var(--border); }
.day-item.active { background: var(--accent); transform: scale(1.05); }
.day-item.today { border: 2px solid var(--accent); }
.day-item.full-moon { border: 2px solid var(--gold); }

.day-item .day-name {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: lowercase;
}

.day-item.active .day-name { color: rgba(255,255,255,0.8); }

.day-item .day-num {
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0.2rem 0;
    color: white;
}

.day-item .day-moon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

/* Moon info grid */
.moon-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    width: 100%;
    max-width: 500px;
    margin: 1rem 0;
}

.info-group { text-align: center; }
.info-group .icon { font-size: 1.25rem; margin-bottom: 0.15rem; }
.info-group .value { font-size: 0.9375rem; font-weight: 500; color: white; }
.info-group .label { font-size: 0.6875rem; color: var(--text-muted); }

/* Stats row */
.stats-row {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.stat { text-align: center; }
.stat .label { font-size: 0.6875rem; color: var(--text-muted); margin-bottom: 0.15rem; }
.stat .value { font-size: 0.9375rem; font-weight: 500; color: white; }

.unit-toggle {
    display: inline-flex;
    background: var(--bg-dark);
    border-radius: 4px;
    padding: 1px;
    margin-left: 0.25rem;
    vertical-align: middle;
}

.unit-toggle button {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.1rem 0.4rem;
    font-size: 0.625rem;
    border-radius: 3px;
    cursor: pointer;
}

.unit-toggle button.active { background: var(--accent); color: white; }

/* Phase section */
.phase-section {
    text-align: center;
    margin: 1.5rem 0;
    padding: 0 1rem;
}

.phase-name { font-size: 1.375rem; font-weight: 600; margin-bottom: 0.5rem; color: white; }

.phase-traditional {
    display: none;
    color: var(--gold);
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.phase-traditional.active { display: block; }

.phase-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== SOL Y LUZ (Bloque 3) ===== */
.sun-section {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1.25rem;
    margin-top: 1.5rem;
}

.sun-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.sun-header h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    color: white;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sun-city-select {
    background: var(--bg-lighter);
    border: 1px solid var(--border);
    color: white;
    padding: 0.4rem 0.7rem;
    border-radius: 6px;
    font-size: 0.8125rem;
    cursor: pointer;
    font-family: inherit;
}

.sun-city-select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

/* Tabs Sol/Luna del arco */
.arc-tabs {
    display: inline-flex;
    gap: 4px;
    margin-bottom: 0.85rem;
    background: var(--bg-lighter);
    border-radius: 9px;
    padding: 4px;
}

.arc-tab {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.4rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.arc-tab.active {
    background: var(--accent);
    color: white;
}

.arc-tab:not(.active):hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

/* Resumen "Quedan X horas..." */
.arc-summary {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.arc-summary strong { color: white; font-weight: 600; }

/* SVG del arco */
.arc-container {
    margin-bottom: 1.25rem;
    overflow: visible;
}

.arc-svg {
    width: 100%;
    height: auto;
    display: block;
    overflow: visible;
}

.day-length-box {
    text-align: center;
    margin-bottom: 1.25rem;
    padding: 0.75rem 1rem;
    background: rgba(59, 130, 246, 0.06);
    border-radius: 10px;
    border: 1px solid rgba(59, 130, 246, 0.15);
}

.day-length-box .label { font-size: 0.6875rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.25rem; }
.day-length-box .value { font-size: 1.125rem; font-weight: 600; color: white; font-variant-numeric: tabular-nums; }
.day-length-box .delta { font-size: 0.8125rem; margin-left: 0.5rem; font-variant-numeric: tabular-nums; }
.day-length-box .delta.positive { color: #fbbf24; }
.day-length-box .delta.negative { color: #f87171; }
.day-length-box .delta.zero { color: var(--text-muted); }

/* Timeline visual del día — degradado por fase
   (eliminado: ahora el arco SVG visualiza todo el día) */

.sun-subsection-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: white;
    margin: 1rem 0 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.sun-chips {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.sun-chips.three-col { grid-template-columns: repeat(3, 1fr); }

.sun-chip {
    background: var(--bg-lighter);
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    font-size: 0.8125rem;
    transition: background 0.2s;
}

.sun-chip:hover { background: var(--border); }

.sun-chip .chip-name { color: var(--text-muted); font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.5px; }
.sun-chip .chip-range { color: white; font-weight: 500; font-variant-numeric: tabular-nums; }

.next-sun-event {
    background: linear-gradient(135deg, var(--bg-lighter), rgba(251, 191, 36, 0.08));
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-top: 1rem;
}

.next-sun-event .emoji { font-size: 1.75rem; line-height: 1; }
.next-sun-event .info { flex: 1; min-width: 0; }
.next-sun-event .name { font-size: 0.9375rem; color: white; font-weight: 600; }
.next-sun-event .countdown { font-size: 0.75rem; color: var(--text-secondary); margin-top: 0.1rem; }

@media (max-width: 640px) {
    .sun-chips, .sun-chips.three-col { grid-template-columns: 1fr; }
    .arc-tab { padding: 0.35rem 0.75rem; font-size: 0.8125rem; }
    .arc-summary { font-size: 0.875rem; }
}

/* ===== PLANETAS (Bloque 2) ===== */
.planets-section {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1.25rem;
    margin-top: 1rem;
}

.planets-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.25rem;
}

.planets-header h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    color: white;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.planets-visible-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.planets-group {
    background: var(--bg-lighter);
    border-radius: 10px;
    padding: 0.85rem;
}

.planets-group-title {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin: 0 0 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.planets-cards {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-height: 60px;
}

.planet-card {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.6rem;
    background: rgba(255, 255, 255, 0.025);
    border-radius: 6px;
    transition: background 0.15s;
}

.planet-card:hover { background: rgba(255, 255, 255, 0.06); }

.planet-card .sym {
    font-size: 1.5rem;
    line-height: 1;
    width: 22px;
    text-align: center;
    color: var(--gold);
}

.planet-card .info {
    flex: 1;
    min-width: 0;
}

.planet-card .name {
    font-size: 0.8125rem;
    font-weight: 500;
    color: white;
}

.planet-card .meta {
    font-size: 0.625rem;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
    margin-top: 1px;
}

.planet-card .direction {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gold);
    font-variant-numeric: tabular-nums;
    background: rgba(251, 191, 36, 0.1);
    padding: 0.2rem 0.45rem;
    border-radius: 4px;
}

.planets-empty {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.75rem;
    padding: 1rem 0;
    font-style: italic;
}

.planets-detail-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: white;
    margin: 0 0 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.planets-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.75rem;
    background: var(--bg-lighter);
    border-radius: 10px;
    overflow: hidden;
}

.planets-table thead th {
    background: rgba(0, 0, 0, 0.25);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.625rem;
    font-weight: 600;
    padding: 0.55rem 0.4rem;
    text-align: center;
}

.planets-table thead th:first-child { text-align: left; padding-left: 0.75rem; }

.planets-table tbody td {
    padding: 0.6rem 0.4rem;
    color: white;
    font-variant-numeric: tabular-nums;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.planets-table tbody td:first-child {
    text-align: left;
    padding-left: 0.75rem;
}

.planets-table tbody .planet-row-name {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.planets-table tbody .planet-row-name .sym {
    font-size: 1.0625rem;
    color: var(--gold);
}

.planets-table tbody .planet-row-name-text {
    line-height: 1.2;
}

.planets-table tbody .const-small {
    font-size: 0.625rem;
    color: var(--text-muted);
    display: block;
}

.planets-table .cell-time { display: block; }
.planets-table .cell-sub { display: block; font-size: 0.625rem; color: var(--text-muted); margin-top: 1px; }

@media (max-width: 640px) {
    .planets-visible-grid { grid-template-columns: 1fr; }
    .planets-table { font-size: 0.6875rem; }
    .planets-table thead th { padding: 0.4rem 0.2rem; font-size: 0.5625rem; }
    .planets-table tbody td { padding: 0.5rem 0.2rem; }
    .planets-table tbody td:first-child { padding-left: 0.5rem; }
    .planets-table thead th:first-child { padding-left: 0.5rem; }
}

/* ===== Mapa del cielo (Stellarium-like) ===== */
.skymap-section {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1.25rem;
    margin-top: 1rem;
}

.skymap-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.skymap-header h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    color: white;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.skymap-view-tabs {
    display: inline-flex;
    gap: 4px;
    background: var(--bg-lighter);
    border-radius: 9px;
    padding: 4px;
}

.skymap-view-tab {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.4rem 0.95rem;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.skymap-view-tab.active {
    background: var(--accent);
    color: white;
}

.skymap-view-tab:not(.active):hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.skymap-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.8125rem;
    margin-bottom: 0.85rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skymap-info .city-label { color: var(--text-secondary); }
.skymap-info .time-label { font-variant-numeric: tabular-nums; color: white; font-weight: 500; }

.skymap-canvas-wrapper {
    background: radial-gradient(circle at center, #0d1a3a 0%, #050a14 75%);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
}

.skymap-canvas-wrapper.dome {
    aspect-ratio: 1;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.skymap-canvas-wrapper.panorama {
    aspect-ratio: 2.6;
    max-width: 100%;
}

.skymap-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.skymap-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.875rem;
    background: rgba(5, 10, 20, 0.85);
    z-index: 5;
}

.skymap-time-controls {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.skymap-time-btn {
    background: var(--bg-lighter);
    border: 1px solid var(--border);
    color: white;
    padding: 0.4rem 0.95rem;
    border-radius: 7px;
    font-size: 0.8125rem;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    font-variant-numeric: tabular-nums;
    min-width: 56px;
}

.skymap-time-btn:hover { background: var(--border); }
.skymap-time-btn:active { transform: scale(0.96); }
.skymap-time-btn.now { background: var(--accent); border-color: var(--accent); font-weight: 600; }
.skymap-time-btn.now:hover { background: var(--accent); opacity: 0.85; }
.skymap-time-btn.now.is-now { box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25); }

.skymap-geo-btn { margin-left: 0.5rem; padding-left: 0.85rem; padding-right: 0.85rem; }
.skymap-geo-btn.active { background: #16a34a; border-color: #16a34a; color: white; }
.skymap-geo-btn.loading { opacity: 0.6; pointer-events: none; }

.skymap-legend {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    font-size: 0.6875rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.skymap-legend-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    margin-right: 0.35rem;
    vertical-align: 0;
}

.skymap-legend-dot.above { background: #fbbf24; box-shadow: 0 0 4px rgba(251, 191, 36, 0.6); }
.skymap-legend-dot.below { background: rgba(148, 163, 184, 0.4); border: 1px solid rgba(148, 163, 184, 0.5); }

.skymap-legend-row { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

.skymap-meteors { margin-top: 0.75rem; font-size: 0.8125rem; line-height: 1.7; text-align: center; }
.skymap-meteors.active .meteor-pill {
    display: inline-block;
    background: rgba(34, 211, 238, 0.12);
    border: 1px solid rgba(34, 211, 238, 0.35);
    color: #cffafe;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    margin: 0.15rem 0.2rem;
}
.skymap-meteors.next {
    color: var(--text-muted);
    padding-top: 0.4rem;
    border-top: 1px solid rgba(255,255,255,0.04);
}

/* ===== Sección lluvias de meteoros ===== */
.meteor-section {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.meteor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.meteor-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
    margin: 0;
}

.meteor-filter {
    display: inline-flex;
    gap: 4px;
    background: var(--bg-lighter);
    border-radius: 9px;
    padding: 4px;
}

.meteor-filter-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.4rem 0.85rem;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.meteor-filter-btn.active {
    background: var(--accent);
    color: white;
}

.meteor-filter-btn:not(.active):hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.meteor-intro {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0 0 1.25rem 0;
}

.meteor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 1rem;
}

.meteor-card {
    background: var(--bg-lighter);
    border-radius: 12px;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: border-color 0.2s, background 0.2s;
    display: flex;
    flex-direction: column;
}

.meteor-card.active { border-color: rgba(34, 211, 238, 0.35); background: linear-gradient(180deg, rgba(34, 211, 238, 0.06), var(--bg-lighter) 60%); }
.meteor-card.upcoming { border-color: rgba(251, 191, 36, 0.25); }

.meteor-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.meteor-name {
    font-size: 1.0625rem;
    font-weight: 600;
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.meteor-badge {
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.meteor-badge.active { background: rgba(34, 211, 238, 0.18); color: #67e8f9; border: 1px solid rgba(34, 211, 238, 0.35); }
.meteor-badge.upcoming { background: rgba(251, 191, 36, 0.15); color: #fcd34d; border: 1px solid rgba(251, 191, 36, 0.3); }
.meteor-badge.past { background: rgba(148, 163, 184, 0.12); color: #94a3b8; border: 1px solid rgba(148, 163, 184, 0.25); }

.meteor-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem 0.75rem;
    margin: 0.75rem 0;
    font-size: 0.8125rem;
}

.meteor-stat-label { color: var(--text-muted); display: block; font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 0.05rem; }
.meteor-stat-value { color: white; font-weight: 500; font-variant-numeric: tabular-nums; }

.meteor-desc {
    color: var(--text-secondary);
    font-size: 0.8125rem;
    line-height: 1.55;
    margin: 0.5rem 0;
}

.meteor-tip {
    background: rgba(251, 191, 36, 0.08);
    border-left: 3px solid rgba(251, 191, 36, 0.5);
    padding: 0.5rem 0.7rem;
    margin: 0.6rem 0 0.75rem 0;
    font-size: 0.8125rem;
    color: #fde68a;
    border-radius: 0 6px 6px 0;
    line-height: 1.5;
}

.meteor-actions {
    margin-top: auto;
    padding-top: 0.6rem;
}

.meteor-show-btn {
    width: 100%;
    background: rgba(34, 211, 238, 0.12);
    border: 1px solid rgba(34, 211, 238, 0.4);
    color: #67e8f9;
    padding: 0.55rem 0.85rem;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s;
}

.meteor-show-btn:hover {
    background: rgba(34, 211, 238, 0.22);
    border-color: rgba(34, 211, 238, 0.6);
    color: white;
}

.meteor-empty {
    grid-column: 1/-1;
    text-align: center;
    color: var(--text-muted);
    padding: 2rem;
    font-size: 0.875rem;
}

/* Indicador de modo "ver pico" en el skymap */
.skymap-time-controls .skymap-shower-pin {
    background: rgba(34, 211, 238, 0.18);
    border: 1px solid rgba(34, 211, 238, 0.45);
    color: #cffafe;
}

/* Botón toggle de constelaciones */
.skymap-time-controls .skymap-constel-btn.active {
    background: rgba(168, 85, 247, 0.25);
    border-color: rgba(168, 85, 247, 0.7) !important;
    color: #e9d5ff !important;
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.3);
}

@media (max-width: 640px) {
    .meteor-grid { grid-template-columns: 1fr; }
}

/* ===== Sección de conjunciones ===== */
.conj-section {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.conj-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.conj-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
    margin: 0;
}

.conj-filter {
    display: inline-flex;
    gap: 4px;
    background: var(--bg-lighter);
    border-radius: 9px;
    padding: 4px;
}

.conj-filter-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.4rem 0.85rem;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
}
.conj-filter-btn.active { background: var(--accent); color: white; }
.conj-filter-btn:not(.active):hover { background: rgba(255,255,255,0.05); color: white; }

.conj-intro {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0 0 1.25rem 0;
}

.conj-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 0.85rem;
}

.conj-card {
    background: var(--bg-lighter);
    border-radius: 12px;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.conj-card.visible-evening { border-color: rgba(251, 146, 60, 0.3); }
.conj-card.visible-night    { border-color: rgba(168, 85, 247, 0.35); }
.conj-card.visible-predawn  { border-color: rgba(34, 211, 238, 0.35); }
.conj-card.not-visible      { opacity: 0.7; }

.conj-pair {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
}

.conj-pair-names {
    font-size: 1.0625rem;
    font-weight: 600;
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.conj-pair-syms {
    font-size: 1.25rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

.conj-sep {
    font-variant-numeric: tabular-nums;
    font-size: 0.8125rem;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    color: white;
    font-weight: 600;
}
.conj-sep.very-close { background: rgba(244,114,182,0.18); color: #fbcfe8; border: 1px solid rgba(244,114,182,0.4); }
.conj-sep.close      { background: rgba(251,191,36,0.15); color: #fde68a; border: 1px solid rgba(251,191,36,0.35); }

.conj-when {
    font-size: 0.875rem;
    color: white;
    font-variant-numeric: tabular-nums;
}
.conj-when .conj-relative { color: var(--text-muted); margin-left: 0.4rem; font-size: 0.8125rem; }

.conj-visibility {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.5;
}
.conj-visibility strong { color: white; font-weight: 500; }

.conj-show-btn {
    margin-top: 0.4rem;
    background: rgba(34, 211, 238, 0.12);
    border: 1px solid rgba(34, 211, 238, 0.4);
    color: #67e8f9;
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s;
}
.conj-show-btn:hover {
    background: rgba(34, 211, 238, 0.22);
    border-color: rgba(34, 211, 238, 0.6);
    color: white;
}
.conj-show-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.conj-empty {
    grid-column: 1/-1;
    text-align: center;
    color: var(--text-muted);
    padding: 1.5rem;
    font-size: 0.875rem;
}

.conj-loading {
    grid-column: 1/-1;
    text-align: center;
    color: var(--text-muted);
    padding: 1rem;
    font-size: 0.8125rem;
}

@media (max-width: 640px) {
    .conj-list { grid-template-columns: 1fr; }
}

/* ===== Tiempo espacial ===== */
.sw-section {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.sw-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1rem;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.sw-header h3 { font-size: 1.125rem; font-weight: 600; color: white; margin: 0; }
.sw-updated { color: var(--text-muted); font-size: 0.8125rem; }

.sw-status {
    background: var(--bg-lighter);
    border-radius: 12px;
    padding: 1rem 1.2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid rgba(255,255,255,0.04);
}
.sw-status.calm    { border-color: rgba(34,197,94,0.3); background: linear-gradient(180deg, rgba(34,197,94,0.05), var(--bg-lighter)); }
.sw-status.unsettled { border-color: rgba(251,191,36,0.3); background: linear-gradient(180deg, rgba(251,191,36,0.05), var(--bg-lighter)); }
.sw-status.storm-minor { border-color: rgba(249,115,22,0.35); background: linear-gradient(180deg, rgba(249,115,22,0.08), var(--bg-lighter)); }
.sw-status.storm-major { border-color: rgba(220,38,38,0.45); background: linear-gradient(180deg, rgba(220,38,38,0.12), var(--bg-lighter)); }
.sw-status.storm-extreme { border-color: rgba(127,29,29,0.6); background: linear-gradient(180deg, rgba(220,38,38,0.18), var(--bg-lighter)); }

.sw-status-icon { font-size: 2.5rem; line-height: 1; }
.sw-status-text { flex: 1; }
.sw-status-title { font-size: 1.125rem; font-weight: 600; color: white; margin-bottom: 0.25rem; }
.sw-status-desc  { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.5; }

.sw-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.85rem;
    margin-bottom: 1.25rem;
}

.sw-card {
    background: var(--bg-lighter);
    border-radius: 11px;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(255,255,255,0.04);
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.sw-card-icon { font-size: 1.5rem; line-height: 1; margin-bottom: 0.3rem; }
.sw-card-label { color: var(--text-muted); font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.4px; }
.sw-card-value { color: white; font-size: 1.5rem; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.2; }
.sw-card-subval { color: var(--text-secondary); font-size: 0.8125rem; font-variant-numeric: tabular-nums; }
.sw-card-bar { height: 4px; background: rgba(255,255,255,0.05); border-radius: 2px; margin-top: 0.4rem; overflow: hidden; }
.sw-card-bar-fill { height: 100%; border-radius: 2px; transition: width 0.3s; }

.sw-flare-A { color: #94a3b8; }
.sw-flare-B { color: #cbd5e1; }
.sw-flare-C { color: #fbbf24; }
.sw-flare-M { color: #f97316; }
.sw-flare-X { color: #ef4444; }

.sw-forecast-wrap { margin-bottom: 1.25rem; }
.sw-forecast-title { color: var(--text-secondary); font-size: 0.875rem; font-weight: 500; margin-bottom: 0.5rem; }
.sw-forecast-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}
.sw-forecast-day {
    background: var(--bg-lighter);
    border-radius: 10px;
    padding: 0.75rem;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.04);
}
.sw-forecast-day-name { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 0.3rem; }
.sw-forecast-day-kp { font-size: 1.5rem; font-weight: 600; color: white; font-variant-numeric: tabular-nums; }
.sw-forecast-day-level { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.2rem; }

.sw-aurora-wrap { margin-bottom: 1rem; }
.sw-aurora-box {
    background: linear-gradient(135deg, rgba(34,197,94,0.06), rgba(168,85,247,0.06));
    border: 1px solid rgba(168,85,247,0.25);
    border-radius: 12px;
    padding: 0.9rem 1.1rem;
}
.sw-aurora-box.visible {
    background: linear-gradient(135deg, rgba(34,197,94,0.15), rgba(168,85,247,0.18));
    border-color: rgba(168,85,247,0.5);
}
.sw-aurora-title { color: white; font-weight: 600; font-size: 0.9375rem; margin-bottom: 0.3rem; display: flex; align-items: center; gap: 0.4rem; }
.sw-aurora-desc  { color: var(--text-secondary); font-size: 0.8125rem; line-height: 1.55; }
.sw-aurora-desc strong { color: white; }

.sw-source { color: var(--text-muted); font-size: 0.75rem; margin: 0.5rem 0 0 0; text-align: right; }

.sw-loading, .sw-error { color: var(--text-muted); padding: 1rem; text-align: center; }
.sw-error { color: #f87171; }

@media (max-width: 640px) {
    .sw-cards { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Sección de mareas ===== */
.tides-section {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.tides-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.tides-header h3 { font-size: 1.125rem; font-weight: 600; color: white; margin: 0; }

.tides-station-select {
    background: var(--bg-lighter);
    border: 1px solid rgba(255,255,255,0.08);
    color: white;
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-family: inherit;
    cursor: pointer;
    min-width: 240px;
}
.tides-station-select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

.tides-now {
    background: linear-gradient(135deg, rgba(34,211,238,0.08), rgba(59,130,246,0.04));
    border: 1px solid rgba(34,211,238,0.25);
    border-radius: 12px;
    padding: 0.9rem 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.tides-now-icon { font-size: 2rem; line-height: 1; }
.tides-now-text { flex: 1; min-width: 200px; }
.tides-now-title { color: white; font-weight: 600; font-size: 1.0625rem; margin-bottom: 0.2rem; }
.tides-now-desc { color: var(--text-secondary); font-size: 0.875rem; line-height: 1.5; }
.tides-now-desc strong { color: white; }

.tides-chart-wrap {
    margin-bottom: 1.25rem;
    background: rgba(15, 23, 42, 0.3);
    border-radius: 10px;
    padding: 0.5rem;
}
#tides-chart { width: 100%; height: auto; display: block; }

.tides-week-title {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    margin: 0 0 0.6rem 0;
}

.tides-week {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.5rem;
}

.tides-day {
    background: var(--bg-lighter);
    border-radius: 10px;
    padding: 0.7rem 0.85rem;
    border: 1px solid rgba(255,255,255,0.04);
}
.tides-day.today { border-color: rgba(34,211,238,0.4); background: linear-gradient(180deg, rgba(34,211,238,0.06), var(--bg-lighter)); }
.tides-day-name { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 0.4rem; font-weight: 600; }
.tides-day-events { display: flex; flex-direction: column; gap: 0.25rem; }
.tides-event { display: flex; justify-content: space-between; align-items: baseline; font-size: 0.8125rem; font-variant-numeric: tabular-nums; }
.tides-event.high { color: #67e8f9; }
.tides-event.low  { color: #fcd34d; }
.tides-event-time { font-weight: 500; }
.tides-event-value { color: white; font-size: 0.75rem; }

.tides-source { color: var(--text-muted); font-size: 0.75rem; margin: 0.5rem 0 0 0; text-align: right; }

.tides-loading, .tides-error {
    color: var(--text-muted);
    padding: 1.5rem;
    text-align: center;
    font-size: 0.875rem;
}
.tides-error { color: #f87171; }

/* ===== Mejores noches ===== */
.bn-section {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.bn-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}
.bn-header h3 { font-size: 1.125rem; font-weight: 600; color: white; margin: 0; }
.bn-location { color: var(--text-muted); font-size: 0.8125rem; }

.bn-intro {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.55;
    margin: 0 0 1.25rem 0;
}

.bn-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.6rem;
}

.bn-night {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 0.85rem 1.1rem;
    background: var(--bg-lighter);
    border-radius: 11px;
    border-left: 4px solid transparent;
    transition: background 0.15s;
}
.bn-night.rank-1 { border-left-color: #fbbf24; background: linear-gradient(90deg, rgba(251,191,36,0.10), var(--bg-lighter) 40%); }
.bn-night.rank-2 { border-left-color: #22d3ee; }
.bn-night.rank-3 { border-left-color: #a78bfa; }
.bn-night.rank-low { opacity: 0.7; }

.bn-night-date {
    text-align: center;
    min-width: 64px;
}
.bn-night-day { font-size: 0.6875rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.4px; }
.bn-night-num { font-size: 1.5rem; font-weight: 700; color: white; line-height: 1.1; font-variant-numeric: tabular-nums; }
.bn-night-month { font-size: 0.75rem; color: var(--text-muted); }

.bn-night-info {
    min-width: 0;
}
.bn-night-rating {
    display: flex;
    gap: 0.15rem;
    margin-bottom: 0.3rem;
    color: #fbbf24;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
}
.bn-night-rating .star-empty { color: rgba(255,255,255,0.15); }
.bn-night-reasons {
    color: var(--text-secondary);
    font-size: 0.8125rem;
    line-height: 1.5;
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem 0.6rem;
}
.bn-reason {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
}
.bn-reason.sky    { color: #67e8f9; border-color: rgba(34,211,238,0.25); }
.bn-reason.moon   { color: #fde68a; border-color: rgba(251,191,36,0.25); }
.bn-reason.shower { color: #c4b5fd; border-color: rgba(168,85,247,0.3); }
.bn-reason.conj   { color: #fbcfe8; border-color: rgba(244,114,182,0.3); }

.bn-night-stats {
    text-align: right;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
    min-width: 90px;
}
.bn-night-stats .stat-val { color: white; font-weight: 500; }

.bn-loading, .bn-error, .bn-empty {
    color: var(--text-muted);
    padding: 1.5rem;
    text-align: center;
    font-size: 0.875rem;
}
.bn-error { color: #f87171; }

.bn-source { color: var(--text-muted); font-size: 0.75rem; margin: 0.85rem 0 0 0; text-align: right; }

@media (max-width: 640px) {
    .bn-night { grid-template-columns: auto 1fr; gap: 0.75rem; padding: 0.7rem 0.85rem; }
    .bn-night-stats { display: none; }
    .bn-night-num { font-size: 1.25rem; }
}

/* ===== Sección ISS ===== */
.iss-section {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.iss-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}
.iss-header h3 { font-size: 1.125rem; font-weight: 600; color: white; margin: 0; }
.iss-loc { color: var(--text-muted); font-size: 0.8125rem; }

.iss-intro {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.55;
    margin: 0 0 1.25rem 0;
}

.iss-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.6rem;
}

.iss-pass {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.2rem;
    align-items: center;
    padding: 0.9rem 1.1rem;
    background: var(--bg-lighter);
    border-radius: 11px;
    border-left: 4px solid transparent;
}
.iss-pass.quality-excellent { border-left-color: #fbbf24; background: linear-gradient(90deg, rgba(251,191,36,0.08), var(--bg-lighter) 40%); }
.iss-pass.quality-good      { border-left-color: #22d3ee; }
.iss-pass.quality-fair      { border-left-color: #94a3b8; }

.iss-pass-date {
    text-align: center;
    min-width: 68px;
}
.iss-pass-day { font-size: 0.6875rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.4px; font-weight: 600; }
.iss-pass-time { font-size: 1.25rem; font-weight: 700; color: white; line-height: 1.1; font-variant-numeric: tabular-nums; }
.iss-pass-when { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.15rem; }

.iss-pass-info {
    min-width: 0;
}
.iss-pass-track {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.75rem;
    align-items: center;
}
.iss-pass-arrow {
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 0 0.2rem;
}
.iss-pass-cardinal {
    display: inline-block;
    color: white;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.08);
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    letter-spacing: 0.3px;
}
.iss-pass-maxalt {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: #fbbf24;
    font-size: 0.8125rem;
    font-weight: 500;
}
.iss-pass-dur {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-variant-numeric: tabular-nums;
}

.iss-pass-mag {
    text-align: right;
    min-width: 80px;
    font-variant-numeric: tabular-nums;
}
.iss-pass-mag-val {
    color: white;
    font-size: 1.0625rem;
    font-weight: 600;
}
.iss-pass-mag-label { color: var(--text-muted); font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.4px; }

.iss-loading, .iss-error, .iss-empty {
    color: var(--text-muted);
    padding: 1.5rem;
    text-align: center;
    font-size: 0.875rem;
}
.iss-error { color: #f87171; }

.iss-source { color: var(--text-muted); font-size: 0.75rem; margin: 0.85rem 0 0 0; text-align: right; }

.iss-badge-spectacular {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #422006;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    margin-bottom: 0.3rem;
}

.iss-view-map-btn {
    background: rgba(34, 211, 238, 0.12);
    border: 1px solid rgba(34, 211, 238, 0.35);
    color: #cffafe;
    padding: 0.35rem 0.7rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    margin-top: 0.4rem;
    white-space: nowrap;
}
.iss-view-map-btn:hover { background: rgba(34, 211, 238, 0.25); }
.iss-view-map-btn:active { transform: scale(0.96); }

/* Indicador "ISS pasando" en el header del skymap */
.skymap-time-controls .skymap-iss-pin {
    background: rgba(34, 211, 238, 0.18);
    border: 1px solid rgba(34, 211, 238, 0.45);
    color: #cffafe;
}

@media (max-width: 640px) {
    .iss-pass { grid-template-columns: auto 1fr; gap: 0.75rem; padding: 0.7rem 0.85rem; }
    .iss-pass-mag { display: none; }
    .iss-pass-time { font-size: 1.05rem; }
}

@media (max-width: 640px) {
    .skymap-time-controls { gap: 0.25rem; }
    .skymap-time-btn { padding: 0.35rem 0.7rem; font-size: 0.75rem; min-width: 48px; }
    .skymap-view-tab { padding: 0.35rem 0.75rem; font-size: 0.75rem; }
    .skymap-canvas-wrapper.panorama { aspect-ratio: 2; }
}

/* Calendar */
.calendar-section {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1.25rem;
    margin-top: 1.5rem;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.calendar-title { font-size: 1.125rem; font-weight: 600; color: white; }

.calendar-nav {
    display: flex;
    gap: 0.5rem;
}

.calendar-nav button {
    background: var(--bg-lighter);
    border: 1px solid var(--border);
    color: white;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
}

.calendar-nav button:disabled { opacity: 0.4; cursor: not-allowed; }
.calendar-nav button:hover:not(:disabled) { background: var(--border); }

.btn-annual { font-weight: 500; }

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    margin-bottom: 0.5rem;
}

.calendar-weekdays span {
    font-size: 0.6875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 500;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.015);
    position: relative;
    overflow: hidden;
    transition: background 0.2s, transform 0.15s;
}

.calendar-day:hover { background: rgba(255, 255, 255, 0.06); transform: scale(1.03); }
.calendar-day.other-month { opacity: 0.45; }
.calendar-day.other-month .moon-thumb { filter: brightness(0.55) saturate(0.6); }
.calendar-day.today {
    background: rgba(59, 130, 246, 0.06);
    box-shadow: inset 0 0 0 2px var(--accent);
}

.calendar-day .moon-thumb {
    width: 92%;
    height: 92%;
    border-radius: 50%;
    object-fit: cover;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.55));
    pointer-events: none;
}

.calendar-day .day-num {
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    position: relative;
    z-index: 2;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95), 0 0 8px rgba(0, 0, 0, 0.6);
    letter-spacing: 0.5px;
}

.calendar-day .phase-marker {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 3;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
}
.calendar-day .phase-marker.full-moon { background: var(--gold); }

/* Upcoming phases */
.upcoming-phases {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1.25rem;
    margin-top: 1rem;
}

.upcoming-phases h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.phase-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.phase-list-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-lighter);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    flex: 1;
    min-width: 140px;
}

.phase-list-item img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.phase-list-item .phase-info .phase-type {
    font-size: 0.8125rem;
    font-weight: 500;
    color: white;
}

.phase-list-item .phase-info .phase-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Modal anual */
.modal-annual {
    position: fixed;
    inset: 0;
    background: rgba(10, 22, 40, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 1rem;
}

.modal-annual.active { opacity: 1; visibility: visible; }

.modal-content {
    background: var(--bg-card);
    border-radius: 16px;
    max-width: 900px;
    max-height: 90vh;
    width: 100%;
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    border-bottom: 1px solid var(--border);
}

.modal-header h2 { font-size: 1.25rem; font-weight: 600; color: white; margin: 0; }
.modal-header button {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

.modal-body {
    padding: 1.25rem;
    overflow-y: auto;
    max-height: calc(90vh - 80px);
}

.annual-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.month-card {
    background: var(--bg-lighter);
    border-radius: 10px;
    padding: 1rem;
}

.month-card h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
}

.month-phases { display: flex; justify-content: center; gap: 0.75rem; flex-wrap: wrap; }
.phase-item { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; }
.phase-item img { width: 48px; height: 48px; border-radius: 50%; }
.phase-item .phase-day { font-size: 0.875rem; font-weight: 500; color: white; }
.phase-item .phase-label { font-size: 0.625rem; color: var(--text-muted); }
.phase-item.full-moon .phase-day { color: var(--gold); }

/* Info boxes */
.info-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.info-box {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1.25rem;
}

.info-box h4 { font-size: 0.9375rem; font-weight: 600; margin-bottom: 0.75rem; color: white; }
.info-box p { font-size: 0.8125rem; color: var(--text-secondary); line-height: 1.6; }

/* Error message */
.error-message {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 640px) {
    .astro-header-top { flex-wrap: wrap; }
    .astro-title { font-size: 1.25rem; }
    .moon-image-container { width: 240px; height: 240px; }
    .moon-info { gap: 0.75rem; }
    .stats-row { gap: 1.25rem; }
    .day-item { min-width: 46px; padding: 0.4rem; }
    .day-item .day-moon { width: 24px; height: 24px; }
    .phase-item img { width: 40px; height: 40px; }
    .calendar-day .day-num { font-size: 1rem; }
}
/* ============================================
   SEPARADORES DE BLOQUE entre secciones
   ============================================ */
.astro-block-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0 1rem 0;
}
.astro-block-divider::before,
.astro-block-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}
.astro-block-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    white-space: nowrap;
}

/* ============================================
   MEJORAS TIPOGRÁFICAS GLOBALES (más legibles)
   ============================================ */

/* Tabla de planetas - texto más grande */
.planets-table { font-size: 0.95rem; }
.planets-table th { font-size: 0.75rem; }
.planets-table td { padding: 0.75rem 0.5rem; }
@media (max-width: 640px) {
    .planets-table { font-size: 0.875rem; }
    .planets-table th { font-size: 0.7rem; }
}

/* Horas y datos de sol/luna - más visibles */
.info-group .value { font-size: 1.05rem; }
.info-group .label { font-size: 0.75rem; }
.day-length-box .value { font-size: 1.15rem; }
.day-length-box .label { font-size: 0.75rem; }
.day-length-box .delta { font-size: 0.9rem; }

/* Cajas educativas */
.info-box h4 { font-size: 1.05rem; }
.info-box p { font-size: 0.95rem; line-height: 1.65; }

/* Mejores noches */
.bn-night-day { font-size: 0.8rem; }
.bn-night-month { font-size: 0.85rem; }
.bn-location { font-size: 0.9rem; }
.bn-source { font-size: 0.85rem; }

/* Tiempo espacial - valores numéricos */
.sw-card .sw-value { font-size: 1.6rem; font-weight: 700; }
.sw-card .sw-label { font-size: 0.8rem; }

/* Conjunciones */
.conj-when .conj-relative { font-size: 0.9rem; }

/* Lluvias de meteoros */
.shower-meta { font-size: 0.9rem; }

/* Mareas */
.tides-card-time { font-size: 0.9rem; }

/* Tabs y controles - un poco más grandes */
.arc-tab { font-size: 0.9rem; padding: 0.4rem 0.85rem; }
.arc-summary { font-size: 0.95rem; }
.skymap-time-btn { font-size: 0.85rem; padding: 0.4rem 0.85rem; }
.skymap-view-tab { font-size: 0.85rem; padding: 0.4rem 0.85rem; }

/* En mobile: mantener tamaños mínimos legibles */
@media (max-width: 640px) {
    .arc-tab { font-size: 0.85rem; padding: 0.4rem 0.85rem; }
    .skymap-time-btn { font-size: 0.8rem; padding: 0.4rem 0.8rem; min-width: 52px; }
    .skymap-view-tab { font-size: 0.8rem; padding: 0.4rem 0.85rem; }
    .astro-block-label { font-size: 0.75rem; letter-spacing: 1px; }
}
