/*
Theme Name: Instituto Clínico SYNAPTA
Theme URI: https://synaptafisioterapia.com
Author: SYNAPTA Team
Author URI: https://synaptafisioterapia.com
Description: Tema a medida para Instituto Clínico Synapta (fisioterapia en Cartagena): modo oscuro y claro, efecto glassmorphism, animaciones suaves y paleta cian/turquesa.
Version: 1.3.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: synapta
Tags: dark, healthcare, medical, physiotherapy, glassmorphism, modern, responsive
*/

/* ==========================================================================
   SYNAPTA CLINIC - WORDPRESS THEME
   ========================================================================== */

/* Reset y Variables Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Colores principales cyan/teal */
  --cyan-50: #ecfeff;
  --cyan-100: #cffafe;
  --cyan-200: #a5f3fc;
  --cyan-300: #67e8f9;
  --cyan-400: #22d3ee;
  --cyan-500: #06b6d4;
  --cyan-600: #0891b2;
  --cyan-700: #0e7490;
  --cyan-800: #155e75;
  --cyan-900: #164e63;
  --cyan-950: #083344;

  --teal-50: #f0fdfa;
  --teal-100: #ccfbf1;
  --teal-200: #99f6e4;
  --teal-300: #5eead4;
  --teal-400: #2dd4bf;
  --teal-500: #14b8a6;
  --teal-600: #0d9488;
  --teal-700: #0f766e;
  --teal-800: #115e59;
  --teal-900: #134e4a;
  --teal-950: #042f2e;

  /* Colores zinc/gray para backgrounds */
  --zinc-50: #fafafa;
  --zinc-100: #f4f4f5;
  --zinc-200: #e4e4e7;
  --zinc-300: #d4d4d8;
  --zinc-400: #a1a1aa;
  --zinc-500: #71717a;
  --zinc-600: #52525b;
  --zinc-700: #3f3f46;
  --zinc-800: #27272a;
  --zinc-900: #18181b;
  --zinc-950: #09090b;

  /* ==========================================================================
     TOKENS SEMÁNTICOS — MODO OSCURO (por defecto, es el diseño actual)
     Un selector de tema en el header cambia [data-theme] a "light" y estos
     valores se sobreescriben más abajo. Todo el tema debe pintar sus colores
     a través de estos tokens, nunca directamente con --zinc-*, --cyan-* o --teal-*
     (esas escalas siguen existiendo como paleta base, no se tocan).
     ========================================================================== */
  --bg: var(--zinc-950);              /* fondo de página */
  --bg-alt: var(--zinc-900);          /* fondo de sección alterna, footer, mi-cuenta, auth */
  --bg-hero: #000000;                 /* fondo del hero de portada */
  --surface: rgba(39, 39, 42, 0.5);   /* tarjetas "cristal" (glassmorphism) */
  --surface-blur: blur(12px);
  --surface-shadow: none;
  --surface-solid: var(--zinc-900);   /* paneles sólidos: caja de páginas legales */
  --surface-alt: rgba(24, 24, 27, 0.5);   /* ítems dentro de tarjetas: citas, documentos, ajustes */
  --surface-alt-hover: rgba(24, 24, 27, 0.8);
  --input-bg-hover: rgba(24, 24, 27, 1);
  --border: rgba(63, 63, 70, 0.5);    /* bordes sobre superficies "cristal" */
  --border-solid: var(--zinc-700);    /* bordes sobre superficies sólidas / inputs */
  --input-bg: rgba(24, 24, 27, 0.8);
  --placeholder: var(--zinc-600);
  --heading: var(--zinc-50);          /* h1-h6 */
  --text-strong: var(--zinc-100);     /* texto por defecto del body, títulos de tarjeta */
  --text-body: var(--zinc-300);       /* texto de lectura larga: legales, enlaces del menú */
  --text: var(--zinc-400);            /* párrafos y descripciones */
  /* (v1.3.1) #8f8f96 en vez de --zinc-500 (#71717a): sobre los fondos oscuros
     del tema el gris anterior se quedaba entre 3,1:1 y 4,1:1, por debajo del
     4,5:1 de WCAG AA, en el pie, Mi Cuenta, login, registro y contacto. Este
     es el gris más oscuro que llega a 4,6:1 sobre la superficie más clara
     (#27272a), así que sigue viéndose más apagado que --text. */
  --text-dim: #8f8f96;                /* texto de menor énfasis: etiquetas, fechas */
  --nav-scrolled: rgba(9, 9, 11, 0.8);
  --grad-a: var(--cyan-400);          /* texto/iconos con degradado o acento — necesita más contraste en claro */
  --grad-b: var(--teal-400);
  --accent-hover: var(--cyan-300);    /* hover de enlaces de acento */
  --status-error-text: #fca5a5;
  --status-success-text: #86efac;
  --status-success-icon: #4ade80;
  --status-warning-text: #facc15;

  /* Solo portada: hero con red sináptica animada e insignias flotantes */
  --stats-band: linear-gradient(to bottom, #000000, rgba(24, 24, 27, 0.5));
  --eco-band: linear-gradient(to bottom right, rgba(30, 58, 138, 0.3), rgba(24, 24, 27, 1), rgba(22, 78, 99, 0.3));
  --badge-bg: rgba(3, 7, 18, 0.75);
  --badge-sub: rgba(255, 255, 255, 0.6);
  --badge-1-icon: #22d3ee;
  --badge-2-icon: #2dd4bf;
  --badge-3-icon: #60a5fa;
  --synapse-edge: #06b6d4;
  --synapse-node: #2dd4bf;
  --overlay-fade: linear-gradient(to top, rgba(24, 24, 27, 1), transparent);

  /* Tipografía */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Espaciado */
  --spacing-xs: 0.5rem;
  --spacing-sm: 0.75rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  --spacing-4xl: 6rem;

  /* Border radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-cyan: 0 20px 25px -5px rgba(34, 211, 238, 0.5);
}

/* ==========================================================================
   TOKENS SEMÁNTICOS — MODO CLARO
   Se activa poniendo data-theme="light" en <html> (ver header.php). El botón
   del header alterna el atributo y guarda la preferencia en localStorage.
   ========================================================================== */
:root[data-theme="light"] {
  --bg: #f7fafb;
  --bg-alt: #eef2f4;
  --bg-hero: #eef9fb;
  --surface: #ffffff;
  --surface-blur: blur(0px);
  --surface-shadow: 0 4px 24px -6px rgba(24, 24, 27, 0.10);
  --surface-solid: #ffffff;
  --surface-alt: #f4f6f7;
  --surface-alt-hover: #eceef0;
  --input-bg-hover: #f4f6f7;
  --border: #e4e4e7;
  --border-solid: #d4d4d8;
  --input-bg: #ffffff;
  --placeholder: #a1a1aa;
  --heading: #09090b;
  --text-strong: #27272a;
  --text-body: #3f3f46;
  --text: #52525b;
  --text-dim: #6b6b74;
  --nav-scrolled: rgba(255, 255, 255, 0.88);
  --grad-a: var(--cyan-700);
  --grad-b: var(--teal-700);
  --accent-hover: var(--cyan-800);
  --status-error-text: #b91c1c;
  --status-success-text: #15803d;
  --status-success-icon: #16a34a;
  --status-warning-text: #a16207;

  --stats-band: linear-gradient(to bottom, #eef9fb, #ffffff);
  --eco-band: linear-gradient(to bottom right, rgba(30, 58, 138, 0.06), #ffffff, rgba(22, 78, 99, 0.08));
  --badge-bg: rgba(255, 255, 255, 0.9);
  --badge-sub: #6b6b74;
  --badge-1-icon: #0e7490;
  --badge-2-icon: #0f766e;
  --badge-3-icon: #1d4ed8;
  --synapse-edge: #0891b2;
  --synapse-node: #0d9488;
  --overlay-fade: linear-gradient(to top, rgba(255, 255, 255, 0.92), transparent);
}

/* Ajustes puntuales que no son un simple cambio de token */
:root[data-theme="light"] .section-gradient {
  background: linear-gradient(to bottom right, rgba(6, 182, 212, 0.06), rgba(20, 184, 166, 0.06));
}

/* Estas reglas usan literales o --zinc-*, --cyan-* directamente (no tokens
   semánticos) porque su valor en oscuro no coincide exactamente con ningún
   token existente; para no alterar el oscuro ni un matiz, se deja tal cual
   arriba y solo se sobreescribe aquí, específicamente, para modo claro. */
:root[data-theme="light"] .footer { border-top-color: var(--border-solid); }
:root[data-theme="light"] .footer-bottom { border-top-color: var(--border-solid); }
:root[data-theme="light"] .section-gradient { border-top-color: var(--border-solid); }
:root[data-theme="light"] .mobile-menu { background: var(--surface-solid); }
:root[data-theme="light"] .auth-card {
  background: var(--surface-solid);
  border-color: var(--border-solid);
  box-shadow: var(--surface-shadow);
}
:root[data-theme="light"] .form-checkbox input[type="checkbox"] { border-color: var(--border-solid); }
:root[data-theme="light"] .auth-divider { background: var(--border-solid); }
:root[data-theme="light"] .mi-cuenta-header { border-bottom-color: var(--border-solid); }
:root[data-theme="light"] .cuenta-card {
  background: var(--surface-solid);
  border-color: var(--border-solid);
}
:root[data-theme="light"] .cuenta-card-header { border-bottom-color: var(--border); }
:root[data-theme="light"] .cuenta-card-footer { border-top-color: var(--border); }
:root[data-theme="light"] .info-row { border-bottom-color: var(--border); }
:root[data-theme="light"] .info-value { color: var(--text-strong); }
:root[data-theme="light"] .cita-item { border-color: var(--border); }
:root[data-theme="light"] .historial-item { border-bottom-color: var(--border); }
:root[data-theme="light"] .historial-info h5 { color: var(--text-strong); }
:root[data-theme="light"] .documento-item { border-color: var(--border); }
:root[data-theme="light"] .config-item { background: var(--surface-alt); border-color: var(--border); }
:root[data-theme="light"] .config-item:hover { background: var(--surface-alt-hover); }
:root[data-theme="light"] .btn-cuenta.btn-logout:hover { color: var(--status-error-text); }
:root[data-theme="light"] .legal-box { box-shadow: var(--surface-shadow); }
:root[data-theme="light"] .legal-hero { border-bottom-color: var(--border-solid); }

/* (v1.3.1) Texto solo para lectores de pantalla, y enlace "Saltar al
   contenido": header.php los usaba pero el tema no los definía, así que el
   enlace se veía siempre encima del logo. Ahora solo aparece al llegar a él
   con el tabulador. */
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link.screen-reader-text:focus {
  position: fixed !important;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100000;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0.75rem 1.25rem;
  clip: auto;
  overflow: visible;
  white-space: normal;
  background: var(--surface-solid);
  color: var(--grad-a);
  border: 2px solid var(--grad-a);
  border-radius: var(--radius-md);
  font-weight: 600;
}

/* (v1.3.1) Quien tenga activado "reducir movimiento" en su sistema no recibe
   animaciones ni desplazamientos suaves. */
@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;
  }
}

/* WordPress Admin Bar Adjustment */
.admin-bar .navbar {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar .navbar {
    top: 46px;
  }
}

/* Base Styles */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text-strong);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* WordPress Content Cleanup */
.wp-block-post-content,
.entry-content,
.wp-block-group {
  max-width: 100%;
}

