/* ============================================================
   Clínica Dental Infantil Dra. Sianneth Chaves
   Tema: "Sonrisa Tropical" — turquesa + coral + amarillo
   ============================================================ */

:root {
  --turquoise: #1fc2b8;
  --turquoise-deep: #0fa39b;
  --turquoise-soft: #d9f6f4;
  --coral: #ff6f9c;
  --coral-deep: #f04f81;
  --coral-soft: #ffe3ec;
  --yellow: #ffc93c;
  --yellow-soft: #fff3d1;
  --purple: #8e7bff;
  --purple-soft: #e9e4ff;
  /* Colores del logo oficial Dra. SIA */
  --logo-orange: #f0734f;
  --logo-blue: #74d4f6;

  --ink: #21395c;
  --ink-soft: #5b6f8d;
  --bg: #fffaf3;
  --white: #ffffff;

  --radius-lg: 28px;
  --radius-md: 18px;
  --shadow-soft: 0 12px 40px rgba(33, 57, 92, .10);
  --shadow-pop: 0 16px 44px rgba(240, 79, 129, .22);

  --font-display: "Baloo 2", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--turquoise-deep); text-decoration: none; }

.container { width: min(1140px, 92%); margin-inline: auto; }
.section { padding: 96px 0; }

/* ---------- Tipografía de secciones ---------- */
.section__kicker {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--coral-deep);
  background: var(--coral-soft);
  padding: 6px 18px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.section__kicker--light { color: #fff; background: rgba(255,255,255,.18); }

.section__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1.15;
  margin-bottom: 14px;
}
.section__title em { font-style: normal; color: var(--coral-deep); }
.section__title--light { color: #fff; }

.section__sub { color: var(--ink-soft); font-size: 1.1rem; max-width: 560px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s ease, background .25s ease;
  will-change: transform;
}
.btn:hover { transform: translateY(-3px) scale(1.03); }
.btn:active { transform: translateY(0) scale(.97); }

.btn--primary {
  background: linear-gradient(135deg, var(--coral) 0%, var(--coral-deep) 100%);
  color: #fff;
  box-shadow: var(--shadow-pop);
}
.btn--secondary {
  background: var(--turquoise);
  color: #fff;
  box-shadow: 0 12px 32px rgba(31, 194, 184, .35);
}
.btn--ghost {
  background: rgba(255,255,255,.85);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(6px);
}
.btn--big { font-size: 1.1rem; padding: 16px 32px; }
.btn--full { width: 100%; justify-content: center; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 14px 0;
  transition: padding .3s ease, background .3s ease, box-shadow .3s ease;
}
.navbar.is-scrolled {
  padding: 8px 0;
  background: rgba(255, 250, 243, .85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 6px 30px rgba(33, 57, 92, .08);
}
.navbar__inner { display: flex; align-items: center; gap: 18px; }

.navbar__brand { display: flex; align-items: center; gap: 10px; }

/* ===== Logo oficial Dra. SIA (PNG con fondo transparente) ===== */
.brand-logo {
  width: 60px;
  height: auto;
  flex: 0 0 auto;
  /* sombra sutil para que el diente blanco resalte sobre fondos claros */
  filter: drop-shadow(0 2px 6px rgba(33, 57, 92, .28));
  animation: logo-bob 4s ease-in-out infinite;
}
@keyframes logo-bob {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(3deg) translateY(-2px); }
}
.navbar__name { display: flex; flex-direction: column; line-height: 1.15; }
.navbar__name strong { font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); white-space: nowrap; }
.navbar__name small { font-size: .75rem; color: var(--ink-soft); font-weight: 700; letter-spacing: .04em; }

