/* ==========================================================================
   GALVIZ Consultorio Dental - Sistema de Diseño y Hoja de Estilos
   ========================================================================== */

/* ==========================================================================
   Variables (Design Tokens)
   ========================================================================== */
:root {
  --color-primary: hsl(174, 85%, 35%);        /* Turquesa #0A9385 */
  --color-primary-light: hsl(174, 85%, 96%);   /* Turquesa claro #EDFAF9 */
  --color-primary-dark: hsl(174, 85%, 25%);    /* Turquesa oscuro */
  --color-accent: hsl(330, 85%, 52%);          /* Magenta #FC1E7B */
  --color-accent-hover: hsl(330, 85%, 43%);    /* Magenta hover */
  --color-accent-glow: hsla(330, 85%, 52%, 0.35); /* Glow para botones */
  --color-bg: #FFFFFF;
  --color-bg-alt: #F4F7F6;
  --color-bg-dark: #1a2332;                    /* Footer dark */
  --color-text: #2d3748;
  --color-text-light: #64748b;
  --color-text-white: #FFFFFF;
  --color-border: #e2e8f0;
  --color-google: #4285f4;
  --color-whatsapp: #25D366;
  --color-sos: #ef4444;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.06);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.08);
  --shadow-card: 0 4px 20px rgba(10,147,133,0.08);

  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  --header-height: 80px;
}

/* ==========================================================================
   1. CSS Reset & Base
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

button, input, select, textarea {
  font: inherit;
}

/* Scrollbar (Webkit) */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg-alt);
}
::-webkit-scrollbar-thumb {
  background: var(--color-text-light);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

/* ==========================================================================
   2. Utility Classes
   ========================================================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-header::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--color-primary);
  margin: 16px auto 0;
  border-radius: var(--radius-full);
}

.section-header__tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.section-header__title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 12px;
}

.section-header__subtitle {
  max-width: 600px;
  margin: 0 auto;
  color: var(--color-text-light);
  font-size: 1rem;
  line-height: 1.7;
}

/* --- Hero Tag ---------------------------------------------------------- */
.hero__tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  margin-bottom: 16px;
}

/* --- Generic Modal Base ------------------------------------------------ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.modal__content {
  position: relative;
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  z-index: 1;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideDown 0.35s ease;
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-light);
  transition: color var(--transition-fast);
  padding: 4px;
  z-index: 2;
}

.modal__close:hover {
  color: var(--color-text);
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-accent);
  color: var(--color-text-white);
  border-radius: var(--radius-full);
  padding: 14px 32px;
  font-weight: 600;
  font-family: var(--font-heading);
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  animation: pulse 2s infinite;
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  transform: scale(1.05);
  box-shadow: 0 0 20px var(--color-accent-glow);
  animation: none;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  color: var(--color-primary);
  border-radius: var(--radius-full);
  padding: 12px 28px;
  font-weight: 600;
  font-family: var(--font-heading);
  border: 2px solid var(--color-primary);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.btn-secondary:hover {
  background-color: var(--color-primary);
  color: var(--color-text-white);
}

/* Animaciones al hacer scroll */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}
.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}
.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}
.is-visible {
  opacity: 1;
  transform: translate(0);
}

/* ==========================================================================
   3. Header / Navigation
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: all var(--transition-normal);
}

.header--scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
}

.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: transform var(--transition-fast);
}

.header__logo:hover {
  transform: translateY(-1px);
}

.header__logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}

.header__logo-text-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.header__logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  color: #1e3a8a;
}

.header__logo-subtext {
  font-family: var(--font-heading);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-primary);
  text-transform: uppercase;
  margin-top: 2px;
}

.header__nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

.header__nav-link {
  font-weight: 500;
  color: var(--color-text);
  position: relative;
  transition: color var(--transition-fast);
}

.header__nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: width var(--transition-normal), left var(--transition-normal);
}

.header__nav-link:hover {
  color: var(--color-primary);
}

.header__nav-link:hover::after {
  width: 100%;
  left: 0;
}

.header__cta {
  padding: 10px 24px;
  font-size: 0.95rem;
  animation: none; /* Override general pulse in header */
}

.header__menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.header__menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-text);
  margin-bottom: 5px;
  transition: var(--transition-fast);
}

/* ==========================================================================
   4. Hero Carousel
   ========================================================================== */
.hero {
  height: calc(100vh - var(--header-height));
  margin-top: var(--header-height);
  position: relative;
  overflow: hidden;
}

