:root {
  --bg: #faf6ee;
  --surface: #ffffff;
  --ink: #14213d;
  --muted: #6b7a8f;
  --primary: #14213d;
  --primary-dark: #0b1526;
  --accent: #c9a24b;
  --accent-dark: #a87f2c;
  --border: #e8e0cf;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(20, 33, 61, 0.10);
  --fuente-display: "Lora", Georgia, "Times New Roman", serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  padding-bottom: 92px;
  -webkit-font-smoothing: antialiased;
}

.contenedor {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.contenedor-estrecho {
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  padding: 0 20px;
}

section { padding: clamp(44px, 8vw, 96px) 0; }
section[id], .form-seccion { scroll-margin-top: 84px; }

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s ease;
}

.site-header.sombra { box-shadow: 0 6px 20px rgba(20, 33, 61, 0.08); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.logo img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--accent);
}

.logo span { font-size: 17px; font-weight: 800; letter-spacing: 0.5px; }
.logo b { color: var(--accent); }

.nav { display: flex; align-items: center; gap: 22px; }

.nav a {
  position: relative;
  text-decoration: none;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  padding-bottom: 3px;
}

.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s var(--ease-out);
}

.nav a:hover { color: var(--accent-dark); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav a.activo { color: var(--accent-dark); }
.nav a.activo::after { transform: scaleX(1); }

.cta-nav { padding: 12px 20px; font-size: 14px; }

.menu-toggle {
  display: none;
  border: none;
  background: none;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
  z-index: 75;
  position: relative;
}

/* ===== BOTONES ===== */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 17px 30px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #241a00;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 12px 26px rgba(168, 127, 44, 0.35);
  transition: transform 0.15s var(--ease-out), box-shadow 0.15s var(--ease-out), filter 0.15s var(--ease-out);
  text-align: center;
}

.cta:hover { transform: translateY(-2px); filter: brightness(1.05); }
.cta:active { transform: translateY(0) scale(0.97); transition-duration: 0.1s; }
.cta:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.cta:disabled { opacity: 0.55; cursor: not-allowed; transform: none; filter: none; }

.cta-mini { width: 100%; padding: 13px 18px; font-size: 14px; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 28px;
  border: 2px solid var(--primary);
  border-radius: 999px;
  color: var(--primary);
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  background: transparent;
  transition: background 0.15s var(--ease-out), color 0.15s var(--ease-out), transform 0.15s var(--ease-out);
}

.btn-ghost:hover { background: var(--primary); color: #ffffff; }
.btn-ghost:active { transform: scale(0.97); transition-duration: 0.1s; }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 0 80px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #ffffff;
}

.hero-video-fondo {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video-fondo video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-oscurecer {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse at center, transparent 35%, rgba(11, 21, 38, 0.35) 100%),
    linear-gradient(180deg, rgba(11, 21, 38, 0.45), rgba(11, 21, 38, 0.25) 40%, rgba(11, 21, 38, 0.6)),
    rgba(11, 21, 38, 0.35);
}

.hero-contenido {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #3a2c00;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  padding: 8px 16px;
  border-radius: 999px;
  text-transform: uppercase;
}

