/* =========================================================
   MONT STUDY — Nail Spa & Beauty
   Paleta: dorados + blanco hueso · Mobile-first
   ========================================================= */

html[data-theme="azul"] {
  --ivory: #FBFBF8;
  --bone: #F2F2EE;
  --bone-2: #E5E9EC;
  --bone-3: #D3DAE0;
  --ink: #2D3650;
  --ink-rgb: 45, 54, 80;
  --ink-soft: #5F6880;
  --gold-d: #5A82AA;
  --gold-dd: #3E6289;
  --p1: #E8F1F8;
  --p2: #D2E3F1;
  --p3: #B6CFE6;
  --n1: #B6CFE6; --n2: #D9E7F3; --n3: #FBFBF8; --n4: #EED9B4; --n5: #F2CCD4;
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%235A82AA'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
}

:root {
  /* ===== TEMA ROSA (por defecto) ===== */
  --ivory: #FCF9F6;
  --bone: #F6EFEB;
  --bone-2: #F0E3DE;
  --bone-3: #E4D2CB;
  --ink: #3E2F3B;          /* texto: berenjena muy oscuro (sin cafe) */
  --ink-rgb: 62, 47, 59;
  --ink-soft: #77636F;
  --gold-d: #B4677A;       /* acento de texto: rosa palo profundo */
  --gold-dd: #8E4A5C;
  --p1: #FAE6EA;           /* pasteles */
  --p2: #F2CCD4;
  --p3: #E7B0BD;
  --n1: #E7B0BD; --n2: #F5D6DC; --n3: #FCF9F6; --n4: #EED9B4; --n5: #CFE0EE;  /* esmaltes del abanico */
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23B4677A'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");

  /* dorado champana (solo como brillo, sin tonos marrones) */
  --gold: #CDAE72;
  --gold-l: #E3CC9C;
  --gold-xl: #F6E8C8;
  --line: rgba(var(--ink-rgb), .13);

  --gold-grad: linear-gradient(120deg, #D2B57C 0%, #EDD9AE 24%, #FBF1DC 46%, #DCC08A 64%, #F4E4C4 82%, #D2B57C 100%);
  --gold-deep: linear-gradient(160deg, var(--p1) 0%, var(--p2) 55%, var(--p3) 100%);
  --arch-grad: linear-gradient(130deg, var(--p3) 0%, var(--p2) 30%, #FBF1DC 50%, var(--p2) 68%, var(--p3) 100%);

  --serif: "Fraunces", Georgia, serif;
  --sans: "Nunito", system-ui, -apple-system, sans-serif;

  --pad: clamp(20px, 5vw, 64px);
  --header-h: 72px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

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

html { -webkit-text-size-adjust: 100%; }
html.is-loading, html.is-loading body { overflow: hidden; }

body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  /* Fraunces: remates redondeados (SOFT) y formas calmadas (WONK 0) */
  font-variation-settings: "SOFT" 100, "WONK" 0;
  font-optical-sizing: auto;
  color: var(--ink);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* grano sutil */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9000;
  opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--gold-l); color: var(--ink); }

.serif { font-family: var(--serif); }
.italic { font-style: italic; }
.gold-text {
  background: var(--gold-grad);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  /* espacio para la inclinacion de la cursiva: el degradado solo pinta dentro de la caja */
  padding: 0 .16em .1em 0;
  margin-right: -.16em;
}

.label {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-soft);
}
.label--gold { color: var(--gold-d); }

/* lineas de SplitText con mascara */
.split-line { overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }

/* =========================================================
   LOADER
   ========================================================= */
.loader {
  position: fixed; inset: 0;
  z-index: 9500;
  background: var(--ivory);
  display: grid;
  place-items: center;
  padding: var(--pad);
}
html:not(.is-loading) .loader { display: none; }
.loader__mark { width: 92px; }
.loader__mark path, .loader__mark line { fill: none; stroke: var(--gold-d); stroke-width: 1; }
.loader { background: var(--ivory); }
.loader__word {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 300;
  margin-top: 18px;
  text-align: center;
  letter-spacing: .02em;
  overflow: hidden;
}
.loader__word span { display: inline-block; }
.loader__foot {
  position: absolute; left: var(--pad); right: var(--pad); bottom: calc(28px + var(--safe-b));
  display: flex; justify-content: space-between; align-items: flex-end;
}
.loader__count { font-family: var(--serif); font-size: 48px; line-height: 1; font-weight: 300; color: var(--gold-d); }
.loader__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--gold-grad); transform-origin: left; transform: scaleX(0); }

