/* Fuentes alojadas en la propia web (no dependen de Google Fonts) */
@font-face { font-family: 'Belleza'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/belleza-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Belleza'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/belleza-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Josefin Sans'; font-style: normal; font-weight: 300 600; font-display: swap; src: url('../fonts/josefin-sans-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Josefin Sans'; font-style: normal; font-weight: 300 600; font-display: swap; src: url('../fonts/josefin-sans-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* =============================================================
   Serena Nails · 2026
   Paleta: Linen #F5F1EA · Khaki #D7C9B8 · Camel #B2967D · Cocoa #7D5A44 · Espresso #4A342A
   ============================================================= */

:root {
  --linen: #F5F1EA;
  --cream: #FBF8F3;
  --khaki: #D7C9B8;
  --camel: #B2967D;
  --cocoa: #7D5A44;
  --espresso: #4A342A;
  --ink: #2C1F19;
  --blush: #E9D6CB;

  --text: var(--espresso);
  --muted: #8A7466;
  --line: rgba(74, 52, 42, .14);

  --f-display: var(--f-brand);
  --f-body: "Josefin Sans", system-ui, sans-serif;
  --f-script: var(--f-brand);
  --f-brand: "Belleza", "Optima", "Josefin Sans", sans-serif;

  --gutter: clamp(16px, 5vw, 56px);
  --max: 1240px;
  --radius: 22px;
  --radius-lg: 32px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --shadow: 0 30px 60px -30px rgba(74, 52, 42, .45);
  --shadow-soft: 0 18px 40px -24px rgba(74, 52, 42, .35);
  --nav-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
em, i { font-style: normal; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--nav-h); overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--linen);
  color: var(--text);
  font-family: var(--f-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
svg { width: 1em; height: 1em; flex-shrink: 0; }
::selection { background: var(--cocoa); color: var(--linen); }
:focus-visible { outline: 2px solid var(--cocoa); outline-offset: 3px; border-radius: 6px; }

.container { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.section { padding-block: clamp(84px, 13vw, 160px); position: relative; }
.section--dark { background: var(--espresso); color: var(--linen); }
.section--sand { background: var(--khaki); }
.script { font-family: var(--f-script); font-weight: 400; }
.brand { font-family: var(--f-brand); font-style: normal; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; }

/* ---------- tipografía ---------- */
.eyebrow {
  font-size: 12px; letter-spacing: .32em; text-transform: uppercase; font-weight: 400;
  color: var(--cocoa); margin: 0 0 18px; display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; }
.eyebrow--light { color: var(--khaki); }
.eyebrow--plain::before { display: none; }
.hero .eyebrow--plain { letter-spacing: .5em; padding-left: .5em; }
.display {
  font-family: var(--f-display); font-weight: 400; font-size: clamp(34px, 7vw, 68px);
  line-height: 1.02; letter-spacing: -.01em; margin: 0 0 24px; color: var(--espresso);
}
.display em { color: var(--cocoa); }
.section--dark .display, .display--light { color: var(--linen); }
.section--dark .display em, .display--light em { color: var(--camel); }
.lead { font-size: clamp(18px, 2.2vw, 21px); line-height: 1.6; color: var(--cocoa); }
.section--dark .lead { color: var(--khaki); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto clamp(40px, 6vw, 64px); }
.section-head .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; }
.section-head__sub { color: var(--muted); margin: 0; }

/* ---------- botones ---------- */
.btn {
  --bg: var(--espresso); --fg: var(--linen);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border-radius: 999px; border: 1px solid var(--bg);
  background: var(--bg); color: var(--fg); text-decoration: none;
  font-size: 13px; letter-spacing: .18em; text-transform: uppercase; font-weight: 400;
  position: relative; overflow: hidden; isolation: isolate;
  transition: transform .5s var(--ease), color .4s var(--ease), border-color .4s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--cocoa); transform: translateY(101%); transition: transform .55s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn:active { transform: scale(.97); }
.btn svg { font-size: 18px; transition: transform .4s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--small { min-height: 42px; padding: 0 20px; font-size: 12px; }
.btn--light { --bg: var(--linen); --fg: var(--espresso); }
.btn--light::before { background: var(--khaki); }
.btn--outline { --bg: transparent; --fg: var(--espresso); border-color: var(--espresso); }
.btn--outline:hover { color: var(--linen); }
.btn--ghost-light { --bg: rgba(245, 241, 234, .08); --fg: var(--linen); border-color: rgba(245, 241, 234, .5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn--ghost-light::before { background: rgba(245, 241, 234, .18); }
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: 14px;
  letter-spacing: .12em; text-transform: uppercase; border-bottom: 1px solid currentColor; padding-bottom: 4px;
}
.link-arrow svg { transition: transform .4s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
.tag {
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase; padding: 4px 8px 3px;
  border-radius: 999px; border: 1px solid currentColor; line-height: 1; font-weight: 400;
}
.tag--solid { background: var(--cocoa); color: var(--linen); border-color: var(--cocoa); }

/* ---------- preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 200; background: var(--espresso);
  display: grid; place-items: center; transition: clip-path 1s var(--ease) .1s;
  clip-path: inset(0 0 0 0);
}
.preloader.is-done { clip-path: inset(0 0 100% 0); pointer-events: none; }
.preloader__inner { display: grid; justify-items: center; gap: 28px; }
.preloader img { width: 96px; height: auto; animation: pre-in 1s var(--ease) both; }
.preloader__line { width: 120px; height: 1px; background: rgba(245, 241, 234, .2); overflow: hidden; }
.preloader__line span { display: block; height: 100%; background: var(--linen); animation: pre-line 1.1s var(--ease) .2s both; transform-origin: left; }
@keyframes pre-in { from { opacity: 0; transform: translateY(14px) scale(.96); filter: blur(6px); } }
@keyframes pre-line { from { transform: scaleX(0); } }
html:not(.js) .preloader { display: none; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center; gap: 20px; padding: 0 var(--gutter);
  color: var(--linen); transition: background .5s var(--ease), color .4s, transform .5s var(--ease), box-shadow .4s;
}
.nav.is-solid {
  background: rgba(245, 241, 234, .82); color: var(--espresso);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav.is-hidden { transform: translateY(-100%); }
body:not(.page-home) .nav { background: rgba(245, 241, 234, .9); color: var(--espresso); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nav__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.nav__logo { width: 36px; height: auto; }
.nav__logo--dark { display: none; }
.nav.is-solid .nav__logo--dark, body:not(.page-home) .nav__logo--dark { display: block; }
.nav.is-solid .nav__logo--light, body:not(.page-home) .nav__logo--light { display: none; }
.menu-open .nav .nav__logo--dark { display: none; }
.menu-open .nav .nav__logo--light { display: block; }
.nav__name { font-family: var(--f-brand); font-size: 17px; letter-spacing: .22em; text-transform: uppercase; white-space: nowrap; }
.nav { justify-content: flex-end; }
.nav__links { display: none; gap: 30px; margin-right: auto; }
.nav__links a { text-decoration: none; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; position: relative; padding: 6px 0; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { display: none; }
.nav:not(.is-solid) .nav__cta { --bg: var(--linen); --fg: var(--espresso); }
body:not(.page-home) .nav .nav__cta { --bg: var(--espresso); --fg: var(--linen); }
.nav__burger {
  width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(245, 241, 234, .9); color: var(--espresso);
  box-shadow: 0 10px 24px -12px rgba(44, 31, 25, .45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  display: grid; place-content: center; gap: 6px; position: relative; z-index: 2;
}
.nav__burger span { display: block; width: 18px; height: 1.4px; background: currentColor; transition: transform .5s var(--ease); }
.menu-open .nav { color: var(--linen); background: transparent; box-shadow: none; backdrop-filter: none; }
.menu-open .nav__burger { background: var(--linen); }
.menu-open .nav__burger span:first-child { transform: translateY(3.7px) rotate(45deg); }
.menu-open .nav__burger span:last-child { transform: translateY(-3.7px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 90; color: var(--linen); visibility: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--nav-h) + 28px) var(--gutter) calc(28px + env(safe-area-inset-bottom));
}
.menu__bg { position: absolute; inset: 0; background: var(--espresso); clip-path: circle(0% at calc(100% - 46px) 34px); transition: clip-path .8s var(--ease); z-index: -1; }
.menu-open .menu { visibility: visible; }
.menu-open .menu__bg { clip-path: circle(150% at calc(100% - 46px) 34px); }
.menu__links { display: grid; gap: 6px; }
.menu__links a {
  font-family: var(--f-display); font-size: clamp(38px, 11vw, 64px); line-height: 1.15; text-decoration: none;
  display: flex; align-items: baseline; gap: 14px; opacity: 0; transform: translateY(30px);
  transition: opacity .5s var(--ease), transform .7s var(--ease);
}
.menu__links small { font-family: var(--f-body); font-size: 12px; letter-spacing: .2em; color: var(--camel); }
.menu-open .menu__links a { opacity: 1; transform: none; }
.menu-open .menu__links a:nth-child(1) { transition-delay: .18s; }
.menu-open .menu__links a:nth-child(2) { transition-delay: .23s; }
.menu-open .menu__links a:nth-child(3) { transition-delay: .28s; }
.menu-open .menu__links a:nth-child(4) { transition-delay: .33s; }
.menu-open .menu__links a:nth-child(5) { transition-delay: .38s; }
.menu-open .menu__links a:nth-child(6) { transition-delay: .43s; }
.menu__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; opacity: 0; transition: opacity .5s .45s; }
.menu-open .menu__foot { opacity: 1; }
.menu__social { display: flex; gap: 10px; }
.menu__social a { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(245, 241, 234, .4); display: grid; place-items: center; font-size: 20px; }

/* ---------- toasts ---------- */
.toasts { position: fixed; top: calc(var(--nav-h) + 12px); left: 50%; transform: translateX(-50%); z-index: 150; display: grid; gap: 8px; width: min(92vw, 440px); }
.toast { background: var(--espresso); color: var(--linen); padding: 14px 18px; border-radius: 14px; box-shadow: var(--shadow); font-size: 15px; animation: toast 5s var(--ease) both; }
.toast--error { background: #8c3b2e; }
.toast--reward { background: linear-gradient(120deg, var(--cocoa), var(--camel)); }
@keyframes toast { 0% { opacity: 0; transform: translateY(-12px); } 8%, 88% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-12px); visibility: hidden; } }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: grid; align-items: end;
  color: var(--linen); overflow: hidden; isolation: isolate; background: var(--espresso);
}
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__video, .slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.slide { opacity: 0; transform: scale(1.12); transition: opacity 1.6s ease, transform 8s linear; }
.slide.is-active { opacity: 1; transform: scale(1); }
.hero__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(44, 31, 25, .55) 0%, rgba(44, 31, 25, .12) 25%, rgba(44, 31, 25, .45) 50%, rgba(44, 31, 25, .9) 100%),
    radial-gradient(120% 70% at 50% 100%, rgba(74, 52, 42, .65), transparent 70%);
}
.grain {
  position: absolute; inset: -50%; opacity: .09; pointer-events: none; mix-blend-mode: overlay;
  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='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(4) infinite;
}
@keyframes grain { 0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); } }
.hero__content {
  width: min(100% - 2 * var(--gutter), var(--max)); margin: 0 auto;
  padding: calc(var(--nav-h) + 40px) 0 clamp(110px, 16vh, 150px); text-align: center; display: grid; justify-items: center;
}
.hero__title { margin: 0; font-weight: 400; line-height: .8; display: grid; justify-items: center; }
.hero__logo { width: clamp(96px, 28vw, 150px); height: auto; filter: drop-shadow(0 10px 30px rgba(44, 31, 25, .35)); margin-bottom: 22px; }
.hero__brand { font-family: var(--f-brand); font-weight: 400; font-size: clamp(34px, 10.5vw, 96px); letter-spacing: .14em; padding-left: .14em; line-height: 1; white-space: nowrap; text-shadow: 0 8px 30px rgba(44, 31, 25, .35); }
.hero__lead { max-width: 520px; margin: 28px auto 32px; font-size: clamp(17px, 2.4vw, 20px); color: rgba(245, 241, 234, .9); }
.hero__lead strong { font-weight: 600; }
.hero__lead em { color: var(--linen); font-weight: 400; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero__scroll {
  position: absolute; left: var(--gutter); bottom: 32px; display: none; align-items: center; gap: 14px;
  text-decoration: none; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; writing-mode: vertical-rl;
}
.hero__scroll i { width: 1px; height: 64px; background: rgba(245, 241, 234, .3); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; inset: 0; background: var(--linen); animation: scrollcue 2.2s var(--ease) infinite; }
@keyframes scrollcue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }
.hero__dots { position: absolute; bottom: 38px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.hero__dots span { width: 26px; height: 2px; background: rgba(245, 241, 234, .3); overflow: hidden; border-radius: 2px; }
.hero__dots span.is-active::after { content: ""; display: block; height: 100%; background: var(--linen); animation: dot 6s linear forwards; transform-origin: left; }
@keyframes dot { from { transform: scaleX(0); } }

/* ---------- marquee ---------- */
.marquee, .footer__marquee { overflow: hidden; background: var(--khaki); color: var(--espresso); padding: 18px 0; border-block: 1px solid var(--line); }
.marquee__track { display: flex; width: max-content; align-items: center; gap: 28px; animation: marquee 32s linear infinite; }
.marquee__track span { font-family: var(--f-display); font-size: clamp(24px, 4vw, 38px); white-space: nowrap; font-style: italic; }
.marquee__track span.brand { font-style: normal; letter-spacing: .18em; }
.marquee__track span.script { font-family: var(--f-script); font-style: normal; font-size: clamp(34px, 5.4vw, 52px); color: var(--cocoa); }
.marquee__track i { font-style: normal; color: var(--cocoa); font-size: 14px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sobre mí ---------- */
.about__grid { display: grid; gap: 56px; align-items: center; }
.about__photo { margin: 0; position: relative; max-width: 520px; justify-self: center; width: 100%; }
.about__frame { border-radius: 260px 260px var(--radius-lg) var(--radius-lg); overflow: hidden; aspect-ratio: 3 / 4; box-shadow: var(--shadow); }
.about__frame img { width: 100%; height: 115%; object-fit: cover; }
.about__badge {
  position: absolute; right: -6px; bottom: 36px; background: var(--cream); padding: 14px 18px; border-radius: 18px;
  display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow-soft); font-size: 13px; line-height: 1.3; letter-spacing: .04em;
}
.about__badge svg { font-size: 26px; color: var(--cocoa); }
.about__text p { margin: 0 0 18px; }
.signature { font-family: var(--f-brand); font-size: 20px; letter-spacing: .22em; text-transform: uppercase; color: var(--cocoa); line-height: 1.2; margin-top: 18px !important; }
.about__facts { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.about__facts li { background: var(--linen); padding: 16px 20px; display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.about__facts strong { font-family: var(--f-display); font-weight: 500; font-size: 22px; }
.about__facts span { font-size: 14px; color: var(--muted); text-align: right; }

/* ---------- experiencia ---------- */
.experience { overflow: hidden; }
.experience::before {
  content: ""; position: absolute; width: 70vmax; height: 70vmax; right: -30vmax; top: -30vmax; border-radius: 50%;
  background: radial-gradient(circle, rgba(178, 150, 125, .25), transparent 60%); pointer-events: none;
}
.statement { font-family: var(--f-display); font-size: clamp(28px, 5vw, 54px); line-height: 1.25; font-weight: 400; margin: 0 0 clamp(56px, 8vw, 96px); max-width: 1050px; }
.statement em { color: var(--camel); }
.statement--long { font-size: clamp(22px, 3.2vw, 38px); line-height: 1.4; margin-bottom: 28px; }
.statement__close { font-family: var(--f-display); font-size: clamp(22px, 2.6vw, 30px); color: var(--khaki); margin: 0 0 clamp(56px, 8vw, 96px); }
.statement__close em { color: var(--linen); }
.statement .w { opacity: .18; transition: opacity .3s; }
.statement .w.is-on { opacity: 1; }
.perks { display: grid; gap: 16px; }
.perk {
  border: 1px solid rgba(245, 241, 234, .14); border-radius: var(--radius); padding: 28px; position: relative;
  background: linear-gradient(160deg, rgba(245, 241, 234, .06), rgba(245, 241, 234, .01));
  transition: transform .6s var(--ease), border-color .4s, background .4s;
}
.perk:hover { transform: translateY(-6px); border-color: rgba(245, 241, 234, .32); background: linear-gradient(160deg, rgba(245, 241, 234, .1), rgba(245, 241, 234, .02)); }
.perk h3 { font-family: var(--f-display); font-weight: 400; font-size: 28px; margin: 22px 0 8px; line-height: 1.1; }
.perk p { margin: 0; color: var(--khaki); }
.perk small { display: block; margin-top: 12px; color: var(--camel); font-size: 13px; }
.perk__icon { width: 64px; height: 64px; border-radius: 50%; background: var(--linen); color: var(--espresso); display: grid; place-items: center; font-size: 28px; position: relative; }
.perk--cup { background: linear-gradient(160deg, rgba(178, 150, 125, .3), rgba(125, 90, 68, .12)); border-color: rgba(178, 150, 125, .4); }
.cup svg { font-size: 34px; margin-top: 6px; }
.cup__steam { position: absolute; top: -18px; left: 50%; transform: translateX(-60%); display: flex; gap: 5px; }
.cup__steam i { width: 3px; height: 18px; border-radius: 3px; background: linear-gradient(transparent, rgba(245, 241, 234, .9)); animation: steam 2.6s ease-in-out infinite; opacity: 0; }
.cup__steam i:nth-child(2) { animation-delay: .5s; height: 22px; }
.cup__steam i:nth-child(3) { animation-delay: 1s; }
@keyframes steam { 0% { opacity: 0; transform: translateY(8px) scaleY(.6); } 40% { opacity: .9; } 100% { opacity: 0; transform: translateY(-14px) translateX(3px) scaleY(1.2); } }

/* ---------- servicios ---------- */
.tabs {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; width: min(100%, 420px); margin: 0 auto 40px;
  background: var(--cream); border: 1px solid var(--line); border-radius: 999px; padding: 6px; box-shadow: var(--shadow-soft);
}
.tabs button {
  position: relative; z-index: 1; border: 0; background: none; min-height: 52px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 15px; letter-spacing: .14em; text-transform: uppercase;
  transition: color .45s var(--ease);
}
.tabs button svg { font-size: 22px; }
.tabs button[aria-selected="true"] { color: var(--linen); }
.tabs button .tag { font-size: 9px; }
.tabs__pill { position: absolute; top: 6px; bottom: 6px; left: 6px; width: calc(50% - 6px); border-radius: 999px; background: var(--espresso); transition: transform .6s var(--ease); }
.tabs[data-active="pies"] .tabs__pill { transform: translateX(100%); }
.service-list { display: grid; gap: 16px; }
.service-list[hidden] { display: none !important; }
@media (max-width: 719px) {
  /* en el celular, los servicios se deslizan de costado */
  .service-list {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 24px; gap: 12px;
  }
  .service-list::-webkit-scrollbar { display: none; }
  .service { flex: 0 0 86%; scroll-snap-align: center; padding: 24px; }
  #tab-pies .service { flex-basis: 100%; }
  .service__price { font-size: 34px; }
  .swipe-hint { display: flex; }
}
.swipe-hint { display: none; justify-content: center; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin: -8px 0 0; }
.swipe-hint svg { animation: nudge 1.6s var(--ease) infinite; }
@keyframes nudge { 50% { transform: translateX(6px); } }
.service-list.is-active .service { animation: card-in .8s var(--ease) both; }
.service-list.is-active .service:nth-child(2) { animation-delay: .07s; }
.service-list.is-active .service:nth-child(3) { animation-delay: .14s; }
.service-list.is-active .service:nth-child(4) { animation-delay: .21s; }
@keyframes card-in { from { opacity: 0; transform: translateY(26px); } }
.service {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px;
  display: flex; flex-direction: column; position: relative; overflow: hidden;
  transition: box-shadow .5s var(--ease), border-color .4s; transform-style: preserve-3d;
}
.service:hover { box-shadow: var(--shadow); border-color: rgba(74, 52, 42, .25); }
.service::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(178, 150, 125, .18), transparent 50%);
}
.service:hover::after { opacity: 1; }
.service--featured { background: var(--espresso); color: var(--linen); border-color: var(--espresso); }
.service--featured .service__tagline, .service--featured .service__price small { color: var(--camel); }
.service--featured .service__desc, .service--featured .service__includes { color: var(--khaki); }
.service--featured .btn { --bg: var(--linen); --fg: var(--espresso); }
.service--featured .btn::before { background: var(--khaki); }
.service--featured .service__bottom { border-color: rgba(245, 241, 234, .15); }
.service--featured .tag--solid { background: var(--camel); border-color: var(--camel); color: var(--espresso); }
.service__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.service__num { font-size: 12px; letter-spacing: .2em; color: var(--camel); }
.service__name { font-family: var(--f-display); font-weight: 400; font-size: clamp(28px, 3.4vw, 34px); line-height: 1; margin: 0; }
.service__tagline { font-family: var(--f-body); font-size: 16px; letter-spacing: .04em; color: var(--cocoa); margin: 6px 0 14px; }
.service__desc { margin: 0 0 18px; color: var(--muted); font-size: 16px; }
.service__includes { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; font-size: 15px; }
.service__includes li { display: flex; align-items: center; gap: 10px; }
.service__includes svg { color: var(--camel); font-size: 17px; }
.service__bottom { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.service__price { margin: 0; font-family: var(--f-display); font-size: 36px; line-height: 1; display: flex; align-items: baseline; gap: 8px; font-weight: 400; }
.service__price small { font-family: var(--f-body); font-size: 11px; letter-spacing: .2em; color: var(--camel); }
.service__ask { font-size: 24px; }
.services__extra {
  margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px;
  padding: 20px 24px; border: 1px dashed rgba(74, 52, 42, .3); border-radius: var(--radius); font-size: 15px; color: var(--muted);
}
.services__extra strong { color: var(--espresso); font-weight: 600; }
.services__extra .link-arrow { color: var(--espresso); font-size: 12px; }

/* ---------- espacio / reel ---------- */
.space { overflow: clip; }
.space__grid { display: grid; gap: 56px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: center; }
.checks svg { width: 30px; height: 30px; padding: 7px; border-radius: 50%; background: var(--espresso); color: var(--linen); }
.reel { position: relative; justify-self: center; width: min(100%, 360px); }
.reel__frame {
  position: relative; aspect-ratio: 9 / 16; border-radius: 36px; overflow: hidden; background: var(--espresso);
  box-shadow: 0 50px 80px -40px rgba(44, 31, 25, .7), 0 0 0 8px rgba(245, 241, 234, .55); z-index: 1;
}
.reel__item { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s ease; }
img.reel__item { transform: scale(1.1); transition: opacity 1s ease, transform 7s linear; }
.reel__item.is-active { opacity: 1; }
img.reel__item.is-active { transform: scale(1); }
.reel__bars { position: absolute; top: 14px; left: 14px; right: 14px; z-index: 2; display: flex; gap: 4px; }
.reel__bars span { flex: 1; height: 2.5px; border-radius: 3px; background: rgba(245, 241, 234, .35); overflow: hidden; }
.reel__bars span i { display: block; height: 100%; background: var(--linen); transform: scaleX(0); transform-origin: left; }
.reel__bars span.is-done i { transform: scaleX(1); }
.reel__caption {
  position: absolute; left: 16px; bottom: 16px; z-index: 2; display: flex; align-items: center; gap: 10px;
  color: var(--linen); font-size: 13px; letter-spacing: .08em; text-shadow: 0 2px 10px rgba(0, 0, 0, .4);
}
.reel__caption img { width: 34px; height: 34px; padding: 6px; border-radius: 50%; background: rgba(74, 52, 42, .6); backdrop-filter: blur(6px); object-fit: contain; }
.reel__frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .25), transparent 20%, transparent 75%, rgba(0, 0, 0, .4)); pointer-events: none; }
.reel__glow { position: absolute; inset: 10% -20%; background: radial-gradient(closest-side, rgba(125, 90, 68, .45), transparent); filter: blur(30px); z-index: 0; }

