@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-color: #0f172a;
  --text-color: #e2e8f0;
  --text-muted: #94a3b8;
  --primary-color: #3b82f6;
  --secondary-color: #8b5cf6;
  --accent-color: #06b6d4;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --nav-height: 80px;

  /* Base neutrals (themeable) */
  --heading-color: rgba(255, 255, 255, 0.98);
  --header-bg: rgba(15, 23, 42, 0.8);

  /* Logo shadow (theme-aware) */
  --logo-shadow-color: color-mix(in srgb, var(--heading-color) 35%, transparent);
}

/* Light theme (opt-in via JS: document.documentElement.dataset.theme = 'light') */
html[data-theme="light"] {
  --bg-color: #f8fafc;
  --text-color: #0f172a;
  --text-muted: #475569;

  /* Keep brand colors but nudge for better contrast on light */
  --primary-color: #2563eb;
  --secondary-color: #7c3aed;
  --accent-color: #0891b2;

  --glass-bg: rgba(15, 23, 42, 0.04);
  --glass-border: rgba(15, 23, 42, 0.12);
  --glass-shadow: 0 12px 40px 0 rgba(2, 6, 23, 0.08);

  --heading-color: rgba(15, 23, 42, 0.96);
  --header-bg: rgba(248, 250, 252, 0.82);

  /* In light theme, heading-color is dark -> shadow becomes dark */
  --logo-shadow-color: color-mix(in srgb, var(--heading-color) 28%, transparent);
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Subtle blue gradient background for light theme (adds depth without fighting the content) */
html[data-theme="light"] body {
  position: relative;
}

html[data-theme="light"] body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 10%, rgba(37, 99, 235, 0.12), transparent 45%),
    radial-gradient(circle at 85% 25%, rgba(8, 145, 178, 0.10), transparent 50%),
    radial-gradient(circle at 45% 90%, rgba(124, 58, 237, 0.08), transparent 55%),
    linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  text-decoration: none;
  color: var(--accent-color);
}

/* --------------------------------------------------------------------------
 * Cookie info modal (info-only, no tracking)
 * -------------------------------------------------------------------------- */
html.cookie-info--open,
html.cookie-info--open body {
  overflow: hidden;
}

.cookie-info {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 18px;
}

.cookie-info__overlay {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.62);
}

html[data-theme="light"] .cookie-info__overlay {
  background: rgba(15, 23, 42, 0.45);
}

.cookie-info__modal {
  position: relative;
  width: min(620px, calc(100vw - 36px));
  border-radius: 18px;
  padding: 18px 18px 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--glass-shadow);
  transform: translateY(8px);
  animation: cookieInfoIn 180ms ease-out forwards;
}

@keyframes cookieInfoIn {
  from { opacity: 0; transform: translateY(12px) scale(0.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.cookie-info__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid color-mix(in srgb, var(--glass-border) 70%, transparent);
}

.cookie-info__title {
  font-weight: 700;
  color: var(--heading-color);
  margin: 0;
}

.cookie-info__text {
  margin: 0;
  color: var(--text-muted);
}

.cookie-info__link {
  color: var(--text-color);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent-color) 70%, transparent);
}

.cookie-info__actions {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.cookie-info__close {
  appearance: none;
  border: 1px solid var(--glass-border);
  background: transparent;
  color: var(--text-muted);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  font-size: 22px;
  line-height: 1;
  display: grid;
  place-items: center;
}

.cookie-info__close:hover {
  color: var(--text-color);
  border-color: color-mix(in srgb, var(--accent-color) 55%, var(--glass-border));
  transform: translateY(-1px);
}

.cookie-info__close:focus {
  outline: 2px solid color-mix(in srgb, var(--accent-color) 65%, transparent);
  outline-offset: 2px;
}

.cookie-info__btn {
  appearance: none;
  border: 1px solid var(--glass-border);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02));
  color: var(--text-color);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
}

.cookie-info__btn:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--accent-color) 55%, var(--glass-border));
}

.cookie-info__btn:focus {
  outline: 2px solid color-mix(in srgb, var(--accent-color) 65%, transparent);
  outline-offset: 2px;
}

@media (max-width: 576px) {
  .cookie-info__actions {
    justify-content: stretch;
  }
  .cookie-info__btn {
    width: 100%;
    justify-content: center;
  }

  .cookie-info__modal {
    padding: 16px;
  }
}

h1, h2, h3, h4, h5, h6 {
  color: var(--heading-color);
  font-weight: 700;
  margin-bottom: 1rem;
}