.hero__slides {
  display: flex;
  height: 100%;
  transition: transform var(--transition-slow);
}

.hero__slide {
  min-width: 100%;
  height: 100%;
  position: relative;
}

.hero__slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 100%);
  z-index: 1;
}

.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__content {
  position: absolute;
  z-index: 2;
  bottom: 20%;
  left: 8%;
  max-width: 600px;
}

.hero__title {
  color: var(--color-text-white);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
  margin-bottom: 1rem;
}

.hero__subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 2vw, 1.3rem);
  margin-bottom: 2rem;
}

.hero__dots {
  position: absolute;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 2;
}

.hero__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: var(--transition-normal);
  border: none;
}

.hero__dot.is-active {
  background-color: var(--color-accent);
  width: 32px;
  border-radius: var(--radius-full);
}

.hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.2);
  color: var(--color-text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  z-index: 2;
  transition: var(--transition-normal);
  backdrop-filter: blur(4px);
}

.hero__arrow:hover {
  background-color: rgba(255,255,255,0.4);
}

.hero__arrow--prev {
  left: 2%;
}

.hero__arrow--next {
  right: 2%;
}

/* ==========================================================================
   5. Services Section
   ========================================================================== */
.services {
  padding: 100px 0;
  background-color: var(--color-bg);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background-color: var(--color-bg);
  border-radius: var(--radius-md);
  padding: 40px 28px;
  border: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card);
  border-color: rgba(10, 147, 133, 0.3); /* Turquesa 0.3 */
}

.service-card__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: var(--color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  margin-bottom: 24px;
  font-size: 24px;
}

.service-card__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.service-card__desc {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity var(--transition-normal), max-height var(--transition-normal);
  color: var(--color-text-light);
  font-size: 0.95rem;
}

.service-card:hover .service-card__desc {
  opacity: 1;
  max-height: 150px; /* Suficiente para el contenido */
  margin-bottom: 16px;
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-accent);
  font-weight: 500;
  font-size: 0.95rem;
  opacity: 0;
  transform: translateX(-10px);
  transition: all var(--transition-normal);
}

.service-card:hover .service-card__link {
  opacity: 1;
  transform: translateX(0);
}

/* ==========================================================================
   6. Before/After Cases Section
   ========================================================================== */
.cases {
  padding: 100px 0;
  background-color: var(--color-bg-alt);
}

.cases__tabs {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.cases__tab {
  padding: 10px 24px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  cursor: pointer;
  font-weight: 500;
  transition: all var(--transition-normal);
}

.cases__tab.is-active,
.cases__tab:hover {
  background: var(--color-primary);
  color: var(--color-text-white);
  border-color: var(--color-primary);
}

.comparison-slider {
  width: 100%;
  max-width: 600px;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  margin: 0 auto;
  box-shadow: var(--shadow-md);
}

.comparison-slider__before,
.comparison-slider__after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.comparison-slider__before {
  z-index: 2;
  /* clip-path controlado por JS, default 50% */
  clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
}

.comparison-slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.comparison-slider__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%; /* Controlado por JS */
  width: 3px;
  background-color: var(--color-primary);
  z-index: 3;
  transform: translateX(-50%);
  cursor: ew-resize;
}

.comparison-slider__handle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background-color: var(--color-text-white);
  border: 3px solid var(--color-primary);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}

/* Modifier: Split view for completely different images (like X-Rays) */
.comparison-slider--split {
  display: flex;
  overflow: visible;
}

.comparison-slider--split .comparison-slider__before,
.comparison-slider--split .comparison-slider__after {
  position: relative;
  width: 50%;
  height: 100%;
  clip-path: none !important;
}

.comparison-slider--split .comparison-slider__handle {
  display: none;
}

.comparison-slider--split .comparison-slider__label--before {
  left: 10px;
}

.comparison-slider--split .comparison-slider__label--after {
  right: 10px;
}

.comparison-slider__label {
  position: absolute;
  top: 20px;
  padding: 6px 16px;
  background: rgba(0,0,0,0.6);
  color: white;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  z-index: 4;
  backdrop-filter: blur(4px);
}

.comparison-slider__label--before { left: 20px; }
.comparison-slider__label--after { right: 20px; }

/* ==========================================================================
   7. Testimonials Slider
   ========================================================================== */
.testimonials {
  padding: 100px 0;
  background-color: var(--color-bg);
}