/* =========================================================
   CORTINA DE TRANSICION (Barba)
   ========================================================= */
.curtain {
  position: fixed; inset: -2px 0;
  z-index: 9400;
  background: var(--gold-deep);
  display: grid; place-items: center;
  pointer-events: none;
  visibility: hidden;
}
.curtain__word {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(40px, 10vw, 96px);
  color: var(--ink);
}

/* =========================================================
   HEADER
   ========================================================= */
.header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 800;
  height: var(--header-h);
  padding: 0 var(--pad);
  display: flex; align-items: center; justify-content: space-between;
  transition: background .5s var(--ease), box-shadow .5s var(--ease), transform .5s var(--ease);
}
.header.is-scrolled {
  background: color-mix(in srgb, var(--bone) 84%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.header.is-hidden { transform: translateY(-100%); }

.brand { display: flex; align-items: center; gap: 10px; }
.brand__mark { width: 30px; height: 36px; }
.brand__name { font-family: var(--serif); font-size: 20px; line-height: 1; font-weight: 400; letter-spacing: -.01em; }
.brand__name em { font-style: italic; color: var(--gold-d); }

.nav { display: none; }
.menu-btn {
  display: flex; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase; font-weight: 600;
  padding: 10px 0;
  position: relative; z-index: 2;
}
.menu-btn__lines { width: 26px; height: 8px; position: relative; }
.menu-btn__lines i { position: absolute; left: 0; right: 0; height: 1px; background: currentColor; transition: transform .6s var(--ease), top .6s var(--ease); }
.menu-btn__lines i:first-child { top: 0; }
.menu-btn__lines i:last-child { top: 7px; }
.menu-open .menu-btn__lines i:first-child { top: 4px; transform: rotate(20deg); }
.menu-open .menu-btn__lines i:last-child { top: 4px; transform: rotate(-20deg); }

/* menu overlay */
.menu {
  position: fixed; inset: 0;
  z-index: 790;
  background: var(--ivory);
  padding: calc(var(--header-h) + 24px) var(--pad) calc(32px + var(--safe-b));
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
}
.menu__links { list-style: none; display: grid; gap: 4px; }
.menu__links a {
  display: flex; align-items: baseline; gap: 14px;
  font-family: var(--serif);
  font-size: clamp(42px, 12vw, 84px);
  line-height: 1.12;
  font-weight: 300;
}
.menu__links a small { font-family: var(--sans); font-size: 11px; letter-spacing: .2em; color: var(--gold-d); }
.menu__links a.is-active { font-style: italic; color: var(--gold-d); }
.menu__item { overflow: hidden; }
.menu__item > a { will-change: transform; }
.menu__foot { display: grid; gap: 18px; font-size: 14px; color: var(--ink-soft); }
.menu__foot a { color: var(--ink); }

/* =========================================================
   BOTONES
   ========================================================= */
.btn {
  --bg: var(--ink);
  --fg: var(--ivory);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 54px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase; font-weight: 700;
  overflow: hidden;
  isolation: isolate;
  transition: color .5s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--gold-grad); background-size: 200% 100%;
  transform: translateY(101%);
  border-radius: inherit;
  transition: transform .6s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn:hover { color: var(--ink); }
.btn--gold { --bg: var(--gold-grad); --fg: var(--ink); background-size: 200% 100%; animation: shimmer 6s ease-in-out infinite alternate; }
.btn--gold::before { background: var(--ink); }
.btn--gold:hover { color: var(--ivory); }
.btn--ghost { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn svg { width: 18px; height: 18px; flex: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase; font-weight: 700;
  padding-bottom: 6px;
  background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
  transition: background-size .6s var(--ease);
}
.link-arrow:hover { background-size: 30% 1px; }
.link-arrow svg { width: 16px; transition: transform .6s var(--ease); }
.link-arrow:hover svg { transform: translateX(6px); }

@keyframes shimmer { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

/* =========================================================
   BARRA INFERIOR (movil)
   ========================================================= */
.dock {
  position: fixed;
  left: 12px; right: 12px; bottom: calc(12px + var(--safe-b));
  z-index: 780;
  display: flex; gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(var(--ink-rgb), .92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 40px -12px rgba(var(--ink-rgb), .45);
  transform: translateY(160%);
}
.dock__main {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px;
  border-radius: 999px;
  background: var(--gold-grad); background-size: 200% 100%;
  animation: shimmer 6s ease-in-out infinite alternate;
  color: var(--ink);
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase; font-weight: 800;
}
.dock__icon {
  width: 50px; height: 50px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--gold-xl);
  box-shadow: inset 0 0 0 1px rgba(246, 232, 200, .3);
}
.dock__icon svg { width: 20px; height: 20px; }

/* =========================================================
   CONTENEDOR DE PAGINA
   ========================================================= */
.page { position: relative; }
.section { position: relative; padding: clamp(64px, 9vw, 128px) var(--pad); }
.section__head { display: grid; gap: 14px; margin-bottom: clamp(28px, 5vw, 64px); }
.h-xl {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(40px, 9.6vw, 112px);
  line-height: 1.1;
  letter-spacing: -.02em;
}
.h-lg {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(34px, 7.4vw, 80px);
  line-height: 1.14;
  letter-spacing: -.02em;
}
.h-lg em, .h-xl em { font-style: italic; color: var(--gold-d); }
.lede { font-size: clamp(16px, 1.6vw, 19px); color: var(--ink-soft); max-width: 46ch; }

/* =========================================================
   HOME · APERTURA (sin hero generico: composicion editorial)
   ========================================================= */
.opening {
  position: relative;
  min-height: 100svh;
  padding: calc(var(--header-h) + 8px) var(--pad) calc(104px + var(--safe-b));
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 20px;
  overflow: hidden;
}
.opening__top { display: flex; justify-content: space-between; gap: 16px; }
.opening__top .label:last-child { text-align: right; }

.opening__title {
  display: grid;
  grid-template-areas: "a" "b" "c";
  align-content: center;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(76px, 23vw, 210px);
  line-height: .86;
  letter-spacing: -.03em;
}
.opening__word { position: relative; z-index: 3; display: block; overflow: hidden; padding: .06em .04em .24em; }
.opening__word span { display: inline-block; will-change: transform; }
.opening__word--a { grid-area: a; justify-self: start; margin-bottom: -.46em; }
.opening__word--c { grid-area: c; justify-self: end; margin-top: -.36em; margin-bottom: -.14em; font-style: italic; }
.opening__word--c span { padding-right: .06em; }

.arch-wrap { grid-area: b; justify-self: center; position: relative; z-index: 1; display: block; }
.arch {
  display: block;
  position: relative;
  width: min(62vw, 300px);
  aspect-ratio: 3 / 4.1;
  border-radius: 999px 999px 4px 4px;
  overflow: hidden;
  background: var(--arch-grad);
  background-size: 220% 220%;
  animation: shimmer 9s ease-in-out infinite alternate;
  box-shadow: 0 40px 80px -30px rgba(var(--ink-rgb), .28);
  clip-path: inset(0 0 0 0 round 999px 999px 4px 4px);
}
.arch::before {
  content: ""; position: absolute; inset: 10px;
  border-radius: 999px 999px 0 0;
  border: 1px solid rgba(251, 248, 242, .55);
  border-bottom: 0;
}
.arch::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 70% at 30% 10%, rgba(255, 255, 255, .45), transparent 60%);
  mix-blend-mode: soft-light;
}
.fan { position: absolute; left: 50%; bottom: 6%; width: 92%; transform: translateX(-50%); }
.fan .nail path:first-child { stroke: rgba(var(--ink-rgb), .18); stroke-width: .8; }
.fan .nail .shine { fill: #fff; opacity: .55; }

.seal {
  position: absolute; z-index: 4;
  width: 96px; height: 96px;
  right: -38px; bottom: 18%;
  border-radius: 50%;
  background: var(--ivory);
  box-shadow: 0 14px 30px -12px rgba(var(--ink-rgb), .35);
  display: grid; place-items: center;
}
.seal svg { position: absolute; inset: 6px; width: calc(100% - 12px); animation: spin 22s linear infinite; }
.seal text { font-family: var(--sans); font-size: 9.2px; font-weight: 700; letter-spacing: .3em; fill: var(--ink); text-transform: uppercase; }
.seal b { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 22px; color: var(--gold-d); }
@keyframes spin { to { transform: rotate(360deg); } }

.opening__bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.opening__lede { font-family: var(--serif); font-size: 18px; line-height: 1.3; max-width: 15em; font-weight: 300; }
.opening__lede em { color: var(--gold-d); }
.opening__by { display: block; margin-top: 10px; font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.scroll-cue { display: grid; justify-items: center; gap: 10px; flex: none; }
.scroll-cue__line { width: 1px; height: 54px; background: var(--line); position: relative; overflow: hidden; }
.scroll-cue__line::after { content: ""; position: absolute; left: 0; top: -50%; width: 1px; height: 50%; background: var(--gold-d); animation: cue 2.2s var(--ease) infinite; }
.scroll-cue .label { writing-mode: vertical-rl; letter-spacing: .3em; font-size: 10px; }
@keyframes cue { to { top: 110%; } }

/* =========================================================
   HOME · PORTAL (el arco se abre)
   ========================================================= */
.portal { position: relative; height: 100svh; }
.portal__frame {
  position: absolute; inset: 0;
  background: var(--gold-deep);
  color: var(--ink);
  clip-path: inset(16% 18% 16% 18% round 400px 400px 4px 4px);
  display: grid; place-items: center;
  padding: var(--pad);
  overflow: hidden;
}
.portal__rings { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.portal__rings span {
  position: absolute;
  width: calc(var(--s) * 1vmax); aspect-ratio: 3/4;
  border-radius: 999px 999px 0 0;
  border: 1px solid rgba(255, 255, 255, .55);
  border-bottom: 0;
  bottom: -2%;
}
.portal__inner { position: relative; text-align: center; display: grid; gap: 28px; justify-items: center; max-width: 900px; }
.portal__inner .label { color: var(--gold-dd); }
.portal__title { font-family: var(--serif); font-weight: 300; font-size: clamp(34px, 8vw, 92px); line-height: 1.12; letter-spacing: -.02em; }
.portal__title em { color: var(--gold-dd); }
.portal__pillars { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; list-style: none; }
.portal__pillars li {
  padding: 9px 18px; border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(var(--ink-rgb), .25);
  background: rgba(255, 255, 255, .35);
  font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
}

/* =========================================================
   HOME · MANIFIESTO
   ========================================================= */
.manifesto { background: var(--bone); }
.manifesto__grid { display: grid; gap: 18px; }
.manifesto__text {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(25px, 5.6vw, 58px);
  line-height: 1.22;
  letter-spacing: -.01em;
}
.manifesto__text em { color: var(--gold-d); }
.manifesto__sign { display: flex; align-items: center; gap: 16px; }
.manifesto__sign i { flex: 0 0 48px; height: 1px; background: var(--gold); }

/* =========================================================
   HOME · SERVICIOS (carrusel en movil, cuadricula en escritorio)
   ========================================================= */
.services { background: var(--ivory); }
.services__head { display: grid; gap: 18px; }
.stack {
  display: flex; gap: 12px;
  margin: 0 calc(var(--pad) * -1);
  padding: 4px var(--pad) 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: var(--pad);
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.stack::-webkit-scrollbar { display: none; }
.card {
  position: relative;
  flex: 0 0 min(80vw, 340px);
  scroll-snap-align: start;
  min-height: 400px;
  border-radius: 26px;
  padding: 22px 22px 24px;
  display: flex; flex-direction: column; gap: 14px;
  overflow: hidden;
  background: var(--bone);
  box-shadow: inset 0 0 0 1px var(--line);
  /* hover con `translate` (no `transform`) para no competir con GSAP */
  transition: translate .6s var(--ease), box-shadow .6s var(--ease);
}
.card--alt { background: var(--bone-2); }
.card--gold { background: var(--gold-deep); color: var(--ink); box-shadow: none; }
.card--gold .card__text { color: var(--ink-soft); }
.card--gold .card__tags li { box-shadow: inset 0 0 0 1px rgba(var(--ink-rgb), .22); background: rgba(255, 255, 255, .4); }
.card--gold .card__num { color: var(--gold-dd); }
.card__top { display: flex; justify-content: space-between; align-items: center; }
.card__num { font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--gold-d); }
.card__icon { width: 44px; opacity: .9; }
.card__body { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.card__text { margin-top: auto; color: var(--ink-soft); font-size: 15px; line-height: 1.55; }
.card__price { font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); }
.card__price b { font-family: var(--serif); font-weight: 400; font-size: 24px; letter-spacing: 0; text-transform: none; color: var(--gold-d); margin-left: 6px; }
.card--gold .card__price { color: var(--ink-soft); }
.card--gold .card__price b { color: var(--gold-dd); }
.card__title { font-family: var(--serif); font-weight: 300; font-size: clamp(30px, 8vw, 40px); line-height: 1.12; letter-spacing: -.02em; }
.card__title em { font-style: italic; }
.card__tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.card__tags li { padding: 6px 12px; border-radius: 999px; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; box-shadow: inset 0 0 0 1px var(--line); }
.stack-ui { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 22px; }
.stack-bar { flex: 1; max-width: 160px; height: 2px; border-radius: 2px; background: var(--line); overflow: hidden; }
.stack-bar i { display: block; height: 100%; width: 100%; background: var(--gold-grad); transform-origin: left; transform: scaleX(.17); }
.services__more { margin-top: 36px; display: flex; justify-content: center; }

/* =========================================================
   HOME · MARQUESINA
   ========================================================= */
.marquee {
  overflow: hidden;
  padding: 26px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--bone);
}
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__group { display: flex; align-items: center; gap: 36px; padding-right: 36px; }
.marquee__group span { font-family: var(--serif); font-size: clamp(28px, 6vw, 60px); font-weight: 300; white-space: nowrap; line-height: 1; }
.marquee__group span:nth-child(4n+3) { font-style: italic; color: var(--gold-d); }
.marquee__group svg { width: 18px; flex: none; color: var(--gold); }

/* =========================================================
   HOME · RITUAL (proceso) · 2x2 en movil, 4 columnas en escritorio
   ========================================================= */
.ritual { background: var(--bone); }
.steps { position: relative; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 30px 18px; }
.steps__line { display: none; }
.step { position: relative; display: grid; gap: 6px; align-content: start; padding-top: 22px; border-top: 1px solid var(--line); }
.step::before {
  content: ""; position: absolute; left: 0; top: -6px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--bone); box-shadow: inset 0 0 0 1px var(--gold);
  transition: background .5s var(--ease);
}
.step.is-on::before { background: var(--gold); }
.step__n { font-family: var(--serif); font-style: italic; color: var(--gold-d); font-size: 16px; }
.step__t { font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 4.4vw, 34px); line-height: 1.1; letter-spacing: -.01em; }
.step__d { color: var(--ink-soft); font-size: 14px; line-height: 1.5; }

/* =========================================================
   HOME · FUNDADORA
   ========================================================= */
.founder { background: var(--ivory); overflow: hidden; }
.founder__grid { display: grid; gap: 30px; align-items: center; }
.founder__art { position: relative; width: min(56vw, 240px); justify-self: center; }
.founder__arch {
  aspect-ratio: 3/4; border-radius: 999px 999px 0 0;
  background: var(--bone-2);
  position: relative; overflow: hidden;
  display: grid; place-items: center;
}
.founder__arch::before { content: ""; position: absolute; inset: 14px; border-radius: 999px 999px 0 0; border: 1px solid var(--gold-l); border-bottom: 0; }
.founder__mono { font-family: var(--serif); font-weight: 300; font-size: clamp(84px, 22vw, 170px); line-height: 1; letter-spacing: -.04em; }
.founder__mono em { font-style: italic; }
.founder__mono .gold-text { background-image: linear-gradient(120deg, var(--gold-dd), var(--gold-d) 45%, var(--p3) 100%); }
.founder__tag {
  position: absolute; left: 50%; bottom: 26px; translate: -50% 0; white-space: nowrap;
  background: var(--ink); color: var(--ivory);
  padding: 12px 18px; border-radius: 999px;
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
}
.founder__copy { display: grid; gap: 22px; }
.founder__name { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(30px, 6.4vw, 56px); line-height: 1.16; letter-spacing: -.02em; }
.founder__copy p { color: var(--ink-soft); max-width: 44ch; }
.founder__copy .founder__promise { font-family: var(--serif); font-style: italic; font-size: 19px; line-height: 1.4; color: var(--gold-dd); padding-left: 16px; border-left: 2px solid var(--p3); }

/* =========================================================
   HOME · UBICACION
   ========================================================= */
.visit { background: var(--bone); }
.visit__grid { display: grid; gap: 28px; }
.visit__addr { font-family: var(--serif); font-weight: 300; font-size: clamp(30px, 6.4vw, 64px); line-height: 1.16; letter-spacing: -.02em; }
.visit__addr em { color: var(--gold-d); }
.visit__list { list-style: none; display: grid; border-top: 1px solid var(--line); }
.visit__list li { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: center; }
.visit__list a { font-size: 15px; word-break: break-word; text-align: right; }
.map {
  position: relative;
  aspect-ratio: 4 / 3.4;
  border-radius: 28px;
  background: var(--ivory);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line);
}
.map > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map .st { fill: none; stroke: var(--bone-3); stroke-width: 1; }
.map .st--main { stroke: var(--gold-d); stroke-width: 2.2; opacity: .75; }
.map .lbl { font-family: var(--sans); font-size: 9px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; fill: var(--ink-soft); }
.map .lbl--main { fill: var(--gold-d); }
.map .block { fill: var(--bone); }
.map .block--here { fill: var(--p2); }
.map__pin circle:first-child { fill: var(--gold-d); }
.map__pulse { fill: none; stroke: var(--gold-d); transform-box: fill-box; transform-origin: center; animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { from { transform: scale(.6); opacity: 1; } to { transform: scale(3.2); opacity: 0; } }
.map__open {
  position: absolute; z-index: 2; left: 14px; right: 14px; bottom: 14px;
  display: flex; justify-content: space-between; align-items: center;
  background: var(--ink); color: var(--ivory);
  border-radius: 999px; padding: 14px 22px;
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
}
.map__open svg { width: 16px; height: 16px; flex: none; }

/* ---- horario ---- */
.hours { display: grid; gap: 10px; padding: 18px 20px; border-radius: 20px; background: var(--ivory); box-shadow: inset 0 0 0 1px var(--line); }
.hours__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.hours__days { font-family: var(--serif); font-size: 22px; line-height: 1.15; }
.hours__time { font-family: var(--serif); font-size: 22px; color: var(--gold-d); font-variant-numeric: lining-nums; white-space: nowrap; }
.status {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-soft);
}
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--bone-3); flex: none; }
.status.is-open { color: #3F7A5A; }
.status.is-open i { background: #5DB383; box-shadow: 0 0 0 0 rgba(93, 179, 131, .6); animation: live 2s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 8px rgba(93, 179, 131, 0); } 100% { box-shadow: 0 0 0 0 rgba(93, 179, 131, 0); } }

/* =========================================================
   CTA FINAL
   ========================================================= */
.cta { background: var(--ivory); text-align: center; overflow: hidden; }
.cta__arch {
  position: relative;
  margin: 0 auto;
  max-width: 760px;
  border-radius: 999px 999px 32px 32px;
  background: var(--bone);
  padding: clamp(72px, 14vw, 140px) 22px clamp(36px, 6vw, 72px);
  display: grid; justify-items: center; gap: 18px;
  box-shadow: inset 0 0 0 1px var(--gold-l);
}
.cta__arch::before {
  content: ""; position: absolute; inset: 12px;
  border-radius: 999px 999px 24px 24px;
  border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent);
  pointer-events: none;
}
.cta__title { font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 9.6vw, 96px); line-height: 1.12; letter-spacing: -.02em; }
.cta__title em { color: var(--gold-d); }
.cta__actions { display: grid; gap: 12px; width: 100%; max-width: 360px; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  position: relative;
  background: var(--ink);
  color: var(--bone);
  padding: 56px var(--pad) calc(104px + var(--safe-b));
  overflow: hidden;
}
.footer__big {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(64px, 19vw, 240px);
  line-height: .9;
  letter-spacing: -.04em;
  margin-bottom: 44px;
}
.footer__big em { font-style: italic; }
.footer__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 20px; margin-bottom: 40px; }
.footer__col { grid-column: 1 / -1; }
.footer__col:last-child { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.footer__col:last-child .label { width: 100%; }
.footer__col { display: grid; gap: 12px; align-content: start; }
.footer__col .label { color: var(--gold-l); }
.footer__col a, .footer__col p { font-size: 15px; color: rgba(243, 236, 224, .85); word-break: break-word; }
.footer__col a:hover { color: var(--gold-xl); }
.footer__bottom {
  display: grid; gap: 8px;
  padding-top: 24px; border-top: 1px solid rgba(243, 236, 224, .14);
  font-size: 12px; color: rgba(243, 236, 224, .55); letter-spacing: .04em;
}

/* =========================================================
   SERVICIOS (pagina)
   ========================================================= */
.intro {
  padding: calc(var(--header-h) + 32px) var(--pad) clamp(28px, 5vw, 64px);
  display: grid; gap: 16px;
  position: relative;
}
.intro__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.intro__deco { position: absolute; right: var(--pad); top: calc(var(--header-h) + 16px); width: 44px; opacity: .7; }
@media (min-width: 900px) { .intro__deco { width: 80px; top: calc(var(--header-h) + 40px); opacity: .9; } }

.chips {
  position: sticky; top: var(--header-h); z-index: 50;
  display: flex; gap: 8px;
  padding: 12px var(--pad);
  overflow-x: auto; scrollbar-width: none;
  background: color-mix(in srgb, var(--bone) 90%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  padding: 10px 16px; border-radius: 999px;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease);
}
.chip.is-active { background: var(--ink); color: var(--ivory); box-shadow: none; }

.cat { padding: clamp(28px, 5vw, 56px) var(--pad) 0; }
.cat[hidden] { display: none; }
.cat__head { display: grid; gap: 8px; margin-bottom: 18px; }
.cat__n { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--gold-d); }
.cat__lead { color: var(--ink-soft); max-width: 50ch; }
.rows { list-style: none; border-top: 1px solid var(--line); }
.row { border-bottom: 1px solid var(--line); }
.row a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 16px;
  padding: 16px 0;
  align-items: baseline;
}
.row__name { grid-column: 1; grid-row: 1; font-family: var(--serif); font-size: clamp(20px, 5vw, 30px); line-height: 1.15; font-weight: 400; letter-spacing: -.01em; transition: color .4s var(--ease), transform .6s var(--ease); }
.row__price { grid-column: 2; grid-row: 1; justify-self: end; font-family: var(--serif); font-size: clamp(18px, 4.4vw, 26px); color: var(--gold-d); white-space: nowrap; }
.row__desc { grid-column: 1 / -1; grid-row: 2; color: var(--ink-soft); font-size: 14px; line-height: 1.45; max-width: 56ch; }
.row__go { display: none; }
.row a:hover .row__name { color: var(--gold-d); transform: translateX(6px); }
.services-note { padding: 28px var(--pad) 0; color: var(--ink-soft); font-size: 14px; max-width: 60ch; }