/* Jerarquía visual por color (solo texto): cada nivel tiene un tono distinto */
h1 {
  color: var(--accent-color); /* fallback */
  background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  color: var(--primary-color); /* fallback */
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

h3 {
  color: var(--secondary-color); /* fallback */
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
h4 { color: color-mix(in srgb, var(--heading-color) 92%, transparent); }
h5 { color: color-mix(in srgb, var(--heading-color) 84%, transparent); }
h6 { color: color-mix(in srgb, var(--heading-color) 76%, transparent); }

/* Glassmorphism Utilities */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 16px;
}

.glass-btn {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
  color: var(--text-color);
  padding: 12px 32px;
  border-radius: 50px;
  font-weight: 600;
  display: inline-block;
  transition: all 0.3s ease;
}

.glass-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 10px 40px 0 rgba(0, 0, 0, 0.4);
  color: var(--text-color);
}

/* Glass button tweaks for light theme (avoid low contrast / "washed" look) */
html[data-theme="light"] .glass-btn {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.02));
  box-shadow: 0 12px 32px rgba(2, 6, 23, 0.10);
}

html[data-theme="light"] .glass-btn:hover {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.12), rgba(15, 23, 42, 0.04));
  box-shadow: 0 14px 36px rgba(2, 6, 23, 0.14);
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Header */
#header {
  height: var(--nav-height);
  padding: 0;
  transition: all 0.5s;
  /* Mantén el header (logo) visible por encima del menú móvil */
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 1100;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
}

/* Alineación vertical del contenido del header */
#header > .container {
  height: 100%;
  align-items: center;
}

/* Asegura que el nav y el toggle se alinean con el centro del header */
#header .navbar {
  display: flex;
  align-items: center;
}

#header .navbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

#header .logo {
  font-size: 28px;
  margin: 0;
  padding: 0;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 1px;
}

/* Logo image styling */
.logo img {height: 40px;}


#header .logo a {
  color: #fff;
}

/* El texto de marca usa gradiente; fallback a color de marca (no blanco) */
#header .logo .logo-text-link {
  display: inline-block;
  color: var(--primary-color);
  transform-origin: 50% 50%;
  transform-style: flat;
  backface-visibility: hidden;
  transition: transform 0.18s ease;
}

#header .logo .logo-text-link:hover {
  transform: scale(1.05);
}

@media (prefers-reduced-motion: reduce) {
  #header .logo .logo-text-link {
    transition: none;
  }
}

/* Modern logo styling */
.logo {
  display: inline-flex;
  align-items: center;
  padding: 8px;
  gap: 6px;
}
.logo-link {
  display: inline-flex;
  align-items: center;
}
.logo-mark {
  display: inline-flex;
  align-items: center;
  transform-origin: 50% 50%;
  transition: transform 0.2s ease;
}
.logo-img {
  height: 50px;
  display: block;
  transform-origin: 50% 50%;
  transform-style: flat;
  backface-visibility: hidden;
  /* El scale se aplica al wrapper (.logo-mark) para no interferir con la rotación */
  filter:
    drop-shadow(0 0 14px var(--logo-shadow-color))
    drop-shadow(0 0 6px color-mix(in srgb, var(--logo-shadow-color) 70%, transparent));
}

/* Hover del logo: ampliar + giro 360° (solo la imagen) */
#header .logo-link:hover .logo-mark {
  transform: scale(1.05);
}

#header .logo-link:hover .logo-img {
  animation: notypost-logo-spin 650ms ease-in-out 1;
}

@keyframes notypost-logo-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-mark {
    transition: none;
  }
}


.navbar ul {
  margin: 0;
  padding: 0;
  display: flex;
  list-style: none;
  align-items: center;
}

.navbar li {
  position: relative;
}

.navbar a, .navbar a:focus {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0 10px 30px;
  font-size: 20px;
  font-weight: 500;
  color: var(--text-color);
  white-space: nowrap;
  transition: 0.3s;
}

.navbar a:hover, .navbar .active, .navbar .active:focus, .navbar li:hover > a {
  color: var(--primary-color);
}

.mobile-nav-toggle {
  /* Hereda el estilo “glass” del .theme-toggle (mismo look & feel) */
  display: none;
  cursor: pointer;
  /* En móvil, asegúrate de que el botón quede por encima del overlay */
  position: relative;
  z-index: 1001;
}

/* Tamaño del icono bootstrap dentro del botón */
button.mobile-nav-toggle.bi {
  font-size: 18px;
}

/* En modo claro el header también es claro, así que el icono blanco no se ve */
@media (max-width: 991px) {
  html[data-theme="light"] #header .mobile-nav-toggle {
    color: var(--primary-color) !important;
  }
}

@media (max-width: 991px) {
  .mobile-nav-toggle {
    display: inline-flex;
  }
  .navbar ul {
    display: none;
  }
}

.navbar-mobile {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  overflow: visible;
  background: color-mix(in srgb, var(--bg-color) 92%, #000);
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 1000;
  opacity: 1;
  visibility: visible;
}

.navbar#navbar.navbar-mobile.navbar-mobile-closing {
  opacity: 0;
  visibility: hidden;
}

