/* =====================================================================
   AURELIA · Estudio de Belleza
   style.css — Sistema de diseño premium, mobile-first, responsive.
   Orden: 1) Tokens  2) Reset  3) Tipografía  4) Layout/utilidades
          5) Componentes  6) Secciones  7) Animaciones  8) Responsive
   ===================================================================== */

/* ============================ 1 · TOKENS ============================ */
:root {
  /* Paleta */
  --porcelain: #FBF8F7;   /* fondo base, marfil cálido */
  --petal:     #F3E9E6;   /* tinte blush para secciones alternas */
  --petal-2:   #F7EFEC;
  --cacao:     #2A2320;   /* texto principal, casi-negro cálido */
  --stone:     #6E635D;   /* texto secundario, taupe */
  --stone-2:   #938880;
  --rose:      #BE8B84;   /* acento primario, rosé polvo */
  --rose-deep: #9E6B65;   /* hover/press del acento */
  --rose-soft: #E7CFC9;
  --gold:      #C6A15B;   /* oro champán — solo hairlines y detalles */
  --line:      #ECE1DC;   /* bordes hairline */
  --white:     #FFFFFF;

  /* Sombras suaves (elevación premium) */
  --shadow-sm: 0 1px 2px rgba(42,35,32,.04), 0 2px 8px rgba(42,35,32,.05);
  --shadow-md: 0 6px 20px rgba(42,35,32,.07), 0 2px 6px rgba(42,35,32,.05);
  --shadow-lg: 0 20px 48px rgba(42,35,32,.12), 0 4px 12px rgba(42,35,32,.06);
  --shadow-rose: 0 14px 30px rgba(158,107,101,.22);

  /* Radios */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-pill: 999px;

  /* Tipografía */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Escala tipográfica fluida (clamp: min, vw, max) */
  --fs-eyebrow: .78rem;
  --fs-body: clamp(1rem, .96rem + .2vw, 1.075rem);
  --fs-lead: clamp(1.05rem, 1rem + .5vw, 1.25rem);
  --fs-h3: clamp(1.15rem, 1.05rem + .5vw, 1.4rem);
  --fs-h2: clamp(1.9rem, 1.4rem + 2.4vw, 3.1rem);
  --fs-h1: clamp(2.6rem, 1.7rem + 4.4vw, 4.6rem);
  --fs-cta: clamp(2.1rem, 1.4rem + 3.4vw, 3.6rem);

  /* Espaciado de sección fluido */
  --space-section: clamp(4.5rem, 3rem + 6vw, 8rem);
  --container: 1200px;
  --gutter: clamp(1.15rem, .6rem + 2.4vw, 2.5rem);

  /* Easing (curvas fuertes — Emil Kowalski) */
  --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);
}

/* ============================ 2 · RESET ============================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 92px; /* compensa nav fija al saltar con ancla */
}

/* Reglas anti scroll-horizontal (obligatorias) */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--cacao);
  background: var(--porcelain);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font: inherit; color: inherit; }
ul { list-style: none; padding: 0; }

::selection { background: var(--rose-soft); color: var(--cacao); }

/* Foco visible accesible */
:focus-visible {
  outline: 2.5px solid var(--rose-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: -60px;
  transform: translateX(-50%);
  background: var(--cacao);
  color: var(--porcelain);
  padding: .6rem 1.2rem;
  border-radius: var(--r-pill);
  z-index: 200;
  transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 12px; }

/* ========================= 3 · TIPOGRAFÍA ========================= */
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.08; letter-spacing: -.01em; }
h1 em, h2 em { font-style: italic; color: var(--rose-deep); font-weight: 400; }
p { text-wrap: pretty; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--rose-deep);
  margin-bottom: 1rem;
}
.eyebrow__mark {
  width: 26px; height: 1px;
  background: var(--gold);
  display: inline-block;
}
.eyebrow--light { color: var(--rose-soft); }
.eyebrow--light .eyebrow__mark { background: var(--rose-soft); }

/* ==================== 4 · LAYOUT & UTILIDADES ==================== */
.container {
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
}

.section { padding-block: var(--space-section); }
.section--tint { background: var(--petal); }

