﻿/*
Theme Name: ClÃ­nica EstÃ©tica
Description: Landing para clÃ­nica de estÃ©tica/cosmetologÃ­a, integrada con el plugin Agenda ClÃ­nica (reservas, tratamientos y pacientes 100% desde wp-admin).
Author: DabStudio
Version: 1.0.48
Text Domain: clinica-estetica-theme
*/

/* ============ Variables & Reset ============ */
:root {
  --color-cream: #F6F0E6;
  --color-cream-soft: #FBF8F2;
  --color-text: #241F1A;
  --color-text-soft: #7A7066;
  --color-gold: #B8996B;
  --color-gold-dark: #9C7E52;
  --color-gold-tint: #F0E6D6;
  --color-dark: #18140F;
  --border: #E6DCC9;
  --shadow: 0 24px 48px -24px rgba(24, 20, 15, 0.28);
  --shadow-sm: 0 8px 20px -10px rgba(24, 20, 15, 0.18);
  --radius: 6px;
  --radius-lg: 18px;
  --font-heading: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Poppins', sans-serif;
  --font-script: 'Caveat', cursive;

  /* Alias para el formulario de reserva del plugin (agenda-clinica-plugin/assets/css/publico.css):
     ese CSS es compartido entre temas y usa los nombres de variable del tema dental original
     (--color-teal, --color-navy, etc.) â€” se re-mapean acÃ¡ para que herede esta paleta dorada
     sin tener que tocar el plugin ni duplicar su hoja de estilos. */
  --color-teal: var(--color-gold);
  --color-teal-dark: var(--color-gold-dark);
  --color-navy: var(--color-text);
  --color-gray: var(--color-text-soft);
  --radius-sm: var(--radius);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-cream-soft);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  font-weight: 300;
}

img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; background: none; border: none; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-text);
  line-height: 1.18;
  font-weight: 500;
}

h2 { font-size: 2.1rem; margin: 0.35rem 0 0.9rem; }
h3 { font-size: 1.2rem; font-weight: 600; }

.container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  color: var(--color-gold-dark);
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section { padding: 96px 0; }
.section-alt { background: var(--color-cream); }
.section-desc { color: var(--color-text-soft); max-width: 500px; }

.section-head-center {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-gold { background: var(--color-gold); color: #fff; }
.btn-gold:hover { background: var(--color-gold-dark); }
.btn-dark { background: var(--color-dark); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-outline-dark { border-color: var(--color-text); color: var(--color-text); }
.btn-outline-dark:hover { background: var(--color-text); color: #fff; }
.btn-cream { background: var(--color-cream-soft); color: var(--color-dark); }
.btn-cream:hover { background: #fff; }

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 84px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--color-text);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}
.logo-mark-art {
  position: relative;
  display: block;
  width: 98px;
  height: 66px;
  flex: 0 0 98px;
  overflow: hidden;
}
.logo-mark-art img {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 98px;
  max-width: none;
  height: auto;
}
.logo-text strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.98rem;
  letter-spacing: 0.06em;
}
.logo-text small {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: var(--color-text-soft);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-shrink: 0;
}
.main-nav a {
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-soft);
  position: relative;
  padding-bottom: 4px;
  white-space: nowrap;
  transition: color 0.15s ease;
}
.main-nav a:hover, .main-nav a.active { color: var(--color-text); }
.main-nav a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1.5px;
  background: var(--color-gold);
}