img {
  max-width: 100%;
  height: auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--heading);
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
  color: var(--text);
}

a {
  color: var(--grad-a);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-hover);
}

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
}

/* Utility Classes */
.gradient-text {
  background: linear-gradient(to right, var(--grad-a), var(--grad-b));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-bg {
  background: linear-gradient(to right, var(--cyan-500), var(--teal-500));
}

.glassmorphism {
  background: var(--surface);
  backdrop-filter: var(--surface-blur);
  -webkit-backdrop-filter: var(--surface-blur);
  border: 1px solid var(--border);
}

/* Text Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Spacing Utilities */
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-6 { margin-bottom: 3rem; }
.mb-8 { margin-bottom: 4rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.pt-20 { padding-top: 5rem; }
.pt-24 { padding-top: 6rem; }
.py-12 { padding: 3rem 0; }
.py-16 { padding: 4rem 0; }
.py-20 { padding: 5rem 0; }
.py-24 { padding: 6rem 0; }

/* ==========================================================================
   3. NAVBAR
   ========================================================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  /* Fondo fijo desde el primer pintado (antes solo al hacer scroll), para
     que no quede transparente sobre el contenido de la página. Se probó
     también a marcar el límite con borde + sombra, pero esa sombra (con
     tinte cian) se veía como una franja de color debajo de la barra —
     Sergio pidió quitarla, así que el único matiz que queda es el fondo +
     blur, sin línea ni sombra visibles. Afecta a los dos modos por igual:
     cambio autorizado explícitamente por Sergio para este punto en
     concreto, como excepción puntual a la regla general de no tocar el
     modo oscuro (10/10). */
  background: var(--nav-scrolled);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 80px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  gap: 2rem;
}

.navbar-logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  order: 1;
  min-width: 150px;
}