.section__head { max-width: 640px; margin: 0 auto clamp(2.5rem, 5vw, 4rem); text-align: center; }
.section__head--left { text-align: left; margin-inline: 0; }
.section__head .eyebrow { justify-content: center; }
.section__head--left .eyebrow { justify-content: flex-start; }
.section__title { font-size: var(--fs-h2); }
.section__sub { margin-top: 1rem; color: var(--stone); font-size: var(--fs-lead); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; color: var(--rose-deep);
  margin-top: 1.6rem;
}
.link-arrow span { transition: transform .25s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .link-arrow:hover span { transform: translateX(5px); }
}

/* --------------------------- Botones --------------------------- */
.btn {
  --btn-pad-y: .9rem;
  --btn-pad-x: 1.6rem;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: .98rem;
  letter-spacing: .01em;
  text-align: center;
  transition: transform .16s var(--ease-out),
              box-shadow .25s var(--ease-out),
              background-color .25s var(--ease-out),
              color .25s var(--ease-out);
}
.btn:active { transform: scale(0.97); }     /* feedback de presión */

.btn--sm { --btn-pad-y: .62rem; --btn-pad-x: 1.15rem; font-size: .9rem; }
.btn--block { width: 100%; }

.btn--primary { background: var(--rose-deep); color: var(--white); box-shadow: var(--shadow-rose); }
.btn--ghost { background: transparent; color: var(--cacao); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--light { background: var(--white); color: var(--cacao); box-shadow: var(--shadow-md); }
.btn--outline-light { background: transparent; color: var(--white); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.5); }

@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: var(--cacao); box-shadow: var(--shadow-lg); }
  .btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--rose); color: var(--rose-deep); }
  .btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
  .btn--outline-light:hover { background: rgba(255,255,255,.12); }
}

/* Chips / filtros */
.chip {
  padding: .55rem 1.15rem;
  border-radius: var(--r-pill);
  font-size: .9rem; font-weight: 600;
  color: var(--stone);
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: color .2s var(--ease-out), background-color .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.chip.is-active { color: var(--white); background: var(--rose-deep); box-shadow: none; }
@media (hover: hover) and (pointer: fine) {
  .chip:not(.is-active):hover { color: var(--rose-deep); box-shadow: inset 0 0 0 1px var(--rose); }
}

/* Marca / logo */
.brand { display: inline-flex; align-items: center; gap: .6rem; }
.brand__mark {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.3rem; font-weight: 500;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose) 0%, var(--rose-deep) 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.25);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: .12em; }
.brand__tag { font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: var(--stone-2); }

/* ========================= 5 · NAVEGACIÓN ========================= */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251,248,247,.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.nav.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}
.nav__links { display: none; gap: clamp(1rem, 2.4vw, 2rem); }
.nav__links a {
  font-weight: 600; font-size: .95rem; color: var(--stone);
  position: relative; padding: .3rem 0;
  transition: color .2s var(--ease-out);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 1.5px; background: var(--rose-deep);
  transform: scaleX(0); transform-origin: left;
  transition: transform .28s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .nav__links a:hover { color: var(--cacao); }
  .nav__links a:hover::after { transform: scaleX(1); }
}
.nav__actions { display: flex; align-items: center; gap: .7rem; }
.nav__cta { display: none; }

/* Switcher de sede (signature) */
.sede-switch { position: relative; }
.sede-switch__btn {
  display: flex; align-items: center; gap: .55rem;
  padding: .4rem .7rem .4rem .55rem;
  border-radius: var(--r-pill);
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm);
  transition: box-shadow .25s var(--ease-out), transform .16s var(--ease-out);
}
.sede-switch__btn:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) {
  .sede-switch__btn:hover { box-shadow: inset 0 0 0 1px var(--rose), var(--shadow-md); }
}
.sede-switch__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(198,161,91,.5);
  animation: pulse-dot 2.6s var(--ease-out) infinite;
}
.sede-switch__flag { font-size: 1.15rem; line-height: 1; }
.sede-switch__label { display: none; flex-direction: column; line-height: 1.1; text-align: left; }
.sede-switch__eyebrow { font-size: .56rem; letter-spacing: .14em; text-transform: uppercase; color: var(--stone-2); }
.sede-switch__city { font-size: .85rem; font-weight: 700; }
.sede-switch__chev { width: 11px; color: var(--stone); transition: transform .25s var(--ease-out); }
.sede-switch__btn[aria-expanded="true"] .sede-switch__chev { transform: rotate(180deg); }

