/* ===== Clínica Dental Azorín · Estilos personalizados ===== */

html { scroll-behavior: smooth; }

body {
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: #E8C8B5;
  color: #0F3D5E;
}

/* Header sticky con efecto al hacer scroll */
#site-header.scrolled {
  background: rgba(253, 251, 247, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid #E5E0D8;
  box-shadow: 0 2px 20px rgba(15, 61, 94, 0.04);
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: #4B5563;
  transition: color 0.2s;
  position: relative;
}
.nav-link:hover { color: #0F3D5E; }
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  height: 1px;
  width: 0;
  background: #0F3D5E;
  transition: width 0.3s;
}
.nav-link:hover::after { width: 100%; }

/* Animación fade-up para el hero */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) both; }
.fade-up-delay-1 { animation-delay: 0.1s; }
.fade-up-delay-2 { animation-delay: 0.25s; }

/* Subrayado decorativo del hero */
.accent-underline {
  background-image: linear-gradient(transparent 65%, #E8C8B5 65%);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  padding: 0 0.15em;
}

/* Marquee de tratamientos */
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee-track { animation: marquee 40s linear infinite; }

/* Pulse del botón de WhatsApp */
@keyframes whatsappPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70%      { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0); }
}
.whatsapp-pulse { animation: whatsappPulse 2.4s infinite; }

/* Tabs de servicios */
.service-tab {
  padding: 0.75rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  background: #fff;
  color: #0F3D5E;
  border: 1px solid #E5E0D8;
  cursor: pointer;
  transition: all 0.2s;
}
@media (min-width: 768px) {
  .service-tab { font-size: 1rem; }
}
.service-tab:hover { border-color: #0F3D5E; }
.service-tab.is-active {
  background: #0F3D5E;
  color: #fff;
  border-color: #0F3D5E;
}

/* Mostrar el panel activo */
.service-panel { display: none; }
.service-panel.is-active { display: grid; }