.navbar-mobile .mobile-nav-toggle {
  position: static;
  top: auto;
  right: auto;
}

/* En móvil, los controles (tema + menú) van juntos arriba a la derecha */
@media (max-width: 991px) {
  .navbar-mobile .navbar-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 1001;
  }
}

.navbar-mobile ul {
  display: block;
  position: absolute;
  /* Debajo del header */
  top: var(--nav-height);
  right: 0;
  left: 0;
  padding: 12px 0;
  border-radius: 0;
  background-color: var(--bg-color);
  height: auto;
  max-height: calc(100vh - var(--nav-height));
  overflow-y: auto;
  overflow-x: hidden;
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.2s ease;
  transform: translateY(-10px) scale(0.98);
  opacity: 0;
  border: 1px solid var(--glass-border);
}

/* Cuando el overlay está activo, el panel “entra” */
.navbar.navbar-mobile ul {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* Cuando está cerrando, el panel “sale” */
.navbar.navbar-mobile.navbar-mobile-closing ul {
  transform: translateY(-10px) scale(0.98);
  opacity: 0;
}

/* Respeta usuarios con reducción de movimiento */
@media (prefers-reduced-motion: reduce) {
  .navbar-mobile,
  .navbar-mobile ul,
  .navbar.navbar-mobile ul {
    transition: none !important;
    transform: none !important;
  }
}

.navbar-mobile a, .navbar-mobile a:focus {
  color: var(--text-color);
}

.navbar-mobile a:hover, .navbar-mobile .active, .navbar-mobile li:hover > a {
  color: var(--primary-color);
}

.navbar-mobile .getstarted, .navbar-mobile .getstarted:focus {
  margin: 20px;
}

.navbar-mobile .dropdown ul {
  position: static;
  margin: 10px 20px;
  padding: 10px 0;
  z-index: 99;
  opacity: 1;
  background: color-mix(in srgb, var(--bg-color) 85%, transparent);
  box-shadow: none;
}

/* Theme toggle button (header + mobile menu) */
.theme-toggle-item {
  display: flex;
  align-items: center;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: color-mix(in srgb, var(--bg-color) 60%, transparent);
  color: var(--text-color);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);

  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  background: color-mix(in srgb, var(--bg-color) 50%, transparent);
}

.theme-toggle:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary-color) 35%, transparent);
}

.theme-toggle i {
  font-size: 18px;
  line-height: 0;
}

/* El botón de menú (mobile) comparte estilo .theme-toggle pero NO debe verse en escritorio */
.theme-toggle.mobile-nav-toggle {
  display: none;
}

@media (max-width: 991px) {
  .theme-toggle.mobile-nav-toggle {
    display: inline-flex;
  }
}

/* Show one icon depending on theme */
html[data-theme="light"] .theme-toggle [data-theme-icon-dark] { display: none; }
html:not([data-theme="light"]) .theme-toggle [data-theme-icon-light] { display: none; }

.navbar-mobile .dropdown ul li {
  min-width: 200px;
}

.navbar-mobile .dropdown ul a {
  padding: 10px 20px;
  line-height: 1.25;
}

.navbar-mobile .dropdown ul a i {
  font-size: 12px;
}

.navbar-mobile .dropdown ul a:hover, .navbar-mobile .dropdown ul .active:hover, .navbar-mobile .dropdown ul li:hover > a {
  color: var(--primary-color);
}

/* Contact / form theming helpers */
.contact .info,
.contact .info p,
.contact .info h4,
.contact .php-email-form label {
  color: var(--text-color);
}

.contact .section-title p {
  color: var(--text-muted);
}

.np-input {
  background: color-mix(in srgb, var(--bg-color) 65%, transparent);
  border: 1px solid var(--glass-border);
  color: var(--text-color);
}

.np-input:focus {
  background: color-mix(in srgb, var(--bg-color) 55%, transparent);
  border-color: color-mix(in srgb, var(--primary-color) 55%, var(--glass-border));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary-color) 18%, transparent);
  color: var(--text-color);
}

.np-input::placeholder {
  color: var(--text-muted);
}

/* Nota: el submenú en móvil se controla con .navbar .dropdown.active > ul */

/* Hero Section */
#hero {
  width: 100%;
  min-height: 100vh;
  background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.15), transparent 40%),
              radial-gradient(circle at bottom left, rgba(139, 92, 246, 0.15), transparent 40%);
  position: relative;
  padding-top: var(--nav-height);
  display: flex;
  align-items: center;
}

#hero h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

#hero h2 {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