.navbar-logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}

.navbar-logo .custom-logo-link {
  display: flex;
  align-items: center;
  line-height: 0;
}

.navbar-logo img,
.navbar-logo .custom-logo,
.navbar-logo .custom-logo-link img {
  height: 40px;
  width: auto;
  display: block;
  max-width: none;
}

/* Logo claro/oscuro: dos archivos (uno por tema), se alterna el que se ve
   con el mismo mecanismo [data-theme] que ya usa el icono sol/luna del
   theme-toggle. El modo oscuro (sin atributo, estado por defecto) no
   cambia: sigue mostrando exactamente el mismo logo de siempre. */
.navbar-logo img.logo-light {
  display: none;
}

[data-theme="light"] .navbar-logo img.logo-dark {
  display: none;
}

[data-theme="light"] .navbar-logo img.logo-light {
  display: block;
}

.navbar-logo span {
  color: var(--heading);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.navbar-menu {
  display: flex !important;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0 auto !important;
  padding: 0 !important;
  flex: 1 1 auto;
  justify-content: center;
  order: 2;
}

.navbar-menu li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar-menu a {
  color: var(--text-body);
  text-decoration: none;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  transition: color 0.2s ease;
  font-weight: 500;
  white-space: nowrap;
}

.navbar-menu a:hover,
.navbar-menu a.active,
.navbar-menu .current-menu-item > a,
.navbar-menu .current_page_item > a {
  color: var(--grad-a);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 0 0 auto;
  order: 3;
}

.navbar-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(to right, var(--cyan-500), var(--teal-500));
  color: white !important;
  padding: 0.625rem 1.5rem;
  border-radius: var(--radius-lg);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.navbar-cta:hover {
  box-shadow: 0 20px 25px -5px rgba(34, 211, 238, 0.5);
  transform: translateY(-1px);
  color: white !important;
}

/* Selector de tema claro/oscuro */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--border-solid);
  background: transparent;
  color: var(--heading);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}