/* ---------- trabajos ---------- */
.works { overflow: hidden; padding-bottom: clamp(60px, 9vw, 110px); }
.works__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.works__head .display { margin: 0; }
.works__viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.works__viewport::-webkit-scrollbar { display: none; }
.works__track { list-style: none; margin: 0; padding: 0 var(--gutter); display: flex; gap: 14px; width: max-content; }
.work { width: 72vw; max-width: 380px; scroll-snap-align: center; flex-shrink: 0; }
.work__btn { all: unset; cursor: zoom-in; display: block; position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4; width: 100%; }
.work__btn img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.work__btn:hover img { transform: scale(1.06); }
.work__btn:focus-visible { outline: 2px solid var(--cocoa); outline-offset: 3px; }
.work__num { position: absolute; top: 14px; left: 14px; font-size: 12px; letter-spacing: .2em; color: var(--linen); background: rgba(74, 52, 42, .45); padding: 6px 10px 5px; border-radius: 999px; backdrop-filter: blur(6px); }
.work--cta a {
  display: grid; place-content: center; justify-items: center; gap: 8px; aspect-ratio: 3 / 4; border-radius: var(--radius);
  background: var(--espresso); color: var(--linen); text-decoration: none; transition: background .4s;
}
.work--cta a:hover { background: var(--cocoa); }
.work--cta svg { font-size: 36px; }
.work--cta .script { font-size: 22px; letter-spacing: .14em; text-transform: uppercase; line-height: 1.2; }
.work--cta small { letter-spacing: .14em; color: var(--khaki); }
.works__progress { width: min(100% - 2 * var(--gutter), var(--max)); margin: 32px auto 0; height: 1px; background: var(--line); }
.works__progress span { display: block; height: 100%; background: var(--espresso); transform-origin: left; transform: scaleX(0); }