.sede-switch__menu {
  position: absolute; right: 0; top: calc(100% + 10px);
  width: 260px; max-width: 78vw;
  background: var(--white);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  padding: .5rem;
  transform-origin: top right;      /* origin-aware: crece desde el disparador */
  transform: scale(0.96) translateY(-4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s var(--ease-out), transform .22s var(--ease-out), visibility .22s;
  z-index: 120;
}
.sede-switch__menu.is-open { opacity: 1; visibility: visible; transform: scale(1) translateY(0); }
.sede-opt {
  display: flex; align-items: center; gap: .8rem; width: 100%;
  padding: .7rem .8rem; border-radius: var(--r-sm); text-align: left;
  transition: background-color .18s var(--ease-out);
}
.sede-opt:hover, .sede-opt:focus-visible { background: var(--petal); }
.sede-opt__flag { font-size: 1.5rem; }
.sede-opt__name { font-weight: 700; font-size: .95rem; }
.sede-opt__addr { font-size: .8rem; color: var(--stone); }
.sede-opt[aria-current="true"] { background: var(--petal-2); }
.sede-opt[aria-current="true"] .sede-opt__check { color: var(--rose-deep); margin-left: auto; }
.sede-opt__check { color: transparent; margin-left: auto; font-weight: 700; }

/* Hamburguesa */
.nav__burger { width: 42px; height: 42px; display: grid; place-content: center; gap: 5px; border-radius: 50%; }
.nav__burger span { display: block; width: 20px; height: 2px; background: var(--cacao); border-radius: 2px; transition: transform .3s var(--ease-out), opacity .2s var(--ease-out); }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  display: flex; flex-direction: column; gap: .3rem;
  padding: 1rem var(--gutter) 1.6rem;
  background: var(--porcelain);
  border-top: 1px solid var(--line);
}
.nav__mobile a { padding: .75rem .3rem; font-weight: 600; color: var(--cacao); border-bottom: 1px solid var(--line); }
.nav__mobile a:last-child { border-bottom: none; }
.nav__mobile-cta { margin-top: .8rem; border-bottom: none !important; color: var(--white); }

/* ============================ 6 · HERO ============================ */
.hero { position: relative; padding-top: clamp(2.5rem, 4vw, 4rem); padding-bottom: var(--space-section); overflow: hidden; }
.hero__glow {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 50% at 80% 10%, rgba(231,207,201,.55) 0%, transparent 60%),
    radial-gradient(50% 40% at 5% 30%, rgba(247,239,236,.9) 0%, transparent 60%);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
.hero__copy { max-width: 40rem; }
.hero__title { font-size: var(--fs-h1); margin-bottom: 1.3rem; }
.hero__lead { font-size: var(--fs-lead); color: var(--stone); max-width: 34rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

.hero__trust {
  display: flex; flex-wrap: wrap; gap: clamp(1.2rem, 4vw, 2.6rem);
  margin-top: 2.6rem; padding-top: 1.8rem;
  border-top: 1px solid var(--line);
}
.hero__trust li { display: flex; flex-direction: column; }
.hero__trust strong { font-family: var(--font-display); font-size: 1.7rem; line-height: 1; }
.hero__trust span { font-size: .82rem; color: var(--stone); letter-spacing: .01em; }

.hero__media { position: relative; }
.hero__photo {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__badge {
  position: absolute; left: -8px; bottom: 26px;
  display: flex; align-items: center; gap: .6rem;
  background: var(--white); color: var(--cacao);
  padding: .8rem 1.1rem; border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  font-size: .8rem; font-weight: 700; line-height: 1.15;
}
.hero__badge-star { color: var(--gold); font-size: 1.3rem; }

/* Selector de sede (tarjetas) */
.sede-picker {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(1.3rem, 3vw, 2rem);
  border: 1px solid var(--line);
}
.sede-picker__title { text-align: center; font-family: var(--font-display); font-size: var(--fs-h3); margin-bottom: 1.4rem; }
.sede-picker__grid {
  display: grid; grid-template-columns: 1fr; gap: 1rem;
}
.sede-card {
  display: flex; align-items: center; gap: 1rem; text-align: left;
  padding: 1.1rem 1.2rem;
  border-radius: var(--r-md);
  background: var(--porcelain);
  border: 1.5px solid var(--line);
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), border-color .25s var(--ease-out);
  position: relative; overflow: hidden;
}
.sede-card__flag { font-size: 2.2rem; line-height: 1; }
.sede-card__body { flex: 1; min-width: 0; }
.sede-card__country { font-weight: 700; font-size: 1.05rem; }
.sede-card__addr { font-size: .88rem; color: var(--stone); }
.sede-card__cta {
  font-size: .82rem; font-weight: 700; color: var(--rose-deep);
  display: inline-flex; align-items: center; gap: .35rem; margin-top: .35rem;
}
.sede-card__cta span { transition: transform .25s var(--ease-out); }
.sede-card__check {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center;
  background: transparent; color: transparent;
  box-shadow: inset 0 0 0 1.5px var(--line);
  transition: background-color .25s var(--ease-out), color .25s var(--ease-out), box-shadow .25s var(--ease-out);
  font-size: .8rem; font-weight: 700;
}
@media (hover: hover) and (pointer: fine) {
  .sede-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--rose-soft); }
  .sede-card:hover .sede-card__cta span { transform: translateX(4px); }
}
.sede-card.is-active {
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(190,139,132,.16), var(--shadow-md);
  background: var(--white);
}
.sede-card.is-active .sede-card__check { background: var(--rose-deep); color: var(--white); box-shadow: none; }

