@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,300..800;1,6..12,300..800&family=Poppins:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&display=swap');

:root {
  /* Paleta Oficial Dentina */
  --color-verde-dentina: #1F9084;
  --color-verde-profundo: #176F68;
  --color-verde-suave: #5BADA3;
  --color-menta-claro: #A9D2CD;
  --color-menta-fondo: #F0F8F7;
  --color-blanco-clinico: #FDFEFE;
  --color-gris-profesional: #757675;
  --color-gris-oscuro: #3E4A49;
  --color-gris-claro: #F4F6F6;
  --color-borde: #E2EAEA;
  
  /* Sombras y elevación */
  --shadow-sm: 0 2px 8px rgba(31, 144, 132, 0.06);
  --shadow-md: 0 8px 24px rgba(23, 111, 104, 0.08);
  --shadow-lg: 0 16px 36px rgba(23, 111, 104, 0.12);
  --shadow-hover: 0 20px 40px rgba(31, 144, 132, 0.16);

  /* Tipografías */
  --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Reset y base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-blanco-clinico);
  color: var(--color-gris-oscuro);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-gris-oscuro);
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.25s ease;
}

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

/* Tipografía de marca y acentos */
.font-heading {
  font-family: var(--font-heading);
}

.font-body {
  font-family: var(--font-body);
}

.text-dentina {
  color: var(--color-verde-dentina);
}

.text-verde-profundo {
  color: var(--color-verde-profundo);
}

.text-gris-profesional {
  color: var(--color-gris-profesional);
}

.bg-dentina {
  background-color: var(--color-verde-dentina);
}

.bg-verde-profundo {
  background-color: var(--color-verde-profundo);
}

.bg-menta-claro {
  background-color: var(--color-menta-fondo);
}

/* Botones con estilo del Brand Guide */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.85rem;
  border-radius: 9999px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 2px solid transparent;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(31, 144, 132, 0.18);
}

.btn-primary {
  background-color: var(--color-verde-dentina);
  color: #ffffff;
  border-color: var(--color-verde-dentina);
}

.btn-primary:hover {
  background-color: var(--color-verde-profundo);
  border-color: var(--color-verde-profundo);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(23, 111, 104, 0.28);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-verde-dentina);
  border-color: var(--color-verde-dentina);
  box-shadow: none;
}

.btn-outline:hover {
  background-color: var(--color-verde-dentina);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(31, 144, 132, 0.2);
}

.btn-whatsapp {
  background-color: #25D366;
  color: #ffffff;
  border-color: #25D366;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp:hover {
  background-color: #1eb954;
  border-color: #1eb954;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.35);
}

.btn-sm {
  padding: 0.55rem 1.25rem;
  font-size: 0.85rem;
}

/* Barra superior de anuncios y ubicación */
.top-bar {
  background-color: var(--color-verde-profundo);
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
}

.top-bar-container {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.top-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.top-bar-item a:hover {
  color: var(--color-menta-claro);
}

/* Header y Navegación */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(253, 254, 254, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-borde);
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-gris-oscuro);
  position: relative;
  padding: 0.4rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-verde-dentina);
  transition: width 0.25s ease;
  border-radius: 2px;
}

.nav-link:hover, .nav-link.active {
  color: var(--color-verde-dentina);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Menú móvil */
.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--color-gris-oscuro);
}