.theme-toggle:hover {
  border-color: var(--cyan-400);
  color: var(--cyan-400);
  transform: translateY(-1px);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.theme-toggle .icon-moon {
  display: none;
}

[data-theme="light"] .theme-toggle .icon-sun {
  display: none;
}

[data-theme="light"] .theme-toggle .icon-moon {
  display: block;
}

/* Variante de fila completa para el menú móvil (icono + texto) */
.theme-toggle-inline {
  width: 100%;
  height: auto;
  justify-content: flex-start;
  border-radius: var(--radius-md);
  border: none;
  padding: 0.75rem 0;
  font-size: 1rem;
  letter-spacing: 0.05em;
  color: var(--text-body);
}

.theme-toggle-inline:hover {
  border-color: transparent;
  color: var(--grad-a);
  transform: none;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-body);
  cursor: pointer;
  padding: 0.5rem;
  font-size: 1.5rem;
  flex-shrink: 0;
}

/* Icono del botón del menú móvil: tres rayas cerrado, ✕ abierto (el JS
   cambia aria-expanded al abrir y cerrar). */
.mobile-menu-toggle .icon-close {
  display: none;
}

.mobile-menu-toggle[aria-expanded="true"] .icon-menu {
  display: none;
}

.mobile-menu-toggle[aria-expanded="true"] .icon-close {
  display: inline-block;
}