/* ======================= SECCIÓN: SOBRE ======================= */
.about__inner { display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about__media { position: relative; }
.about__media img { width: 100%; border-radius: var(--r-lg); box-shadow: var(--shadow-md); aspect-ratio: 4/5; object-fit: cover; }
.about__stat {
  position: absolute; right: -6px; bottom: -18px;
  background: var(--rose-deep); color: var(--white);
  padding: 1rem 1.3rem; border-radius: var(--r-md);
  display: flex; align-items: center; gap: .7rem;
  box-shadow: var(--shadow-lg);
}
.about__stat strong { font-family: var(--font-display); font-size: 2.4rem; line-height: 1; }
.about__stat span { font-size: .8rem; line-height: 1.15; }
.about__copy p { color: var(--stone); margin-top: 1.2rem; }
.about__list { display: grid; gap: .7rem; margin-top: 1.6rem; }
.about__list li { display: flex; gap: .7rem; align-items: flex-start; color: var(--cacao); }
.about__list span { color: var(--gold); }

/* ======================= SECCIÓN: SERVICIOS ======================= */
.services { background: var(--petal); }
.services__grid {
  display: grid; grid-template-columns: 1fr; gap: clamp(1.1rem, 2.5vw, 1.6rem);
}
.svc {
  background: var(--white);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.svc__media { aspect-ratio: 3/2; overflow: hidden; }
.svc__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
.svc__body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.svc__title { font-size: var(--fs-h3); margin-bottom: .4rem; }
.svc__desc { color: var(--stone); font-size: .95rem; flex: 1; }
.svc__meta { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin: 1.1rem 0 1.1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.svc__dur { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; color: var(--stone); }
.svc__price { text-align: right; }
.svc__price small { display: block; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--stone-2); }
.svc__price strong { font-family: var(--font-display); font-size: 1.35rem; color: var(--cacao); }
@media (hover: hover) and (pointer: fine) {
  .svc:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
  .svc:hover .svc__media img { transform: scale(1.05); }
}

/* ======================= SECCIÓN: EQUIPO ======================= */
.team__grid { display: grid; grid-template-columns: 1fr; gap: clamp(1.1rem, 2.5vw, 1.6rem); }
.member {
  background: var(--white); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.member__media { aspect-ratio: 1/1; overflow: hidden; position: relative; }
.member__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
.member__badge { position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,.92); color: var(--rose-deep); font-size: .72rem; font-weight: 700; letter-spacing: .04em; padding: .3rem .7rem; border-radius: var(--r-pill); }
.member__body { padding: 1.2rem 1.3rem 1.4rem; }
.member__name { font-size: 1.25rem; }
.member__spec { color: var(--rose-deep); font-weight: 600; font-size: .88rem; }
.member__exp { font-size: .78rem; color: var(--stone-2); letter-spacing: .02em; margin-top: .1rem; }
.member__desc { color: var(--stone); font-size: .9rem; margin: .7rem 0 1.1rem; }
.member__cta { font-size: .85rem; font-weight: 700; color: var(--rose-deep); display: inline-flex; gap: .4rem; align-items: center; }
.member__cta span { transition: transform .25s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .member:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
  .member:hover .member__media img { transform: scale(1.05); }
  .member__cta:hover span { transform: translateX(4px); }
}

/* ======================= SECCIÓN: GALERÍA ======================= */
.gallery { background: var(--petal); }
.gallery__filters { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 2rem; }

.beforeafter { margin: 0 auto 2rem; max-width: 760px; }
.beforeafter__wrap {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-md); aspect-ratio: 3/2; user-select: none; touch-action: none;
}
/* Ambas capas ocupan el 100% del wrap → alineación perfecta, sin overflow */
.ba-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-after { clip-path: inset(0 0 0 50%); }  /* revela la mitad derecha (Después) */
.beforeafter__handle {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 40px; transform: translateX(-50%);
  display: grid; place-items: center; cursor: ew-resize; color: var(--rose-deep);
}
.beforeafter__handle::before { content: ""; position: absolute; top: 0; bottom: 0; width: 2px; background: var(--white); box-shadow: 0 0 6px rgba(0,0,0,.2); }
.beforeafter__handle span { width: 40px; height: 40px; border-radius: 50%; background: var(--white); box-shadow: var(--shadow-md); display: grid; place-items: center; font-weight: 700; letter-spacing: -2px; }
.beforeafter__tag { position: absolute; bottom: 12px; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: rgba(42,35,32,.6); color: var(--white); padding: .25rem .6rem; border-radius: var(--r-pill); }
.beforeafter__tag--before { left: 12px; }
.beforeafter__tag--after { right: 12px; }

.gallery__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
.gitem {
  position: relative; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 1/1;
  box-shadow: var(--shadow-sm); cursor: zoom-in;
  transition: opacity .35s var(--ease-out), transform .35s var(--ease-out);
}
.gitem img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
.gitem::after { content: "⌕"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.6rem; color: var(--white); background: rgba(42,35,32,.28); opacity: 0; transition: opacity .3s var(--ease-out); }
.gitem.is-hidden { display: none; }
@media (hover: hover) and (pointer: fine) {
  .gitem:hover img { transform: scale(1.06); }
  .gitem:hover::after { opacity: 1; }
}

/* ===================== SECCIÓN: TESTIMONIOS ===================== */
.testimonials__grid { display: grid; grid-template-columns: 1fr; gap: clamp(1.1rem, 2.5vw, 1.6rem); }
.tst {
  background: var(--white); border-radius: var(--r-lg); padding: 1.6rem 1.7rem;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 1rem;
}
.tst__stars { color: var(--gold); letter-spacing: .1em; font-size: .95rem; }
.tst__text { font-family: var(--font-display); font-size: 1.12rem; line-height: 1.5; color: var(--cacao); }
.tst__who { display: flex; align-items: center; gap: .8rem; margin-top: auto; }
.tst__avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.tst__name { font-weight: 700; font-size: .95rem; }
.tst__loc { font-size: .8rem; color: var(--stone); }

/* ====================== SECCIÓN: PROMOS ====================== */
.promos__grid { display: grid; grid-template-columns: 1fr; gap: clamp(1.1rem, 2.5vw, 1.6rem); }
.promo {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  padding: 1.8rem; min-height: 230px;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: var(--white); box-shadow: var(--shadow-md);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.promo__bg { position: absolute; inset: 0; z-index: -2; }
.promo__bg img { width: 100%; height: 100%; object-fit: cover; }
.promo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(42,35,32,.05) 0%, rgba(42,35,32,.72) 100%); }
.promo__tag { align-self: flex-start; background: var(--white); color: var(--rose-deep); font-size: .72rem; font-weight: 700; letter-spacing: .06em; padding: .3rem .7rem; border-radius: var(--r-pill); margin-bottom: auto; }
.promo__title { font-size: 1.5rem; color: var(--white); margin-bottom: .3rem; }
.promo__desc { font-size: .9rem; opacity: .92; margin-bottom: 1rem; }
@media (hover: hover) and (pointer: fine) {
  .promo:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
}