.mobile-drawer {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-drawer.open {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer-content {
  position: absolute;
  top: 0;
  right: 0;
  width: 85%;
  max-width: 340px;
  height: 100%;
  background-color: var(--color-blanco-clinico);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 24px rgba(0,0,0,0.15);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-drawer.open .mobile-drawer-content {
  transform: translateX(0);
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2rem;
}

.mobile-nav-links .nav-link {
  font-size: 1.15rem;
  font-weight: 600;
}

/* Destellos decorativos de la marca */
.sparkle {
  color: var(--color-verde-dentina);
  display: inline-block;
  user-select: none;
}

.sparkle-group {
  display: inline-flex;
  gap: 4px;
  color: var(--color-verde-suave);
  align-items: center;
}

/* Badges y chips */
.badge-dentina {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background-color: var(--color-menta-fondo);
  color: var(--color-verde-profundo);
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(31, 144, 132, 0.2);
}

/* Tarjetas y Contenedores */
.card {
  background-color: #ffffff;
  border-radius: 1.25rem;
  border: 1px solid var(--color-borde);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(31, 144, 132, 0.3);
}

/* Sección de Servicios */
.service-icon-wrapper {
  width: 54px;
  height: 54px;
  border-radius: 1rem;
  background-color: var(--color-menta-fondo);
  color: var(--color-verde-dentina);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(31, 144, 132, 0.15);
  transition: all 0.3s ease;
}

.card:hover .service-icon-wrapper {
  background-color: var(--color-verde-dentina);
  color: #ffffff;
  transform: scale(1.06);
}

/* Sección Consultorio & Fotografías */
.gallery-img-container {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

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

.gallery-img-container:hover img {
  transform: scale(1.04);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(23, 111, 104, 0.9) 0%, transparent 100%);
  padding: 1.5rem;
  color: #ffffff;
}

/* Acordeón FAQ */
.faq-item {
  border: 1px solid var(--color-borde);
  border-radius: 1rem;
  margin-bottom: 0.75rem;
  background-color: #ffffff;
  overflow: hidden;
  transition: border-color 0.25s ease;
}

.faq-item.active {
  border-color: var(--color-verde-dentina);
  box-shadow: var(--shadow-sm);
}

.faq-header {
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-gris-oscuro);
}

.faq-header:hover {
  color: var(--color-verde-dentina);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0, 1, 0, 1);
  padding: 0 1.5rem;
  color: var(--color-gris-profesional);
}

.faq-item.active .faq-content {
  max-height: 500px;
  padding-bottom: 1.25rem;
  transition: max-height 0.35s cubic-bezier(1, 0, 1, 0);
}

.faq-chevron {
  transition: transform 0.3s ease;
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
  color: var(--color-verde-dentina);
}

/* Botón flotante de WhatsApp */
.floating-whatsapp {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background-color: #25D366;
  color: #ffffff;
  padding: 0.75rem 1.25rem 0.75rem 0.9rem;
  border-radius: 9999px;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.floating-whatsapp:hover {
  transform: scale(1.05) translateY(-3px);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.5);
  color: #ffffff;
}

.whatsapp-pulse {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.whatsapp-pulse::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: #25D366;
  opacity: 0.6;
  animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.5);
    opacity: 0;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* Layout Utilities */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section-py {
  padding: 5rem 0;
}

.section-title {
  font-size: 2.25rem;
  color: var(--color-gris-oscuro);
  margin-bottom: 0.75rem;
}

.section-subtitle {
  color: var(--color-gris-profesional);
  font-size: 1.1rem;
  max-width: 680px;
  margin: 0 auto;
}

/* Formulario de reserva */
.booking-form-control {
  width: 100%;
  padding: 0.85rem 1.15rem;
  border: 1.5px solid var(--color-borde);
  border-radius: 0.75rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-gris-oscuro);
  background-color: #ffffff;
  transition: all 0.25s ease;
  outline: none;
}

.booking-form-control:focus {
  border-color: var(--color-verde-dentina);
  box-shadow: 0 0 0 3px rgba(31, 144, 132, 0.15);
}

.time-slot-btn {
  padding: 0.65rem 0.85rem;
  border: 1.5px solid var(--color-borde);
  border-radius: 0.6rem;
  background-color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-gris-oscuro);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.time-slot-btn:hover {
  border-color: var(--color-verde-dentina);
  background-color: var(--color-menta-fondo);
  color: var(--color-verde-profundo);
}

.time-slot-btn.selected {
  background-color: var(--color-verde-dentina);
  border-color: var(--color-verde-dentina);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(31, 144, 132, 0.25);
}

/* Responsive */
@media (max-width: 991px) {
  .nav-menu {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .section-title {
    font-size: 1.85rem;
  }
  .section-py {
    padding: 3.5rem 0;
  }
}

@media (max-width: 640px) {
  .top-bar-container {
    justify-content: center;
    text-align: center;
  }
  .top-bar-item:first-child {
    display: none;
  }
  .btn {
    width: 100%;
  }
  .floating-whatsapp span {
    display: none;
  }
  .floating-whatsapp {
    padding: 0.85rem;
    border-radius: 50%;
  }
}
