.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

html {
  scroll-behavior: smooth;
}

/* Evita que el nav fijo tape el título al navegar con anclas */
section[id],
header[id] {
  scroll-margin-top: 96px;
}

.nav-link {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 0.5rem;
  transition: color 200ms ease, background-color 200ms ease, transform 150ms ease,
    border-color 200ms ease;
  border-bottom: 2px solid transparent;
  padding-bottom: 0.25rem;
  color: rgb(71 85 105); /* slate-600 */
}

.nav-link:hover {
  color: #0072b1;
  background: rgba(241, 245, 249, 0.6); /* slate-50 */
}

.nav-link:active {
  transform: scale(0.98);
}

.nav-link.is-active {
  color: #0072b1;
  border-bottom-color: #0072b1;
  background: transparent;
}

/* Menú móvil: cerrado por defecto (Tailwind `flex` anulaba el atributo hidden) */
.nav-mobile-panel {
  display: none !important;
}

.nav-mobile-panel.is-open {
  display: flex !important;
  flex-direction: column;
  gap: 0;
}

@media (min-width: 768px) {
  .nav-mobile-panel,
  .nav-mobile-panel.is-open {
    display: none !important;
  }
}

/* HERO slider */
.hero-slider {
  position: relative;
  height: 100%;
  width: 100%;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1100ms ease-in-out;
  will-change: opacity, transform;
  background-size: cover;
  background-position: center;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 29, 50, 0.7), rgba(0, 29, 50, 0.4));
}

.hero-slide:not(.is-active) {
  animation: none;
}

.hero-slide.is-active {
  opacity: 1;
  animation: hero-kenburns 8200ms ease-out forwards;
}

@keyframes hero-kenburns {
  from {
    transform: scale(1.04);
  }
  to {
    transform: scale(1.17);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hero-slide {
    transition: none;
    transform: none;
  }
  .hero-slide.is-active {
    animation: none;
  }
}

/* WhatsApp FAB CTA (fixed explícito: site.css carga después de tailwind.css) */
.whatsapp-fab {
  position: fixed;
  right: 2rem;
  bottom: 2rem;
  z-index: 100;
}

.whatsapp-fab::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 9999px;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(37, 211, 102, 0.55) 0%,
    rgba(37, 211, 102, 0.0) 60%
  );
  filter: blur(2px);
  opacity: 0.9;
  animation: whatsapp-glow 1600ms ease-in-out infinite;
  z-index: -1;
}

@keyframes whatsapp-glow {
  0% {
    transform: scale(0.9);
    opacity: 0.65;
  }
  55% {
    transform: scale(1.15);
    opacity: 1;
  }
  100% {
    transform: scale(0.9);
    opacity: 0.65;
  }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-fab::before {
    animation: none;
  }
}

/* Formulario de contacto: éxito + bloqueo */
.contact-form-block.is-sent .contact-form-inner {
  filter: blur(7px);
  pointer-events: none;
  user-select: none;
}

.contact-form-success-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 0.75rem;
}

.contact-form-success-overlay[hidden] {
  display: none !important;
}