/* ====================== SECCIÓN: RESERVA ====================== */
.reserve__inner { display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.reserve__copy p { color: var(--stone); }
.reserve__perks { display: grid; gap: .6rem; margin: 1.5rem 0; }
.reserve__perks li { display: flex; gap: .6rem; }
.reserve__perks span { color: var(--gold); }
.reserve__contactcard {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 1.2rem 1.3rem; box-shadow: var(--shadow-sm);
  display: grid; gap: .5rem;
}
.reserve__contactcard h4 { font-family: var(--font-body); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--stone-2); }
.reserve__contactcard .row { display: flex; gap: .6rem; align-items: center; font-size: .92rem; }
.reserve__contactcard .row b { color: var(--rose-deep); }

.reserve__form {
  background: var(--white); border-radius: var(--r-lg); padding: clamp(1.4rem, 3vw, 2rem);
  box-shadow: var(--shadow-md); border: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr; gap: 1rem;   /* móvil: una columna */
}
.field { display: flex; flex-direction: column; gap: .4rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .8rem; font-weight: 600; color: var(--stone); letter-spacing: .02em; }
.field input, .field select {
  padding: .8rem .9rem; border-radius: var(--r-sm);
  background: var(--porcelain);
  box-shadow: inset 0 0 0 1.5px var(--line);
  transition: box-shadow .2s var(--ease-out), background-color .2s var(--ease-out);
  width: 100%;
}
.field input:focus, .field select:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--rose); background: var(--white); }
.reserve__form .btn { grid-column: 1 / -1; }
.reserve__note { grid-column: 1/-1; font-size: .85rem; color: var(--rose-deep); min-height: 1rem; text-align: center; }