.titulo {
  font-family: var(--fuente-display);
  font-size: clamp(32px, 5.4vw, 58px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin: 22px auto 14px;
  max-width: 820px;
  color: #ffffff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.titulo em { font-style: italic; color: var(--accent); }

.subtitulo {
  font-size: 18px;
  color: #e4e9f2;
  max-width: 640px;
  margin: 0 auto;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

.hero-botones {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
}

.seguro {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 13px;
  color: #d5dce8;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

.seguro svg { flex: none; color: var(--accent); }

.direccion {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.hero .btn-ghost {
  border-color: rgba(255, 255, 255, 0.85);
  color: #ffffff;
}

.hero .btn-ghost:hover { background: #ffffff; color: var(--primary); }

.media img,
.media video {
  width: 100%;
  display: block;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.media video { aspect-ratio: auto; height: auto; }

/* ===== BANNER DE PAGINA (subpaginas) ===== */
.pagina-hero {
  position: relative;
  padding: 68px 0 56px;
  text-align: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #ffffff;
  overflow: hidden;
}

.pagina-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top, rgba(201, 162, 75, 0.16), transparent 60%);
  pointer-events: none;
}

.pagina-hero-contenido { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }

.pagina-hero .miga {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
}

.pagina-hero h1 {
  font-family: var(--fuente-display);
  font-size: clamp(28px, 4.4vw, 42px);
  line-height: 1.15;
  font-weight: 700;
  margin-top: 12px;
  color: #ffffff;
}

.pagina-hero p {
  font-size: 15.5px;
  color: #d5dce8;
  margin-top: 12px;
}

@media (prefers-reduced-motion: no-preference) {
  .pagina-hero-contenido > * {
    opacity: 0;
    transform: translateY(14px);
    animation: heroSubir 0.6s var(--ease-out) forwards;
  }
  .pagina-hero-contenido > *:nth-child(1) { animation-delay: 0s; }
  .pagina-hero-contenido > *:nth-child(2) { animation-delay: 0.1s; }
  .pagina-hero-contenido > *:nth-child(3) { animation-delay: 0.2s; }
}

/* ===== FORMULARIO ===== */
.form-seccion { background: linear-gradient(180deg, var(--bg), #f4ecdc); }

.form-pedido {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--accent);
  border-radius: 20px;
  padding: 28px 22px;
  text-align: left;
  box-shadow: var(--shadow);
}

.form-pedido .titulo-seccion { margin-bottom: 6px; }

/* Va con el prefijo .form-pedido para ganarle en especificidad a las reglas
   genéricas de .form-pedido label / input, que se declaran más abajo. */
.form-pedido .consentimiento {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 20px 0 4px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  cursor: pointer;
  font-weight: 400;
}
.form-pedido .consentimiento input {
  width: 18px;
  min-width: 18px;
  height: 18px;
  padding: 0;
  margin: 2px 0 0;
  border-radius: 4px;
  accent-color: var(--accent-dark);
  cursor: pointer;
}
.form-pedido .consentimiento a { color: var(--primary); text-decoration: underline; }

.form-nota {
  font-size: 14px;
  color: var(--muted);
  text-align: center;
  margin-bottom: 18px;
}

.form-pedido label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin: 16px 0 4px;
}

.form-pedido input,
.form-pedido select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 16px;
  font-family: inherit;
  background: #fff;
  color: var(--ink);
}

.form-pedido input:focus,
.form-pedido select:focus {
  outline: 2px solid var(--accent);
  border-color: var(--accent);
}

.form-pedido .cta { display: flex; margin: 22px auto 0; width: 100%; max-width: 480px; }

.calendario {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  margin-top: 4px;
}

.cal-cabecera {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.cal-titulo {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
}

.cal-nav {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 10px;
  width: 34px;
  height: 34px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: var(--primary);
}

.cal-nav:disabled { opacity: 0.4; cursor: not-allowed; }

.cal-dias-semana {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 6px;
}

.cal-cuadricula {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.cal-dia {
  border: none;
  background: var(--bg);
  border-radius: 10px;
  height: 40px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink);
  font-family: inherit;
}

.cal-dia:hover:not(:disabled):not(.seleccionado) { background: #e8e0cf; }

.cal-dia.seleccionado {
  background: var(--primary);
  color: #ffffff;
}

.cal-dia.deshabilitado {
  background: transparent;
  opacity: 0.3;
  cursor: not-allowed;
}

.fecha-elegida {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  min-height: 18px;
}

.form-estado {
  margin-top: 12px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

.form-confirmar {
  margin-top: 6px;
  text-align: center;
}

.form-confirmar .form-nota { margin-bottom: 0; }

.form-confirmar .cta {
  margin-top: 14px;
  padding: 16px 20px;
  font-size: 15px;
  background: var(--primary);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(20, 33, 61, 0.35);
}

/* ===== TITULOS DE SECCION ===== */
.titulo-seccion {
  font-family: var(--fuente-display);
  font-size: clamp(24px, 3.4vw, 32px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
}

.titulo-seccion::after {
  content: '';
  display: block;
  width: 56px;
  height: 3px;
  margin: 14px auto 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  border-radius: 999px;
}

.form-pedido .titulo-seccion::after { margin-top: 10px; }

.seccion-nota {
  font-size: 15px;
  color: var(--muted);
  text-align: center;
  max-width: 560px;
  margin: 0 auto 24px;
}

/* ===== TRATAMIENTOS ===== */
.carrusel-controles {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.carrusel-flecha {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s var(--ease-out), color 0.2s var(--ease-out), transform 0.15s var(--ease-out), opacity 0.2s var(--ease-out);
}

.carrusel-flecha.izq svg { transform: rotate(180deg); }
.carrusel-flecha:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.carrusel-flecha:active { transform: scale(0.94); transition-duration: 0.1s; }
.carrusel-flecha:disabled { opacity: 0.35; cursor: default; pointer-events: none; }

.tratamientos {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  margin-top: 10px;
  padding-bottom: 6px;
  scrollbar-width: none;
}

.tratamientos::-webkit-scrollbar { display: none; }

.tratamiento {
  scroll-snap-align: start;
  flex: 0 0 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

@media (min-width: 640px) {
  .tratamiento { flex: 0 0 calc(50% - 10px); }
}

@media (min-width: 900px) {
  .tratamiento { flex: 0 0 calc(33.333% - 14px); }
}

.tratamiento:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(20, 33, 61, 0.14); }

.tratamiento-img { position: relative; overflow: hidden; }

.tratamiento-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(11, 21, 38, 0.28));
  pointer-events: none;
}

.tratamiento-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(11, 21, 38, 0.5) 100%);
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
  pointer-events: none;
}

.tratamiento:hover .tratamiento-img::before { opacity: 1; }

.tratamiento img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s var(--ease-out);
}

.tratamiento:hover img { transform: scale(1.04); }

.tratamiento-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }

.tratamiento-cat {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-dark);
}

.tratamiento h3 {
  font-family: var(--fuente-display);
  font-size: 19px;
  font-weight: 700;
  margin-top: 4px;
}

.tratamiento-desc { font-size: 14px; color: var(--muted); margin-top: 6px; }

.tratamiento-tag {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-dark);
  margin-top: 14px;
}

.tratamiento-body ul { list-style: none; margin-top: 6px; }

.tratamiento-body li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13.5px;
  margin-top: 5px;
}