.header-right { position: relative; display: flex; align-items: center; gap: 6px; }
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.header-search {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  display: none;
  align-items: center;
  gap: 8px;
  width: min(340px, calc(100vw - 36px));
  padding: 9px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  z-index: 60;
}
.header-search.open { display: flex; }
.header-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  padding: 9px 7px;
  color: var(--color-text);
  font: inherit;
  font-size: .8rem;
}
.header-search button {
  padding: 10px 14px;
  background: var(--color-dark);
  color: #fff;
  font: inherit;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.icon-btn {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--color-text);
  border-radius: 50%;
  transition: background 0.15s ease;
}
.icon-btn:hover { background: var(--color-cream); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
}
.nav-toggle span {
  display: block; height: 1.5px; width: 22px;
  background: var(--color-text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.main-nav-mobile {
  display: none;
  flex-direction: column;
  border-top: 1px solid var(--border);
  padding: 8px 28px 18px;
  background: #fff;
}
.main-nav-mobile a {
  padding: 12px 0;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text);
  border-bottom: 1px solid var(--border);
}
.main-nav-mobile a:last-child { border-bottom: none; }
.main-nav-mobile.open { display: flex; }

/* ============ Hero ============ */
.hero { background: var(--color-cream); padding: 56px 0 0; overflow: hidden; }
.hero-eyebrow-row {
  text-align: center;
  margin-bottom: 40px;
}
.hero-eyebrow-row .brand {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.08em;
  font-size: 0.92rem;
}
.hero-eyebrow-row .sep {
  color: var(--color-text-soft);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-left: 8px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding-bottom: 64px;
}

.hero-copy h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}
.hero-sub { color: var(--color-text-soft); max-width: 420px; margin-bottom: 32px; }
.hero-actions { margin-bottom: 40px; }

.hero-features {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.hero-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--color-text-soft);
  line-height: 1.35;
}
.hero-feature svg { flex-shrink: 0; color: var(--color-gold-dark); }

.hero-media { position: relative; }
.hero-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 4.6;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-script {
  position: absolute;
  right: -6px;
  bottom: 34px;
  background: #fff;
  padding: 16px 22px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  font-family: var(--font-script);
  font-size: 1.5rem;
  line-height: 1.15;
  color: var(--color-gold-dark);
  max-width: 190px;
}

/* Stats / trust bar */
.trust-bar { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.trust-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 28px 20px;
  border-left: 1px solid var(--border);
}
.trust-item:first-child { border-left: none; }
.trust-item svg { color: var(--color-gold-dark); flex-shrink: 0; }
.trust-item strong { display: block; font-size: 0.88rem; font-weight: 600; }
.trust-item span { display: block; font-size: 0.76rem; color: var(--color-text-soft); }

/* ============ Tratamientos ============ */
.tratamientos-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
}
.tratamiento-card { display: flex; flex-direction: column; }
.tratamiento-photo {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1 / 1.05;
  margin-bottom: 16px;
  background: var(--color-cream);
}
.tratamiento-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.tratamiento-card:hover .tratamiento-photo img { transform: scale(1.05); }
.tratamiento-card h3 { margin-bottom: 6px; }
.tratamiento-card p { font-size: 0.84rem; color: var(--color-text-soft); margin-bottom: 12px; }
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-gold-dark);
}
.link-arrow span { transition: transform 0.15s ease; }
.link-arrow:hover span { transform: translateX(3px); }
.link-arrow.center { display: flex; justify-content: center; margin-top: 44px; }

/* ============ Nosotros ============ */
.nosotros-section { position: relative; }
.nosotros-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.nosotros-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3.4;
  box-shadow: var(--shadow);
}
.nosotros-media img { width: 100%; height: 100%; object-fit: cover; }
.nosotros-media-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 28px 30px;
  background: linear-gradient(0deg, rgba(15,12,9,0.78) 0%, rgba(15,12,9,0) 65%);
  color: #fff;
}
.nosotros-media-overlay strong { display: block; font-family: var(--font-heading); font-size: 1.05rem; letter-spacing: 0.04em; }
.nosotros-media-overlay span { display: block; font-size: 0.76rem; letter-spacing: 0.05em; opacity: 0.85; margin-top: 4px; }
.nosotros-copy p { margin-bottom: 28px; }