.mobile-menu {
  display: none;
  background: rgba(24, 24, 27, 0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  padding: 1.5rem 2rem;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-menu li {
  list-style: none;
  margin: 0;
}

.mobile-menu a {
  display: block;
  color: var(--text-body);
  text-decoration: none;
  padding: 0.75rem 0;
  font-size: 1rem;
  letter-spacing: 0.05em;
  transition: color 0.2s ease;
}

.mobile-menu a:hover,
.mobile-menu a.active,
.mobile-menu .current-menu-item > a {
  color: var(--grad-a);
}

.mobile-menu .navbar-cta {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 1rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--zinc-800);
  padding: 4rem 0 2rem;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

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

.footer-section h2,
.footer-section h3 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
  color: var(--grad-a);
}

.footer-section ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 0.75rem;
  list-style: none;
}

.footer-section a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease;
  font-size: 0.875rem;
}

.footer-section a:hover {
  color: var(--grad-a);
}

.footer-section p {
  color: var(--text);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.footer-bottom {
  border-top: 1px solid var(--zinc-800);
  padding-top: 2rem;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.875rem;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0.75rem;
  margin-top: 0.75rem;
}

.footer-legal-links a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-legal-links a:hover {
  color: var(--grad-a);
}

.footer-legal-links span {
  color: var(--text-dim);
  opacity: 0.5;
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */

.section {
  padding: 6rem 0;
}

.section-dark {
  background: var(--bg-alt);
}

.section-gradient {
  background: linear-gradient(to bottom right, rgba(22, 78, 99, 0.2), rgba(19, 78, 74, 0.2));
  border-top: 1px solid var(--zinc-800);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-subtitle {
  color: var(--grad-a);
  letter-spacing: 0.15em;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  font-weight: 500;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.section-description {
  color: var(--text);
  font-size: 1.125rem;
  max-width: 42rem;
  margin: 0 auto;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: var(--radius-lg);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: 1rem;
  line-height: 1;
}

.btn-primary {
  background: linear-gradient(to right, var(--cyan-500), var(--teal-500));
  color: white !important;
}

.btn-primary:hover {
  box-shadow: 0 20px 25px -5px rgba(34, 211, 238, 0.5);
  transform: translateY(-2px);
  color: white !important;
}

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

.btn-secondary:hover {
  border-color: var(--grad-a);
  color: var(--grad-a);
}

/* ==========================================================================
   CARDS
   ========================================================================== */

.card {
  background: var(--surface);
  backdrop-filter: var(--surface-blur);
  -webkit-backdrop-filter: var(--surface-blur);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--surface-shadow);
  overflow: hidden;
  transition: all 0.3s ease;
}

.card:hover {
  border-color: rgba(34, 211, 238, 0.5);
  transform: translateY(-4px);
}

.card-image {
  width: 100%;
  height: 250px;
  position: relative;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card-image img {
  transform: scale(1.1);
}

.card-content {
  padding: 1.5rem;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  transition: color 0.3s ease;
  color: var(--heading);
}

.card:hover .card-title {
  color: var(--grad-a);
}

.card-description {
  color: var(--text);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

/* ==========================================================================
   GRID LAYOUTS
   ========================================================================== */

.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

@media (max-width: 768px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   FORMS
   ========================================================================== */

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

.form-label {
  display: block;
  color: var(--text-body);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-strong);
  font-size: 1rem;
  transition: all 0.2s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--grad-a);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.1);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* ==========================================================================
   WORDPRESS CONTENT
   ========================================================================== */

.wp-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 6rem 2rem;
}

.wp-content h1,
.wp-content h2,
.wp-content h3 {
  margin-bottom: 1rem;
}

.wp-content p {
  margin-bottom: 1.5rem;
  color: var(--text);
  line-height: 1.8;
}

.wp-content a {
  color: var(--grad-a);
  text-decoration: underline;
}

.wp-content a:hover {
  color: var(--accent-hover);
}

/* WordPress Blocks */
.wp-block-image img {
  border-radius: var(--radius-xl);
  max-width: 100%;
  height: auto;
}

.wp-block-quote {
  border-left: 4px solid var(--cyan-500);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--text-body);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
  .navbar-container {
    gap: 1rem;
  }

  .navbar-menu {
    display: none !important;
  }

  .navbar-actions {
    display: none !important;
  }

  .mobile-menu-toggle {
    display: block !important;
    order: 3 !important;
    margin-left: auto !important;
  }

  .navbar-logo {
    order: 1 !important;
    margin-right: 0 !important;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 3rem 0;
  }

  .navbar-container {
    padding: 0 1rem;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
}

@media (max-width: 640px) {
  .container {
    padding: 0 1rem;
  }

  .grid {
    gap: 1rem;
  }
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

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

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

.animate-fade-in {
  animation: fadeIn 0.8s ease-out;
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

.animate-slide-in-left {
  animation: slideInLeft 0.8s ease-out;
}

.animate-slide-in-right {
  animation: slideInRight 0.8s ease-out;
}

.animate-bounce {
  animation: bounce 2s infinite;
}

/* ==========================================================================
   ICONS (Lucide)
   ========================================================================== */

.lucide {
  display: inline-block;
  vertical-align: middle;
}

/* Evita Cumulative Layout Shift: antes de que Lucide reemplace el <i data-lucide>
   por el <svg> real, el navegador ignora width/height en un elemento inline por
   defecto, así que el icono "aparece de golpe" tras cargar el JS. Al forzar
   inline-block ya desde el estado inicial, el hueco se reserva desde el principio. */
[data-lucide] {
  display: inline-block;
  vertical-align: middle;
}

/* ==========================================================================
   AUTH PAGES (Login, Registro, Recuperar Password)
   ========================================================================== */

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-alt) 100%);
}

.auth-container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 480px;
}

/* Glassmorphism Card */
.auth-card {
  background: rgba(39, 39, 42, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: 3rem 2.5rem;
  box-shadow:
    0 8px 32px 0 rgba(0, 0, 0, 0.37),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
  animation: fadeIn 0.5s ease;
}

.auth-card-large {
  max-width: 600px;
  width: 100%;
}

/* Logo */
.auth-logo {
  text-align: center;
  margin-bottom: 2rem;
  animation: slideDown 0.5s ease;
}

.auth-logo img {
  max-width: 180px;
  height: auto;
}

/* Title and Subtitle */
.auth-title {
  font-size: 1.875rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--grad-a), var(--grad-b));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-subtitle {
  text-align: center;
  color: var(--text);
  margin-bottom: 2rem;
  font-size: 0.9375rem;
}

/* Form */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

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

.form-group label {
  color: var(--text-body);
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-group input {
  background: var(--input-bg);
  border: 1px solid var(--border-solid);
  border-radius: var(--radius-md);
  padding: 0.875rem 1rem;
  color: var(--text-strong);
  font-size: 0.9375rem;
  transition: all 0.3s ease;
  outline: none;
}

.form-group input:focus {
  border-color: var(--cyan-500);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.form-group input::placeholder {
  color: var(--placeholder);
}

/* Checkbox */
.form-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border: 2px solid var(--zinc-600);
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
  accent-color: var(--cyan-500);
}

.form-checkbox label {
  color: var(--text);
  font-size: 0.875rem;
  cursor: pointer;
  user-select: none;
}

.form-checkbox a {
  color: var(--grad-a);
  text-decoration: none;
  transition: color 0.2s ease;
}

.form-checkbox a:hover {
  color: var(--accent-hover);
}

/* Submit Button */
.btn-auth {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--cyan-500), var(--teal-500));
  color: white;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 0.5rem;
  text-decoration: none;
}