/* Sobre el hero fotográfico (sin scroll) la navbar usa texto claro */
.navbar:not(.is-scrolled) .navbar__name strong { color: #fff; text-shadow: 0 2px 10px rgba(18,42,70,.45); }
.navbar:not(.is-scrolled) .navbar__name small { color: rgba(255,255,255,.85); text-shadow: 0 2px 10px rgba(18,42,70,.45); }
@media (min-width: 961px) {
  .navbar:not(.is-scrolled) .navbar__links a { color: #fff; text-shadow: 0 2px 10px rgba(18,42,70,.5); }
  .navbar:not(.is-scrolled) .navbar__links a:hover { background: rgba(255,255,255,.18); color: #fff; }
}

.navbar__links {
  display: flex; gap: 4px; list-style: none;
  margin-left: auto;
}
.navbar__links a {
  font-weight: 800;
  font-size: .92rem;
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background .2s ease, color .2s ease;
}
.navbar__links a:hover { background: var(--turquoise-soft); color: var(--turquoise-deep); }

.navbar__cta { white-space: nowrap; }

.navbar__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: var(--white);
  border: none;
  border-radius: 12px;
  padding: 12px 10px;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}
.navbar__burger span {
  width: 22px; height: 3px;
  border-radius: 3px;
  background: var(--ink);
  transition: transform .3s ease, opacity .3s ease;
}
.navbar__burger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.navbar__burger.is-open span:nth-child(2) { opacity: 0; }
.navbar__burger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 140px 0 120px;
  background: linear-gradient(160deg, #d9f6f4 0%, #fdeef5 55%, #fff3d1 100%);
  overflow: hidden;
}

/* Slideshow de fondo con Ken Burns */
.hero__bg { position: absolute; inset: 0; overflow: hidden; }
.hero__bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  opacity: 0;
  /* Estado base = escala FINAL del Ken Burns: al perder .is-active el
     slide no se encoge de vuelta; sigue creciendo suave mientras se funde. */
  transform: scale(1.16) translate(-1.6%, -1.2%);
  transition: opacity 1.8s ease, transform 1.8s ease;
  will-change: opacity, transform;
}
.hero__bg-slide.is-active {
  opacity: 1;
  /* Duración ~ intervalo del slideshow (6.5s) + fundido: al salir, el slide
     ya está casi en la escala final y no se nota ningún brinco. */
  animation: kenburns 8s ease-out forwards;
}
@keyframes kenburns {
  from { transform: scale(1.02) translate(0, 0); }
  to   { transform: scale(1.16) translate(-1.6%, -1.2%); }
}

/* Overlay para legibilidad sobre las fotos */
.hero--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse at 50% 38%, rgba(18, 42, 70, .58) 0%, rgba(18, 42, 70, .38) 55%, rgba(18, 42, 70, .28) 100%),
    linear-gradient(180deg, rgba(18, 42, 70, .35) 0%, rgba(15, 163, 155, .45) 100%);
}

.hero__floaters { position: absolute; inset: 0; pointer-events: none; }
.floater {
  position: absolute;
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  animation: float 6s ease-in-out infinite;
  animation-delay: var(--d, 0s);
  filter: drop-shadow(0 6px 12px rgba(33,57,92,.15));
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-22px) rotate(8deg); }
}

.hero__content { position: relative; z-index: 2; }

.hero__badge {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  background: rgba(255,255,255,.8);
  backdrop-filter: blur(8px);
  color: var(--turquoise-deep);
  padding: 9px 22px;
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 22px;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 6.5vw, 4.6rem);
  line-height: 1.08;
  margin-bottom: 18px;
}
.hero--photo .hero__title {
  color: #fff;
  text-shadow: 0 4px 26px rgba(18, 42, 70, .45);
}

/* Título principal: nombre de la clínica + doctora */
.hero__title-top {
  display: block;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  letter-spacing: .01em;
}
.hero__title-name {
  display: block;
  font-size: clamp(2.5rem, 6.4vw, 4.7rem);
  line-height: 1.05;
  margin-top: 2px;
  background: linear-gradient(120deg, var(--yellow) 0%, #ff9ec1 30%, var(--logo-blue) 55%, #ff9ec1 80%, var(--yellow) 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 18px rgba(18, 42, 70, .5));
  animation: nameGradientShift 10s ease-in-out infinite alternate;
}
@keyframes nameGradientShift {
  from { background-position: 0% 50%; }
  to   { background-position: 100% 50%; }
}

/* Línea giratoria bajo el título */
.hero__tagline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.2rem, 2.6vw, 1.7rem);
  color: rgba(255, 255, 255, .96);
  text-shadow: 0 2px 14px rgba(18, 42, 70, .55);
  margin: 14px 0 10px;
}