/* ======================== SECCIÓN: FAQ ======================== */
.faq__inner { display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.faq__list { display: grid; gap: .7rem; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; transition: box-shadow .25s var(--ease-out); }
.faq-item.is-open { box-shadow: var(--shadow-sm); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.3rem; text-align: left; font-weight: 600; font-size: 1rem; }
.faq-icon { flex-shrink: 0; width: 24px; height: 24px; position: relative; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; top: 50%; left: 50%; width: 12px; height: 2px; background: var(--rose-deep); border-radius: 2px; transform: translate(-50%,-50%); transition: transform .3s var(--ease-out); }
.faq-icon::after { transform: translate(-50%,-50%) rotate(90deg); }
.faq-item.is-open .faq-icon::after { transform: translate(-50%,-50%) rotate(0); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s var(--ease-out); }
.faq-a > div { overflow: hidden; }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a p { padding: 0 1.3rem 1.2rem; color: var(--stone); font-size: .95rem; }

/* ====================== SECCIÓN: UBICACIÓN ====================== */
.locations__grid { display: grid; grid-template-columns: 1fr; gap: clamp(1.4rem, 3vw, 2rem); }
.loc-card {
  background: var(--white); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: box-shadow .3s var(--ease-out), border-color .3s var(--ease-out);
}
.loc-card.is-active { border-color: var(--rose); box-shadow: 0 0 0 3px rgba(190,139,132,.14), var(--shadow-md); }
.loc-card__map { aspect-ratio: 16/10; background: var(--petal); }
.loc-card__map iframe { width: 100%; height: 100%; border: 0; }
.loc-card__body { padding: 1.4rem 1.5rem 1.6rem; display: grid; gap: .9rem; }
.loc-card__head { display: flex; align-items: center; gap: .7rem; }
.loc-card__flag { font-size: 1.8rem; }
.loc-card__country { font-weight: 700; font-size: 1.15rem; }
.loc-card__sede { font-size: .82rem; color: var(--rose-deep); font-weight: 600; }
.loc-card__badge { margin-left: auto; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--rose-deep); background: var(--petal); padding: .3rem .6rem; border-radius: var(--r-pill); opacity: 0; transition: opacity .3s var(--ease-out); }
.loc-card.is-active .loc-card__badge { opacity: 1; }
.loc-row { display: flex; gap: .7rem; align-items: flex-start; font-size: .92rem; }
.loc-row .ic { color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.loc-row .hours { display: grid; gap: .15rem; }
.loc-row .hours span { display: flex; justify-content: space-between; gap: 1.5rem; }
.loc-card__actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .3rem; }