.btn-auth:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(6, 182, 212, 0.4);
}

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

/* Links */
.auth-links {
  margin-top: 1.5rem;
  text-align: center;
}

.auth-link {
  color: var(--grad-a);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.auth-link:hover {
  color: var(--accent-hover);
}

.auth-divider {
  height: 1px;
  background: var(--zinc-800);
  margin: 1.5rem 0;
}

.auth-signup {
  color: var(--text);
  font-size: 0.9375rem;
  margin: 0;
}

.auth-signup a {
  color: var(--grad-a);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.auth-signup a:hover {
  color: var(--accent-hover);
}

/* Error Messages */
.auth-errors {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.auth-errors p {
  color: var(--status-error-text);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.5rem 0;
}

.auth-errors p:first-child {
  margin-top: 0;
}

.auth-errors p:last-child {
  margin-bottom: 0;
}

/* Success Messages */
.auth-success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.auth-success p {
  color: var(--status-success-text);
  font-size: 0.9375rem;
  margin: 0.75rem 0 0 0;
  line-height: 1.6;
}

.auth-success i {
  color: var(--status-success-icon);
  margin-bottom: 0.5rem;
}

/* Decorative Background Blurs */
.auth-bg-blur {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.3;
  pointer-events: none;
  z-index: 1;
}

.auth-bg-blur-1 {
  width: 400px;
  height: 400px;
  background: var(--cyan-600);
  top: -200px;
  right: -200px;
}

.auth-bg-blur-2 {
  width: 500px;
  height: 500px;
  background: var(--teal-600);
  bottom: -250px;
  left: -250px;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 640px) {
  .auth-page {
    padding: 1rem;
  }

  .auth-card {
    padding: 2rem 1.5rem;
  }

  .auth-title {
    font-size: 1.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .auth-bg-blur-1,
  .auth-bg-blur-2 {
    display: none;
  }
}

/* ==========================================================================
   MI CUENTA PAGE
   ========================================================================== */

.mi-cuenta-page {
  min-height: 100vh;
  background: var(--bg);
}

.mi-cuenta-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--zinc-800);
}

.user-avatar {
  position: relative;
}

.user-avatar .avatar-img {
  border-radius: 50%;
  border: 3px solid var(--cyan-500);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
}

.mi-cuenta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

/* Cuenta Card */
.cuenta-card {
  background: rgba(39, 39, 42, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all 0.3s ease;
}

.cuenta-card:hover {
  border-color: rgba(34, 211, 238, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.cuenta-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cuenta-card-header h3 {
  font-size: 1.125rem;
  margin: 0;
  color: var(--text-strong);
}

.cuenta-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cuenta-card-footer {
  padding: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  gap: 0.75rem;
}

/* Info Rows */
.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  color: var(--text-dim);
  font-size: 0.875rem;
  font-weight: 500;
}

.info-value {
  color: var(--zinc-200);
  font-size: 0.9375rem;
}

/* Citas */
.cita-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: var(--surface-alt);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
}

.cita-item:hover {
  border-color: rgba(34, 211, 238, 0.3);
  background: var(--surface-alt-hover);
}

.cita-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--cyan-500), var(--teal-500));
  border-radius: var(--radius-md);
  padding: 0.75rem;
  min-width: 60px;
  text-align: center;
}

