.today-page .lunar-hero {
  padding-bottom: clamp(54px, 7vw, 92px);
}

.today-page,
.today-page .cosmic-app-dock,
.today-page .cosmic-app-dock *,
.today-page .today-hero-actions * {
  box-sizing: border-box;
}

.today-page {
  overflow-x: hidden;
}

.today-page .lunar-intro {
  max-width: 620px;
}

.today-page .hero-title {
  max-width: 720px;
}

.lunar-scene-panel {
  align-self: end;
  width: min(100%, 470px);
  margin: 0 auto 18px;
  padding: 18px;
  border: 1px solid rgba(var(--gold-muted-rgb), 0.22);
  border-radius: 20px;
  background: rgba(7, 6, 28, 0.7);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(16px);
}

.lunar-scene-copy {
  display: grid;
  gap: 7px;
  margin-bottom: 15px;
}

.lunar-scene-copy strong {
  color: #f4dd7b;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
}

.lunar-scene-copy > span:last-child {
  color: rgba(238, 233, 251, 0.68);
  font-size: 0.78rem;
  line-height: 1.45;
}

.lunar-scene-control-group {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.lunar-scene-control-group button {
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: rgba(240, 235, 255, 0.72);
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  font: inherit;
  font-size: 0.69rem;
}

.lunar-scene-control-group button[aria-pressed="true"] {
  border-color: rgba(241, 212, 106, 0.48);
  color: #f4dd7b;
  background: rgba(var(--gold-muted-rgb), 0.12);
}

.today-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 22px;
}

.today-location-chip,
.today-share-button {
  min-height: 42px;
  padding: 10px 15px;
  border: 1px solid rgba(var(--gold-muted-rgb), 0.24);
  border-radius: 999px;
  color: rgba(248, 245, 255, 0.88);
  background: rgba(12, 10, 37, 0.7);
  backdrop-filter: blur(12px);
  font: inherit;
  font-size: 0.84rem;
}

.today-share-button {
  cursor: pointer;
  color: #f1d46a;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.today-share-button:hover,
.today-share-button:focus-visible {
  border-color: rgba(241, 212, 106, 0.58);
  background: rgba(var(--gold-muted-rgb), 0.12);
  transform: translateY(-1px);
}

.today-share-status {
  min-height: 1.25em;
  margin: 8px 0 0;
  color: rgba(236, 229, 255, 0.68);
  font-size: 0.78rem;
}

.today-dashboard {
  position: relative;
  z-index: 2;
  padding: clamp(68px, 8vw, 112px) 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  background: linear-gradient(180deg, rgba(7, 5, 28, 0.72), rgba(7, 5, 28, 0.92));
}

.today-dashboard .section-inner {
  width: min(1160px, 100%);
  margin-inline: auto;
}

.today-dashboard .section-heading,
.today-dashboard .section-intro,
.today-dashboard .section-eyebrow {
  text-align: center;
}

.today-dashboard .section-intro {
  max-width: 680px;
  margin-inline: auto;
}

.today-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 42px;
}

.today-card {
  position: relative;
  min-width: 0;
  padding: clamp(24px, 3vw, 34px);
  overflow: hidden;
  border: 1px solid rgba(var(--gold-muted-rgb), 0.17);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0, rgba(117, 68, 207, 0.12), transparent 38%),
    rgba(13, 11, 42, 0.82);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.22), inset 0 1px rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(14px);
}

.today-guidance-card {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 430px;
  background:
    radial-gradient(circle at 15% 20%, rgba(var(--gold-muted-rgb), 0.14), transparent 42%),
    radial-gradient(circle at 100% 100%, rgba(112, 64, 196, 0.16), transparent 44%),
    rgba(13, 11, 42, 0.88);
}

.today-card-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  margin: 24px 0 20px;
  border: 1px solid rgba(var(--gold-muted-rgb), 0.24);
  border-radius: 16px;
  color: #f1d46a;
  background: rgba(var(--gold-muted-rgb), 0.075);
  font-size: 1.55rem;
  box-shadow: 0 0 28px rgba(var(--gold-muted-rgb), 0.08);
}

.today-guidance-card .today-card-icon {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  font-size: 2.2rem;
}

.today-card h3 {
  margin: 0;
  color: #f7f2ff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.3vw, 2rem);
  line-height: 1.15;
}

.today-card p {
  max-width: 620px;
  margin: 13px 0 0;
  color: rgba(232, 226, 250, 0.72);
  line-height: 1.65;
}

.today-card .today-local-note {
  margin-top: 25px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(232, 226, 250, 0.5);
  font-size: 0.78rem;
}