.hero__rotator {
  display: inline-grid;
  grid-template-areas: "stack";
  vertical-align: top;
  justify-items: start;
  overflow: visible;
  transition: width .45s cubic-bezier(.22,1,.36,1);
}
.hero__word {
  grid-area: stack;
  opacity: 0;
  transform: translateY(24px) scale(.96);
  transition: opacity .5s ease, transform .5s cubic-bezier(.34,1.56,.64,1);
  background: linear-gradient(120deg, var(--turquoise-deep), var(--coral-deep));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}
.hero__word.is-active { opacity: 1; transform: translateY(0) scale(1); }

.hero--photo .hero__word {
  background: linear-gradient(120deg, var(--yellow) 10%, #ff9ec1 90%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero__slogan {
  font-size: clamp(1.1rem, 2.4vw, 1.45rem);
  color: var(--ink-soft);
  margin-bottom: 34px;
}

/* Destello suave y dinámico del eslogan */
.sparkle-text {
  position: relative;
  display: inline-block;
}
.sparkle-text::before,
.sparkle-text::after {
  content: "\2726";
  position: absolute;
  font-size: .55em;
  color: var(--yellow);
  text-shadow: 0 0 10px rgba(255, 201, 60, .85);
  opacity: 0;
  pointer-events: none;
  animation: sparkleTwinkle 3.2s ease-in-out infinite;
}
.sparkle-text::before { top: -.55em; left: -1.15em; }
.sparkle-text::after  { bottom: -.45em; right: -1.25em; animation-delay: 1.6s; }
@keyframes sparkleTwinkle {
  0%, 100% { opacity: 0; transform: scale(.4) rotate(0deg); }
  50%      { opacity: .95; transform: scale(1) rotate(90deg); }
}

/* Sparkles adicionales del eslogan */
.sparkle-text .spk {
  position: absolute;
  font-style: normal;
  opacity: 0;
  pointer-events: none;
  animation: sparkleTwinkle 3.2s ease-in-out infinite;
}
.sparkle-text .spk::before { content: "\2726"; }
.spk--a { top: -.8em;   left: 28%;      font-size: .45em; color: #fff;           animation-delay: .8s; }
.spk--b { bottom: -.7em; right: 30%;    font-size: .4em;  color: #ff9ec1;        animation-delay: 2.4s; }
.spk--c { top: -.35em;  right: -2.1em;  font-size: .5em;  color: var(--yellow);  animation-delay: 1.1s; }
.spk--d { bottom: -.3em; left: -2em;    font-size: .38em; color: #fff;           animation-delay: 2.9s; }
.hero__slogan strong { color: var(--coral-deep); }
.hero--photo .hero__slogan {
  color: rgba(255, 255, 255, .94);
  text-shadow: 0 2px 14px rgba(18, 42, 70, .5);
}
.hero--photo .hero__slogan strong { color: var(--yellow); }

.hero__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 52px;
}

.hero__stats {
  display: flex;
  gap: clamp(18px, 5vw, 60px);
  justify-content: center;
  flex-wrap: wrap;
}
.stat {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  background: rgba(255,255,255,.7);
  backdrop-filter: blur(8px);
  padding: 16px 26px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}
.stat__label { width: 100%; text-align: center; }
.stat__num, .stat__plus {
  display: inline;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.9rem;
  color: var(--turquoise-deep);
}
.stat__num + .stat__plus { margin-left: 1px; }
.stat__label { font-size: .85rem; font-weight: 700; color: var(--ink-soft); }

.hero--photo .stat {
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hero--photo .stat__num,
.hero--photo .stat__plus { color: #fff; }
.hero--photo .stat__label { color: rgba(255, 255, 255, .88); }

/* Tooltip de especialidades (hover / foco) */
.stat--tip { position: relative; cursor: pointer; }
.stat__tooltip {
  position: absolute;
  bottom: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 14px 20px;
  min-width: 220px;
  text-align: left;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
  z-index: 6;
}
.stat__tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-top-color: var(--white);
}
.stat__tooltip ul { list-style: none; margin: 0 0 8px; padding: 0; }
.stat__tooltip li {
  font-size: .9rem;
  font-weight: 700;
  color: var(--ink);
  padding: 3px 0;
}
.stat__tooltip li::before {
  content: "\2726  ";
  color: var(--turquoise);
}
.stat__tooltip-note {
  display: block;
  font-family: var(--font-display);
  font-size: .85rem;
  font-weight: 800;
  color: var(--coral-deep);
}
.stat--tip:hover .stat__tooltip,
.stat--tip:focus .stat__tooltip,
.stat--tip:focus-within .stat__tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Indicadores del slideshow */
.hero__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
}
.hero__dot {
  width: 36px; height: 6px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, .35);
  cursor: pointer;
  padding: 0;
  transition: background .35s ease, transform .35s ease;
}
.hero__dot:hover { transform: scaleY(1.6); }
.hero__dot.is-active { background: var(--yellow); }

.hero__wave {
  position: absolute;
  bottom: -1px; left: 0;
  width: 100%; height: 110px;
  z-index: 3;
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  background: var(--ink);
  padding: 14px 0;
  overflow: hidden;
  transform: rotate(-1.2deg) scale(1.02);
}
.marquee__track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: marquee 26s linear infinite;
}
.marquee__track span {
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  font-size: 1.05rem;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.about__card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow-soft);
  transform: rotate(-2deg);
  transition: transform .4s cubic-bezier(.34,1.56,.64,1);
}
.about__card:hover { transform: rotate(0deg) scale(1.02); }

