/* ==========================================================================
   NEXTIA LANDING - CUSTOM STYLES
   ========================================================================== */

/* ==========================================================================
   CSS VARIABLES - EXPANDIDAS
   ========================================================================== */

:root {
  --color-primary-blue: 0, 153, 204;
  --color-primary-violet: 197, 0, 245;
  --color-primary-cyan: 0, 255, 224;

  /* Transiciones estándar */
  --transition-standard: 0.25s ease;
  --transition-fast: 0.18s ease;
  --transition-slow: 0.5s ease;
}

/* ==========================================================================
   BASE STYLES
   ========================================================================== */

/* Scroll suave manejado por librería Smooth Scroll */
section {
  scroll-margin-top: 60px;
}

/* ==========================================================================
   CUSTOM BREAKPOINTS
   ========================================================================== */

/* Custom breakpoint for navbar optimization - Ajustado para cubrir 867px-868px específicos */
@media (min-width: 767px) and (max-width: 920px) {
  .md-lg\:block {
    display: block;
  }

  .md-lg\:hidden {
    display: none;
  }

  .nav-link {
    font-size: 0.875rem;
    padding: 0.375rem 0.5rem;
    white-space: nowrap;
    /* Prevenir que el texto se divida en líneas */
  }

  #nav-indicator {
    transition: transform 0.3s ease, width 0.3s ease;
  }

  /* Asegurar que el navbar no se desborde */
  #nav-wrapper {
    max-width: calc(100vw - 200px);
    overflow: hidden;
  }

  /* Ajuste específico para "Agendar reunión" */
  .nav-link.font-semibold {
    font-size: 0.8rem;
    padding: 0.375rem 0.4rem;
  }
}

/* Breakpoint específico para los píxeles problemáticos 867px-868px */
@media (min-width: 867px) and (max-width: 868px) {
  .nav-link {
    font-size: 0.8rem !important;
    padding: 0.3rem 0.4rem !important;
    white-space: nowrap !important;
  }

  .nav-link.font-semibold {
    font-size: 0.75rem !important;
    padding: 0.3rem 0.35rem !important;
  }

  #nav-wrapper {
    max-width: calc(100vw - 180px) !important;
  }
}

/* ==========================================================================
   ANIMATIONS & KEYFRAMES
   ========================================================================== */