/* ====================== SECCIÓN: INSTAGRAM ====================== */
.insta__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; }
.insta-item { position: relative; aspect-ratio: 1/1; border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.insta-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
.insta-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(158,107,101,.55)); opacity: 0; transition: opacity .3s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .insta-item:hover img { transform: scale(1.07); }
  .insta-item:hover::after { opacity: 1; }
}
.insta__cta { text-align: center; margin-top: 2rem; }

/* ======================== CTA FINAL ======================== */
.cta { position: relative; overflow: hidden; color: var(--white); padding-block: clamp(4rem, 8vw, 7rem); }
.cta__gradient {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, #7c534d 0%, #9E6B65 35%, #BE8B84 70%, #c99a86 100%);
  background-size: 220% 220%;
  animation: gradient-pan 14s ease infinite;   /* animated gradient */
}
.cta__inner { text-align: center; max-width: 640px; margin-inline: auto; }
.cta__title { font-size: var(--fs-cta); margin-bottom: 1rem; }
.cta__sub { font-size: var(--fs-lead); opacity: .95; margin-bottom: 2rem; }
.cta__actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }

/* ========================= FOOTER ========================= */
.footer { background: var(--cacao); color: #D9CFC9; }
.footer__inner {
  display: grid; grid-template-columns: 1fr; gap: 2.2rem;
  padding-block: clamp(3rem, 6vw, 4.5rem);
}
.footer .brand__name, .footer .brand__tag { color: var(--porcelain); }
.footer .brand__tag { color: var(--stone-2); }
.footer__desc { color: var(--stone-2); font-size: .9rem; margin: 1rem 0 1.2rem; max-width: 30ch; }
.footer__social { display: flex; gap: .6rem; }
.footer__social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.07); transition: background-color .25s var(--ease-out), transform .16s var(--ease-out); }
.footer__social a:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .footer__social a:hover { background: var(--rose-deep); } }
.footer__social svg { width: 18px; height: 18px; fill: var(--porcelain); }
.footer__col h3 { font-family: var(--font-body); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--porcelain); margin-bottom: 1rem; }
.footer__col a { display: block; color: var(--stone-2); font-size: .92rem; padding: .3rem 0; transition: color .2s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .footer__col a:hover { color: var(--porcelain); } }
.footer__contact .row { display: flex; gap: .6rem; font-size: .9rem; color: var(--stone-2); margin-bottom: .5rem; }
.footer__contact .row .ic { color: var(--gold); }
.footer__bar { border-top: 1px solid rgba(255,255,255,.09); }
.footer__bar-inner { display: flex; flex-direction: column; gap: .8rem; padding-block: 1.4rem; font-size: .82rem; color: var(--stone-2); }
.footer__legal { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.footer__legal a { transition: color .2s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .footer__legal a:hover { color: var(--porcelain); } }

/* ==================== WHATSAPP FLOTANTE ==================== */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25D366; color: var(--white);
  box-shadow: var(--shadow-lg);
  transition: transform .2s var(--ease-out), box-shadow .25s var(--ease-out);
  animation: float 4s ease-in-out infinite;
}
.wa-float:active { transform: scale(0.92); }
@media (hover: hover) and (pointer: fine) { .wa-float:hover { transform: scale(1.08); } }

/* ==================== LIGHTBOX ==================== */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  background: rgba(30,24,22,.9);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  padding: 1.5rem;
  opacity: 0; transition: opacity .25s var(--ease-out);
}
.lightbox.is-open { opacity: 1; }
.lightbox[hidden] { display: none; }
.lightbox__img {
  max-width: min(92vw, 900px); max-height: 82vh;
  border-radius: var(--r-md); box-shadow: var(--shadow-lg);
  transform: scale(0.96); opacity: 0;
  transition: transform .28s var(--ease-out), opacity .28s var(--ease-out);
}
.lightbox.is-open .lightbox__img { transform: scale(1); opacity: 1; }
.lightbox__close, .lightbox__nav {
  position: absolute; background: rgba(255,255,255,.14); color: var(--white);
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  font-size: 1.3rem; transition: background-color .2s var(--ease-out), transform .16s var(--ease-out);
}
.lightbox__close:active, .lightbox__nav:active { transform: scale(0.92); }
@media (hover: hover) and (pointer: fine) { .lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,.28); } }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__nav--prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 14px; top: 50%; transform: translateY(-50%); }