.about__photo {
  border-radius: 22px;
  overflow: hidden;
}
.about__photo img { width: 100%; height: auto; display: block; }
.about__photo--secondary {
  position: absolute;
  width: 44%;
  right: -30px;
  bottom: -40px;
  border: 6px solid #fff;
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(33, 57, 92, .28);
  transform: rotate(4deg);
}

.about__chip {
  position: absolute;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .9rem;
  background: var(--white);
  padding: 8px 16px;
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  animation: float 5s ease-in-out infinite;
}
.about__chip--1 { top: -14px; right: -10px; animation-delay: .4s; }
.about__chip--2 { bottom: 30px; left: -22px; animation-delay: 1.1s; }
.about__chip--3 { bottom: -16px; right: 30px; animation-delay: 1.8s; }

.about__text p { color: var(--ink-soft); margin-bottom: 14px; font-size: 1.05rem; }
.about__text strong { color: var(--ink); }

.about__list {
  list-style: none;
  margin: 18px 0 26px;
  display: grid;
  gap: 10px;
}
.about__list li {
  background: var(--white);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  font-weight: 700;
  transition: transform .25s ease;
}
.about__list li:hover { transform: translateX(8px); }

/* ============================================================
   SERVICIOS
   ============================================================ */
.services { background: var(--white); }

.services__grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.service-card {
  position: relative;
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  border: 3px solid transparent;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), border-color .3s ease, box-shadow .3s ease;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  top: -40px; right: -40px;
  width: 110px; height: 110px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .14;
  transition: transform .4s ease;
}
.service-card:hover {
  transform: translateY(-10px) rotate(-1deg);
  border-color: var(--accent);
  box-shadow: var(--shadow-soft);
}
.service-card:hover::before { transform: scale(2.4); }