.testimonial-card {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  padding: 48px;
}

.testimonial-card__icon {
  width: 48px;
  height: 48px;
  fill: var(--color-primary);
  margin: 0 auto 24px;
}

.testimonial-card__text {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--color-text);
  line-height: 1.8;
  margin-bottom: 24px;
}

.testimonial-card__author {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-primary);
  font-size: 1.1rem;
}

.testimonial-card__role {
  color: var(--color-text-light);
  font-size: 0.9rem;
  margin-top: 4px;
}

.testimonial-card__stars {
  color: var(--color-primary);
  font-size: 1.2rem;
  margin-top: 12px;
}

/* ==========================================================================
   8. Google Reviews Section
   ========================================================================== */
.google-reviews {
  padding: 100px 0;
  background-color: var(--color-bg-alt);
}

/* Rating summary bar */
.google-reviews__rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.google-reviews__g {
  flex-shrink: 0;
}

.google-reviews__score {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--color-text);
  line-height: 1;
}

.google-reviews__stars {
  font-size: 1.4rem;
  color: #FBBC04;
  letter-spacing: 2px;
}

.google-reviews__count {
  font-size: 0.9rem;
  color: var(--color-text-light);
  font-weight: 500;
}

/* Reviews grid */
.google-reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

@media (max-width: 1024px) {
  .google-reviews__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .google-reviews__grid {
    grid-template-columns: 1fr;
  }
}

/* Individual review card */
.review-card {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.04);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.review-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.08);
}

.review-card__header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.review-card__avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

/* Unique avatar colors for each card */
.review-card:nth-child(1) .review-card__avatar {
  background: linear-gradient(135deg, #4285F4, #669DF6);
}
.review-card:nth-child(2) .review-card__avatar {
  background: linear-gradient(135deg, #0A9385, #0DBFAE);
}
.review-card:nth-child(3) .review-card__avatar {
  background: linear-gradient(135deg, #EA4335, #F06B5D);
}

.review-card__name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text);
  margin-bottom: 2px;
}

.review-card__date {
  font-size: 0.78rem;
  color: var(--color-text-light);
}

.review-card__stars {
  color: #FBBC04;
  font-size: 1rem;
  letter-spacing: 2px;
  margin-left: auto;
  flex-shrink: 0;
}

.review-card__text {
  font-size: 0.92rem;
  color: var(--color-text);
  line-height: 1.65;
  flex-grow: 1;
  margin-bottom: 16px;
}

.review-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #4285F4;
  padding: 5px 12px;
  background: rgba(66, 133, 244, 0.08);
  border-radius: var(--radius-full);
  width: fit-content;
}

.review-card__badge svg {
  color: #FBBC04;
}

/* ==========================================================================
   9. FAQ Accordion
   ========================================================================== */
.faq {
  padding: 100px 0;
  background-color: var(--color-bg);
}

.faq__list {
  max-width: 800px;
  margin: 0 auto;
}

.faq__item {
  border-bottom: 1px solid var(--color-border);
  padding: 24px 0;
}

.faq__question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.1rem;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.faq__question:hover {
  color: var(--color-primary);
}

.faq__icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 300;
  transition: transform var(--transition-normal);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0;
  color: var(--color-text-light);
  line-height: 1.6;
}

.faq__item.is-open .faq__answer {
  max-height: 300px;
  padding-top: 16px;
}

.faq__item.is-open .faq__icon {
  transform: rotate(45deg);
  color: var(--color-primary);
}

/* ==========================================================================
   10. Booking Section & Modal
   ========================================================================== */
.booking {
  padding: 100px 0;
  background-color: var(--color-primary);
  background-image: radial-gradient(circle at 100% 0%, var(--color-primary-dark) 0%, transparent 50%),
                    radial-gradient(circle at 0% 100%, var(--color-primary-dark) 0%, transparent 50%);
  position: relative;
}

.booking__content {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 800px;
  margin: 0 auto;
  padding: 40px;
}

/* --- Premium Calendar Design -------------------------------------------- */
.calendar {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.calendar__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}

.calendar__month-year {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-text);
  text-transform: capitalize;
}

.calendar__nav {
  background: var(--color-bg-alt);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-text-light);
  transition: all var(--transition-fast);
}

.calendar__nav:hover {
  background: var(--color-primary-light);
  color: var(--color-primary);
  transform: scale(1.05);
}

.calendar__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  text-align: center;
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-bottom: 12px;
}