/* Fallback elegante para imágenes que no cargan */
.img-fallback {
  background:
    radial-gradient(80% 80% at 30% 20%, var(--rose-soft) 0%, transparent 60%),
    linear-gradient(135deg, var(--petal) 0%, var(--petal-2) 100%);
  position: relative;
}
.img-fallback::after {
  content: "A"; position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 2.4rem; color: var(--rose);
  opacity: .5;
}

/* ======================= 7 · ANIMACIONES ======================= */
/* Scroll reveal — estado inicial (solo si hay JS, para degradar con gracia) */
.reveal { transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.has-js .reveal { opacity: 0; transform: translateY(16px); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal[data-reveal-delay="1"] { transition-delay: .08s; }
.reveal[data-reveal-delay="2"] { transition-delay: .16s; }

/* Stagger para hijos generados (grids) */
.has-js .stagger > * { opacity: 0; transform: translateY(14px); }
.stagger.in-view > * { animation: fade-up .55s var(--ease-out) forwards; }
.stagger.in-view > *:nth-child(1) { animation-delay: .00s; }
.stagger.in-view > *:nth-child(2) { animation-delay: .06s; }
.stagger.in-view > *:nth-child(3) { animation-delay: .12s; }
.stagger.in-view > *:nth-child(4) { animation-delay: .18s; }
.stagger.in-view > *:nth-child(5) { animation-delay: .24s; }
.stagger.in-view > *:nth-child(6) { animation-delay: .30s; }
.stagger.in-view > *:nth-child(7) { animation-delay: .36s; }
.stagger.in-view > *:nth-child(8) { animation-delay: .42s; }

@keyframes fade-up { to { opacity: 1; transform: translateY(0); } }

/* Crossfade al cambiar de sede (contenido dinámico) */
.loc-fade { transition: opacity .22s var(--ease-out), transform .22s var(--ease-out); }
.loc-fade.is-swapping { opacity: 0; transform: translateY(6px); }

@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(198,161,91,.5); }
  70% { box-shadow: 0 0 0 7px rgba(198,161,91,0); }
  100% { box-shadow: 0 0 0 0 rgba(198,161,91,0); }
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes gradient-pan { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

/* ======================= 8 · RESPONSIVE ======================= */

/* ≥ 560px — 2 columnas en grids compactos */
@media (min-width: 560px) {
  .sede-picker__grid { grid-template-columns: 1fr 1fr; }
  .services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .testimonials__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .promos__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .insta__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .reserve__form { grid-template-columns: 1fr 1fr; }
  .footer__bar-inner { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ≥ 768px — tablet */
@media (min-width: 768px) {
  .hero__inner { grid-template-columns: 1.05fr .95fr; }
  .sede-switch__label { display: flex; }
  .about__inner { grid-template-columns: .9fr 1.1fr; }
  .reserve__inner { grid-template-columns: 1fr 1.05fr; }
  .faq__inner { grid-template-columns: .85fr 1.15fr; }
  .locations__grid { grid-template-columns: 1fr 1fr; }
  .footer__inner { grid-template-columns: 1.6fr 1fr 1fr 1.4fr; }
}

/* ≥ 1024px — desktop */
@media (min-width: 1024px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
  .nav__burger { display: none; }
  .nav__mobile { display: none !important; }
  .services__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .team__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .promos__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .testimonials__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ≥ 1440px — refinamiento de aire */
@media (min-width: 1440px) {
  :root { --container: 1280px; }
}

/* ============= ACCESIBILIDAD: prefers-reduced-motion ============= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .12s !important;   /* conserva opacidad/color, sin movimiento largo */
  }
  /* Mantener contenido visible: quitar desplazamientos */
  .reveal { opacity: 1 !important; transform: none !important; }
  .stagger > * { opacity: 1 !important; transform: none !important; animation: none !important; }
  .wa-float, .sede-switch__dot, .cta__gradient { animation: none !important; }
  .loc-fade.is-swapping { transform: none; }
}