/* ============ Pasos de reserva ============ */
.pasos-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  align-items: start;
  margin: 48px 0 44px;
}
.paso { text-align: center; position: relative; }
.paso-num {
  width: 58px; height: 58px;
  margin: 0 auto 16px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--color-gold-dark);
  background: #fff;
}
.paso h3 { font-size: 1rem; margin-bottom: 6px; }
.paso p { font-size: 0.82rem; color: var(--color-text-soft); max-width: 220px; margin: 0 auto; }
.paso-chevron {
  position: absolute;
  top: 22px;
  right: -18%;
  color: var(--border);
  font-size: 1.3rem;
}
.paso:last-child .paso-chevron { display: none; }

/* ============ Testimonios ============ */
.testimonios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.testimonio-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
}
.testi-quote-icon {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  color: var(--color-gold);
  line-height: 1;
  margin-bottom: 8px;
}
.testi-text { font-style: italic; color: var(--color-text); margin-bottom: 18px; font-size: 0.92rem; }
.testi-stars { color: var(--color-gold); letter-spacing: 2px; margin-bottom: 6px; font-size: 0.85rem; }
.testi-person { border-top: 1px solid var(--border); padding-top: 14px; margin-top: 4px; }
.testi-person strong { display: block; font-size: 0.9rem; }
.testi-person span { font-size: 0.78rem; color: var(--color-text-soft); }