.calendar__days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  text-align: center;
}

.calendar__day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--color-text);
  font-weight: 500;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.calendar__day:hover:not(.calendar__day--disabled) {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

.calendar__day--selected {
  background: var(--color-primary) !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(10, 147, 133, 0.3);
  transform: scale(1.05);
}

.calendar__day--today {
  border-color: var(--color-primary-light);
  color: var(--color-primary);
  font-weight: 700;
}

.calendar__day--disabled {
  opacity: 0.25;
  cursor: not-allowed;
  pointer-events: none;
}

/* Ensure the card has minimum height in case JS hides the grid */
.booking__card {
  min-height: 450px;
}

.booking-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.booking-slots__btn {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-primary);
  background: transparent;
  color: var(--color-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 0.9rem;
}

.booking-slots__btn:hover,
.booking-slots__btn.is-selected {
  background: var(--color-primary);
  color: var(--color-text-white);
}

.booking-form__group {
  margin-bottom: 16px;
}

.booking-form__input,
.booking-form__select {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.booking-form__input:focus,
.booking-form__select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-light);
}

.booking-form__submit {
  width: 100%;
  margin-top: 16px;
}



/* ==========================================================================
   11. Booking Drawer (Side Panel)
   ========================================================================== */
.booking-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 420px;
  height: 100vh;
  background-color: var(--color-bg);
  z-index: 1100;
  box-shadow: var(--shadow-lg);
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  padding: 32px 24px;
}

.booking-drawer.is-open {
  right: 0;
}

.booking-drawer__overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0,0,0,0.4);
  z-index: 1099;
  display: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.booking-drawer.is-open + .booking-drawer__overlay {
  display: block;
  opacity: 1;
}

.booking-drawer__close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-text-light);
}

/* ==========================================================================
   12. Smart Sidebar (Floating Dock)
   ========================================================================== */
.smart-sidebar {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 900;
}

.smart-sidebar__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.smart-sidebar__item {
  position: relative;
}

.smart-sidebar__btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-bg);
  box-shadow: var(--shadow-md);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-normal);
}

.smart-sidebar__btn svg {
  width: 24px;
  height: 24px;
}

.smart-sidebar__btn--contact svg,
.smart-sidebar__btn--sos svg { color: var(--color-primary); }
.smart-sidebar__btn--wa svg { color: var(--color-whatsapp); }
.smart-sidebar__btn--smile svg,
.smart-sidebar__btn--calendar svg { color: var(--color-primary); }

.smart-sidebar__btn:hover {
  transform: scale(1.15);
  box-shadow: var(--shadow-lg);
}

.smart-sidebar__btn--contact:hover,
.smart-sidebar__btn--sos:hover { background: var(--color-primary); color: white; }
.smart-sidebar__btn--contact:hover svg,
.smart-sidebar__btn--sos:hover svg { color: white; }
.smart-sidebar__btn--wa:hover { background: var(--color-whatsapp); color: white; }
.smart-sidebar__btn--wa:hover svg { color: white; }

.smart-sidebar__tooltip {
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  margin-right: 12px;
  background: var(--color-bg-dark);
  color: var(--color-text-white);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 13px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.smart-sidebar__item:hover .smart-sidebar__tooltip {
  opacity: 1;
}

/* ==========================================================================
   13. SOS Modal
   ========================================================================== */
.sos-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.sos-modal.is-open {
  display: flex;
}

.sos-modal__content {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  position: relative;
  animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sos-modal__icon {
  width: 64px;
  height: 64px;
  background: rgba(239, 68, 68, 0.1);
  color: var(--color-sos);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 32px;
  animation: pulseSOS 1.5s infinite;
}

.sos-modal__phone {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 16px 0 24px;
}

.sos-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-text-light);
}

/* ==========================================================================
   14. WhatsApp Chat Widget
   ========================================================================== */