/* =========================================================
   CONTACTO (pagina)
   ========================================================= */
.contact { padding: 0 var(--pad) clamp(80px, 12vw, 140px); display: grid; gap: 56px; }
.form {
  background: var(--ivory);
  border-radius: 28px;
  padding: 28px 22px;
  display: grid; gap: 22px;
  box-shadow: 0 40px 80px -50px rgba(var(--ink-rgb), .45), inset 0 0 0 1px var(--line);
}
.form__title { font-family: var(--serif); font-size: 28px; font-weight: 300; line-height: 1.1; letter-spacing: -.01em; }
.field { display: grid; gap: 8px; }
.field label { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); font-weight: 700; }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit; font-size: 17px; /* evita zoom en iOS */
  color: var(--ink);
  background: transparent;
  border: 0; border-bottom: 1px solid var(--bone-3);
  border-radius: 0;
  padding: 10px 0 12px;
  outline: none;
  transition: border-color .4s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: var(--select-arrow);
  background-repeat: no-repeat; background-position: right 4px center;
  padding-right: 24px;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold-d); }
.field-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form__note { font-size: 13px; color: var(--ink-soft); }
.form .btn { width: 100%; }

.info { display: grid; gap: 12px; align-content: start; }
.info__card {
  display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: center;
  padding: 18px; border-radius: 20px;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background .4s var(--ease);
}
.info__card:hover { background: var(--ivory); }
.info__ic { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-grad); background-size: 200% 100%; color: var(--ink); }
.info__ic svg { width: 20px; }
.info__card strong { display: block; font-weight: 700; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); }
.info__card span { font-family: var(--serif); font-size: 18px; line-height: 1.2; word-break: break-word; }
.info__owner { margin-top: 18px; padding: 22px; border-radius: 20px; background: var(--bone-2); display: grid; gap: 6px; }
.info__owner { background: var(--gold-deep); }
.info__owner p { font-family: var(--serif); font-style: italic; font-size: 23px; line-height: 1.1; }
.info__owner-note { font-size: 14px; color: var(--ink-soft); line-height: 1.5; }