/* ============ CTA banner ============ */
.cta-banner {
  position: relative;
  padding: 100px 0;
  color: #fff;
  background-size: cover;
  background-position: center;
}
.cta-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(15,12,9,0.82) 0%, rgba(15,12,9,0.35) 100%);
}
.cta-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-copy .eyebrow { color: var(--color-gold); }
.cta-copy h2 { color: #fff; max-width: 520px; }

/* ============ Footer ============ */
.site-footer { background: var(--color-dark); color: #EDE7DC; padding-top: 76px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .logo-mark-art img { filter: brightness(0) invert(1); }
.footer-brand .logo-text small { color: rgba(237,231,220,0.6); }
.footer-brand p { font-size: 0.85rem; color: rgba(237,231,220,0.65); margin: 16px 0 20px; max-width: 260px; }
.footer-tagline { font-family: var(--font-script); font-size: 1.3rem; color: var(--color-gold); }

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(237,231,220,0.55);
  margin-bottom: 18px;
  font-weight: 600;
}
.footer-col a, .footer-col p {
  display: block;
  font-size: 0.86rem;
  color: rgba(237,231,220,0.85);
  margin-bottom: 12px;
}
.footer-col a:hover { color: var(--color-gold); }
.contact-line { display: flex; align-items: flex-start; gap: 10px; }
.contact-line svg { flex-shrink: 0; margin-top: 3px; color: var(--color-gold); }

.social-row { display: flex; gap: 10px; }
.social-btn {
  width: 34px; height: 34px;
  border: 1px solid rgba(237,231,220,0.3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s ease;
}
.social-btn:hover { background: var(--color-gold); border-color: var(--color-gold); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 22px 0;
  font-size: 0.78rem;
  color: rgba(237,231,220,0.55);
}

/* ============ WhatsApp float ============ */
.whatsapp-float {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 56px; height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px -8px rgba(37,211,102,0.6);
  z-index: 50;
  color: #fff;
  transition: transform 0.15s ease;
}
.whatsapp-float:hover { transform: scale(1.06); }
/* En la página de reserva (móvil) la barra "Volver / Siguiente" queda fija abajo: el botón de WhatsApp sube por encima. */
@media (max-width: 760px) {
  body:has(.agenda-booking-page) .whatsapp-float { right: 10px; bottom: calc(88px + env(safe-area-inset-bottom, 0px)); width: 46px; height: 46px; opacity: .94; }
  body:has(.agenda-booking-page) .whatsapp-float svg { width: 24px; height: 24px; }
}

/* ============ PÃ¡gina genÃ©rica (Reserva, etc.) ============ */
.page-hero {
  background: var(--color-cream);
  padding: 64px 0 52px;
  text-align: center;
}
.page-hero h1 { font-size: 2.4rem; }
.page-content-wrap { max-width: 640px; margin: 0 auto; padding: 64px 0; }

/* ============ Responsive ============ */
@media (max-width: 1080px) {
  .tratamientos-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1180px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-right .icon-btn { display: none; }
}

@media (max-width: 900px) {

  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-copy h1 { font-size: 2.3rem; }
  .hero-media { order: -1; }
  .hero-script { font-size: 1.25rem; padding: 12px 16px; max-width: 160px; }

  .trust-row { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(3) { border-left: none; }

  .tratamientos-grid { grid-template-columns: repeat(2, 1fr); }

  .nosotros-grid { grid-template-columns: 1fr; }

  .pasos-row { grid-template-columns: repeat(2, 1fr); gap: 32px 12px; }
  .paso-chevron { display: none; }

  .testimonios-grid { grid-template-columns: 1fr; }

  .cta-inner { flex-direction: column; align-items: flex-start; text-align: left; }

  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .section { padding: 64px 0; }
  .hero-copy h1 { font-size: 1.9rem; }
  .hero-eyebrow-row .sep { display: block; margin-left: 0; margin-top: 4px; }
  .tratamientos-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .trust-row { grid-template-columns: 1fr; }
  .trust-item { border-left: none; border-top: 1px solid var(--border); }
  .trust-item:first-child { border-top: none; }
  .pasos-row { grid-template-columns: 1fr; }
}

/* ============ DirecciÃ³n visual editorial ============
   Una composiciÃ³n mÃ¡s continua, cÃ¡lida y sobria: imagen protagonista,
   serif de alto contraste y detalles finos en dorado. */
@media (min-width: 901px) {
  .site-header {
    position: sticky;
    top: 0;
    width: 100%;
    background: rgba(251,248,242,.91);
    border-bottom-color: rgba(230,220,201,.78);
    box-shadow: 0 8px 24px -20px rgba(24,20,15,.50);
    backdrop-filter: blur(12px);
  }
  .header-inner {
    display: grid;
    grid-template-columns: minmax(140px, 1fr) auto minmax(280px, 1fr);
    height: 116px;
    gap: 20px;
  }
  .site-header .logo { justify-self: start; }
  .site-header .logo-mark-art { width: 140px; height: 94px; flex: 0 0 140px; }
  .site-header .logo-mark-art img { width: 140px; }
  .main-nav { display: flex; gap: 20px; }
  .site-header .main-nav { justify-self: center; }
  .site-header .header-right { justify-self: end; }
  .main-nav a { color: var(--color-text); font-size: .68rem; letter-spacing: .025em; text-transform: none; }
  .main-nav a.active::after { background: var(--color-text); }
  .header-right .icon-btn { display: inline-flex; }
  .nav-toggle { display: none; }

  .hero { min-height: 520px; padding: 0; position: relative; background: var(--color-cream); }
  .hero > .container { position: relative; min-height: 520px; max-width: none; padding: 0; }
  .hero-eyebrow-row {
    position: absolute; z-index: 2; left: max(28px, calc((100vw - 1164px) / 2));
    top: 92px; margin: 0; text-align: left;
  }
  .hero-eyebrow-row .brand { font-size: 1.1rem; font-weight: 500; letter-spacing: .20em; }
  .hero-eyebrow-row .sep { display: block; margin: 6px 0 0; font-size: .58rem; letter-spacing: .32em; }
  .hero-grid { display: block; min-height: 520px; padding: 0; }
  .hero-copy {
    position: absolute; z-index: 2; left: max(28px, calc((100vw - 1164px) / 2)); top: 168px;
    width: min(620px, 47vw);
  }
  .hero-copy h1 { font-size: clamp(1.9rem, 2.3vw, 2.5rem); letter-spacing: -.02em; margin-bottom: 12px; white-space: nowrap; }
  .hero-sub { font-size: .88rem; max-width: 380px; }
  .hero-actions { margin-bottom: 26px; }
  .hero-media { position: absolute; inset: 0; z-index: 0; }
  .hero-photo { position: relative; height: 100%; aspect-ratio: auto; border-radius: 0; box-shadow: none; }
  .hero-photo::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg,
      var(--color-cream) 0%,
      rgba(246,240,230,.98) 30%,
      rgba(246,240,230,.78) 43%,
      rgba(246,240,230,.28) 57%,
      rgba(246,240,230,0) 72%);
  }
  .hero-photo img { filter: saturate(.72) contrast(.97); object-position: 64% center; }
  .hero-script {
    left: min(39vw, calc((100vw - 1164px) / 2 + 455px));
    right: auto;
    bottom: 70px;
    background: transparent;
    box-shadow: none;
    padding: 0;
    font-size: 1.5rem;
    color: #4f3c2a;
    transform: rotate(-7deg);
  }
  .hero-features { gap: 24px; }
  .hero-feature { color: #534a41; font-size: .68rem; }
}

.trust-bar { background: var(--color-cream-soft); }
.trust-item { padding: 22px 20px; }
.trust-item strong { font-size: .76rem; }
.trust-item span { font-size: .67rem; }
.section { padding: 80px 0; }
.section-head-center { margin-bottom: 42px; }
.section-head-center h2 { font-size: clamp(2rem, 3vw, 2.75rem); letter-spacing: -.025em; }
.section-head-center h2::after {
  content: ''; display: block; width: 38px; height: 1px; background: var(--color-gold-dark);
  margin: 17px auto 0;
}
.tratamientos-grid { gap: 8px; }
.tratamientos-carousel-controls { display: none; }
.tratamientos-grid .is-carousel-clone { display: none; }
.tratamiento-card { background: #fff; border: 1px solid var(--border); padding-bottom: 18px; text-align: center; }
.tratamiento-photo { border-radius: 0; aspect-ratio: 1 / 1; margin: 0 0 16px; }
.tratamiento-card h3 { padding: 0 13px; font-size: 1.04rem; }
.tratamiento-card p { padding: 0 13px; min-height: 46px; font-size: .72rem; line-height: 1.45; }
.tratamiento-card .link-arrow { justify-content: center; margin-top: auto; font-size: .64rem; }
.section#nosotros { padding: 0; }
.nosotros-grid { width: 100%; gap: 0; max-width: none; margin: 0; padding: 0; }
.nosotros-media { border-radius: 0; box-shadow: none; aspect-ratio: 1.08 / 1; }
.nosotros-copy { background: var(--color-cream); padding: clamp(40px, 5vw, 78px); align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
.nosotros-copy h2 { font-size: clamp(2rem, 3.1vw, 3rem); }
.nosotros-copy p { font-size: .88rem; }
.pasos-row { margin: 38px 0; }
.paso-num {
  width: 68px;
  height: 68px;
  margin-bottom: 11px;
  border: none;
  background: var(--color-cream);
  font-size: 1.55rem;
}
.paso-icon {
  display: flex;
  width: 32px;
  height: 32px;
  margin: 0 auto 13px;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
}
.paso-icon svg { width: 29px; height: 29px; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.paso h3 { font-family: var(--font-body); font-size: .82rem; font-weight: 600; }
.paso p { font-size: .72rem; }
.testimonio-card { border-radius: 0; text-align: center; padding: 28px 24px; }
.testi-person { border-top: 0; padding-top: 0; }
.testimonios-carousel { overflow: hidden; }
.testimonios-grid {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden; /* sin scroll vertical propio: no debe atrapar la rueda al bajar la pÃ¡gina */
  gap: 24px;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.testimonios-grid.is-dragging { cursor: grabbing; scroll-behavior: auto; }
/* Mientras se arrastra o se acomoda, el encaje del navegador no debe pelear con el movimiento. */
.testimonios-grid.is-dragging, .testimonios-grid.is-settling { scroll-snap-type: none; }
.testimonios-grid.is-dragging * { pointer-events: none; }
.testimonios-grid::-webkit-scrollbar { display: none; }
.testimonios-grid .testimonio-card {
  flex: 0 0 calc((100% - 48px) / 3);
  scroll-snap-align: start;
}
.testimonios-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 24px;
}
.cta-banner { padding: 92px 0; background-position: center 42%; }
.site-footer { padding-top: 58px; }

/* Mantiene la secciÃ³n editorial compacta en pantallas grandes. */
@media (min-width: 901px) {
  .nosotros-grid { height: 700px; }
  .nosotros-media { height: 700px; aspect-ratio: auto; }
}

@media (max-width: 900px) {
  .site-header { position: sticky; }
  .hero { padding-top: 42px; }
  .hero-eyebrow-row { text-align: left; margin-bottom: 24px; }
  .nosotros-grid { margin: 0; padding: 0; }
  .nosotros-copy { padding: 42px 30px; }

  /* Carrusel tÃ¡ctil para el catÃ¡logo en formatos responsivos. */
  .tratamientos-carousel { margin-right: -28px; overflow: hidden; overflow-anchor: none; }
  .tratamientos-grid {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    overflow-anchor: none;
    grid-template-columns: none;
    gap: 14px;
    /* padding-bottom + margin-bottom negativo (misma medida): empuja la
       barra de scroll nativa fuera del Ã¡rea visible, recortada por el
       overflow:hidden del carrusel. Cubre navegadores que no respetan
       scrollbar-width/::-webkit-scrollbar (algunos WebView de Android),
       donde antes quedaba una barra visible interrumpiendo el diseÃ±o. */
    padding: 0 28px 27px 0;
    margin-bottom: -17px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    overscroll-behavior-x: contain;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
  }
  .tratamientos-grid::-webkit-scrollbar { display: none; }
  .tratamientos-grid img {
    -webkit-user-drag: none;
    user-drag: none;
  }
  .tratamiento-card {
    /* Deja ver parte de la tarjeta siguiente para comunicar que se puede deslizar. */
    flex: 0 0 clamp(190px, 58vw, 250px);
    scroll-snap-align: start;
  }
  .tratamientos-grid .is-carousel-clone { display: block; }
  .tratamientos-grid.is-dragging { cursor: grabbing; scroll-snap-type: none; }
  .tratamientos-grid.is-dragging * { pointer-events: none; }
  .tratamientos-carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 12px 28px 0 0;
  }
  .carousel-arrow {
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--color-text);
    background: #fff;
    font-size: 1.15rem;
    line-height: 1;
    transition: background .18s ease, color .18s ease, border-color .18s ease;
  }
  .carousel-arrow:not(:disabled):hover { background: var(--color-dark); border-color: var(--color-dark); color: #fff; }
  .carousel-arrow:disabled { opacity: .34; cursor: not-allowed; }
  .carousel-progress { min-width: 38px; color: var(--color-text-soft); font-size: .75rem; letter-spacing: .08em; text-align: center; }

  .testimonios-grid .testimonio-card { flex-basis: min(84vw, 420px); }
}

/* ============ Carrusel de tratamientos en escritorio ============
   Se activa por JS (.is-desktop-carousel) solo cuando hay más tarjetas que columnas;
   si caben todas se mantiene la grilla. En móvil rige el carrusel táctil de arriba. */
.tratamientos-carousel { --tratamientos-cols: 5; --tratamientos-gap: 8px; position: relative; }
@media (max-width: 1180px) { .tratamientos-carousel { --tratamientos-cols: 2; } }
.tratamientos-nav { display: none; }
@media (min-width: 901px) {
  .tratamientos-carousel.is-desktop-carousel .tratamientos-grid {
    display: flex;
    gap: var(--tratamientos-gap);
    overflow-x: auto;
    overflow-y: hidden; /* sin scroll vertical propio: no debe atrapar la rueda al bajar la página */
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }
  .tratamientos-carousel.is-desktop-carousel .tratamientos-grid::-webkit-scrollbar { display: none; }
  .tratamientos-carousel.is-desktop-carousel .tratamientos-grid {
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
  }
  .tratamientos-carousel.is-desktop-carousel .tratamientos-grid img { -webkit-user-drag: none; user-drag: none; }
  /* Mientras se arrastra o se acomoda, el encaje del navegador no debe pelear con el movimiento. */
  .tratamientos-carousel.is-desktop-carousel .tratamientos-grid.is-dragging,
  .tratamientos-carousel.is-desktop-carousel .tratamientos-grid.is-settling { scroll-snap-type: none; }
  .tratamientos-carousel.is-desktop-carousel .tratamientos-grid.is-dragging { cursor: grabbing; }
  .tratamientos-carousel.is-desktop-carousel .tratamientos-grid.is-dragging * { pointer-events: none; }
  .tratamientos-carousel.is-desktop-carousel .tratamiento-card {
    flex: 0 0 calc((100% - (var(--tratamientos-cols) - 1) * var(--tratamientos-gap)) / var(--tratamientos-cols));
    scroll-snap-align: start;
  }
  .tratamientos-carousel.is-desktop-carousel .tratamientos-nav {
    display: grid;
    place-items: center;
    position: absolute;
    top: calc(50% - 60px);
    z-index: 2;
    width: 46px;
    height: 46px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: #fff;
    color: var(--color-text);
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
    transition: background .18s ease, color .18s ease, border-color .18s ease, opacity .18s ease;
  }
  .tratamientos-nav--prev { left: -23px; }
  .tratamientos-nav--next { right: -23px; }
  .tratamientos-carousel.is-desktop-carousel .tratamientos-nav:not(:disabled):hover { background: var(--color-dark); border-color: var(--color-dark); color: #fff; }
  .tratamientos-carousel.is-desktop-carousel .tratamientos-nav:disabled { opacity: 0; pointer-events: none; }
}

/* ============ Movimiento sutil ============ */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .72s cubic-bezier(.2,.7,.2,1), transform .72s cubic-bezier(.2,.7,.2,1), clip-path .8s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
.reveal-on-scroll.reveal-media { clip-path: inset(0 0 10% 0); }
.reveal-on-scroll.is-revealed { opacity: 1; transform: translateY(0); clip-path: inset(0); }

.tratamiento-photo img,
.nosotros-media img { transition: transform .65s cubic-bezier(.2,.7,.2,1); }
.tratamiento-card:hover .tratamiento-photo img { transform: scale(1.055); }
.nosotros-media:hover img { transform: scale(1.035); }
.btn { transition: transform .22s ease, box-shadow .22s ease, background .22s ease, color .22s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 20px -14px rgba(24,20,15,.7); }

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

/* Encabezado compacto para mÃ³viles estrechos, incluido el flujo de reserva. */
@media (max-width: 600px) {
  /* overflow-x:clip (con hidden de respaldo) evita el desplazamiento horizontal sin convertir body en un contenedor de
     desplazamiento, que rompería los elementos con position:sticky (p. ej. la barra Volver/Siguiente de la reserva). */
  html, body { max-width: 100%; overflow-x: hidden; overflow-x: clip; }
  .site-header { width: 100%; }
  .header-inner { position: relative; height: 82px; justify-content: center; gap: 8px; padding-left: 14px; padding-right: 10px; }
  .site-header .logo { position: absolute; left: 50%; min-width: 0; gap: 0; transform: translateX(-50%); }
  .logo-mark { width: 31px; height: 31px; font-size: .62rem; }
  .site-header .logo-mark-art { width: 96px; height: 64px; flex: 0 0 96px; }
  .site-header .logo-mark-art img { width: 96px; }
  .header-right { position: static; gap: 2px; }
  .header-right .btn-dark { display: none; }
  .header-right .icon-btn[aria-label="Buscar"], .header-right .icon-btn[aria-label="Mis reservas"] { display: none; }
  .header-right .icon-btn[aria-label="Mi cuenta"] { position: absolute; top: 25px; right: 14px; display: inline-flex; width: 32px; height: 32px; }
  .nav-toggle { position: absolute; top: 25px; left: 14px; display: flex; width: 32px; height: 32px; }
}

/* Banner mÃ³vil: copy, fotografÃ­a, CTA y beneficios integrados en una sola pieza. */
@media (max-width: 900px) {
  .hero {
    padding: 18px 0 28px;
    background: var(--color-cream);
  }
  .hero > .container { padding: 0 20px; }
  .hero-eyebrow-row { display: none; }
  .hero-grid {
    position: relative;
    display: block;
    min-height: clamp(560px, calc(100svh - 205px), 690px);
    padding: 0;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid rgba(230,220,201,.78);
    border-radius: 26px;
    background: var(--color-cream);
    box-shadow: 0 16px 42px -34px rgba(24,20,15,.5);
  }
  .hero-media {
    position: absolute;
    z-index: 0;
    inset: 0;
  }
  .hero-photo {
    position: absolute;
    inset: 0;
    height: 100%;
    aspect-ratio: auto;
    border-radius: 0;
    box-shadow: none;
  }
  .hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 68% center;
    filter: saturate(1) contrast(1.02);
  }
  .hero-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
      linear-gradient(180deg, rgba(249,246,240,0) 0%, rgba(249,246,240,.04) 54%, rgba(249,246,240,.42) 82%, rgba(249,246,240,.82) 100%),
      linear-gradient(90deg, rgba(249,246,240,.92) 0%, rgba(249,246,240,.64) 42%, rgba(249,246,240,.12) 68%, rgba(249,246,240,0) 84%);
  }
  .hero-copy {
    position: absolute;
    z-index: 1;
    top: 31%;
    right: 22px;
    bottom: 20px;
    left: 22px;
    width: auto;
    display: flex;
    flex-direction: column;
  }
  .hero-copy h1 {
    width: min(58%, 270px);
    max-width: none;
    margin: 0 0 10px;
    font-size: clamp(1.8rem, 7.3vw, 2.35rem);
    line-height: 1.06;
    letter-spacing: -.025em;
    white-space: normal;
  }
  .hero-sub {
    width: min(58%, 270px);
    max-width: none;
    margin: 0;
    color: #6f6962;
    font-size: .88rem;
    line-height: 1.5;
  }
  .hero-actions { width: min(58%, 270px); margin: 16px 0 0; }
  .hero-actions .btn {
    width: min(100%, 270px);
    min-height: 50px;
    justify-content: center;
    padding: 14px 18px;
  }
  .hero-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding-top: 14px;
    margin-top: auto;
    border-top: 1px solid rgba(163,126,67,.25);
  }
  .hero-feature {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    color: #6f6962;
    font-size: .58rem;
    line-height: 1.28;
  }
  .hero-feature svg { width: 18px; height: 18px; }
  .hero-script { display: none; }
}

@media (max-width: 380px) {
  .hero > .container { padding-right: 16px; padding-left: 16px; }
  .hero-grid { min-height: clamp(550px, calc(100svh - 190px), 650px); border-radius: 22px; }
  .hero-copy { top: 31%; right: 17px; bottom: 17px; left: 17px; }
  .hero-copy h1 { font-size: 1.8rem; }
  .hero-sub { font-size: .82rem; }
  .hero-feature { font-size: .53rem; }
}