.wa-chat {
  position: fixed;
  bottom: 100px;
  right: 20px;
  width: 360px;
  background: var(--color-bg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 1100;
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: slideUp 0.3s ease;
}

.wa-chat.is-open {
  display: flex;
}

.wa-chat__header {
  background: linear-gradient(135deg, var(--color-primary), #25D366);
  color: var(--color-text-white);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-top-left-radius: var(--radius-md);
  border-top-right-radius: var(--radius-md);
}

.wa-chat__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.wa-chat__info {
  display: flex;
  flex-direction: column;
}

.wa-chat__name {
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0;
}

.wa-chat__status {
  font-size: 0.75rem;
  opacity: 0.9;
  margin: 0;
}

.wa-chat__close {
  margin-left: auto;
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
  padding: 4px;
}

.wa-chat__close:hover {
  opacity: 0.7;
}

.wa-chat__close svg {
  width: 24px;
  height: 24px;
}

.wa-chat__body {
  background-color: #ece5dd;
  padding: 20px 16px;
  min-height: 250px;
  max-height: 350px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wa-chat__bubble {
  background: var(--color-bg);
  border-radius: 8px;
  padding: 12px 16px;
  max-width: 80%;
  box-shadow: var(--shadow-sm);
  font-size: 0.9rem;
  position: relative;
}

.wa-chat__bubble--bot {
  align-self: flex-start;
  border-top-left-radius: 0;
}

.wa-chat__bubble--bot::before {
  content: '';
  position: absolute;
  top: 0;
  left: -8px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 8px 10px 0;
  border-color: transparent var(--color-bg) transparent transparent;
}

.wa-chat__input-bar {
  display: flex;
  padding: 12px;
  background: var(--color-bg);
  gap: 8px;
  align-items: center;
  border-top: 1px solid var(--color-border);
}

.wa-chat__input {
  flex: 1;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 10px 16px;
  outline: none;
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color 0.2s ease;
}

.wa-chat__input:focus {
  border-color: var(--color-primary);
}

.wa-chat__send {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), #25D366);
  border: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease;
  box-shadow: 0 2px 10px rgba(37, 211, 102, 0.3);
}

.wa-chat__send:hover {
  transform: scale(1.05);
}
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wa-chat__typing {
  display: flex;
  gap: 4px;
  padding: 12px 16px;
  background: var(--color-bg);
  border-radius: 8px;
  width: fit-content;
  border-top-left-radius: 0;
}

.wa-chat__dot {
  width: 6px;
  height: 6px;
  background: var(--color-text-light);
  border-radius: 50%;
  animation: typing 1.4s infinite ease-in-out both;
}
.wa-chat__dot:nth-child(1) { animation-delay: -0.32s; }
.wa-chat__dot:nth-child(2) { animation-delay: -0.16s; }

/* ==========================================================================
   15. Smile Simulator Modal
   ========================================================================== */
.smile-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}

.smile-modal.is-open {
  display: flex;
}

.smile-modal__content {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 650px;
  width: 95%;
  position: relative;
  animation: slideDown 0.4s ease;
}

/* Se reutilizan las clases .comparison-slider aquí dentro */

/* ==========================================================================
   16. Footer
   ========================================================================== */
.footer {
  background-color: var(--color-bg-dark);
  color: var(--color-text-white);
  padding: 80px 0 30px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-bottom: 16px;
}

.footer__logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  border-radius: 8px;
  background: #ffffff;
  padding: 3px;
}

.footer__logo-text-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.footer__logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--color-text-white);
  letter-spacing: 0.04em;
}

.footer__logo-subtext {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #0DBFAE;
  text-transform: uppercase;
}

.footer__desc {
  color: rgba(255,255,255,0.7);
  margin-bottom: 24px;
}

.footer__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 24px;
  position: relative;
  display: inline-block;
}

.footer__title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--color-primary);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__link {
  color: rgba(255,255,255,0.7);
  transition: color var(--transition-fast);
}

.footer__link:hover {
  color: var(--color-primary);
}

.footer__social {
  display: flex;
  gap: 12px;
}

.footer__social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.footer__social-link:hover {
  background: var(--color-primary);
  transform: scale(1.1);
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 30px;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
}

/* ==========================================================================
   17. Animations & Keyframes
   ========================================================================== */
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 var(--color-accent-glow); }
  50% { box-shadow: 0 0 0 10px rgba(252, 30, 123, 0); }
  100% { box-shadow: 0 0 0 0 rgba(252, 30, 123, 0); }
}