.service-card__icon {
  font-size: 2.6rem;
  width: 76px; height: 76px;
  display: grid; place-items: center;
  background: var(--white);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 18px;
  transition: transform .35s ease;
}
.service-card:hover .service-card__icon { transform: rotate(-8deg) scale(1.1); }

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 8px;
}
.service-card p { color: var(--ink-soft); font-size: .98rem; position: relative; }

/* ============================================================
   TESTIMONIOS
   ============================================================ */
.testimonials {
  background:
    linear-gradient(180deg, rgba(255, 250, 243, .92) 0%, rgba(217, 246, 244, .88) 100%),
    url("../assets/img/bg-consultorio.jpg") center / cover fixed no-repeat;
}

/* Insignia de calificación de Google */
.google-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  padding: 10px 20px;
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  color: var(--ink);
  font-weight: 800;
  transition: transform .25s ease;
}
.google-badge:hover { transform: translateY(-3px); }
.google-badge__g {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  background: linear-gradient(120deg, #4285f4, #ea4335 35%, #fbbc05 65%, #34a853);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.google-badge__stars { color: #fbbc05; letter-spacing: 2px; }
.google-badge__count { color: var(--ink-soft); font-weight: 700; font-size: .9rem; }

.carousel { margin-top: 44px; }
.carousel__track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 10px 4px 24px;
}
.carousel__track::-webkit-scrollbar { display: none; }

.testimonial {
  flex: 0 0 min(420px, 86vw);
  scroll-snap-align: center;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-soft);
  transition: transform .3s ease;
}
.testimonial:hover { transform: translateY(-6px) rotate(.6deg); }

.testimonial__stars { font-size: 1.05rem; margin-bottom: 12px; }
.testimonial blockquote {
  font-size: 1.02rem;
  color: var(--ink-soft);
  font-style: italic;
  margin-bottom: 18px;
}
.testimonial figcaption {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}
.testimonial figcaption small { color: var(--ink-soft); font-weight: 600; }
.testimonial__avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--c, var(--turquoise));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
}

.carousel__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}
.carousel__btn {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--white);
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: transform .25s ease, background .25s ease, color .25s ease;
}
.carousel__btn:hover { transform: scale(1.12); background: var(--coral); color: #fff; }

.carousel__dots { display: flex; gap: 8px; }
.carousel__dot {
  width: 10px; height: 10px;
  border-radius: 999px;
  border: none;
  background: rgba(33,57,92,.2);
  cursor: pointer;
  transition: width .3s ease, background .3s ease;
  padding: 0;
}
.carousel__dot.is-active { width: 28px; background: var(--coral-deep); }

.testimonials__note { text-align: center; margin-top: 26px; font-weight: 700; color: var(--ink-soft); }

/* ============================================================
   FAQ
   ============================================================ */
.faq__container { max-width: 820px; }
.faq__list { margin-top: 36px; display: grid; gap: 14px; }

.faq__item {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  border: 2px solid transparent;
  transition: border-color .3s ease;
  overflow: hidden;
}
.faq__item[open] { border-color: var(--turquoise); }

.faq__item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}
.faq__item summary::-webkit-details-marker { display: none; }

.faq__icon {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: var(--turquoise-soft);
  color: var(--turquoise-deep);
  border-radius: 50%;
  font-size: 1.3rem;
  font-weight: 800;
  transition: transform .3s ease, background .3s ease, color .3s ease;
}
.faq__item[open] .faq__icon {
  transform: rotate(45deg);
  background: var(--coral);
  color: #fff;
}

.faq__answer { padding: 0 24px; overflow: hidden; }
.faq__answer p { color: var(--ink-soft); padding-bottom: 20px; }

/* ============================================================
   BOOKING / CITA
   ============================================================ */
.booking {
  background:
    linear-gradient(135deg, rgba(11, 122, 116, .93) 0%, rgba(15, 163, 155, .88) 55%, rgba(31, 194, 184, .85) 100%),
    url("../assets/img/bg-recepcion.jpg") center / cover fixed no-repeat;
  color: #fff;
}
.booking__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
.booking__info p { color: rgba(255,255,255,.9); font-size: 1.08rem; }