@keyframes gradientFlow {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

@keyframes pulse-glow {

  0%,
  100% {
    filter: brightness(1) drop-shadow(0 0 10px rgba(0, 207, 255, 0.3));
  }

  50% {
    filter: brightness(1.2) drop-shadow(0 0 20px rgba(0, 207, 255, 0.6));
  }
}

@keyframes fadeInDown {
  0% {
    opacity: 0;
    transform: translateY(-90px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(90px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  0% {
    opacity: 0;
    transform: translateX(-90px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  0% {
    opacity: 0;
    transform: translateX(90px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInTopLeft {
  0% {
    opacity: 0;
    transform: translate(-60px, -60px) scale(0.8);
  }

  100% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
}

@keyframes fadeInTopRight {
  0% {
    opacity: 0;
    transform: translate(60px, -60px) scale(0.8);
  }

  100% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
}

@keyframes fadeInBottomLeft {
  0% {
    opacity: 0;
    transform: translate(-60px, 60px) scale(0.8);
  }

  100% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
}

@keyframes fadeInBottomRight {
  0% {
    opacity: 0;
    transform: translate(60px, 60px) scale(0.8);
  }

  100% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* Animation utility classes */
.animate-gradientFlow {
  animation: gradientFlow 4s ease infinite;
  background-size: 400% 400%;
}

.bg-cta-animated {
  background: linear-gradient(135deg, 
    rgba(0, 207, 255, 0.12) 0%, 
    rgba(197, 0, 245, 0.08) 25%, 
    rgba(0, 255, 224, 0.15) 50%, 
    rgba(0, 207, 255, 0.10) 75%, 
    rgba(197, 0, 245, 0.06) 100%);
  background-size: 200% 200%;
  animation: gradientFlow 4s ease infinite;
}

.dark .bg-cta-animated {
  background: linear-gradient(15deg, 
    rgba(0, 207, 255, 0.06) 0%, 
    rgba(197, 0, 245, 0.04) 25%, 
    rgba(0, 255, 224, 0.08) 50%, 
    rgba(0, 207, 255, 0.05) 75%, 
    rgba(197, 0, 245, 0.03) 100%);
}

.hover\:pulse-glow:hover {
  animation: pulse-glow 3s ease-in-out infinite;
}

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

.animate-float {
  animation: float 4s ease-in-out infinite;
}

.animation-delay-1500 {
  animation-delay: 1s;
}

.fade-in-down {
  animation: fadeInDown 4.5s forwards;
  display: inline-block;
  opacity: 0;
}

/* Clases para animación de letras con direcciones aleatorias */
.letter-stream {
  display: inline-block;
  position: relative;
  opacity: 0;
  animation-duration: 3.8s;
  animation-fill-mode: forwards;
  animation-timing-function: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  /* Aplicar directamente el efecto gradient-text */
  background: linear-gradient(120deg, #00CFFF 0%, #C500F5 50%, #00FFE0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 205%;
  animation-name: fadeInDown, gradientFlow;
  animation-duration: 4s, 8s;
  animation-timing-function: cubic-bezier(0.68, -0.55, 0.265, 1.55), ease;
  animation-iteration-count: 1, infinite;
  animation-fill-mode: forwards, none;
  color: #00CFFF;
  /* Fallback */
  transform-origin: center center;
  vertical-align: baseline;
}

/* Clase específica para letras con descendientes como g, j, p, q, y */
.letter-stream.letter-descender {
  display: inline;
  vertical-align: baseline;
  line-height: 1;
}

.letter-animate-down {
  animation-name: fadeInDown, gradientFlow;
}

.letter-animate-up {
  animation-name: fadeInUp, gradientFlow;
}

.letter-animate-left {
  animation-name: fadeInLeft, gradientFlow;
}

.letter-animate-right {
  animation-name: fadeInRight, gradientFlow;
}

.letter-animate-top-left {
  animation-name: fadeInTopLeft, gradientFlow;
}

.letter-animate-top-right {
  animation-name: fadeInTopRight, gradientFlow;
}

.letter-animate-bottom-left {
  animation-name: fadeInBottomLeft, gradientFlow;
}

.letter-animate-bottom-right {
  animation-name: fadeInBottomRight, gradientFlow;
}

/* ==========================================================================
   TEXT GRADIENTS & EFFECTS
   ========================================================================== */

.gradient-text {
  background: linear-gradient(90deg, #00CFFF 0%, #C500F5 50%, #00FFE0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: gradientFlow 6s ease infinite;
  /* Fallback para navegadores que no soportan background-clip */
  color: #00CFFF;
}

.text-gradient-primary {
  background: linear-gradient(135deg, #00d4ff, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.gradient-text-animated {
  background: linear-gradient(90deg, #00CFFF, #C500F5, #00FFE0);
  background-size: 300% 300%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: gradientFlow 9s ease infinite;
}

/* ==========================================================================
   BACKGROUND GRADIENTS
   ========================================================================== */

.gradient-bg {
  background: linear-gradient(135deg, #00CFFF 0%, #C500F5 50%, #00FFE0 100%);
}

.cta-background {
  background: linear-gradient(135deg, 
    rgb(0, 208, 255) 0%, 
    rgb(196, 0, 245) 30%, 
    rgb(0, 255, 225) 70%, 
    rgb(0, 208, 255) 100%);
  backdrop-filter: blur(12px);
  position: relative;
}

.dark .cta-background {
  background: linear-gradient(135deg, 
    rgba(0, 207, 255, 0.08) 0%, 
    rgba(197, 0, 245, 0.05) 30%, 
    rgba(0, 255, 224, 0.06) 70%, 
    rgba(0, 207, 255, 0.04) 100%);
}

.bg-grid-pattern {
  background-image:
    linear-gradient(rgba(0, 207, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 207, 255, 0.05) 1px, transparent 1px);
  background-size: 30px 30px;
}

/* Grid pattern específico para CTA con mayor visibilidad */
.bg-grid-pattern-cta {
  position: relative;
  background: linear-gradient(45deg, #00d0ff4d 0%, #8a5cf646 25%, #00d0ff57 50%, #8a5cf65d 75%, rgba(53, 72, 77, 0.425) 100%);
  background-size: 400% 400%;
  animation: ctaGradientFlow 6s ease infinite;
}

.bg-grid-pattern-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
  z-index: 5;
}

@keyframes ctaGradientFlow {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Título CTA con mejor contraste y legibilidad */
.cta-title-enhanced {
  background: linear-gradient(135deg, #ffffff 0%, #00FFE0 50%, #ffffff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
  position: relative;
}

.cta-title-enhanced::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #ffffff 0%, #00FFE0 50%, #ffffff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  z-index: -1;
  filter: blur(2px);
}

/* ==========================================================================
   BORDER EFFECTS - SIMPLIFICADOS
   ========================================================================== */

.card-container {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 1rem;
  padding: 2rem;
  position: relative;
  backdrop-filter: blur(12px);
  box-shadow:
    0 0 20px rgba(0, 207, 255, 0.15),
    0 0 40px rgba(197, 0, 245, 0.1),
    inset 0 0 1px rgba(0, 255, 224, 0.05);
  transition: all 0.5s ease-in-out;
}

.dark .card-container {
  background: rgba(0, 0, 0, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.card-container:hover {
  transform: scale(1.02) translateZ(0);
}

.dark .card-container:hover {
  background: rgba(0, 0, 0, 0.98);
}

.border-glow {
  position: relative;
  border-radius: 0px !important; /* esquinas cuadradas - forzar sobre Tailwind */
  overflow: hidden;
  z-index: 0;
}

.border-glow::before {
  content: "";
  position: absolute;
  inset: 2px; /* margen interno para crear el efecto glowing */
  border-radius: inherit; /* 👈 esto asegura que el borde herede el border-radius del padre */
  background: linear-gradient(90deg,
      rgb(0, 255, 225),
      rgba(197, 0, 245, 0.2),
      rgba(0, 207, 255, 0.2));
  background-size: 10% 10%;
  animation: gradientFlow 8s ease infinite;

  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;

  pointer-events: none;
  z-index: -1;
  opacity: 0.8;
  filter: blur(0.5px);
  transition:
    inset var(--transition-standard),
    background var(--transition-standard),
    transform var(--transition-fast),
    opacity var(--transition-standard);
}



@keyframes glowPulse {

  0%,
  100% {
    box-shadow:
      0 0 20px rgb(0, 208, 255),
      0 0 40px rgb(196, 0, 245),
      inset 0 0 30px rgb(0, 255, 225);
  }

  50% {
    box-shadow:
      0 0 25px rgba(0, 207, 255, 0.2),
      0 0 50px rgba(197, 0, 245, 0.15),
      inset 0 0 40px rgba(0, 255, 224, 0.08);
  }
}

@keyframes borderGlow {
  0% {
    border-image: linear-gradient(90deg,
        rgb(0, 208, 255),
        rgb(196, 0, 245),
        rgb(0, 255, 225)) 1;
  }

  50% {
    border-image: linear-gradient(180deg,
        rgb(196, 0, 245),
        rgb(0, 255, 225),
        rgb(0, 208, 255)) 1;
  }

  100% {
    border-image: linear-gradient(270deg,
        rgb(0, 255, 225),
        rgb(8, 74, 88),
        rgb(196, 0, 245)) 1;
  }
}

.border-glow {
  position: relative;
  z-index: 0;
  overflow: hidden;
  border-radius: 0px !important; /* esquinas cuadradas - forzar sobre Tailwind */
}

.border-glow.rounded-2xl {
  border-radius: 1rem;
}

.border-glow.rounded-xl {
  border-radius: 0.75rem;
}

.border-glow.rounded {
  border-radius: 1rem;
}

/* Reglas específicas para inputs y form elements */
input.border-glow,
select.border-glow,
textarea.border-glow {
  border-radius: 0.5rem !important; /* rounded-lg */
}

.border-glow-cta {
  position: relative;
  z-index: 0;
  overflow: hidden;
  background: linear-gradient(90deg, 
    rgba(0, 208, 255, 0.452) 0%, 
    rgba(196, 0, 245, 0.541) 30%, 
    rgba(0, 255, 225, 0.5) 70%, 
    rgba(0, 208, 255, 0.479) 100%);
  background-size: 150% 150%;
  animation: gradientFlow 4s ease infinite;
}

.dark .border-glow-cta {
  background: linear-gradient(90deg, 
    rgba(0, 208, 255, 0.541) 0%, 
    rgba(196, 0, 245, 0.575) 30%, 
    rgba(0, 255, 225, 0.582) 70%, 
    rgba(0, 208, 255, 0.562) 100%);
  background-size: 150% 150%;
  animation: gradientFlow 4s ease infinite;
}

/* Bordes eliminados del CTA */

/* ==========================================================================
   NAVIGATION
   ========================================================================== */

.glass-header {
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.nav-link {
  position: relative;
  z-index: 10;
  padding: 0.5rem 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  color: #111827; /* Color más oscuro para mejor contraste */
  background-color: transparent !important;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8); /* Sombra blanca para mejor legibilidad */
}

.dark .nav-link {
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8); /* Sombra negra en tema oscuro */
}

.nav-link:hover {
  font-weight: 700;
  color: #0f172a; /* Color muy oscuro en hover para modo claro */
  transform: translateY(-1px);
}

.dark .nav-link:hover {
  color: #00FFE0; /* Color cyan en hover para tema oscuro */
}

.nav-link.mobile-active {
  background: linear-gradient(90deg, #00FFE0, #C500F5, #00FFE0);
  background-size: 400% 400%;
  animation: gradientFlow 10s ease infinite;
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.6);
  color: white;
  font-weight: 600;
}

/* Mejoras de contraste para modo claro */
.nav-active {
  background-color: #00FFE0;
  color: #0f172a; /* Color más oscuro para mejor contraste */
  border-radius: 9999px;
  padding: 0.5rem 1rem;
  font-weight: 700;
  transition: all 0.4s ease;
}

.dark .nav-active {
  color: white;
}

.nav-active:hover {
  box-shadow: inset 0 0 6px rgba(0, 255, 255, 0.2);
  transform: translateY(-1px);
}

#nav-indicator {
  position: absolute;
  height: 100%;
  background-color: #00FFE0;
  border-radius: 9999px;
  transition: transform 0.4s ease, width 0.4s ease, opacity 0.3s ease;
  z-index: 1;
  pointer-events: none;
  box-shadow:
    0 0 10px rgba(0, 255, 224, 0.5),
    0 0 10px rgba(197, 0, 245, 0.5);
  opacity: 1;
}

/* ==========================================================================
   BOTONES AGENDAR - CLASES INDEPENDIENTES
   ========================================================================== */

/* Botón agendar en navbar - BASE */
.btn-agendar-navbar {
  /* Estados base - MODO CLARO */
  background-color: #ffffff !important;
  color: #1f2937 !important;
  
  /* Propiedades estructurales */
  position: relative;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  outline: none;
  cursor: pointer;
  overflow: hidden;
  font-weight: 700;
  border-radius: 9999px;
  border: 2px solid #00FFE0;
  box-shadow: 0 0 12px 0 rgba(0, 255, 224, 0.25), 0 0 4px 0 rgba(197, 0, 245, 0.18);
  transition:
    box-shadow var(--transition-standard),
    border-color var(--transition-standard),
    transform var(--transition-fast),
    background-color var(--transition-standard),
    color var(--transition-standard);
  padding: 0.5rem 1.5rem;
  font-size: 0.875rem;
  width: auto;
  text-align: center;
  text-decoration: none;
}

/* Asegurar que los spans dentro del botón sean visibles */
.btn-agendar-navbar span {
  color: inherit !important;
  opacity: 1 !important;
}

/* Botón agendar en navbar - HOVER modo claro */
.btn-agendar-navbar:hover {
  background-color: #f8fafc !important;
  color: #0f172a !important;
  box-shadow: 0 0 32px 0 rgba(0, 255, 224, 0.45), 0 0 12px 0 rgba(197, 0, 245, 0.28);
  border-color: #C500F5;
  transform: scale(1.05);
}

/* Asegurar que los spans mantengan el color en hover */
.btn-agendar-navbar:hover span {
  color: inherit !important;
}

/* Botón agendar en navbar - MODO OSCURO idle */
.dark .btn-agendar-navbar {
  background-color: #1e293b !important;
  color: #ffffff !important; /* Texto blanco para mejor contraste */
  border-color: #00FFE0;
}

.dark .btn-agendar-navbar span {
  color: #ffffff !important; /* Spans blancos visibles */
}

/* Botón agendar en navbar - MODO OSCURO hover */
.dark .btn-agendar-navbar:hover {
  background-color: #0f172a !important;
  color: #00FFE0 !important; /* Color cyan para mejor contraste en hover */
  box-shadow: 0 0 20px rgba(0, 207, 255, 0.3),
              0 0 10px rgba(0, 255, 224, 0.2),
              0 0 10px rgba(197, 0, 245, 0.2);
}

/* Botón agendar en secciones - BASE */
.btn-agendar-section {
  /* Estados base */
  background-color: #ffffff;
  /* Modo claro idle */
  color: #1f2937 !important;
  /* Color del texto visible en modo claro */

  /* Propiedades estructurales */
  position: relative;
  z-index: 10;
  outline: none;
  cursor: pointer;
  overflow: hidden;
  font-weight: 700;
  border-radius: 9999px;
  border: 2px solid #00FFE0;
  box-shadow: 0 0 12px 0 rgba(0, 255, 224, 0.25), 0 0 4px 0 rgba(197, 0, 245, 0.18);
  transition:
    box-shadow var(--transition-standard),
    border-color var(--transition-standard),
    transform var(--transition-fast),
    background-color var(--transition-standard);
  padding: 0.75rem 2rem;
  font-size: 1rem;
  width: 100%;
  text-align: center;
}

/* Botón agendar en secciones - HOVER modo claro */
.btn-agendar-section:hover {
  background-color: #f8fafc;
  /* Modo claro hover */
  color: #0f172a;
  /* Color más oscuro en hover para mejor contraste */
  box-shadow: 0 0 32px 0 rgba(0, 255, 224, 0.45), 0 0 12px 0 rgba(197, 0, 245, 0.28);
  border-color: #C500F5;
  transform: scale(1.05);
}

/* Botón agendar en secciones - MODO OSCURO idle */
.dark .btn-agendar-section {
  background-color: #1e293b;
  color: #ffffff !important; /* Texto blanco para mejor contraste */
  border-color: #00FFE0;
}

/* Botón agendar en secciones - MODO OSCURO hover */
.dark .btn-agendar-section:hover {
  background-color: #0f172a;
  color: #00FFE0 !important; /* Color cyan para mejor contraste en hover */
  box-shadow: 0 0 20px rgba(0, 207, 255, 0.3),
              0 0 10px rgba(0, 255, 224, 0.2),
              0 0 10px rgba(197, 0, 245, 0.2);
}

/* Pseudo-elemento para gradiente de texto - Solo en modo oscuro */
.dark .btn-agendar-navbar[data-text]::before,
.dark .btn-agendar-section[data-text]::before {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, #00CFFF 0%, #C500F5 50%, #00FFE0 100%);
  background-size: 200% 200%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: gradientFlow 6s ease infinite;
  pointer-events: none;
  font-weight: 700;
  font-size: inherit;
}

/* Efectos hover en pseudo-elemento - Solo en modo oscuro */
.dark .btn-agendar-navbar:hover::before,
.dark .btn-agendar-section:hover::before {
  background-position: 100% 0;
}

/* Fallback para navegadores sin soporte */
@supports not (-webkit-background-clip: text) {

  .btn-agendar-navbar[data-text],
  .btn-agendar-section[data-text] {
    color: #00CFFF;
  }

  .btn-agendar-navbar[data-text]::before,
  .btn-agendar-section[data-text]::before {
    display: none;
  }
}

/* Responsive para navbar */
@media (min-width: 767px) and (max-width: 920px) {
  .btn-agendar-navbar {
    padding: 0.375rem 0.8rem;
    font-size: 0.8rem;
  }
}

@media (min-width: 867px) and (max-width: 868px) {
  .btn-agendar-navbar {
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
  }
}

/* Estados activos para navegación */
.btn-agendar-navbar.nav-active,
.btn-agendar-section.nav-active {
  background-color: #00FFE0 !important;
  color: #0f172a !important;
  border-color: #00FFE0 !important;
  box-shadow: 0 0 20px rgba(0, 255, 224, 0.5) !important;
}

.dark .btn-agendar-navbar.nav-active,
.dark .btn-agendar-section.nav-active {
  background-color: #00FFE0 !important;
  color: #0f172a !important;
  border-color: #00FFE0 !important;
}

/* ==========================================================================
   RESPONSIVE UTILITIES - CONSOLIDADAS
   ========================================================================== */

@media (max-width: 768px) {
  html {
    scroll-behavior: smooth;
    overflow-x: hidden;
  }

  .container {
    overflow: hidden;
  }

  .btn-primary {
    font-size: 1rem;
    padding: 0.875rem 1.5rem;
  }

  .card-container {
    padding: 1.5rem;
  }

  .icon-container {
    width: 3rem;
    height: 3rem;
  }

  .nav-active {
    margin: 0;
    border-radius: 9999px !important;
    padding: 0.75rem 1.75rem !important;
    background: linear-gradient(90deg, #00FFE0, #C500F5);
    box-shadow:
      0 0 10px rgba(0, 255, 224, 0.5),
      0 0 10px rgba(197, 0, 245, 0.5);
    color: white !important;
  }
}

/* Eliminada la duplicación de .nav-active */

/* ==========================================================================
   TÍTULOS CLICABLES - CONSOLIDADAS
   ========================================================================== */

.clickable-title,
h2.cursor-pointer,
.gradient-text.cursor-pointer {
  cursor: pointer;
  user-select: none;
  transition: opacity var(--transition-standard), transform 0.2s ease;
}

.clickable-title:hover,
h2.cursor-pointer:hover {
  opacity: 0.8;
  transform: translateY(-1px);
}

.gradient-text.cursor-pointer:hover {
  transform: translateY(-2px);
}

.gradient-text.cursor-pointer .letter-stream {
  cursor: pointer;
}

/* ==========================================================================
   TRANSICIONES ESTANDARIZADAS
   ========================================================================== */

.service-card {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color var(--transition-standard);
}

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

.btn-primary {
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-weight: 500;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out;
  outline: none;
  width: 100%;
}

.btn-primary:focus {
  box-shadow: 0 0 0 2px #00CFFF;
}

.btn-primary:hover {
  transform: scale(1.02);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-gradient {
  background: linear-gradient(135deg, #00CFFF 0%, #C500F5 50%, #00FFE0 100%);
  color: white;
  font-weight: 500;
  box-shadow: 0 10px 15px -3px rgba(0, 207, 255, 0.3);
  transition: opacity 0.3s ease;
}

.btn-gradient:hover {
  opacity: 0.9;
}

/* ==========================================================================
   ICON CONTAINERS
   ========================================================================== */

.icon-container {
  width: 4rem;
  height: 4rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  box-shadow:
    0 0 5px rgba(0, 255, 224, 0.4),
    0 0 5px rgba(197, 0, 245, 0.3);
}

/* ==========================================================================
   COLOR PALETTE
   ========================================================================== */

.bg-primary-blue {
  background-color: rgb(var(--color-primary-blue));
}

.bg-primary-violet {
  background-color: rgb(var(--color-primary-violet));
}

.bg-primary-cyan {
  background-color: rgb(var(--color-primary-cyan));
}

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

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

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

.bg-dark-800 {
  background-color: #000000;
}

.bg-dark-900 {
  background-color: #000000;
}

.text-light-plasma {
  color: #f8fafc;
}

/* Dark mode overrides */
.dark .bg-gray-50 {
  background-color: #000000;
}

.dark .bg-white {
  background-color: #000000;
}

.dark input,
.dark textarea,
.dark select {
  background-color: rgba(0, 0, 0, 0.85) !important;
  border-color: rgba(255, 255, 255, 0.1);
}

.dark form {
  background-color: rgba(0, 0, 0, 0.85) !important;
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

.text-muted {
  color: #374151;
}

.dark .text-muted {
  color: rgba(240, 249, 255, 0.8);
}

.text-heading {
  color: #1f2937;
}

.dark .text-heading {
  color: #F0F9FF;
}

.transition-slow {
  transition: all 0.5s ease;
}

.shadow-cyan {
  box-shadow: 0 0 2px rgba(0, 255, 255, 0.6);
}

.hover-glow:hover {
  filter: drop-shadow(0 0 10px rgba(0, 207, 255, 0.8));
  transition: filter 0.3s ease;
}

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

@media (max-width: 768px) {
  html {
    scroll-behavior: smooth;
    overflow-x: hidden;
  }

  .container {
    overflow: hidden;
  }

  .btn-primary {
    font-size: 1rem;
    padding: 0.875rem 1.5rem;
  }

  .card-container {
    padding: 1.5rem;
  }

  .icon-container {
    width: 3rem;
    height: 3rem;
  }

  .nav-active {
    margin: 0;
    border-radius: 9999px !important;
    padding: 0.75rem 1.75rem !important;
    background: linear-gradient(90deg, #00FFE0, #C500F5);
    box-shadow:
      0 0 10px rgba(0, 255, 224, 0.5),
      0 0 10px rgba(197, 0, 245, 0.5);
    color: white !important;
  }
}