@keyframes pulseSOS {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
  70% { box-shadow: 0 0 0 20px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes typing {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

@keyframes checkmark {
  0% { transform: scale(0); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ==========================================================================
   18. Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero__title {
    font-size: 2.8rem;
  }
}

@media (max-width: 768px) {
  .header__nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: var(--color-bg-dark);
    flex-direction: column;
    padding: 40px;
  }
  .header__nav.is-open {
    display: flex;
  }
  .header__nav-link {
    color: var(--color-text-white);
    font-size: 1.25rem;
  }
  .header__menu-toggle {
    display: block;
  }
  
  .services__grid {
    grid-template-columns: 1fr;
  }
  .footer__grid {
    grid-template-columns: 1fr;
  }
  
  .hero__title {
    font-size: 2.2rem;
  }
  .hero__content {
    left: 5%;
    right: 5%;
  }

  .smart-sidebar {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    transform: none;
    background: var(--color-bg);
    padding: 10px 20px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 900;
  }
  .smart-sidebar__list {
    flex-direction: row;
    justify-content: space-around;
  }
  .smart-sidebar__tooltip {
    display: none; /* Hide tooltips on mobile horizontal bar */
  }
  
  .booking-drawer {
    width: 100%;
    right: -100%;
  }
  
  .wa-chat {
    width: calc(100% - 40px);
    bottom: 80px; /* Above smart sidebar */
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  .hero__title {
    font-size: 1.8rem;
  }
  .service-card {
    padding: 24px 16px;
  }
  .testimonial-card {
    padding: 32px 16px;
  }
  .google-reviews__grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   COMPLEMENTARIO — Estilos faltantes para componentes HTML/JS
   ========================================================================== */

/* --- Formulario: Campos del booking ------------------------------------ */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--color-text);
}

.form-label--optional {
  font-weight: 400;
  color: var(--color-text-light);
  font-size: 0.8rem;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-bg);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-light);
}

.form-input::placeholder {
  color: var(--color-text-light);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
  cursor: pointer;
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
}

/* --- Booking Form Grid Layout ------------------------------------------ */
.booking-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 768px) {
  .booking-form__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.booking-form__submit {
  width: 100%;
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* --- Time Slots -------------------------------------------------------- */
.time-slots {
  margin-top: 20px;
  display: none;
}

.time-slots__label {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 12px;
  color: var(--color-text);
}

.time-slots__group {
  margin-bottom: 14px;
}

.time-slots__period {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-light);
  margin-bottom: 8px;
}

.time-slots__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.time-slot {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-primary);
  background: transparent;
  color: var(--color-primary);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.time-slot:hover {
  background: var(--color-primary-light);
}

.time-slot.is-selected {
  background: var(--color-primary);
  color: var(--color-text-white);
  border-color: var(--color-primary);
}

/* --- Booking Success (Visible) ----------------------------------------- */
.booking-form__success {
  display: none;
}

.booking-form__success:not([hidden]) {
  display: block;
}

.booking-success {
  text-align: center;
  padding: 40px;
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  max-width: 500px;
  margin: 0 auto;
}

.booking-success--compact {
  padding: 32px 16px;
  box-shadow: none;
  border: none;
}

.booking-success__icon {
  color: var(--color-primary);
  margin: 0 auto 20px auto;
  width: 80px;
  height: 80px;
  background: var(--color-primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.booking-success__icon svg {
  width: 40px;
  height: 40px;
}

.booking-success__title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 16px;
}

.booking-success__details {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 28px;
  color: var(--color-text);
  background: #f8fafc;
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px dashed var(--color-border);
  text-align: left;
  display: inline-block;
  width: 100%;
}

.booking-success__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.booking-success__download {
  margin-bottom: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 15px 24px;
  background: linear-gradient(135deg, var(--color-accent), #e0176d);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: none;
  box-shadow: 0 4px 15px rgba(252, 30, 123, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.booking-success__download:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(252, 30, 123, 0.4);
  color: #fff;
}

.booking-success__whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 15px 24px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff;
  font-weight: 600;
  font-size: 0.98rem;
  border-radius: var(--radius-full);
  border: none;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  text-decoration: none;
}

.booking-success__whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
  color: #fff;
}

.booking-success__alert {
  display: none;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 0.9rem;
  margin-bottom: 16px;
  text-align: left;
  line-height: 1.5;
  animation: fadeIn 0.3s ease;
}

.booking-success__note {
  font-size: 0.85rem;
  color: var(--color-text-light);
}

/* --- WhatsApp Chat Messages (JS-generated) ----------------------------- */
.wa-msg {
  margin-bottom: 10px;
  max-width: 85%;
  animation: fadeInUp 0.3s ease;
}

.wa-msg p {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.5;
  word-wrap: break-word;
}

.wa-msg--bot {
  align-self: flex-start;
}

.wa-msg--bot p {
  background: #ffffff;
  color: #303030;
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

.wa-msg--user {
  align-self: flex-end;
  margin-left: auto;
}

.wa-msg--user p {
  background: #dcf8c6;
  color: #303030;
  border-bottom-right-radius: 4px;
}

.wa-msg__btn {
  display: inline-block;
  margin-top: 8px;
  padding: 8px 20px;
  background: var(--color-whatsapp);
  color: #fff;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--transition-fast);
}

.wa-msg__btn:hover {
  background: #1da851;
}

/* Typing indicator dots */
.wa-msg--typing {
  display: flex;
  gap: 4px;
  padding: 12px 18px;
  background: #ffffff;
  border-radius: 12px;
  border-bottom-left-radius: 4px;
  width: fit-content;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

.wa-msg--typing .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #999;
  animation: typingDot 1.4s infinite ease-in-out;
}

.wa-msg--typing .dot:nth-child(1) { animation-delay: -0.32s; }
.wa-msg--typing .dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingDot {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

/* WhatsApp chat body flex layout for messages */
.wa-chat__body {
  display: flex;
  flex-direction: column;
  padding: 16px;
  min-height: 200px;
  max-height: 300px;
  overflow-y: auto;
  background: #ece5dd;
}

/* --- Booking Drawer internal layout ------------------------------------ */
.booking-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}

.booking-drawer__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--color-primary);
}

.booking-drawer__close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-light);
  transition: color var(--transition-fast);
  padding: 4px;
}