.tratamiento-body li svg { flex: none; color: var(--accent-dark); margin-top: 3px; }

.tratamiento .cta { margin-top: auto; }

.ver-mas { text-align: center; margin-top: 24px; }

/* ===== BENEFICIOS ===== */
.beneficios {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.beneficio {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px 22px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .beneficio:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(20, 33, 61, 0.14); }
}

.beneficio-icono {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #241a00;
}

.beneficio h3 {
  font-family: var(--fuente-display);
  font-size: 18px;
  font-weight: 700;
}

.beneficio p { font-size: 14px; color: var(--muted); margin-top: 8px; }

/* ===== GALERIA ===== */
.galeria {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.galeria img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: border-color 0.15s var(--ease-out), transform 0.15s var(--ease-out);
}

.galeria img:hover { transform: translateY(-2px); }
.galeria img:active { transform: scale(0.95); transition-duration: 0.1s; }
.galeria img.activa { border-color: var(--accent); }

/* ===== TESTIMONIOS ===== */
.testimonios {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.testimonio {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .testimonio:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(20, 33, 61, 0.13); }
}

.testimonio::before {
  content: '\201C';
  position: absolute;
  top: -18px;
  right: 10px;
  font-family: var(--fuente-display);
  font-size: 96px;
  line-height: 1;
  color: var(--accent);
  opacity: 0.15;
  pointer-events: none;
}

.testimonio > * { position: relative; }

.estrellas {
  display: flex;
  gap: 2px;
  color: var(--accent);
}

.testimonio p { font-size: 14px; margin-top: 8px; }