.today-card-link {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  margin-top: 22px;
  color: #efd066;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}

.today-card-link:hover,
.today-card-link:focus-visible {
  color: #fff0ad;
}

@media (min-width: 900px) {
  .today-page .cosmic-app-dock {
    top: 10px;
    right: 24px;
    bottom: auto;
    left: auto;
    width: min(560px, calc(100vw - 330px));
    transform: none;
  }

  .today-page.cosmic-app-shell-enabled {
    padding-bottom: 0;
  }
}

@media (max-width: 760px) {
  .today-page .lunar-hero {
    min-height: auto;
    row-gap: 28px;
  }

  .today-dashboard {
    padding-inline: 16px;
  }

  .lunar-scene-panel {
    order: 2;
    margin-block: 250px 8px;
    text-align: left;
  }

  .lunar-panel {
    order: 3;
  }

  .today-dashboard-grid {
    grid-template-columns: 1fr;
    margin-top: 32px;
  }

  .today-guidance-card {
    grid-row: auto;
  }

  .today-guidance-card {
    min-height: 0;
  }

  .today-hero-actions {
    align-items: stretch;
  }

  .today-location-chip,
  .today-share-button {
    display: inline-flex;
    min-width: 0;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
  }
}

@media (max-width: 560px) {
  .today-page .hero-title {
    font-size: clamp(30px, 8.6vw, 38px);
  }

  .today-page .hero-copy {
    font-size: 16px;
    line-height: 1.65;
  }
}

@media (prefers-reduced-motion: reduce) {
  .today-share-button {
    transition: none;
  }
}

/* Estilos de la vista Hoy (antes inline en fase-lunar-hoy.html). */
/* ==========================================================
   APLICACIÓN FASE LUNAR
========================================================== */

/* ----------------------------------------------------------
   HERO
---------------------------------------------------------- */

.lunar-hero {
  min-height: calc(100dvh - 68px);
}

/* ----------------------------------------------------------
   RELOJ
---------------------------------------------------------- */

.lunar-clock-card {
  width: min(100%, 520px);
  margin-top: 34px;
  padding: 24px 26px;

  border: 1px solid rgba(var(--gold-muted-rgb), 0.18);
  border-radius: var(--r-lg);

  background:
    linear-gradient(
      145deg,
      rgba(var(--gold-muted-rgb), 0.055),
      transparent 55%
    ),
    rgba(14, 12, 40, 0.72);

  box-shadow:
    0 18px 52px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.025);

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.lunar-date {
  color: var(--gold-light);

  font-family: var(--font-h);
  font-size: 13px;
  font-weight: 600;

  letter-spacing: 0.09em;
  line-height: 1.6;

  text-transform: uppercase;
}

.lunar-time {
  display: block;

  margin-top: 4px;

  color: #ffffff;

  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    monospace;

  font-size: clamp(42px, 6vw, 66px);
  font-weight: 300;

  letter-spacing: -0.055em;
  line-height: 1.15;

  font-variant-numeric: tabular-nums;

  text-shadow:
    0 0 24px rgba(255, 255, 255, 0.08);
}

.lunar-timezone {
  margin-top: 6px;

  color: var(--text-muted);

  font-size: 12px;

  letter-spacing: 0.06em;
}

/* ----------------------------------------------------------
   DATOS LUNARES
---------------------------------------------------------- */

.lunar-stats {
  width: min(100%, 520px);

  margin-top: 16px;

  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 10px;
}

.lunar-stat {
  min-width: 0;

  padding: 16px;

  border: 1px solid rgba(var(--gold-muted-rgb), 0.12);
  border-radius: var(--r-md);

  background: rgba(14, 12, 40, 0.62);
}

.lunar-stat-label {
  display: block;

  color: var(--text-muted);

  font-family: var(--font-h);
  font-size: 9px;
  font-weight: 600;

  letter-spacing: 0.12em;

  text-transform: uppercase;
}

.lunar-stat-value {
  display: block;

  margin-top: 7px;

  overflow: hidden;

  color: #ffffff;

  font-size: 15px;
  font-weight: 600;

  line-height: 1.35;

  text-overflow: ellipsis;
}





/* ----------------------------------------------------------
   CICLO LUNAR
---------------------------------------------------------- */

.lunar-cycle-grid {
  grid-template-columns:
    repeat(4, minmax(0, 1fr));
}

.lunar-cycle-card {
  min-height: 215px;

  cursor: default;

  --system-color: var(--gold);
}

.lunar-cycle-card:hover {
  transform: translateY(-3px);
}

/* ----------------------------------------------------------
   RESPONSIVE
---------------------------------------------------------- */

@media (max-width: 1000px) {

  .lunar-cycle-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 860px) {

  .lunar-clock-card,
  .lunar-stats {
    margin-inline: auto;
  }

}

/* ==========================================================
   ESTRUCTURA HERO LUNAR
========================================================== */

.lunar-main-column {
  min-width: 0;
}

.lunar-panel {
  margin-top: 0;
}

/*
 * Escritorio: la intro ocupa la primera fila y el reloj comparte la segunda
 * con los controles del cielo, alineados por arriba. El hueco derecho de la
 * primera fila queda libre para encuadrar la Luna o la Tierra.
 */
@media (min-width: 861px) {
  .lunar-hero {
    align-content: center;
    row-gap: 0;
  }

  .lunar-main-column {
    display: contents;
  }

  .lunar-intro {
    grid-column: 1;
    grid-row: 1;
  }

  .lunar-panel {
    grid-column: 1;
    grid-row: 2;
  }

  .lunar-scene-panel {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    /* Mismo margen superior que .lunar-clock-card. */
    margin: 34px auto 0;
  }
}

/* ==========================================================
   MÓVIL
   Intro → Luna → Reloj y estadísticas
========================================================== */

@media (max-width: 860px) {

  /*
   * El contenedor izquierdo deja de crear una caja propia.
   * Sus dos hijos pasan a participar directamente
   * en el grid del hero.
   */
  .lunar-main-column {
    display: contents;
  }

  /* 1. Título y entradilla */

  .lunar-intro {
    order: 1;

    width: 100%;

    text-align: center;
  }

  .lunar-intro .hero-copy {
    margin-inline: auto;
  }


  /* 3. Reloj y estadísticas */

  .lunar-panel {
    order: 3;

    width: min(100%, 520px);

    margin-inline: auto;
  }

  .lunar-clock-card {
    width: 100%;

    margin-top: 0;
    margin-inline: auto;
  }

  .lunar-stats {
    width: 100%;

    margin-top: 14px;
    margin-inline: auto;
  }

}