.date-day {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  line-height: 1;
}

.date-month {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

.cita-info {
  flex: 1;
}

.cita-info h4 {
  font-size: 1rem;
  margin: 0 0 0.5rem 0;
  color: var(--text-strong);
}

.cita-info p {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--text);
  font-size: 0.875rem;
  margin: 0.25rem 0;
}

/* Gestionar cita (cancelar / buscar nueva hora) desde "Próximas Citas".
   Usa solo variables de tema ya existentes (--text-dim, --grad-a), que ya
   tienen su valor correcto en claro y en oscuro, así que no hace falta
   ninguna regla adicional para el modo claro. */
.cita-gestionar-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.4rem;
  color: var(--text-dim);
  font-size: 0.75rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.cita-gestionar-trigger:hover {
  color: var(--grad-a);
}

.cita-gestionar-bloqueada {
  display: block;
  margin-top: 0.4rem;
  color: var(--text-dim);
  font-size: 0.75rem;
}

/* Historial */
.historial-item {
  display: flex;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.historial-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.historial-date {
  color: var(--grad-a);
  font-size: 0.8125rem;
  font-weight: 600;
  min-width: 80px;
}

.historial-info {
  flex: 1;
}

.historial-info h5 {
  font-size: 0.9375rem;
  margin: 0 0 0.25rem 0;
  color: var(--zinc-200);
}

.historial-info p {
  color: var(--text-dim);
  font-size: 0.8125rem;
  margin: 0;
}

/* Documentos */
.documento-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem;
  background: var(--surface-alt);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-body);
  font-size: 0.875rem;
  transition: all 0.3s ease;
  margin-bottom: 0.5rem;
}

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

.documento-item:hover {
  background: var(--surface-alt-hover);
  border-color: rgba(34, 211, 238, 0.3);
  color: var(--grad-a);
}