.booking__perks {
  list-style: none;
  margin: 22px 0 28px;
  display: grid;
  gap: 12px;
}
.booking__perks li {
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  font-weight: 700;
}

.booking__contact { display: flex; gap: 12px; flex-wrap: wrap; }
.contact-pill {
  background: rgba(255,255,255,.92);
  color: var(--ink);
  font-weight: 800;
  padding: 10px 18px;
  border-radius: 999px;
  transition: transform .25s ease, background .25s ease;
}
.contact-pill:hover { transform: translateY(-3px); background: var(--yellow); }

.booking__form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: 0 30px 70px rgba(13, 80, 76, .35);
  color: var(--ink);
  display: grid;
  gap: 16px;
}
.booking__form label {
  display: grid;
  gap: 6px;
  font-weight: 800;
  font-size: .92rem;
}
.booking__form input,
.booking__form select,
.booking__form textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 16px;
  border-radius: 14px;
  border: 2px solid #e6e3dc;
  background: var(--bg);
  color: var(--ink);
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
  width: 100%;
}
.booking__form input:focus,
.booking__form select:focus,
.booking__form textarea:focus {
  outline: none;
  border-color: var(--turquoise);
  box-shadow: 0 0 0 4px rgba(31,194,184,.18);
  transform: scale(1.01);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__hint { font-size: .8rem; color: var(--ink-soft); text-align: center; font-weight: 600; }

/* ============================================================
   UBICACIÓN
   ============================================================ */
.location__grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  align-items: stretch;
}

.location__map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  min-height: 420px;
  border: 6px solid var(--white);
}
.location__map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; }

.location__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.info-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-soft);
  transition: transform .3s ease, background .3s ease;
  color: var(--ink);
}
.info-card:hover { transform: translateY(-6px); }
.info-card__icon { font-size: 1.8rem; }
.info-card h3 { font-family: var(--font-display); font-size: 1.05rem; margin: 8px 0 4px; }
.info-card p { font-size: .92rem; color: var(--ink-soft); }
.info-card--cta { background: var(--yellow); }
.info-card--cta p { color: var(--ink); font-weight: 800; }
.info-card--cta:hover { background: var(--coral); color: #fff; }
.info-card--cta:hover p { color: #fff; }

/* ============================================================
   INSTAGRAM
   ============================================================ */
.insta { background: var(--white); text-align: center; }

.gallery {
  margin-top: 40px;
  columns: 4 240px;
  column-gap: 18px;
}
.gallery__item {
  margin: 0 0 18px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  break-inside: avoid;
  position: relative;
}
.gallery__item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .5s ease;
}
.gallery__item:hover img { transform: scale(1.06) rotate(.6deg); }
.gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 65%, rgba(33,57,92,.25));
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}
.gallery__item:hover::after { opacity: 1; }

.insta__cta { margin-top: 32px; }

/* ============================================================
   VIDEOS
   ============================================================ */
.videos {
  background: linear-gradient(180deg, var(--bg) 0%, var(--purple-soft) 100%);
}
.videos__grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
}
.video-card {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink);
  box-shadow: var(--shadow-soft);
  aspect-ratio: 9 / 16;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .3s ease;
}
.video-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 50px rgba(33, 57, 92, .25);
}
.video-card { position: relative; cursor: pointer; }
.video-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Botón de play personalizado (sin controles nativos: ni descarga ni barra de tiempo) */
.video-card__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 74px; height: 74px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: var(--coral-deep);
  font-size: 1.7rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(33, 57, 92, .35);
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), opacity .25s ease;
}
.video-card:hover .video-card__play { transform: scale(1.12); }
.video-card.is-playing .video-card__play { opacity: 0; pointer-events: none; }