.testimonio .autor {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

/* ===== CONFIANZA ===== */
.confianza {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #ffffff;
  border-radius: 24px;
  padding: 40px 28px;
  text-align: center;
}

.confianza-icono { margin: 0 auto 14px; display: flex; justify-content: center; color: var(--accent); }

.confianza h2 {
  font-family: var(--fuente-display);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
}

.confianza-sub { color: #b9c3d8; font-size: 14px; margin-top: 6px; }

.confianza ul {
  list-style: none;
  margin-top: 20px;
  text-align: left;
  display: inline-block;
}

.confianza li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  font-size: 15px;
}

.confianza li svg { flex: none; color: var(--accent); }

.confianza-cmp {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1px;
}

/* ===== FAQ ===== */
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

.faq-q svg { flex: none; transition: transform 0.25s var(--ease-out); color: var(--muted); }

.faq-item.abierto .faq-q svg { transform: rotate(180deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s var(--ease-in-out);
}

.faq-a p {
  padding: 0 16px 16px;
  font-size: 14px;
  color: var(--muted);
}

.faq-item.abierto .faq-a { max-height: 300px; }

/* ===== ESPECIALISTA ===== */
.especialista {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 30px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 34px;
  box-shadow: var(--shadow);
  max-width: 780px;
  margin: 6px auto 0;
}

.especialista-avatar {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  border: 3px solid var(--accent);
}

.especialista-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.especialista-info h3 {
  font-family: var(--fuente-display);
  font-size: 25px;
  font-weight: 700;
}

.especialista-info p { font-size: 15px; color: var(--muted); margin-top: 10px; }

.especialista-cmp {
  display: inline-block;
  margin-top: 16px;
  padding: 9px 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 1px;
}

/* ===== UBICACION ===== */
.mapa {
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-top: 16px;
}

.mapa iframe {
  display: block;
  width: 100%;
  height: 320px;
  border: 0;
}

.mapa video {
  display: block;
  width: 100%;
  height: auto;
}

.video-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  padding: 24px;
  border: 0;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(20, 33, 61, 0.92), rgba(11, 21, 38, 0.92));
  color: #ffffff;
  cursor: pointer;
  text-align: center;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

.video-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(11, 21, 38, 0.28);
}

.video-card:active { transform: translateY(-1px) scale(0.98); transition-duration: 0.1s; }

.video-card-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
}

.video-card-titulo {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 1.5px;
  line-height: 1.4;
}

.video-card-sub {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}

.video-modal[hidden] { display: none; }

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(11, 21, 38, 0.85);
  padding: 20px;
}

.video-modal-caja {
  width: min(90vw, 960px);
}

.video-modal-caja video {
  display: block;
  width: 100%;
  max-height: 80vh;
  border-radius: 16px;
  background: #000;
}

.video-modal-cierre {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  cursor: pointer;
}

.video-modal-cierre:hover { background: var(--accent); }

.mapa-nota {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
}

/* ===== FINAL ===== */
.final {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--accent);
  border-radius: 20px;
  padding: 40px 24px;
  box-shadow: var(--shadow);
}

.final .cta { margin-top: 20px; }

/* ===== SOCIALES ===== */
.sociales {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.social {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.15s var(--ease-out), border-color 0.15s var(--ease-out);
}

.social svg { color: var(--accent-dark); }

.social:hover { transform: translateY(-2px); border-color: var(--accent); }
.social:active { transform: scale(0.96); transition-duration: 0.1s; }

/* ===== FOOTER ===== */
.footer {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #c3cddf;
  padding: 44px 0 24px;
  margin-top: 16px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
}

.footer h4 {
  font-family: var(--fuente-display);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
}

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

.footer-logo img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--accent);
}

.footer-logo span { color: #ffffff; font-weight: 800; font-size: 17px; }
.footer-logo b { color: var(--accent); }

.footer p { font-size: 14px; margin-top: 8px; }

.footer a {
  color: #c3cddf;
  text-decoration: none;
}

.footer a:hover { color: var(--accent); }

.footer-item { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 14px; }

.footer-item svg { flex: none; color: var(--accent); }

.footer-copy a { color: inherit; text-decoration: underline; }

.footer-copy {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 30px;
  padding-top: 20px;
  font-size: 12px;
  color: #8b97ad;
}

/* ===== STICKY BAR ===== */
.sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 10px 16px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transform: translateY(110%);
  transition: transform 0.3s var(--ease-drawer);
  box-shadow: 0 -6px 20px rgba(20, 33, 61, 0.12);
  z-index: 50;
}

.sticky-bar.visible { transform: translateY(0); }

.sticky-bar .cta { margin: 0; flex: 1; max-width: 520px; padding: 15px 20px; font-size: 16px; }

.icono-def { display: none; }

.wa-flotante-wrap {
  position: fixed;
  right: 18px;
  bottom: calc(96px + env(safe-area-inset-bottom));
  z-index: 55;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(12px) scale(0.9);
  pointer-events: none;
  transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}

.wa-flotante-wrap.con-sticky {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.wa-flotante-wrap.desplazando {
  pointer-events: none;
}

.wa-flotante-label {
  background: #ffffff;
  color: var(--primary);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(11, 21, 38, 0.16);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .wa-flotante-wrap:hover .wa-flotante-label,
  .wa-flotante-wrap:focus-within .wa-flotante-label {
    opacity: 1;
    transform: translateY(0);
  }
}

.wa-flotante {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.45);
  transition: transform 0.15s var(--ease-out), box-shadow 0.15s var(--ease-out);
  text-decoration: none;
}

