/* ==========================================================================
   Calculadora del retorno de Saturno y crisis vitales
   Estilos corporativos y responsive - fijate.com/tools/
   ========================================================================== */

:root {
  --font-main: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: 'Outfit', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Tema Oscuro Midnight Slate (Por defecto) */
  --bg-page: #0b0f17;
  --bg-card: #131b2b;
  --bg-card-subtle: #182338;
  --bg-input: #0f172a;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-heading: #f8fafc;
  --border-color: #24324d;
  --border-subtle: #1e293b;

  /* Acentos saturninos (Oro / Ámbar cósmico y azul cielo) */
  --accent-gold: #f59e0b;
  --accent-gold-hover: #d97706;
  --accent-gold-subtle: rgba(245, 158, 11, 0.12);
  --accent-cyan: #38bdf8;
  --accent-cyan-subtle: rgba(56, 189, 248, 0.12);
  --accent-purple: #a855f7;
  --accent-purple-subtle: rgba(168, 85, 247, 0.12);

  /* Semáforos */
  --status-success-bg: rgba(16, 185, 129, 0.15);
  --status-success-text: #34d399;
  --status-warning-bg: rgba(245, 158, 11, 0.15);
  --status-warning-text: #fbbf24;
  --status-danger-bg: rgba(239, 68, 68, 0.15);
  --status-danger-text: #f87171;
  --status-info-bg: rgba(56, 189, 248, 0.15);
  --status-info-text: #38bdf8;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
}

/* Modo claro nativo */
body.theme-light,
[data-theme="light"] body {
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-subtle: #f1f5f9;
  --bg-input: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-heading: #0f172a;
  --border-color: #e2e8f0;
  --border-subtle: #cbd5e1;

  --accent-gold: #d97706;
  --accent-gold-hover: #b45309;
  --accent-gold-subtle: rgba(217, 119, 6, 0.1);
  --accent-cyan: #0284c7;
  --accent-cyan-subtle: rgba(2, 132, 199, 0.1);
  --accent-purple: #7c3aed;
  --accent-purple-subtle: rgba(124, 58, 237, 0.1);

  --status-success-bg: #dcfce7;
  --status-success-text: #166534;
  --status-warning-bg: #fef3c7;
  --status-warning-text: #92400e;
  --status-danger-bg: #fee2e2;
  --status-danger-text: #991b1b;
  --status-info-bg: #e0f2fe;
  --status-info-text: #075985;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 24px rgba(0, 0, 0, 0.1);
}

/* Layout y reseteo base */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6,
.brand-title,
.section-title,
.hero-title {
  font-family: var(--font-heading);
  color: var(--text-heading);
  margin-top: 0;
  letter-spacing: -0.02em;
}

.mono, code, .countdown-digits {
  font-family: var(--font-mono);
}

.main-wrapper.tool-layout {
  max-width: 1200px;
  margin: 1.5rem auto 3rem;
  padding: 0 1rem;
  box-sizing: border-box;
  flex: 1 0 auto;
  width: 100%;
}

.tool-with-sidebar {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  width: 100%;
}

.tool-main-content {
  flex: 1 1 0%;
  min-width: 0;
  width: 100%;
}

/* Hero Section */
.tool-hero {
  text-align: center;
  margin-bottom: 2rem;
  padding: 1.5rem 1rem;
  background: radial-gradient(circle at 50% 0%, var(--accent-gold-subtle) 0%, transparent 70%);
  border-radius: var(--radius-lg);
}

.tool-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-gold);
  background-color: var(--accent-gold-subtle);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 9999px;
  margin-bottom: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tool-hero-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.tool-hero-desc {
  max-width: 780px;
  margin: 0 auto;
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* Tarjeta principal de formulario */
.card-main {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
}

.form-header {
  margin-bottom: 1.5rem;
}

.form-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.form-subtitle {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-heading);
}

.form-control {
  width: 100%;
  min-height: 44px;
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background-color: var(--bg-input);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px var(--accent-gold-subtle);
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  cursor: pointer;
  margin-top: 0.25rem;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent-gold);
  cursor: pointer;
}

/* Preajustes generacionales rápidos */
.presets-section {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
}

.presets-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.presets-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.btn-preset {
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: 9999px;
  padding: 0.45rem 0.9rem;
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-preset:hover {
  background-color: var(--accent-gold-subtle);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

/* Botón principal */
.btn-primary-action {
  width: 100%;
  min-height: 48px;
  margin-top: 1.5rem;
  background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-hover) 100%);
  color: #0b0f17;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.btn-primary-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.35);
  filter: brightness(1.05);
}