.booking-drawer__close:hover {
  color: var(--color-text);
}

.booking-drawer__body {
  padding-bottom: 32px;
}

.booking-form--compact .calendar__day {
  width: 36px;
  height: 36px;
  font-size: 0.82rem;
}

.booking-form--compact .time-slot {
  padding: 6px 12px;
  font-size: 0.8rem;
}

/* --- Comparison Slider labels ------------------------------------------ */
.comparison-slider__label {
  position: absolute;
  top: 16px;
  padding: 6px 14px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  z-index: 5;
  pointer-events: none;
}

.comparison-slider__label--before {
  left: 16px;
}

.comparison-slider__label--after {
  right: 16px;
}

/* --- Testimonials slider container ------------------------------------ */
.testimonials__slider {
  position: relative;
  min-height: 260px;
}

.testimonials__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.testimonials__dot,
.testimonial-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--color-border);
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: 0;
}

.testimonials__dot.is-active,
.testimonial-dot.is-active {
  background: var(--color-primary);
  width: 28px;
  border-radius: var(--radius-full);
}

/* --- Cases Tabs -------------------------------------------------------- */
.cases__tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}

.cases__tab {
  padding: 10px 24px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cases__tab:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.cases__tab.is-active {
  background: var(--color-primary);
  color: var(--color-text-white);
  border-color: var(--color-primary);
}

.cases__content {
  display: flex;
  justify-content: center;
}

/* --- Smile Modal Styles ------------------------------------------------ */
.smile-modal__content {
  max-width: 650px;
  text-align: center;
}

.smile-modal__title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 8px;
}

.smile-modal__desc {
  color: var(--color-text-light);
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.smile-modal__cta {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
}

/* --- SOS Modal Styles -------------------------------------------------- */
.sos-modal__content {
  max-width: 400px;
  text-align: center;
}

.sos-modal__icon-wrap {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(10, 147, 133, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--color-primary);
}

.sos-modal__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 8px;
  color: var(--color-text);
}

.sos-modal__desc {
  color: var(--color-text-light);
  margin-bottom: 20px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.sos-modal__phone {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 20px;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.sos-modal__call {
  display: block;
  width: 100%;
  margin-bottom: 12px;
  text-decoration: none;
}

.sos-modal__wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff;
  border-radius: var(--radius-full);
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.sos-modal__wa:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  color: #fff;
}

/* --- Section Header Light (Booking section) ---------------------------- */
.section-header--light .section-header__tag,
.section-header__tag--light {
  color: rgba(255,255,255,0.8);
}

.section-header--light .section-header__title,
.section-header__title--light {
  color: #fff;
}

.section-header--light .section-header__subtitle,
.section-header__subtitle--light {
  color: rgba(255,255,255,0.85);
}

/* --- Booking Card (white container on turquesa bg) --------------------- */
.booking__card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  box-shadow: var(--shadow-lg);
  max-width: 900px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .booking__card {
    padding: 28px 20px;
  }
}

/* --- body.is-open (prevent scroll when mobile menu open) --------------- */
body.is-open {
  overflow: hidden;
}