/* ---------- club / tarjeta ---------- */
.club { overflow: hidden; }
.club__grid { display: grid; gap: 56px; align-items: center; }
.club__title .brand { color: var(--camel); font-size: .8em; }
.club__steps { list-style: none; padding: 0; margin: 32px 0 36px; display: grid; gap: 14px; }
.club__steps li { display: flex; gap: 18px; align-items: flex-start; padding: 18px; border-radius: var(--radius); border: 1px solid rgba(245, 241, 234, .14); color: var(--khaki); }
.club__steps li > span { flex-shrink: 0; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--linen); color: var(--espresso); font-family: var(--f-display); font-size: 26px; }
.club__steps strong { display: block; color: var(--linen); font-family: var(--f-display); font-weight: 400; font-size: 24px; line-height: 1.2; }
.club__card { perspective: 1200px; }

.lcard {
  position: relative; width: min(100%, 440px); margin-inline: auto; min-height: 250px; border-radius: 26px; padding: clamp(20px, 5vw, 28px); gap: 22px;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(245, 241, 234, .18), transparent 50%),
    linear-gradient(135deg, var(--cocoa) 0%, var(--espresso) 55%, #3a2820 100%);
  color: var(--linen); box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(245, 241, 234, .16);
  display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; transform-style: preserve-3d;
}
.lcard__shine { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 30%, rgba(245, 241, 234, .22) 45%, transparent 60%); transform: translateX(-100%); animation: shine 5s var(--ease) infinite 1.5s; }
@keyframes shine { 0% { transform: translateX(-100%); } 40%, 100% { transform: translateX(100%); } }
.lcard__head { display: flex; align-items: center; gap: 12px; }
.lcard__head img { width: 38px; height: auto; }
.lcard__club { display: block; font-size: 10px; letter-spacing: .4em; text-transform: uppercase; color: var(--khaki); }
.lcard__title { display: block; font-family: var(--f-brand); font-size: 22px; letter-spacing: .2em; line-height: 1.1; text-transform: uppercase; }
.lcard__stamps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 52px)); justify-content: space-between; row-gap: 16px; }
.stamp {
  position: relative; aspect-ratio: 1; border-radius: 50%; border: 1px dashed rgba(245, 241, 234, .45);
  display: grid; place-items: center; font-size: clamp(11px, 2.6vw, 13px); color: rgba(245, 241, 234, .55);
}
.stamp__mark { position: absolute; inset: 0; margin: auto; width: 58%; height: auto; opacity: 0; transform: scale(1.8) rotate(-25deg); transition: opacity .35s, transform .5s cubic-bezier(.34, 1.7, .5, 1); }
.stamp.is-on { background: var(--linen); border: 1px solid var(--linen); color: transparent; box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .5); transition: background .3s; }
.stamp.is-on .stamp__mark { opacity: 1; transform: none; }
.stamp--reward { border-style: solid; border-color: var(--camel); }
.stamp--reward .stamp__num { color: var(--camel); }
.stamp__label {
  position: absolute; bottom: -9px; left: 50%; transform: translateX(-50%); background: var(--camel); color: var(--espresso);
  font-size: 9px; font-weight: 600; letter-spacing: .06em; padding: 2px 6px 1px; border-radius: 999px; white-space: nowrap;
}
.stamp--gift.is-on { background: var(--khaki); }
.lcard__foot { display: flex; justify-content: space-between; align-items: end; gap: 12px; }
.lcard__name { font-family: var(--f-display); font-size: clamp(20px, 5vw, 26px); line-height: 1; }
.lcard__code { font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--khaki); }