.btn-primary-action:active {
  transform: translateY(0);
}

/* Resultados */
.results-section {
  animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Grid de KPIs */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.kpi-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.kpi-card-natal {
  border-left: 4px solid var(--accent-gold);
}

.kpi-card-status {
  border-left: 4px solid var(--accent-cyan);
}

.kpi-label {
  font-size: 0.84rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  display: block;
}

.kpi-value-main {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1.2;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sign-glyph {
  font-size: 1.8rem;
  color: var(--accent-gold);
}

.kpi-subtext {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
}

.kpi-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
}

.kpi-status {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.badge-neutral { background: var(--bg-card-subtle); color: var(--text-muted); border: 1px solid var(--border-subtle); }
.badge-info { background: var(--status-info-bg); color: var(--status-info-text); }
.badge-warning { background: var(--status-warning-bg); color: var(--status-warning-text); }
.badge-danger { background: var(--status-danger-bg); color: var(--status-danger-text); }
.badge-success { background: var(--status-success-bg); color: var(--status-success-text); }

/* Caja de cuenta atrás */
.countdown-box {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(56, 189, 248, 0.05) 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 2rem;
}

.countdown-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.countdown-digits-grid {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 65px;
}

.countdown-val {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent-gold);
  line-height: 1;
  background-color: var(--bg-card);
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  margin-bottom: 0.35rem;
  width: 100%;
}

.countdown-lbl {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

/* Visualizador orbital y rueda zodiacal */
.orbital-section {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 2rem;
  text-align: center;
}

.orbital-section-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.orbital-section-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 1.5rem;
}

.orbital-wrapper {
  max-width: 400px;
  margin: 0 auto 1.5rem;
  aspect-ratio: 1 / 1;
}

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

.orbital-legend {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.86rem;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot-natal { background-color: var(--accent-gold); }
.dot-transit { background-color: var(--accent-cyan); }
.dot-orb { background-color: rgba(245, 158, 11, 0.3); border: 1px solid rgba(245, 158, 11, 0.6); }

/* Tarjetas de los 3 grandes retornos */
.returns-section {
  margin-bottom: 2.5rem;
}

.section-heading-bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.section-main-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0;
}

.returns-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.return-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.return-card-active {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 1px var(--accent-gold), var(--shadow-md);
  background: linear-gradient(180deg, var(--bg-card) 0%, rgba(245, 158, 11, 0.04) 100%);
}

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

.return-card-title {
  font-size: 1.18rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
}

.return-card-theme {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

.return-state-pill {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.25rem 0.7rem;
  border-radius: 9999px;
}

.pill-active { background: var(--status-warning-bg); color: var(--status-warning-text); border: 1px solid var(--accent-gold); }
.pill-completed { background: var(--status-success-bg); color: var(--status-success-text); }
.pill-upcoming { background: var(--status-info-bg); color: var(--status-info-text); }
.pill-future { background: var(--bg-card-subtle); color: var(--text-muted); }

.return-orbs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  background-color: var(--bg-card-subtle);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

.orb-date-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.orb-label {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.orb-val {
  font-size: 0.92rem;
  color: var(--text-heading);
}

.passes-heading {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  margin: 0 0 0.65rem;
}

.return-passes-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.pass-row {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.6rem 0.8rem;
  background-color: var(--bg-card-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
}

.pass-badge {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  white-space: nowrap;
}

.motion-direct {
  background-color: rgba(56, 189, 248, 0.15);
  color: var(--accent-cyan);
}

.motion-retro {
  background-color: rgba(245, 158, 11, 0.15);
  color: var(--accent-gold);
}

.pass-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.pass-date {
  color: var(--text-heading);
}

.pass-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Roadmap cronológico de 12 crisis vitales */
.milestones-section {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 2.5rem;
}

.milestones-timeline {
  position: relative;
  margin-top: 1.5rem;
  padding-left: 1.8rem;
}

.milestones-timeline::before {
  content: '';
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 7px;
  width: 2px;
  background-color: var(--border-subtle);
}

.milestone-item {
  position: relative;
  margin-bottom: 1.5rem;
}

.milestone-item:last-child {
  margin-bottom: 0;
}

.milestone-dot {
  position: absolute;
  left: -1.8rem;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--bg-card);
  border: 3px solid var(--border-color);
  transition: all 0.2s;
}

.milestone-past .milestone-dot {
  border-color: var(--status-success-text);
  background-color: var(--status-success-text);
}

.milestone-future .milestone-dot {
  border-color: var(--accent-gold);
  background-color: var(--bg-card);
}

.milestone-content {
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
}

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

.milestone-age {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.milestone-tag {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-card);
  padding: 0.15rem 0.55rem;
  border-radius: 4px;
}

.milestone-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
}

.milestone-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
}

/* Guía de interpretación evolutiva */
.interp-section {
  margin-bottom: 2.5rem;
}

.interp-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.85rem;
  box-shadow: var(--shadow-sm);
}