/* =========================================================
   REVEAL helpers (estado inicial lo define GSAP)
   ========================================================= */
[data-reveal] { will-change: transform, opacity; }

/* =========================================================
   TABLET / DESKTOP
   ========================================================= */
@media (min-width: 900px) {
  :root { --header-h: 88px; }
  body { font-size: 17px; }
  .brand__name { font-size: 24px; }
  .nav { display: flex; align-items: center; gap: 36px; }
  .nav a:not(.btn) { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; position: relative; padding: 6px 0; }
  .nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold-d); transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease); }
  .nav a:not(.btn):hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
  .nav .btn { min-height: 46px; padding: 0 22px; }
  .menu-btn, .menu, .dock { display: none; }

  .opening { padding-bottom: 40px; }
  .opening__title {
    grid-template-areas: "a b c";
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    column-gap: 2vw;
    font-size: clamp(104px, 12vw, 220px);
  }
  .opening__word--a { justify-self: end; margin: 0 0 .9em; }
  .opening__word--c { justify-self: start; margin: .9em 0 0; padding-left: .1em; }
  .arch { width: auto; height: min(64vh, 620px); }
  .seal { width: 124px; height: 124px; right: auto; left: -62px; bottom: 14%; }
  .seal b { font-size: 28px; }
  .opening__lede { font-size: 22px; }

  .portal__frame { clip-path: inset(14% 38% 8% 38% round 400px 400px 4px 4px); }

  .manifesto__grid { grid-template-columns: 220px 1fr; gap: 60px; }

  .services__head { grid-template-columns: 1fr auto; align-items: end; }
  .stack { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 0; padding: 0; overflow: visible; }
  .card { min-height: 360px; padding: 30px; }
  .card:hover { translate: 0 -6px; box-shadow: inset 0 0 0 1px var(--gold-l), 0 30px 60px -40px rgba(var(--ink-rgb), .45); }
  .stack-ui { display: none; }

  .steps { grid-template-columns: repeat(4, 1fr); gap: 40px; }
  .steps__line { display: block; position: absolute; left: 0; right: 0; top: 0; height: 1px; }
  .steps__line i { position: absolute; inset: 0; background: var(--gold-grad); transform-origin: left; transform: scaleX(0); }
  .step { border-top: 0; }
  .step__d { font-size: 15px; }

  .founder__grid { grid-template-columns: .8fr 1fr; gap: 80px; }
  .founder__art { width: min(100%, 380px); }

  .visit__grid { grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
  .map { aspect-ratio: 1 / 1; }

  .cta__actions { grid-template-columns: 1fr 1fr; max-width: 560px; }

  .footer { padding-bottom: 48px; }
  .footer__cols { grid-template-columns: repeat(4, 1fr); }
  .footer__col { grid-column: auto; }
  .footer__col:last-child { display: grid; gap: 12px; }
  .footer__bottom { grid-template-columns: 1fr auto; }

  .row a { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 130px 44px; column-gap: 32px; padding: 22px 0; align-items: center; }
  .row__name { grid-column: 1; grid-row: 1; }
  .row__desc { grid-column: 2; grid-row: 1; }
  .row__price { grid-column: 3; grid-row: 1; }
  .row__go {
    grid-column: 4; grid-row: 1;
    display: grid; place-items: center;
    width: 44px; height: 44px; border-radius: 50%;
    box-shadow: inset 0 0 0 1px var(--line);
    transition: background .4s var(--ease), color .4s var(--ease), transform .6s var(--ease);
  }
  .row__go svg { width: 16px; }
  .row a:hover .row__go { background: var(--ink); color: var(--ivory); transform: rotate(-45deg); }
  .chips { justify-content: center; }

  .contact { grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: start; }
  .form { padding: 44px; }
  .form__title { font-size: 36px; }
  .info { position: sticky; top: calc(var(--header-h) + 20px); }
}

@media (min-width: 1400px) {
  .section, .intro, .cat, .contact, .services-note { padding-left: max(var(--pad), calc((100vw - 1320px) / 2)); padding-right: max(var(--pad), calc((100vw - 1320px) / 2)); }
}

/* =========================================================
   MOVIMIENTO REDUCIDO
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .portal__frame { clip-path: none; }
}

/* precios con cifras alineadas */
.row__price, .card__price b { font-variant-numeric: lining-nums tabular-nums; }