/* ---------- giftcards ---------- */
.gift__grid { display: grid; gap: 56px; align-items: center; }
.gift__visual { perspective: 1400px; text-align: center; cursor: pointer; }
.gift__card { position: relative; aspect-ratio: 601 / 426; width: min(100%, 520px); margin: 0 auto; transform-style: preserve-3d; transition: transform 1.1s var(--ease); }
.gift__visual.is-flipped .gift__card { transform: rotateY(180deg); }
.gift__face { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 18px; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: var(--shadow); }
.gift__face--back { transform: rotateY(180deg); }
.gift__hint { margin-top: 22px; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }

/* ---------- reservar ---------- */
.book { padding-top: 0; }
.book__panel { position: relative; border-radius: var(--radius-lg); overflow: hidden; color: var(--linen); isolation: isolate; }
.book__bg { position: absolute; inset: 0; z-index: -1; }
.book__bg img { width: 100%; height: 125%; object-fit: cover; }
.book__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(44, 31, 25, .72), rgba(74, 52, 42, .9)); }
.book__content { padding: clamp(40px, 8vw, 96px) clamp(24px, 6vw, 80px); max-width: 760px; }
.book__content > p { color: var(--khaki); }
.book__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 30px; }
.chip { text-decoration: none; padding: 10px 16px 8px; border-radius: 999px; border: 1px solid rgba(245, 241, 234, .35); font-size: 14px; transition: background .3s, color .3s; }
.chip:hover { background: var(--linen); color: var(--espresso); }
.book__ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- faq ---------- */
.faq__grid { display: grid; gap: 40px; }
.faq__grid header p a { color: var(--cocoa); }
.faq__list { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 24px 0; font-family: var(--f-display); font-size: clamp(22px, 3vw, 28px); line-height: 1.2;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary span { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: transform .5s var(--ease), background .3s, color .3s; }
.qa[open] summary span { transform: rotate(135deg); background: var(--espresso); color: var(--linen); }
.qa__body { overflow: hidden; }
.qa__body p { margin: 0 0 24px; color: var(--muted); max-width: 640px; }
.qa__body a { color: var(--cocoa); }

/* ---------- ubicación ---------- */
.location__grid { display: grid; gap: 40px; align-items: center; }
.location__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.location__map { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow); background: var(--linen); }
.location__map iframe { width: 100%; height: 100%; border: 0; filter: sepia(.35) saturate(.8) contrast(.95); }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: var(--khaki); padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
.footer__marquee { background: transparent; color: var(--linen); border-color: rgba(245, 241, 234, .1); padding: 26px 0; }
.footer__marquee .marquee__track { animation-duration: 40s; }
.footer__marquee .marquee__track span { font-size: clamp(40px, 9vw, 96px); font-style: normal; font-weight: 300; }
.footer__marquee .marquee__track span.brand { color: var(--camel); }
.footer__marquee .marquee__track i { color: var(--camel); }
.footer__grid { width: min(100% - 2 * var(--gutter), var(--max)); margin: 0 auto; padding: 64px 0 40px; display: grid; gap: 36px; grid-template-columns: 1fr 1fr; }
.footer__brand { grid-column: 1 / -1; }
.footer__brand img { width: 64px; height: auto; margin-bottom: 18px; }
.footer h3 { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--linen); font-weight: 400; margin: 0 0 16px; }
.footer p { margin: 0 0 8px; font-size: 15px; }
.footer a { text-decoration: none; transition: color .3s; }
.footer a:hover { color: var(--linen); }
.footer__bottom { width: min(100% - 2 * var(--gutter), var(--max)); margin: 0 auto; padding-top: 24px; border-top: 1px solid rgba(245, 241, 234, .1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 13px; }

/* ---------- dock móvil ---------- */
.dock {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 80;
  display: flex; gap: 8px; padding: 8px; border-radius: 999px;
  background: rgba(74, 52, 42, .82); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .5); transform: translateY(calc(100% + 110px)); transition: transform .7s var(--ease);
}
.dock.is-visible { transform: none; }
.dock a { display: flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; border-radius: 999px; min-height: 52px; }
.dock__book { flex: 1; background: var(--linen); color: var(--espresso); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; }
.dock__book svg { font-size: 18px; }
.dock__wa { width: 52px; background: #25D366; color: #fff; font-size: 26px; }
.dock { --club: 56px; }
a.dock__club {
  position: absolute; right: 6px; bottom: calc(100% + 12px); width: var(--club); height: var(--club); min-height: 0;
  border-radius: 50%; background: var(--cocoa); color: var(--linen); display: grid; place-content: center; justify-items: center; gap: 1px;
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .55), 0 0 0 2px rgba(245, 241, 234, .75);
}
.dock__club svg { font-size: 22px; }
.dock__club span { font-size: 8.5px; letter-spacing: .14em; text-transform: uppercase; line-height: 1; }
.page-club .dock__club { display: none; }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 160; background: rgba(28, 19, 15, .94); display: grid; place-items: center; padding: 24px; animation: fade .4s var(--ease); }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 86vh; width: auto; border-radius: 18px; animation: zoom .6s var(--ease); }
.lightbox__close { position: absolute; top: 18px; right: 18px; width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(245, 241, 234, .4); background: none; color: var(--linen); font-size: 22px; display: grid; place-items: center; }
@keyframes fade { from { opacity: 0; } }
@keyframes zoom { from { opacity: 0; transform: scale(.92); } }