.interp-header {
  margin-bottom: 1.5rem;
}

.interp-badge {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-gold);
  background-color: var(--accent-gold-subtle);
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 0.5rem;
}

.interp-main-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
}

.interp-keywords {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0;
}

.interp-block {
  margin-bottom: 1.5rem;
}

.interp-subheading {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--text-heading);
}

.interp-list {
  margin: 0.5rem 0 0;
  padding-left: 1.3rem;
  color: var(--text-main);
}

.interp-list li {
  margin-bottom: 0.4rem;
}

.highlight-box {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(56, 189, 248, 0.08) 100%);
  border-left: 4px solid var(--accent-gold);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.95rem;
  margin: 0.5rem 0;
  font-weight: 500;
}

.advice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.85rem;
  margin-top: 0.75rem;
}

.advice-item {
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

.interp-divider {
  border: 0;
  border-top: 1px solid var(--border-subtle);
  margin: 1.75rem 0;
}

.golden-rule-box {
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.15rem;
  margin-top: 0.85rem;
  font-size: 0.92rem;
}

.retro-special-block {
  background-color: rgba(245, 158, 11, 0.05);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-top: 1.5rem;
}

/* Acciones finales */
.actions-card {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.btn-action-secondary {
  flex: 1 1 200px;
  min-height: 44px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}

.btn-action-secondary:hover {
  background-color: var(--bg-card-subtle);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

/* Guía explicativa y preguntas frecuentes SEO */
.seo-guide-section {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2.5rem;
}

.seo-guide-title {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.seo-guide-text {
  color: var(--text-main);
  font-size: 0.96rem;
  margin-bottom: 1.25rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.faq-item {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  background-color: var(--bg-card-subtle);
}

.faq-question {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--text-heading);
}

.faq-answer {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

/* Modales accesibles */
.modal-alert-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  padding: 1rem;
}

.modal-alert-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-alert-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  max-width: 450px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  transform: translateY(10px);
  transition: transform 0.2s;
}

.modal-alert-overlay.is-open .modal-alert-box {
  transform: translateY(0);
}

.modal-alert-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--text-heading);
}

.modal-alert-message {
  font-size: 0.95rem;
  color: var(--text-main);
  margin: 0 0 1.5rem;
}

.modal-alert-actions {
  display: flex;
  justify-content: flex-end;
}

.btn-modal-close {
  min-height: 38px;
  padding: 0.45rem 1.2rem;
  background-color: var(--accent-gold);
  color: #0b0f17;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.2s;
}

.btn-modal-close:hover {
  filter: brightness(1.1);
}

/* Responsividad en móviles */
@media (max-width: 768px) {
  .main-wrapper.tool-layout {
    margin: 1rem auto 2rem;
    padding: 0 0.75rem;
  }

  .card-main,
  .orbital-section,
  .milestones-section,
  .interp-card,
  .seo-guide-section {
    padding: 1.25rem 1rem;
  }

  .countdown-digits-grid {
    gap: 0.5rem;
  }

  .countdown-unit {
    min-width: 50px;
  }

  .countdown-val {
    font-size: 1.6rem;
    padding: 0.4rem 0.5rem;
  }

  .countdown-lbl {
    font-size: 0.68rem;
  }

  .milestones-timeline {
    padding-left: 1.4rem;
  }

  .milestone-dot {
    left: -1.4rem;
    width: 13px;
    height: 13px;
  }

  .advice-grid {
    grid-template-columns: 1fr;
  }

  .actions-card {
    flex-direction: column;
  }

  .btn-action-secondary {
    width: 100%;
  }
}

/* Estilos de impresión */
@media print {
  .app-header,
  .tools-ad-banner-section,
  .tool-ad-sidebar,
  .fijate-footer,
  .actions-card,
  .presets-section,
  .btn-primary-action {
    display: none !important;
  }

  body {
    background: #ffffff !important;
    color: #000000 !important;
  }

  .card-main,
  .orbital-section,
  .return-card,
  .interp-card {
    border: 1px solid #ccc !important;
    box-shadow: none !important;
    page-break-inside: avoid;
  }
}