/* Notification Hub Animation */
.hero-visual {
  position: relative;
  height: 500px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.center-hub {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  position: relative;
  z-index: 10;
  box-shadow: 0 0 50px rgba(59, 130, 246, 0.5);
  animation: pulse-core 3s infinite ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: white;
}

.orbit {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.orbit-1 { width: 250px; height: 250px; animation: spin 20s linear infinite; }
.orbit-2 { width: 400px; height: 400px; animation: spin-reverse 25s linear infinite; }
.orbit-3 { width: 550px; height: 550px; animation: spin 30s linear infinite; }

.notification-dot {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--accent-color);
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
}

.dot-1 { top: -20px; left: 50%; transform: translateX(-50%); }
.dot-2 { bottom: 30px; right: 20px; }
.dot-3 { top: 40px; left: 10px; }

@keyframes pulse-core {
  0% { transform: scale(1); box-shadow: 0 0 50px rgba(59, 130, 246, 0.5); }
  50% { transform: scale(1.1); box-shadow: 0 0 80px rgba(139, 92, 246, 0.6); }
  100% { transform: scale(1); box-shadow: 0 0 50px rgba(59, 130, 246, 0.5); }
}

@keyframes spin { 100% { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes spin-reverse { 100% { transform: translate(-50%, -50%) rotate(-360deg); } }

/* Features Section */
#features {
  padding: 100px 0;
  position: relative;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-title p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.feature-card {
  padding: 40px 30px;
  height: 100%;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;

  /* Ensure cards keep the glass look in both themes */
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

html[data-theme="light"] .feature-card {
  /* White with a soft blue tint (less saturated, more "airy") */
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(37, 99, 235, 0.05));
}

.feature-card:hover {
  transform: translateY(-10px);
  background: color-mix(in srgb, var(--glass-bg) 70%, rgba(255, 255, 255, 0.10));
  box-shadow: 0 20px 40px rgba(0,0,0,0.22);
}

html[data-theme="light"] .feature-card:hover {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(37, 99, 235, 0.08));
  box-shadow: 0 22px 50px rgba(2, 6, 23, 0.14);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  opacity: 0;
  transition: 0.3s;
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  font-size: 48px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Footer */
#footer {
  background: #0b1120;
  padding: 60px 0 30px 0;
  font-size: 14px;
  border-top: 1px solid var(--glass-border);
}

html[data-theme="light"] #footer {
  background: color-mix(in srgb, var(--bg-color) 88%, rgba(37, 99, 235, 0.06));
}

#footer h3 {
  font-size: 24px;
  margin-bottom: 20px;
  color: white;
}

#footer p {
  color: var(--text-muted);
}

#footer .footer-bottom {
  padding-top: 30px;
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  color: var(--text-muted);
}

.footer-recunpost {
  color: var(--primary-color);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--primary-color) 40%, transparent);
}

.footer-recunpost:hover {
  color: var(--accent-color);
  border-bottom-color: color-mix(in srgb, var(--accent-color) 55%, transparent);
}

/* Dropdown Menus - Fix */
.navbar .dropdown {
  position: relative;
}

.navbar .dropdown ul {
  display: block;
  position: absolute;
  left: 14px;
  top: calc(100% + 30px);
  margin: 0;
  padding: 10px 0;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  background: color-mix(in srgb, var(--bg-color) 85%, transparent);
  box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.18);
  transition: 0.3s;
  border-radius: 4px;
  border: 1px solid var(--glass-border);
}

.navbar .dropdown ul li {
  min-width: 200px;
}

.navbar .dropdown ul a {
  padding: 10px 20px;
  color: var(--text-color);
  text-transform: none;
  font-weight: 500;
}

.navbar .dropdown ul a:hover,
.navbar .dropdown ul .active:hover,
.navbar .dropdown ul li:hover > a {
  color: var(--primary-color);
  background: color-mix(in srgb, var(--bg-color) 80%, transparent);
}

.navbar .dropdown:hover > ul {
  opacity: 1;
  top: 100%;
  visibility: visible;
}

/* Mobile Dropdown Adjustments */
@media (max-width: 991px) {
  .navbar .dropdown ul {
    position: static;
    display: none;
    padding: 10px 20px;
    margin: 10px 20px;
  background: color-mix(in srgb, var(--bg-color) 85%, transparent);
    border: none;
    box-shadow: none;
    /* En móvil no dependas de hover (evita que se oculte al soltar el dedo) */
    opacity: 1;
    visibility: visible;
    top: auto;
  }
  .navbar .dropdown:hover > ul {
      display: none; /* En móvil no usamos hover para desplegar */
      opacity: 1;
      visibility: visible;
  }
  .navbar .dropdown.active > ul {
      display: block;
      opacity: 1;
      visibility: visible;
  }
  .navbar .dropdown .dropdown ul {
    left: -90%;
  }
  .navbar .dropdown .dropdown:hover > ul {
    left: -100%;
  }
}