/* Configuración */
.config-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem;
  background: rgba(24, 24, 27, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-body);
  font-size: 0.9375rem;
  transition: all 0.3s ease;
  margin-bottom: 0.5rem;
}

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

.config-item:hover {
  background: rgba(24, 24, 27, 0.6);
  border-color: rgba(34, 211, 238, 0.3);
  color: var(--grad-a);
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color 0.2s ease;
}

.contact-link:hover {
  color: var(--grad-a);
}

/* Botones de Cuenta */
.btn-cuenta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--input-bg);
  border: 1px solid var(--border-solid);
  border-radius: var(--radius-md);
  color: var(--text-body);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
  flex: 1;
}

.btn-cuenta:hover {
  border-color: var(--cyan-500);
  color: var(--grad-a);
  background: var(--input-bg-hover);
}

.btn-cuenta.btn-primary {
  background: linear-gradient(135deg, var(--cyan-500), var(--teal-500));
  border: none;
  color: white;
}

.btn-cuenta.btn-primary:hover {
  box-shadow: 0 8px 16px rgba(6, 182, 212, 0.4);
  transform: translateY(-2px);
  color: white;
}

.btn-cuenta.btn-logout {
  border-color: rgba(239, 68, 68, 0.3);
  color: var(--status-error-text);
}

.btn-cuenta.btn-logout:hover {
  border-color: rgba(239, 68, 68, 0.5);
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
}

/* Responsive */
@media (max-width: 1024px) {
  .mi-cuenta-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

@media (max-width: 640px) {
  .mi-cuenta-header {
    flex-direction: column;
    text-align: center;
  }

  .mi-cuenta-grid {
    grid-template-columns: 1fr;
  }

  .info-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
}
/* ============================================================
   PÁGINAS LEGALES Y DE TEXTO (Aviso Legal, Privacidad, Cookies)
   ============================================================ */

.legal-hero {
    padding-top: 10rem;
    padding-bottom: 4rem;
    background: radial-gradient(circle at top, rgba(34, 211, 238, 0.08) 0%, var(--bg) 80%);
    border-bottom: 1px solid #27272a;
    text-align: center;
}

.legal-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    color: var(--heading);
    margin-bottom: 1rem;
    line-height: 1.2;
    font-weight: 700;
}

.legal-title span {
    color: var(--grad-a);
}

.legal-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 5rem 1.5rem;
}

.legal-box {
    background-color: var(--surface-solid);
    border: 1px solid var(--border-solid);
    border-radius: 1rem;
    padding: 4rem 5rem;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5);
}

@media (max-width: 768px) {
    .legal-box {
        padding: 2.5rem 1.5rem;
    }
}

.legal-content h2 {
    color: var(--grad-a);
    font-size: 1.5rem;
    margin-top: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content p,
.legal-content ul {
    color: var(--text-body);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.legal-content ul {
    padding-left: 1.5rem;
    list-style-type: none;
}

.legal-content li {
    margin-bottom: 0.75rem;
    position: relative;
}

.legal-content li::before {
    content: "•";
    color: var(--grad-a);
    font-size: 1.5rem;
    position: absolute;
    left: -1.25rem;
    top: -0.25rem;
}

.legal-content li strong {
    color: var(--heading);
    font-weight: 600;
}

/* (v1.3.1) Subrayado siempre visible: dentro de un párrafo, el enlace solo
   se distinguía del texto por el color (1,2:1 frente al texto que lo rodea),
   y WCAG pide 3:1 o una marca que no sea el color. */
.legal-content a {
    color: var(--grad-a);
    text-decoration: none;
    transition: color 0.3s ease, border-color 0.3s ease;
    border-bottom: 1px solid currentColor;
}

.legal-content a:hover {
    color: var(--accent-hover);
    border-bottom-color: var(--accent-hover);
}

/* ============================================================
   INTEGRACIÓN AMELIA BOOKING
   ============================================================
   El CSS del widget de reservas (Amelia) vive ahora entero en
   page-reserva.php, la única plantilla donde se usa — antes estaba
   repartido entre dos bloques aquí y uno allí, y uno de estos dos
   bloques no distinguía tema (se aplicaba siempre, sin importar
   claro/oscuro), que era la causa de que el widget se viera negro
   incluso con la página ya en modo claro. Ver page-reserva.php. */