.wa-flotante:hover { transform: scale(1.1); box-shadow: 0 10px 26px rgba(37, 211, 102, 0.55); }
.wa-flotante:active { transform: scale(0.95); transition-duration: 0.1s; }

/* ===== RESPONSIVE ===== */
  @media (max-width: 640px) {
    .especialista { grid-template-columns: 1fr; text-align: center; }
    .especialista-avatar { width: 150px; height: 150px; font-size: 38px; }
  }

  @media (min-width: 640px) {
  .beneficios { grid-template-columns: repeat(3, 1fr); }
  .testimonios { grid-template-columns: repeat(3, 1fr); }
  .form-pedido { padding: 32px 30px; }
}

@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }

  .galeria-dos {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 24px;
    align-items: start;
    margin-top: 12px;
  }

  .galeria-dos .media { margin: 0; }

  .galeria { flex-direction: column; }
  .galeria img { width: 100%; height: 96px; }
}

@media (max-width: 899px) {
  .menu-toggle { display: flex; }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--surface);
    padding: 76px 26px 24px;
    box-shadow: -12px 0 32px rgba(20, 33, 61, 0.22);
    border-left: 1px solid var(--border);
    transform: translateX(100%);
    transition: transform 0.3s var(--ease-drawer);
    z-index: 70;
    overflow-y: auto;
  }

  .nav.abierto { transform: translateX(0); }

  .nav a { padding: 13px 0; width: 100%; font-size: 16px; border-bottom: 1px solid var(--border); }

  .nav .cta { width: 100%; margin-top: 12px; }

  .overlay {
    position: fixed;
    inset: 0;
    background: rgba(11, 21, 38, 0.15);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s var(--ease-out);
    z-index: 65;
  }

  .overlay.abierto { opacity: 1; pointer-events: auto; }
}

/* ===== ENTRADA DEL HERO ===== */
@media (prefers-reduced-motion: no-preference) {
  .hero-contenido > * {
    opacity: 0;
    transform: translateY(16px);
    animation: heroSubir 0.6s var(--ease-out) forwards;
  }
  .hero-contenido > *:nth-child(1) { animation-delay: 0s; }
  .hero-contenido > *:nth-child(2) { animation-delay: 0.09s; }
  .hero-contenido > *:nth-child(3) { animation-delay: 0.18s; }
  .hero-contenido > *:nth-child(4) { animation-delay: 0.27s; }
  .hero-contenido > *:nth-child(5) { animation-delay: 0.36s; }
  .hero-contenido > *:nth-child(6) { animation-delay: 0.45s; }
}

@keyframes heroSubir {
  to { opacity: 1; transform: translateY(0); }
}

/* ===== MARQUESINA DE TRATAMIENTOS ===== */
.marquesina {
  background: var(--primary);
  overflow: hidden;
  padding: 14px 0;
}

.marquesina-pista {
  display: flex;
  width: max-content;
  animation: marquesinaDesliz 26s linear infinite;
}

.marquesina:hover .marquesina-pista { animation-play-state: paused; }

.marquesina-grupo { display: flex; align-items: center; flex-shrink: 0; }

.marquesina-grupo span {
  color: var(--bg);
  font-family: var(--fuente-display);
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 0 22px;
  position: relative;
}

.marquesina-grupo span::after {
  content: '•';
  color: var(--accent);
  position: absolute;
  right: -1px;
}

@keyframes marquesinaDesliz {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquesina-pista { animation: none; }
  .marquesina-grupo:last-child { display: none; }
  .marquesina { overflow-x: auto; }
}

/* ===== REVELADO AL HACER SCROLL ===== */
@media (prefers-reduced-motion: no-preference) {
  body.js-anim .titulo-seccion,
  body.js-anim .tratamiento,
  body.js-anim .beneficio,
  body.js-anim .testimonio,
  body.js-anim .faq-item,
  body.js-anim .especialista,
  body.js-anim .confianza {
    transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
  }

  body.js-anim .titulo-seccion:not(.visible),
  body.js-anim .tratamiento:not(.visible),
  body.js-anim .beneficio:not(.visible),
  body.js-anim .testimonio:not(.visible),
  body.js-anim .faq-item:not(.visible),
  body.js-anim .especialista:not(.visible),
  body.js-anim .confianza:not(.visible) {
    opacity: 0;
    transform: translateY(18px);
  }
}