/* ---------- animaciones de entrada (JS) ---------- */
.js [data-reveal], .js [data-stagger] > * { opacity: 0; transform: translateY(28px); }
.js [data-reveal-img] { clip-path: inset(12% 8% 12% 8% round var(--radius-lg)); opacity: 0; }
.split-line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.split-line > span { display: inline-block; }
.no-motion [data-reveal], .no-motion [data-stagger] > *, .no-motion [data-reveal-img] { opacity: 1 !important; transform: none !important; clip-path: none !important; }

/* ---------- desktop ---------- */
@media (max-width: 959px) {
  .nav, .nav.is-solid, body:not(.page-home) .nav { background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (min-width: 720px) {
  .perks { grid-template-columns: 1fr 1fr; }
  .service-list { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
  .footer__brand { grid-column: auto; }
  .work { width: 42vw; }
}
@media (min-width: 960px) {
  :root { --nav-h: 84px; }
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
  .nav__burger { display: none; }
  .menu { display: none; }
  .dock { display: none; }
  .footer { padding-bottom: 40px; }
  .hero__logo { width: 170px; }
  .about__grid { grid-template-columns: 1fr 1.1fr; gap: 96px; }
  .about__badge { right: -40px; }
  .perks { grid-template-columns: repeat(3, 1fr); }
  .perk { padding: 32px 28px 36px; }
  .service-list { grid-template-columns: repeat(var(--cols, 2), 1fr); }
  #tab-manos { --cols: 4; }
  #tab-pies { --cols: 1; max-width: 520px; margin-inline: auto; }
  .space__grid { grid-template-columns: 1.1fr .9fr; gap: 96px; }
  .reel { width: 380px; }
  .club__grid { grid-template-columns: 1fr 1fr; gap: 96px; }
  .gift__grid { grid-template-columns: 1.1fr 1fr; gap: 96px; }
  .faq__grid { grid-template-columns: .9fr 1.4fr; gap: 96px; align-items: start; }
  .faq__grid header { position: sticky; top: calc(var(--nav-h) + 40px); }
  .location__grid { grid-template-columns: 1fr 1.2fr; gap: 80px; }
  .works__viewport { overflow: visible; }
  .works.is-pinned .works__track { will-change: transform; }
  .works { padding-block: 80px 60px; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }
  .work { width: min(26vw, 55vh * .75); max-width: 420px; }
}
@media (min-width: 1400px) {
  .work { width: min(24vw, 55vh * .75); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .marquee__track { animation: none; }
}

/* =============================================================
   Páginas internas: Club, tarjeta, admin
   ============================================================= */
.page-hero { padding: calc(var(--nav-h) + clamp(48px, 9vw, 110px)) 0 clamp(72px, 10vw, 130px); overflow: hidden; }
.page-hero__grid { display: grid; gap: 56px; align-items: center; }
.page-hero__title { font-size: clamp(56px, 13vw, 128px); }
.hero__ctas--left { justify-content: flex-start; margin-top: 28px; }
.how { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.how li { border: 1px solid rgba(245, 241, 234, .14); border-radius: var(--radius); padding: 28px; }
.how__n { font-size: 12px; letter-spacing: .24em; color: var(--camel); }
.how h3 { font-family: var(--f-display); font-weight: 400; font-size: 34px; margin: 14px 0 8px; }
.how p { margin: 0; color: var(--khaki); }
.how strong { color: var(--linen); font-weight: 600; }

/* tarjeta */
.page-card, .page-admin { background: radial-gradient(120% 60% at 50% 0%, var(--cream), var(--linen) 60%, var(--khaki)); min-height: 100vh; }
.card-page { padding: calc(var(--nav-h) + 28px) 16px 48px; }
.card-page__inner { width: min(100%, 480px); margin: 0 auto; display: grid; gap: 22px; }
.card-page .eyebrow { margin: 0; }
.card-page__hello { font-family: var(--f-display); font-weight: 400; font-size: clamp(40px, 11vw, 56px); line-height: 1; margin: 0; }
.card-page__hello em { color: var(--cocoa); }
.card-page__card { perspective: 1000px; animation: card-pop 1.2s var(--ease) both .1s; }
@keyframes card-pop { from { opacity: 0; transform: translateY(40px) rotateX(20deg); } }
.card-status { text-align: center; }
.card-status__big { font-family: var(--f-display); font-size: 26px; line-height: 1.25; margin: 0 0 14px; }
.card-status__big strong { font-weight: 500; color: var(--cocoa); }
.fine-print { font-size: 12px; color: var(--muted); margin: 14px 0 0; letter-spacing: .02em; }
.fine-print--light { color: rgba(245, 241, 234, .6); margin: -20px 0 28px; }
.card-status__small { font-size: 14px; color: var(--muted); margin: 10px 0 0; }
.card-expiry { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin: 14px 0 0; padding: 8px 14px 6px; border-radius: 999px; background: rgba(74, 52, 42, .07); font-size: 14px; color: var(--cocoa); }
.card-expiry svg { font-size: 16px; }
.card-expiry strong { font-weight: 600; }
.card-expiry small { color: var(--muted); font-size: 12px; }
.card-expiry--over { background: #f3e1dc; color: #8c3b2e; }
.progress { height: 8px; border-radius: 99px; background: rgba(74, 52, 42, .12); overflow: hidden; }
.progress span { display: block; height: 100%; width: var(--p); border-radius: inherit; background: linear-gradient(90deg, var(--camel), var(--cocoa)); animation: grow 1.6s var(--ease) both .5s; }
@keyframes grow { from { width: 0; } }
.card-qr { display: flex; align-items: center; gap: 18px; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-soft); }
.card-qr__code { flex-shrink: 0; width: 132px; height: 132px; border-radius: 12px; overflow: hidden; background: var(--cream); }
.card-qr__code img, .card-qr__code canvas { width: 100%; height: 100%; }
.card-qr strong { font-family: var(--f-display); font-size: 22px; font-weight: 500; }
.card-qr p { margin: 4px 0 0; font-size: 15px; color: var(--muted); line-height: 1.4; }
.card-actions { display: grid; gap: 10px; }
.push-box { display: grid; grid-template-columns: auto 1fr; gap: 10px 14px; align-items: center; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-align: left; }
.push-box > svg { font-size: 26px; color: var(--cocoa); }
.push-box strong { font-family: var(--f-display); font-weight: 400; font-size: 18px; }
.push-box p { margin: 2px 0 0; font-size: 14px; color: var(--muted); line-height: 1.45; }
.push-box .btn { grid-column: 1 / -1; }
.push-box.is-on { background: #eef5ec; border-color: #cfe3cb; }
.push-box.is-on > svg { color: #2f5d34; }
.admin__push summary small { text-transform: none; letter-spacing: 0; color: var(--muted); }
.card-install { background: var(--cream); border-radius: var(--radius); padding: 16px 20px; border: 1px solid var(--line); font-size: 15px; }
.card-install summary { cursor: pointer; }
.card-install p { margin: 10px 0 0; color: var(--muted); }
.history h2 { font-family: var(--f-display); font-weight: 400; font-size: 28px; margin: 12px 0; }
.history ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.history li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.history__stamp { width: 34px; height: 34px; border-radius: 50%; background: var(--espresso); color: var(--linen); display: grid; place-items: center; font-size: 14px; flex-shrink: 0; }
.history__what { flex: 1; display: grid; line-height: 1.3; }
.history__what small { color: var(--muted); font-size: 13px; }
.card-page__home { justify-self: center; display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 13px; letter-spacing: .14em; color: var(--muted); margin-top: 10px; }
.card-page__home img { width: 26px; height: auto; }

/* admin */
.admin-box { background: var(--cream); border: 2px solid var(--cocoa); border-radius: var(--radius); padding: 20px; display: grid; gap: 16px; box-shadow: var(--shadow); }
.admin-box__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; }
.admin-box__head strong { font-family: var(--f-display); font-size: 22px; font-weight: 500; }
.admin-box__head a { color: var(--cocoa); }
.admin-box__stamp { display: grid; gap: 10px; }
.admin-box__alert { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--blush); color: var(--espresso); font-size: 15px; }
.admin-box__row { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-box__row form { display: contents; }
.admin-box__muted { color: var(--muted); font-size: 14px; margin: 0; }
.admin-box__edit summary { cursor: pointer; font-size: 14px; color: var(--cocoa); }
.admin-box__edit form { display: grid; gap: 12px; margin-top: 12px; }
.admin-box__danger { background: none; border: 0; color: #8c3b2e; text-decoration: underline; font-size: 14px; padding: 0; justify-self: start; }
.page-admin label, .admin-box label { display: grid; gap: 6px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.page-admin input, .page-admin select, .page-admin textarea, .admin-box select, .admin-box input, .admin-box textarea {
  font: inherit; font-size: 17px; text-transform: none; letter-spacing: 0; color: var(--espresso); width: 100%;
  min-height: 50px; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(74, 52, 42, .25); background: #fff;
}
.page-admin input:focus, .admin-box select:focus, .admin-box input:focus, .admin-box textarea:focus { outline: 2px solid var(--camel); border-color: transparent; }

.admin-login { min-height: 100vh; display: grid; place-items: center; padding: calc(var(--nav-h) + 20px) 16px 40px; }
.admin-login__box { width: min(100%, 400px); background: var(--cream); border-radius: var(--radius-lg); padding: 36px 28px; box-shadow: var(--shadow); display: grid; gap: 14px; text-align: center; justify-items: center; }
.admin-login__box > * { width: 100%; }
.admin-login__box img { width: 56px; }
.admin-login__box h1 { font-family: var(--f-display); font-weight: 300; font-size: 40px; margin: 0; }
.admin-login__box h1 em { color: var(--cocoa); }
.admin-login__box label { text-align: left; }

.admin { padding: calc(var(--nav-h) + 24px) 16px 48px; }
.admin__inner { width: min(100%, 720px); margin: 0 auto; display: grid; gap: 20px; }
.admin__top { display: flex; justify-content: space-between; align-items: end; }
.admin__top .eyebrow { margin-bottom: 6px; }
.admin__title { font-family: var(--f-display); font-weight: 300; font-size: 48px; line-height: 1; margin: 0; }
.admin__title .brand { color: var(--cocoa); font-size: .62em; vertical-align: .18em; }
.admin__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.admin__stats div { background: var(--espresso); color: var(--linen); border-radius: 18px; padding: 14px; display: grid; }
.admin__stats strong { font-family: var(--f-display); font-size: 36px; font-weight: 400; line-height: 1; }
.admin__stats span { font-size: 12px; color: var(--khaki); line-height: 1.3; margin-top: 4px; }
.admin__new { background: var(--cream); border-radius: var(--radius); border: 1px solid var(--line); padding: 4px 18px; }
.admin__new summary { cursor: pointer; padding: 14px 0; display: flex; align-items: center; gap: 10px; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; }
.admin__new form { display: grid; gap: 12px; padding-bottom: 18px; }
.admin__search { display: flex; gap: 8px; }
.admin__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.admin__list a { display: flex; align-items: center; gap: 12px; background: var(--cream); border: 1px solid var(--line); border-radius: 18px; padding: 12px 14px; text-decoration: none; transition: transform .3s var(--ease), box-shadow .3s; }
.admin__list a:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.admin__avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--khaki); display: grid; place-items: center; font-family: var(--f-display); font-size: 22px; flex-shrink: 0; }
.admin__who { flex: 1; display: grid; line-height: 1.3; min-width: 0; }
.admin__who strong { font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin__who small { color: var(--muted); }
.admin__dots { display: none; gap: 3px; }
.admin__dots i { width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--camel); }
.admin__dots i.on { background: var(--cocoa); border-color: var(--cocoa); }
.admin__dots i.r { outline: 1px solid var(--camel); outline-offset: 1px; }
.admin__empty { text-align: center; padding: 30px; color: var(--muted); }
.admin__tip { text-align: center; }
.admin__alerts { display: grid; gap: 8px; }
.alert { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 16px; text-decoration: none; font-size: 15px; }
.alert strong { font-family: var(--f-display); font-size: 24px; line-height: 1; }
.alert span { margin-left: auto; font-size: 13px; letter-spacing: .08em; }
.alert--over { background: #f3e1dc; color: #8c3b2e; }
.alert--soon { background: var(--blush); color: var(--espresso); }
.alert--clear { justify-content: center; color: var(--cocoa); font-size: 14px; padding: 6px; }
.alert.is-on { box-shadow: inset 0 0 0 2px currentColor; }
.tag--over { background: #8c3b2e; color: #fff; border-color: #8c3b2e; }
.tag--soon { background: var(--blush); color: var(--espresso); border-color: var(--camel); }
.admin-box__expiry { display: grid; gap: 10px; }
.admin-box__alert--over { background: #f3e1dc; color: #8c3b2e; }
.res__expired { width: 100%; padding: 12px 14px; border-radius: 14px; background: #f3e1dc; color: #8c3b2e; font-size: 15px; }
.res__expired[hidden] { display: none; }
.admin__export { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.admin__export p { width: 100%; text-align: center; }

@media (min-width: 560px) {
  .admin__dots { display: flex; }
  .card-actions { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 720px) {
  .how { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 960px) {
  .page-hero__grid { grid-template-columns: 1.1fr 1fr; gap: 80px; }
}

/* =============================================================
   Escáner (panel) y celebración de sello (tarjeta)
   ============================================================= */
.page-scan { background: var(--ink); color: var(--linen); }
.page-scan .nav { display: none; }
.scan { min-height: 100svh; padding: calc(18px + env(safe-area-inset-top)) 16px 32px; display: flex; flex-direction: column; gap: 18px; max-width: 520px; margin: 0 auto; }
.scan__top { display: flex; align-items: center; gap: 14px; }
.scan__top h1 { font-family: var(--f-display); font-weight: 300; font-size: 32px; margin: 0; line-height: 1; }
.scan__top .eyebrow { margin-bottom: 6px; }
.scan__back { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(245, 241, 234, .3); display: grid; place-items: center; font-size: 20px; flex-shrink: 0; }
.scan__back svg { transform: rotate(180deg); }
.scan__cam { position: relative; aspect-ratio: 1; border-radius: 28px; overflow: hidden; background: #000; }
.scan__reader, .scan__reader video { width: 100% !important; height: 100% !important; object-fit: cover; }
.scan__reader { border: 0 !important; }
.scan__reader #qr-shaded-region { border-color: rgba(0, 0, 0, .35) !important; }
.scan__reader #qr-shaded-region > div { display: none !important; }
.scan__frame { position: absolute; inset: 14%; pointer-events: none; }
.scan__frame i { position: absolute; width: 38px; height: 38px; border: 3px solid var(--linen); }
.scan__frame i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; border-radius: 16px 0 0 0; }
.scan__frame i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; border-radius: 0 16px 0 0; }
.scan__frame i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 16px; }
.scan__frame i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; border-radius: 0 0 16px 0; }
.scan__laser { position: absolute; left: 6%; right: 6%; height: 2px; top: 0; background: linear-gradient(90deg, transparent, var(--camel), transparent); box-shadow: 0 0 14px var(--camel); opacity: 0; }
.scan.is-live .scan__laser { opacity: 1; animation: laser 2.2s ease-in-out infinite alternate; }
@keyframes laser { to { top: 100%; } }
.scan__msg { position: absolute; inset: auto 0 0; margin: 0; padding: 18px; text-align: center; font-size: 15px; color: var(--khaki); z-index: 3; }
.scan__retry { margin-top: 12px; }
.scan__hint { text-align: center; color: var(--khaki); margin: 0; font-size: 15px; }
.scan__manual { text-align: center; color: var(--camel); font-size: 14px; }

.sheet { position: fixed; inset: 0; z-index: 120; display: flex; align-items: flex-end; background: rgba(28, 19, 15, 0); transition: background .35s; }
.sheet[hidden] { display: none; }  /* sin esto, la capa invisible tapaba la flecha y la cámara */
.sheet.is-open { background: rgba(28, 19, 15, .6); }
.res__saved { display: inline-block; padding: 8px 14px 6px; border-radius: 999px; background: #e3efe2; color: #2f5d34; letter-spacing: .06em; text-transform: none; font-size: 15px; animation: pop .5s cubic-bezier(.34, 1.7, .5, 1) both; }
.chip-s.is-on { transform: scale(1.06); box-shadow: 0 6px 14px -6px rgba(74, 52, 42, .6); }
.sheet__body { width: 100%; max-width: 520px; margin: 0 auto; background: var(--cream); color: var(--espresso); border-radius: 30px 30px 0 0; padding: 26px 20px calc(24px + env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform .5s var(--ease); max-height: 92svh; overflow: auto; }
.sheet.is-open .sheet__body { transform: none; }
.res { display: grid; justify-items: center; text-align: center; gap: 10px; position: relative; }
.res__avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--espresso); color: var(--linen); display: grid; place-items: center; font-family: var(--f-display); font-size: 32px; animation: pop .6s cubic-bezier(.34, 1.7, .5, 1) both; }
.res__avatar--warn { background: var(--camel); color: var(--espresso); }
.res__name { font-family: var(--f-display); font-size: 30px; margin: 0; line-height: 1.1; }
.res__stamp { margin: 0; font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.res__stamp strong { font-size: 22px; color: var(--espresso); }
.res__dots { list-style: none; margin: 6px 0; padding: 0; display: flex; gap: 6px; }
.res__dots li { width: 20px; height: 20px; border-radius: 50%; border: 1.5px dashed var(--camel); }
.res__dots li.on { background: var(--cocoa); border: 0; }
.res__dots li.new { animation: pop .7s cubic-bezier(.34, 1.7, .5, 1) .25s both; box-shadow: 0 0 0 4px rgba(178, 150, 125, .35); }
.res__reward { width: 100%; border-radius: 20px; padding: 16px; background: linear-gradient(120deg, var(--cocoa), var(--camel)); color: var(--linen); display: grid; animation: pop .7s cubic-bezier(.34, 1.7, .5, 1) .4s both; }
.res__reward[hidden] { display: none; }
.res__reward small { letter-spacing: .2em; text-transform: uppercase; font-size: 11px; }
.res__reward strong { font-family: var(--f-display); font-size: 46px; font-weight: 500; line-height: 1; }
.res__next { margin: 0; color: var(--muted); }
.res__label { margin: 8px 0 0; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.res__label small { text-transform: none; letter-spacing: 0; }
.res__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.chip-s { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 9px 14px 7px; font-size: 14px; transition: background .2s, color .2s; }
.chip-s.is-on { background: var(--espresso); color: var(--linen); border-color: var(--espresso); }
.res__actions { display: flex; gap: 8px; margin-top: 6px; }
.res__actions--stack { flex-direction: column; width: 100%; }
.res__again { width: 100%; margin-top: 8px; }
.res__burst { position: absolute; top: 32px; left: 50%; width: 10px; height: 10px; }
.res__burst::before, .res__burst::after { content: ""; position: absolute; inset: -60px; border-radius: 50%; border: 2px solid var(--camel); animation: ring 1s var(--ease) both; }
.res__burst::after { animation-delay: .15s; border-color: var(--khaki); }
@keyframes pop { from { transform: scale(0); opacity: 0; } }
@keyframes ring { from { transform: scale(.2); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }

.celebrate { position: fixed; inset: 0; z-index: 170; display: grid; place-items: center; background: rgba(44, 31, 25, .78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade .4s var(--ease); padding: 24px; }
.celebrate__box { background: var(--cream); border-radius: 30px; padding: 34px 26px; text-align: center; width: min(100%, 360px); animation: pop .7s cubic-bezier(.34, 1.7, .5, 1) both; position: relative; overflow: hidden; }
.celebrate__stamp { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 16px; background: var(--espresso); display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(178, 150, 125, .25); animation: pop .8s cubic-bezier(.34, 1.7, .5, 1) .2s both; }
.celebrate__stamp img { width: 56%; height: auto; }
.celebrate h2 { font-family: var(--f-display); font-weight: 400; font-size: 34px; margin: 0 0 6px; }
.celebrate p { margin: 0 0 20px; color: var(--muted); }
.celebrate__reward { display: block; font-family: var(--f-display); font-size: 44px; color: var(--cocoa); line-height: 1; margin: 6px 0 14px; }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 171; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 8px; height: 14px; border-radius: 2px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }

.admin__scan { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 64px; font-size: 15px; }
.admin__scan svg { font-size: 24px; }