.video-card__hint {
  position: absolute;
  left: 0; right: 0; bottom: 14px;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .8rem;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,.5);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.video-card.is-playing:hover .video-card__hint { opacity: 1; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--ink);
  color: #fff;
  padding: 70px 0 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 50px;
}
.footer .navbar__name strong { color: #fff; }
.footer .navbar__name small { color: rgba(255,255,255,.65); }
.footer__slogan { margin-top: 16px; color: rgba(255,255,255,.8); font-style: italic; }

.footer__col h4 {
  font-family: var(--font-display);
  margin-bottom: 14px;
  color: var(--yellow);
}
.footer__col a {
  display: block;
  color: rgba(255,255,255,.82);
  padding: 4px 0;
  transition: color .2s ease, transform .2s ease;
}
.footer__col a:hover { color: var(--turquoise); transform: translateX(5px); }
.footer__col p { color: rgba(255,255,255,.6); font-size: .9rem; margin-top: 10px; }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 20px 0;
  text-align: center;
  font-size: .88rem;
  color: rgba(255,255,255,.55);
}

/* ============================================================
   WHATSAPP FAB
   ============================================================ */
.whatsapp-fab {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 90;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #25d366;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 30px rgba(37, 211, 102, .45);
  animation: fab-pulse 2.6s ease-in-out infinite;
  transition: transform .25s ease;
}
.whatsapp-fab:hover { transform: scale(1.12) rotate(8deg); }
@keyframes fab-pulse {
  0%, 100% { box-shadow: 0 12px 30px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,.4); }
  50% { box-shadow: 0 12px 30px rgba(37,211,102,.45), 0 0 0 16px rgba(37,211,102,0); }
}

/* ============================================================
   ANIMACIONES DE SCROLL (reveal)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.22,1,.36,1);
  transition-delay: var(--rd, 0s);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .navbar__links {
    position: fixed;
    top: 76px; right: 4%;
    flex-direction: column;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    padding: 16px;
    min-width: 220px;
    opacity: 0;
    transform: translateY(-12px) scale(.96);
    pointer-events: none;
    transition: opacity .3s ease, transform .3s ease;
  }
  .navbar__links.is-open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }
  .navbar__cta { margin-left: auto; }
  .navbar__burger { display: flex; }

  .about__grid,
  .booking__grid,
  .location__grid { grid-template-columns: 1fr; }

  .about__photo--secondary { right: -10px; }

  /* En móvil, fondos fijos (parallax) no son fiables: usar scroll normal */
  .testimonials,
  .booking { background-attachment: scroll, scroll; }

  .about__media { max-width: 420px; margin-inline: auto; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }

  /* Fix Safari móvil: imágenes lazy dentro de `columns` no cargan.
     En pantallas táctiles usamos grid en lugar de columnas. */
  .gallery {
    columns: auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .gallery__item { margin: 0; }
  .gallery__item img {
    aspect-ratio: 1 / 1;
    height: 100%;
    object-fit: cover;
  }
}

@media (max-width: 560px) {
  .section { padding: 70px 0; }
  .hero__floaters { display: none; }
  .form__row { grid-template-columns: 1fr; }
  .navbar__cta { display: none; }
  .navbar__name small { display: none; }
  .location__cards { grid-template-columns: 1fr; }
  .booking__form { padding: 26px 20px; }
  .hero { padding-top: 120px; }
}

/* Accesibilidad: respetar reduce-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   Rango de fechas del formulario + notas de contacto
   ============================================================ */
.form__range {
  display: flex;
  align-items: center;
  gap: 8px;
}
.form__range input { flex: 1; min-width: 0; }
.form__range-sep {
  font-weight: 800;
  color: var(--ink-soft);
  flex: 0 0 auto;
}
.contact-note { font-weight: 700; }
.contact-note small {
  display: block;
  font-size: .78em;
  color: var(--ink-soft);
  font-weight: 600;
}

/* ---------- Guardar contacto ---------- */
.contact-pill--btn {
  border: none;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}
.save-confirm {
  margin-top: 16px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}
.save-confirm p { font-size: .95rem; margin-bottom: 12px; }
.save-confirm__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.save-confirm__actions .btn { font-size: .9rem; padding: 10px 18px; }
