/* ============================================
   INMERSIÓN COLECTIVA - CONFIGURACIÓN ADAPTADA
   ============================================ */
:root {
  --primary: #1e3a8a;       /* Azul Clínico / Estabilidad */
  --primary-text: #1e3a8a;
  --primary-dark: #0f2b5e;
  --secondary: #0d9488;     /* Turquesa / Sanación y Enfoque */
  --accent: #f59e0b;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-700: #334155;
  --gray-900: #0f172a;
  --white: #ffffff;

  /* Variables semánticas: cambian según el tema */
  --bg-page: var(--gray-50);
  --bg-surface: var(--white);
  --bg-surface-alt: var(--gray-100);
  --border-color: var(--gray-200);
  --text-primary: var(--gray-900);
  --text-muted: var(--gray-700);
  --header-bg: rgba(255, 255, 255, 0.95);
  --location-map-bg: var(--gray-200);
  --hero-gradient: linear-gradient(135deg, #eef2ff 0%, #e0f2fe 100%);

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
  --radius: 1rem;

  /* Fijas: el footer siempre se ve oscuro, sin importar el tema */
  --footer-bg: #0f172a;
  --footer-text: #e2e8f0;
  --footer-text-muted: #94a3b8;
  --footer-border: rgba(255, 255, 255, 0.15);
}

:root[data-theme="dark"] {
  --bg-page: #0b1220;
  --bg-surface: #161f30;
  --bg-surface-alt: #1c2740;
  --border-color: #2b3a55;
  --text-primary: #e6ebf5;
  --text-muted: #a3b0c7;
  --header-bg: rgba(11, 18, 32, 0.92);
  --location-map-bg: #1c2740;
  --hero-gradient: linear-gradient(135deg, #172037 0%, #0b1220 100%);
  --primary-text: #7ea3ff;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.35);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.45);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.landing-header {
  position: sticky;
  top: 0;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  z-index: 100;
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
}

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

/* Logotipo del cliente: icono de manos+Ψ + texto + sello circular del eclipse */
.logo-container {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-icon {
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.logo-icon-hands,
.logo-icon-eclipse {
  width: 46px;
  height: 46px;
}

.logo-text-terapia {
  font-weight: 700;
  font-size: 0.78rem;
  line-height: 1.15;
  letter-spacing: 0.5px;
  background: linear-gradient(90deg, #0d9488, #4f7cff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

nav {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
  list-style: none;
}

.nav-link {
  margin-left: 1.5rem;
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--secondary);
}

/* Botón hamburguesa (solo visible en móvil) */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.nav-toggle:hover {
  border-color: var(--secondary);
}

.nav-toggle[aria-expanded="true"] {
  border-color: var(--secondary);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Selector de idioma */
.lang-selector {
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 1.5rem;
}

.lang-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-family: inherit;
  font-weight: bold;
  font-size: 0.85rem;
  padding: 0 4px;
  transition: color 0.2s;
}

.lang-btn.is-active {
  color: var(--secondary);
}

.lang-btn:hover {
  color: var(--secondary);
}

.lang-divider {
  color: var(--border-color);
  font-size: 0.85rem;
}

/* Selector de tema (claro / oscuro / automático) */
.theme-selector {
  display: flex;
  align-items: center;
  margin-left: 1rem;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}

.theme-toggle:hover {
  color: var(--secondary);
  border-color: var(--secondary);
}

.theme-toggle svg {
  width: 16px;
  height: 16px;
  pointer-events: none;
}

.theme-toggle .icon-auto,
.theme-toggle .icon-light,
.theme-toggle .icon-dark {
  display: none;
}

.theme-toggle[data-theme-state="auto"] .icon-auto,
.theme-toggle[data-theme-state="light"] .icon-light,
.theme-toggle[data-theme-state="dark"] .icon-dark {
  display: block;
}

/* Hero */
.hero {
  padding: 4rem 0;
  background: var(--hero-gradient);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  background: var(--secondary);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero-slogan {
  font-size: 1.15rem;
  font-style: italic;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 0.75rem;
}

.hero-text h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.highlight {
  color: var(--primary-text);
}

.hero-text p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

/* Estilos de botones estándar */
.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: 99px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
  border: none;
}

.btn-primary {
  background: #25D366; /* Verde Oficial WhatsApp */
  /* Texto oscuro, no blanco: sobre este verde el blanco daba 1.98:1 y
     WCAG AA pide 4.5:1. Con #0b1f14 el contraste sube a ~9.4:1. */
  color: #0b1f14;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: #128C7E;
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--primary);
  color: white;
}

.btn-secondary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-outline {
  border: 2px solid var(--primary-text);
  color: var(--primary-text);
  background: transparent;
}

.btn-outline:hover {
  background: var(--primary-text);
  color: white;
}

.btn-small {
  padding: 0.5rem 1.2rem;
  font-size: 0.9rem;
  background: var(--primary);
  color: white;
  border-radius: 99px;
  text-decoration: none;
  display: inline-block;
}

/* Estilos para Botones Redes Sociales */
.btn-social {
  padding: 0.5rem 1.2rem;
  font-size: 0.9rem;
  color: white;
  border-radius: 99px;
}
.btn-fb { background: #1877F2; }
.btn-fb:hover { background: #145DBF; transform: translateY(-1px); }
.btn-ig { background: #E1306C; }
.btn-ig:hover { background: #B82354; transform: translateY(-1px); }

.trust-badges {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero-image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  height: auto;
}

/* Panel de marca temporal mientras no hay fotos reales del consultorio */
.hero-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 3rem;
}

.hero-image-placeholder img {
  width: 55%;
  max-width: 260px;
  border-radius: 50%;
  box-shadow: none;
}

/* Galería */
.gallery {
  padding: 4rem 0;
  background: var(--bg-surface);
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.gallery-grid img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 0.75rem;
  transition: transform 0.2s;
  cursor: pointer;
}

.gallery-grid img:hover {
  transform: scale(1.02);
}

/* Servicios / Showcase */
.products-showcase {
  padding: 4rem 0;
  background: var(--bg-surface-alt);
}

.products-grid-landing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.product-card-landing {
  background: var(--bg-surface);
  padding: 1.5rem;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.product-card-landing:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.product-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.product-card-landing h3 {
  margin-bottom: 0.5rem;
  color: var(--primary-text);
}

.product-card-mas {
  background: var(--bg-surface-alt);
  border: 1.5px dashed var(--secondary);
  box-shadow: none;
}

/* ¿Cómo es el proceso? */
.process-section {
  padding: 4rem 0;
  background: var(--bg-surface);
}

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

.process-card {
  text-align: center;
  padding: 1.5rem 1rem;
}

.process-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.process-card h3 {
  color: var(--primary-text);
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
}

.process-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* Testimonios */
.testimonials-section {
  padding: 4rem 0;
  background: var(--bg-surface);
}

.testimonials-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 560px;
  margin: -1.25rem auto 2.25rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.testimonio-card {
  background: var(--bg-surface-alt);
  border-radius: var(--radius);
  padding: 1.75rem 1.75rem 1.5rem;
  box-shadow: var(--shadow-sm);
  border-left: 3px solid var(--secondary);
  transition: transform 0.2s, box-shadow 0.2s;
}

.testimonio-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.testimonio-mark {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.75rem;
  line-height: 1;
  color: var(--secondary);
  opacity: 0.55;
  margin-bottom: 0.25rem;
}

.testimonio-card blockquote {
  margin: 0;
  color: var(--text-primary);
  font-size: 0.97rem;
  line-height: 1.65;
  font-style: italic;
}

.testimonio-more {
  margin-top: 0.85rem;
}

.testimonio-more p {
  color: var(--text-primary);
  font-size: 0.97rem;
  line-height: 1.65;
  font-style: italic;
  margin-top: 0.85rem;
}

.testimonio-more[hidden] {
  display: none;
}

.testimonio-toggle {
  display: inline-block;
  background: none;
  border: none;
  color: var(--secondary);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  padding: 0.75rem 0 0;
  font-family: inherit;
}

.testimonio-toggle:hover {
  text-decoration: underline;
}

.testimonio-card figcaption {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.82rem;
  opacity: 0.85;
}

/* Blog y Noticias */
.blog-section {
  padding: 3rem 0 4rem;
  background: var(--bg-surface-alt);
}

.blog-placeholder {
  text-align: center;
  background: var(--bg-surface);
  border-radius: var(--radius);
  padding: 2.5rem 1.5rem;
  box-shadow: var(--shadow-sm);
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* Tarjetas de artículos del blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.blog-card {
  background: var(--bg-surface);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.blog-card-tag {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--secondary);
  text-transform: uppercase;
}

.blog-card h3 {
  color: var(--primary-text);
  font-size: 1.15rem;
  line-height: 1.35;
}

.blog-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  flex-grow: 1;
}

.blog-card-author {
  font-size: 0.82rem;
  color: var(--text-muted);
  opacity: 0.85;
}

.blog-card .btn-small {
  align-self: flex-start;
  margin-top: 0.25rem;
}

/* Página de artículo individual */
.article-section {
  padding: 3rem 0 4rem;
}

.article-back {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: var(--secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.article-back:hover {
  text-decoration: underline;
}

.article-header {
  max-width: 720px;
  margin: 0 auto 2rem;
  text-align: center;
}

.article-header .blog-card-tag {
  display: block;
  margin-bottom: 0.75rem;
}

.article-header h1 {
  font-size: 2rem;
  line-height: 1.3;
  color: var(--primary-text);
  margin-bottom: 0.75rem;
}

.article-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.article-body {
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 2.5rem;
  line-height: 1.85;
  color: var(--text-primary);
}

.article-body p {
  margin-bottom: 1.25rem;
}

.article-body p:last-child {
  margin-bottom: 0;
}

.article-body .article-lead {
  font-size: 1.08rem;
  color: var(--text-muted);
}

.article-references {
  max-width: 720px;
  margin: 2rem auto 0;
  background: var(--bg-surface-alt);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.article-references h2 {
  font-size: 1rem;
  color: var(--primary-text);
  margin-bottom: 0.6rem;
}

.article-references ul {
  list-style: disc;
  padding-left: 1.2rem;
}

.article-references li {
  margin-bottom: 0.3rem;
}

.article-cta {
  max-width: 720px;
  margin: 2rem auto 0;
  text-align: center;
}

@media (max-width: 700px) {
  .article-body {
    padding: 1.75rem 1.25rem;
  }
  .article-header h1 {
    font-size: 1.5rem;
  }
}

/* Ubicación */
.location-section {
  padding: 4rem 0;
  background: var(--bg-surface);
}

.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: stretch;
}

.address-card {
  background: var(--bg-surface-alt);
  padding: 1.5rem;
  border-radius: var(--radius);
  line-height: 1.8;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.address-card .btn-small {
  margin-top: auto;
  align-self: flex-start;
}

.location-map {
  background: var(--location-map-bg);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 400px;
  height: 100%;
}

.location-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 400px;
}

/* Contacto CTA */
.contact-cta {
  padding: 3rem 1rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  text-align: center;
}

.cta-card {
  max-width: 700px;
  margin: 0 auto;
}

.cta-card h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.btn-wa-large {
  display: inline-block;
  background: #25D366;
  color: white;
  padding: 1rem 2rem;
  border-radius: 99px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2rem;
  margin-top: 1rem;
  transition: transform 0.2s;
}

.btn-wa-large:hover {
  transform: scale(1.02);
}

/* Footer (siempre oscuro, no cambia con el tema) */
.landing-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 2rem 0 1rem;
}

.footer-logo-lockup {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.footer-logo-lockup .logo-icon {
  width: 52px;
  height: 52px;
}

.footer-credential {
  font-size: 0.8rem;
  color: var(--footer-text-muted);
  margin-top: 0.5rem;
}

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

.footer-grid h4 {
  color: var(--footer-text);
  margin-bottom: 0.5rem;
}

.footer-grid ul {
  list-style: none;
}

.footer-grid a,
.footer-grid p {
  color: var(--footer-text);
  text-decoration: none;
}

.footer-grid a:hover {
  color: var(--secondary);
}

.footer-bottom {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid var(--footer-border);
  font-size: 0.8rem;
}

/* WhatsApp Flotante */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25D366;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: transform 0.2s;
  z-index: 1000;
}

.whatsapp-float:hover {
  transform: scale(1.05);
}

.text-center {
  text-align: center;
}

.location-info, .location-map {
  min-width: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-grid, .location-grid {
    grid-template-columns: 1fr;
  }
  .hero-text h1 {
    font-size: 2rem;
  }
  .nav-toggle {
    display: flex;
  }
  .nav-links {
    position: fixed;
    top: 78px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 24px 20px;
    transform: translateY(-140%);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease, background-color 0.25s ease;
    z-index: 999;
  }
  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
  }
  .nav-links li { width: 100%; padding: 8px 0; }
  .nav-link {
    margin-left: 0;
  }
  .lang-selector,
  .theme-selector {
    margin-left: 0;
  }
  .hero {
    padding: 2rem 0;
  }
  .section-title {
    font-size: 1.5rem;
  }
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
  .location-map iframe {
    min-height: 300px;
  }
  .location-info {
    order: 2;
  }
  .location-map {
    order: 1;
    margin-bottom: 1rem;
  }
}

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}
.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 0.5rem;
  box-shadow: 0 0 30px rgba(0,0,0,0.5);
}
.lightbox .close-lightbox {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}
.lightbox .prev, .lightbox .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  padding: 1rem;
  cursor: pointer;
  border-radius: 50%;
  user-select: none;
}
.lightbox .prev { left: 20px; }
.lightbox .next { right: 20px; }
.lightbox .counter {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  text-align: center;
  color: white;
  background: rgba(0,0,0,0.6);
  width: fit-content;
  margin: 0 auto;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 14px;
}
@media (max-width: 700px) {
  .lightbox .prev, .lightbox .next { padding: 0.5rem; font-size: 20px; }
  .lightbox .close-lightbox { top: 10px; right: 15px; font-size: 30px; }
}

/* Botón de aviso de privacidad en el footer */
.footer-bottom .link-button {
  background: none;
  border: none;
  padding: 0;
  color: var(--footer-text);
  text-decoration: underline;
  font: inherit;
  cursor: pointer;
}

.footer-bottom .link-button:hover {
  color: var(--secondary);
}

/* Modal de Aviso de Privacidad */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.6);
  z-index: 3000;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-box {
  position: relative;
  background: var(--bg-surface);
  border-radius: var(--radius);
  max-width: 620px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 2.5rem 2rem 2rem;
  box-shadow: var(--shadow-lg);
}

.modal-box h2 {
  color: var(--primary-text);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.modal-body h3 {
  font-size: 1rem;
  color: var(--primary-text);
  margin: 1.25rem 0 0.4rem;
}

.modal-body p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 0.25rem;
}

.modal-body a {
  color: var(--primary-text);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: transparent;
  border: none;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
}

.modal-close:hover {
  color: var(--primary-text);
}

@media (max-width: 700px) {
  .modal-box { padding: 2rem 1.25rem 1.5rem; }
}

/* Respeta a quien pidió menos movimiento en su sistema operativo. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