body.modal-open {
  overflow: hidden;
}

/* ==========================================================================
   18. Location & Google Maps Section
   ========================================================================== */
.location-section {
  padding: 100px 0;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  position: relative;
}

.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: stretch;
  margin-top: 48px;
}

/* Tarjeta Oficial de Negocio */
.location-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 10px 35px -5px rgba(0, 0, 0, 0.07), 0 0 0 1px rgba(10, 147, 133, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.location-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -8px rgba(10, 147, 133, 0.12), 0 0 0 1px rgba(10, 147, 133, 0.2);
}

.location-card__header {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f1f5f9;
}

.location-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: rgba(10, 147, 133, 0.1);
  color: var(--color-primary-dark);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.location-card__title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.location-card__subtitle {
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.location-card__rating {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #475569;
}

.location-card__rating .stars {
  display: flex;
  gap: 2px;
}

.location-card__rating .rating-text {
  font-size: 0.88rem;
}

.location-card__items {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}

.loc-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.loc-item__icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.loc-item:hover .loc-item__icon {
  transform: scale(1.08);
}

.loc-item__icon--pin {
  background: #e6f7f5;
  color: var(--color-primary);
}

.loc-item__icon--clock {
  background: #eff6ff;
  color: #2563eb;
}

.loc-item__icon--phone {
  background: #fdf2f8;
  color: var(--color-accent);
}

.loc-item__icon--pluscode {
  background: #f0fdf4;
  color: #16a34a;
}

.loc-item__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.loc-item__title {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-light);
  margin-bottom: 3px;
}

.loc-item__text {
  font-size: 1rem;
  color: var(--color-text);
  font-weight: 500;
  line-height: 1.5;
  margin: 0;
}

.loc-item__link {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s;
  letter-spacing: 0.02em;
}

.loc-item__link:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

.loc-item__subtext {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-top: 4px;
}

.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
}

.status-badge--open {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}

.font-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 1.05rem;
  font-weight: 600;
  color: #0284c7;
  background: #f0f9ff;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid #bae6fd;
  display: inline-block;
  width: fit-content;
}

.location-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
}

.location-btn-maps {
  flex: 1;
  min-width: 200px;
  padding: 14px 20px;
  font-size: 0.95rem;
  text-decoration: none;
  text-align: center;
  animation: none !important;
}

.location-btn-wa {
  flex: 1;
  min-width: 200px;
  padding: 14px 20px;
  font-size: 0.95rem;
  text-decoration: none;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #ffffff;
  border-radius: var(--radius-full);
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.location-btn-wa:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  color: #ffffff;
}

.location-btn-fb {
  flex: 1;
  min-width: 200px;
  padding: 14px 20px;
  font-size: 0.95rem;
  text-decoration: none;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1877F2, #0d5cb6);
  color: #ffffff;
  border-radius: var(--radius-full);
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(24, 119, 242, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.location-btn-fb:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(24, 119, 242, 0.45);
  color: #ffffff;
}

/* Tarjeta del Mapa Embebido */
.location-map-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 35px -5px rgba(0, 0, 0, 0.07), 0 0 0 1px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  min-height: 520px;
  position: relative;
}

.location-map-wrap {
  flex: 1;
  width: 100%;
  min-height: 420px;
  position: relative;
  background: #e2e8f0;
}

.location-map-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.location-map-footer {
  padding: 18px 24px;
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 2;
}

.location-map-footer__pin {
  font-size: 1.6rem;
  line-height: 1;
}

.location-map-footer__info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.location-map-footer__info strong {
  color: var(--color-text);
  font-weight: 700;
  font-size: 0.95rem;
}

.location-map-footer__info span {
  color: var(--color-text-light);
  font-size: 0.85rem;
}

.location-map-footer__btn {
  padding: 10px 20px;
  background: var(--color-primary);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.location-map-footer__btn:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  color: #ffffff;
}

.footer__hours-highlight {
  color: #0dbfae;
  font-weight: 600;
}

@media (max-width: 900px) {
  .location-grid {
    grid-template-columns: 1fr;
  }
  .location-map-card {
    min-height: 420px;
  }
  .location-map-wrap {
    min-height: 320px;
  }
  .location-card {
    padding: 28px 20px;
  }
  .location-card__actions {
    flex-direction: column;
  }
  .location-btn-maps,
  .location-btn-wa {
    width: 100%;
  }
}


