/* ============ Lumière Dermoestética ============ */
:root {
  --cream: #FBF6F2;
  --nude: #E4CDC0;
  --nude-2: #F2E6DE;
  --sand: #EADBCF;
  --cocoa: #3A2A26;
  --cocoa-2: #5A433C;
  --gold: #A9835A;
  --gold-grad: linear-gradient(135deg, #D2B183, #A9835A 60%, #8C6A45);
  --muted: #7E6B63;
  --line: rgba(58, 42, 38, .13);
  --ok: #5F7F5B; --ok-soft: #E7EEE3;
  --warn: #B07A2A; --warn-soft: #F7EAD5;
  --red: #B04E44; --red-soft: #F6E2DE;
  --blue: #5B6E8C; --blue-soft: #E6EAF1;
  --f-display: 'Cormorant Garamond', Georgia, serif;
  --f-body: 'Jost', system-ui, -apple-system, Segoe UI, sans-serif;
  --max: 1220px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--cocoa); font: 400 1rem/1.65 var(--f-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; font-feature-settings: "lnum" 1; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
[hidden] { display: none !important; }
.wrap { width: min(var(--max), 100% - 48px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 300; background: var(--cocoa); color: #fff; padding: 8px 14px; }
.skip:focus { left: 8px; }

h1, h2, h3 { font-family: var(--f-display); font-weight: 500; letter-spacing: -.01em; line-height: 1.05; margin: 0; }
h1 { font-size: clamp(3rem, 7vw, 5.6rem); }
h2 { font-size: clamp(2.2rem, 4.4vw, 3.5rem); }
h3 { font-size: 1.5rem; }
em { font-style: italic; color: var(--gold); }
p { margin: 0; }
.eyebrow { font: 500 .74rem/1 var(--f-body); letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.lead { color: var(--muted); font-size: 1.06rem; }
.note { color: var(--muted); font-size: .85rem; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 26px; border-radius: 999px; border: 1px solid transparent; font-weight: 500; font-size: .95rem; letter-spacing: .02em; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .15s; }
.btn:active { transform: scale(.98); }
.btn.big { padding: 16px 30px; }
.btn.small { padding: 8px 16px; font-size: .85rem; }
.btn-dark { background: var(--cocoa); color: var(--cream); }
.btn-dark:hover { background: var(--gold); }
.btn-dark.disabled, .btn:disabled { opacity: .45; pointer-events: none; }
.btn-light { background: rgba(255, 255, 255, .85); color: var(--cocoa); }
.btn-light:hover { background: #fff; }
.btn-outline { border-color: var(--cocoa); color: var(--cocoa); background: transparent; }
.btn-outline:hover { background: var(--cocoa); color: var(--cream); }
.btn-small { padding: 8px 16px; font-size: .85rem; background: var(--cocoa); color: var(--cream); }
.btn-small:hover { background: var(--gold); }
.link-btn { background: none; border: 0; padding: 6px; cursor: pointer; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; font-size: .88rem; }
.link-btn.light { color: rgba(255, 255, 255, .7); }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: transparent; cursor: pointer; display: grid; place-items: center; }
.icon-btn svg { width: 18px; height: 18px; }

/* ---------- Barra de demo y navegación ---------- */
.demo-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; padding: 8px 16px; background: #0C0B0E; color: #D9D2C4; font-size: .78rem; text-align: center; }
.demo-bar a { color: #E2B34E; font-weight: 600; text-underline-offset: 3px; }
.demo-bar .demo-brand { text-decoration: none; }
.nav-bar { position: sticky; top: 0; z-index: 60; background: rgba(251, 246, 242, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.logo img { width: 46px; height: 46px; border-radius: 50%; }
.logo span { display: grid; line-height: 1; }
.logo b { font: 500 1.7rem/1 var(--f-display); color: var(--gold); }
.logo small { font-size: .58rem; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-size: .95rem; color: var(--muted); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--cocoa); }
.nav-links .nav-cta { color: var(--cream); padding: 11px 22px; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.cart-btn { position: relative; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: transparent; cursor: pointer; display: grid; place-items: center; }
.cart-btn svg { width: 22px; height: 22px; }
.cart-count { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--gold); color: #fff; font-size: .72rem; font-weight: 600; display: grid; place-items: center; }
.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: transparent; cursor: pointer; }
.nav-toggle svg { width: 20px; height: 20px; margin: auto; }

/* ---------- Secciones ---------- */
section { padding: clamp(72px, 9vw, 120px) 0; }
.section-head { display: grid; gap: 14px; margin-bottom: 44px; max-width: 720px; }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head.split { max-width: none; grid-template-columns: 1fr auto; align-items: end; }
.page-head { padding: 64px 0 24px; }
.page-head.small { padding-bottom: 8px; }
.page-head h1 { margin: 14px 0 10px; font-size: clamp(2.6rem, 5vw, 4.2rem); }

.hero { position: relative; min-height: min(88vh, 820px); display: grid; align-items: center; padding: 0; isolation: isolate; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(251, 246, 242, .95) 0%, rgba(251, 246, 242, .82) 38%, rgba(251, 246, 242, .1) 72%); }
.hero-content { display: grid; gap: 22px; max-width: 600px; margin-left: max(24px, (100% - var(--max)) / 2); padding: 100px 0; }
.hero-content > p { font-size: 1.12rem; color: var(--cocoa-2); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-next { display: flex; align-items: center; gap: 10px; font-size: .92rem; color: var(--cocoa-2); }
.hero-next:empty { display: none; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 5px var(--ok-soft); flex: none; }

.trust { padding: 0; background: var(--nude-2); border-block: 1px solid var(--line); }
.trust ul { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.trust li { padding: 26px 22px; display: grid; gap: 2px; }
.trust li + li { border-left: 1px solid var(--line); }
.trust b { font: 500 1.35rem/1.2 var(--f-display); }
.trust span { font-size: .88rem; color: var(--muted); }

.round-photo { width: 220px; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 6px solid var(--nude-2); }
.treatments { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.treatment { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 26px; display: grid; gap: 10px; align-content: start; transition: transform .25s, box-shadow .25s; }
.treatment:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -28px rgba(58, 42, 38, .4); }
.treatment small { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.treatment p { color: var(--muted); font-size: .94rem; }
.t-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.t-foot b { font: 500 1.15rem/1 var(--f-body); color: var(--cocoa); }
.t-foot a { color: var(--cocoa); font-weight: 500; text-underline-offset: 4px; }

.promos-sec { background: var(--nude-2); }
.promos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.promo { display: grid; grid-template-columns: .9fr 1.1fr; background: #fff; border-radius: 24px; overflow: hidden; }
.promo img { width: 100%; height: 100%; object-fit: cover; }
.promo > div { padding: 26px; display: grid; gap: 10px; align-content: center; }
.promo p { color: var(--muted); font-size: .94rem; }
.promo-price { display: flex; align-items: baseline; gap: 10px; }
.promo-price b { font: 500 1.64rem/1 var(--f-body); color: var(--gold); }
.promo-price s, .price s, .price-big s { color: var(--muted); font-size: .9rem; }
.promo small { color: var(--muted); font-size: .8rem; }
.promo .btn { justify-self: start; margin-top: 6px; }

/* ---------- Reserva ---------- */
.booking { background: linear-gradient(180deg, var(--cream), var(--nude-2)); }
.book, .book-done { max-width: 880px; margin-inline: auto; background: #fff; border-radius: 28px; padding: clamp(22px, 4vw, 42px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; box-shadow: 0 30px 70px -50px rgba(58, 42, 38, .55); }
.book-step { display: grid; gap: 14px; min-width: 0; }
.book-step h3 { display: flex; align-items: center; gap: 12px; font-size: 1.6rem; }
.book-step h3 span { width: 32px; height: 32px; border-radius: 50%; background: var(--nude); color: var(--cocoa); display: grid; place-items: center; font: 500 .95rem/1 var(--f-body); }
.svc-choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.svc, .day, .slot, .choice { position: relative; }
.svc input, .day input, .slot input { position: absolute; opacity: 0; pointer-events: none; }
.svc span { display: grid; gap: 4px; height: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; cursor: pointer; transition: all .2s; }
.svc b { font-weight: 500; font-size: .95rem; }
.svc small { color: var(--muted); font-size: .8rem; }
.svc input:checked + span { border-color: var(--gold); background: var(--nude-2); box-shadow: inset 0 0 0 1px var(--gold); }
.svc input:focus-visible + span, .day input:focus-visible + span, .slot input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.day { flex: none; scroll-snap-align: start; }
.day span { display: grid; justify-items: center; width: 70px; padding: 10px 0; border: 1px solid var(--line); border-radius: 16px; cursor: pointer; transition: all .2s; text-transform: capitalize; }
.day b { font: 500 1.31rem/1.1 var(--f-body); }
.day small { font-size: .74rem; color: var(--muted); }
.day input:checked + span { background: var(--cocoa); border-color: var(--cocoa); color: var(--cream); }
.day input:checked + span small { color: rgba(251, 246, 242, .75); }
.day.full span { opacity: .4; cursor: not-allowed; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; }
.slot span { display: block; text-align: center; padding: 10px 0; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; transition: all .2s; }
.slot span:hover { border-color: var(--gold); }
.slot input:checked + span { background: var(--gold); border-color: var(--gold); color: #fff; }
.slot-msg { color: var(--muted); font-size: .88rem; }
.book-summary { padding: 16px 18px; border-radius: 16px; background: var(--nude-2); }
.book-summary:empty { display: none; }
.book-done { justify-items: center; text-align: center; gap: 16px; }
.book-done h3 { font-size: 2.2rem; outline: none; }
.book-done dl, .order-done ul { margin: 0; width: 100%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; text-align: left; }
.book-done dl div { background: #fff; padding: 12px 14px; }
.book-done dt { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.book-done dd { margin: 0; font-weight: 500; }
.book-done dd::first-letter { text-transform: uppercase; }
.book-done > p { color: var(--muted); max-width: 56ch; }
.done-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; }

/* ---------- Formularios ---------- */
.field { display: grid; gap: 6px; font-size: .88rem; font-weight: 500; }
.field label { font-size: .88rem; font-weight: 500; }
.field small { font-weight: 400; color: var(--muted); }
.field input, .field select { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-weight: 400; font-size: .97rem; transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(169, 131, 90, .16); }
.field.inline { grid-template-columns: auto 1fr; align-items: center; gap: 12px; max-width: 440px; }
.field.invalid input { border-color: var(--red); }
.field-error { display: none; font-size: .8rem; font-weight: 400; color: var(--red); }
.field.invalid .field-error { display: block; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.row.three { grid-template-columns: repeat(3, 1fr); }

/* ---------- Productos ---------- */
.shop-teaser { background: var(--cream); }
.grid-products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { display: grid; grid-template-rows: auto 1fr; background: #fff; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); transition: transform .3s, box-shadow .3s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 24px 44px -30px rgba(58, 42, 38, .45); }
.card-media { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--sand); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover .card-media img { transform: scale(1.04); }
.badge { position: absolute; top: 12px; left: 12px; background: rgba(255, 255, 255, .9); color: var(--cocoa); font-size: .72rem; font-weight: 500; padding: 5px 11px; border-radius: 999px; }
.card-body { padding: 16px 18px 20px; display: grid; gap: 6px; align-content: start; }
.card-body small { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.card-body h3 { font-size: 1.35rem; }
.card-body h3 a { text-decoration: none; }
.card-body h3 a:hover { color: var(--gold); }
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 8px; }
.price b { font: 500 1.11rem/1 var(--f-body); }
.price s { margin-left: 6px; }
.routine { display: grid; grid-template-columns: 340px 1fr; gap: 48px; align-items: center; margin-top: 48px; background: var(--nude-2); border-radius: 28px; padding: 28px 48px 28px 28px; }
.routine img { border-radius: 20px; aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.routine > div { display: grid; gap: 14px; }
.routine h3 { font-size: 2.2rem; }
.routine p { color: var(--muted); }
.routine .btn { justify-self: start; }

.shop { padding-top: 20px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); background: transparent; cursor: pointer; transition: all .2s; }
.chip:hover { border-color: var(--cocoa); }
.chip[aria-pressed="true"] { background: var(--cocoa); color: var(--cream); border-color: var(--cocoa); }
.sort { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--muted); }
.sort select { padding: 9px 12px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--cocoa); }
.results { color: var(--muted); font-size: .88rem; margin-bottom: 22px; }

.product-page { padding-top: 28px; }
.crumbs { display: flex; gap: 8px; font-size: .88rem; color: var(--muted); margin-bottom: 26px; }
.crumbs a { text-decoration: none; }
.product { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.product > * { min-width: 0; }
.product-media { position: sticky; top: 100px; border-radius: 26px; overflow: hidden; background: var(--sand); }
.product-info { display: grid; gap: 18px; }
.product-info h1 { font-size: clamp(2.4rem, 4vw, 3.6rem); }
.price-big b { font: 500 1.8rem/1 var(--f-body); }
.buy { display: flex; gap: 12px; }
.buy .btn { flex: 1; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.qty button { width: 32px; height: 32px; border: 0; background: transparent; cursor: pointer; font-size: 1.1rem; }
.qty span { min-width: 22px; text-align: center; font-weight: 500; font-size: .9rem; }
.qty.big button { width: 44px; height: 50px; }
.qty.big input { width: 40px; border: 0; text-align: center; font-weight: 500; -moz-appearance: textfield; background: transparent; }
.qty.big input::-webkit-inner-spin-button { -webkit-appearance: none; }
.perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; color: var(--muted); font-size: .92rem; }
.perks li::before { content: '✦'; color: var(--gold); margin-right: 10px; }
.related { padding-top: 0; }

/* ---------- Equipo y visita ---------- */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.member { margin: 0; display: grid; gap: 14px; }
.member img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 200px 200px 24px 24px; background: var(--nude-2); }
.member figcaption { display: grid; gap: 2px; text-align: center; }
.member b { font: 500 1.5rem/1.2 var(--f-display); }
.member span { color: var(--muted); font-size: .92rem; }
.member small { color: var(--gold); font-size: .78rem; letter-spacing: .06em; }
.visit { background: var(--nude-2); }
.visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.visit-grid > * { min-width: 0; }
.visit-grid > img { border-radius: 26px; width: 100%; }
.visit-info { display: grid; gap: 14px; }
.addr { font: 500 1.4rem/1.3 var(--f-display); }
.map { border-radius: 20px; overflow: hidden; height: 260px; margin-top: 8px; border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; filter: sepia(.15) saturate(.8); }

footer[data-layout] { background: var(--nude); padding: 48px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 220px 1fr 1fr; gap: 40px; align-items: center; }
.footer-logo { width: 200px; border-radius: 18px; }
.footer-grid h4 { margin: 0 0 10px; font: 500 .75rem/1 var(--f-body); letter-spacing: .2em; text-transform: uppercase; color: var(--cocoa-2); }
.footer-grid p { color: var(--cocoa-2); font-size: .94rem; margin-bottom: 10px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: var(--gold); }
.staff { text-decoration: underline !important; text-underline-offset: 3px; }
.credit { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--cocoa-2); text-align: center; }
.credit a { text-decoration: none; }
.credit b { color: #8C6A45; }

/* ---------- Checkout ---------- */
.checkout { padding-top: 32px; }
.checkout-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.checkout-grid > * { min-width: 0; }
.checkout-form { display: grid; gap: 20px; }
.checkout-form fieldset { border: 1px solid var(--line); border-radius: 22px; padding: 22px 24px 26px; margin: 0; display: grid; gap: 16px; background: #fff; }
.checkout-form legend { font: 500 1.6rem/1 var(--f-display); padding: 0 8px; }
.choices { display: grid; gap: 10px; }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--gold); background: var(--nude-2); }
.choice input { margin-top: 4px; accent-color: var(--gold); width: 18px; height: 18px; flex: none; }
.choice span { display: grid; gap: 2px; }
.choice small { color: var(--muted); font-size: .85rem; }
.summary { position: sticky; top: 100px; background: var(--nude-2); border-radius: 24px; padding: 26px; display: grid; gap: 18px; }
.summary h2 { font-size: 2rem; }
.summary-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.summary-items li { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; position: relative; font-size: .9rem; }
.summary-items img { border-radius: 12px; }
.summary-items small { display: block; color: var(--muted); font-size: .8rem; }
.si-qty { position: absolute; left: 42px; top: -6px; min-width: 20px; height: 20px; border-radius: 999px; background: var(--cocoa); color: #fff; font-size: .72rem; display: grid; place-items: center; }
.totals { margin: 0; display: grid; gap: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.totals div { display: flex; justify-content: space-between; }
.totals dt { color: var(--muted); }
.totals dd { margin: 0; }
.totals .total { padding-top: 10px; border-top: 1px solid var(--line); font-size: 1.2rem; font-weight: 600; }
.totals .total dt { color: var(--cocoa); }
.empty-state, .order-done { grid-column: 1 / -1; display: grid; justify-items: center; gap: 14px; text-align: center; padding: 56px 24px; background: var(--nude-2); border-radius: 28px; }
.order-done h2 { outline: none; max-width: 20ch; }
.order-done > p { color: var(--muted); max-width: 56ch; }
.order-done ul { list-style: none; padding: 0; max-width: 520px; grid-template-columns: 1fr; }
.order-done li { display: flex; justify-content: space-between; background: #fff; padding: 12px 16px; }
.order-done li.t { font-weight: 600; }

.modal { position: fixed; inset: 0; z-index: 120; background: rgba(58, 42, 38, .55); display: grid; place-items: center; padding: 16px; }
.modal-card { width: min(420px, 100%); background: var(--cream); border-radius: 26px; padding: 28px; display: grid; gap: 16px; text-align: center; }
.demo-tag { justify-self: center; font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--warn); background: var(--warn-soft); padding: 6px 12px; border-radius: 999px; }
.test-card { text-align: left; color: #fff; border-radius: 18px; padding: 20px; display: grid; gap: 14px; background: linear-gradient(135deg, var(--cocoa), var(--gold)); }
.test-card > span { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.test-card b { font-size: 1.3rem; letter-spacing: .12em; font-weight: 500; }
.test-card div { display: flex; gap: 24px; font-size: .88rem; opacity: .9; }
.modal-note { font-size: .82rem; color: var(--muted); }

/* ---------- Carrito, WhatsApp, volver arriba y avisos ---------- */
.cart-backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(58, 42, 38, .4); }
.cart { position: fixed; top: 0; right: 0; bottom: 0; z-index: 100; width: min(420px, 100%); background: var(--cream); display: grid; grid-template-rows: auto auto 1fr auto; transform: translateX(100%); visibility: hidden; transition: transform .35s cubic-bezier(.2, .7, .2, 1), visibility .35s; }
.cart.open { transform: none; visibility: visible; }
.cart-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.cart-head h2 { font-size: 2rem; }
.free-ship { margin: 0; padding: 10px 22px; font-size: .85rem; background: var(--ok-soft); color: var(--ok); }
.free-ship:empty { display: none; }
.cart-items { list-style: none; margin: 0; padding: 8px 22px; overflow-y: auto; }
.cart-items li { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-items img { border-radius: 14px; }
.ci-info { display: grid; gap: 4px; }
.ci-info a { font-weight: 500; text-decoration: none; }
.ci-info small { color: var(--muted); font-size: .8rem; }
.ci-info .qty { justify-self: start; }
.cart-items .empty { display: block; text-align: center; color: var(--muted); padding: 40px 0; border: 0; }
.cart-foot { padding: 18px 22px 24px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.cart-total { display: flex; justify-content: space-between; font-size: 1.1rem; }
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 70; width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .4); transition: transform .2s; }
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; }
.to-top { position: fixed; right: 27px; bottom: 94px; z-index: 70; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--cream); color: var(--cocoa); cursor: pointer; display: grid; place-items: center; box-shadow: 0 10px 24px -12px rgba(58, 42, 38, .5); opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .3s, transform .3s, visibility .3s, background-color .2s; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--cocoa); color: var(--cream); }
.to-top svg { width: 20px; height: 20px; }
.panel-body .to-top { bottom: 22px; right: 22px; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 200; transform: translate(-50%, 20px); background: var(--cocoa); color: var(--cream); padding: 12px 20px; border-radius: 999px; font-size: .9rem; opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ============ Panel ============ */
.panel-body { background: var(--nude-2); }
.login { min-height: calc(100vh - 40px); display: grid; place-items: center; padding: 24px 16px; }
.login-card { width: min(400px, 100%); background: #fff; border-radius: 26px; padding: 30px; display: grid; gap: 14px; text-align: center; box-shadow: 0 30px 60px -40px rgba(58, 42, 38, .5); }
.login-card img { width: 150px; justify-self: center; border-radius: 16px; }
.login-card h1 { font-size: 2rem; }
.login-card .field { text-align: left; }
.demo-creds { font-size: .85rem; background: var(--warn-soft); color: var(--warn); padding: 10px; border-radius: 12px; }
.login-error { color: var(--red); font-size: .88rem; min-height: 1.2em; }
.app { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: calc(100vh - 36px); }
.side { background: var(--cocoa); color: #fff; padding: 24px 16px; display: flex; flex-direction: column; gap: 28px; position: sticky; top: 0; height: 100vh; }
.side-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; padding: 0 6px; }
.side-logo img { width: 48px; height: 48px; border-radius: 50%; }
.side-logo span { font: 500 1.8rem/1 var(--f-display); color: #E7CFAE; }
.side-nav { display: grid; gap: 6px; }
.side-nav button { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 0; background: transparent; color: rgba(255, 255, 255, .75); cursor: pointer; text-align: left; }
.side-nav button svg { width: 20px; height: 20px; }
.side-nav button:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.side-nav button[aria-current] { background: var(--gold); color: #fff; }
.tab-count { margin-left: auto; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: #fff; color: var(--cocoa); font-size: .75rem; font-weight: 600; display: grid; place-items: center; }
.tab-count:empty { display: none; }
.side-foot { margin-top: auto; display: grid; gap: 4px; justify-items: start; }
.user { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.avatar-mini { width: 32px; height: 32px; border-radius: 50%; background: var(--gold); display: grid; place-items: center; font-size: .85rem; }
.main { padding: clamp(20px, 3vw, 36px); min-width: 0; }
.main .view { padding: 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 26px; }
.stat { background: #fff; border-radius: 18px; padding: 16px 18px; display: grid; gap: 4px; border-left: 4px solid var(--ok); }
.stat.warn { border-left-color: var(--warn); }
.stat.gold { border-left-color: var(--gold); }
.stat small { color: var(--muted); font-size: .82rem; }
.stat b { font: 500 1.64rem/1 var(--f-body); }
.view-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; }
.view-head h1 { font-size: 2.6rem; }
.view-head p { color: var(--muted); }
.view-head p::first-letter { text-transform: uppercase; }
.head-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.seg { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: transparent; padding: 7px 16px; border-radius: 999px; cursor: pointer; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--cocoa); color: var(--cream); }
.date-nav { display: flex; align-items: center; gap: 6px; }
.main .toolbar .field.inline { font-size: .85rem; }
.main .toolbar select { padding: 8px 12px; }
.day-list, .orders { display: grid; gap: 10px; }
.appt { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto auto; gap: 16px; align-items: center; background: #fff; border-left: 4px solid var(--ok); border-radius: 16px; padding: 14px 16px; }
.appt.pend { border-left-color: var(--warn); }
.appt.aten { border-left-color: var(--blue); }
.appt.canc { border-left-color: var(--red); opacity: .65; }
.appt-time { font: 500 1.23rem/1 var(--f-body); }
.appt-main { display: grid; gap: 2px; }
.appt-main span { color: var(--muted); font-size: .9rem; }
.appt-main small { color: var(--gold); font-size: .82rem; }
.appt-meta { display: grid; justify-items: end; gap: 4px; text-align: right; }
.appt-meta small { color: var(--muted); font-size: .78rem; }
.appt-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 6px; min-width: 210px; }
.badge.conf { background: var(--ok-soft); color: var(--ok); position: static; }
.badge.pend { background: var(--warn-soft); color: var(--warn); position: static; }
.badge.aten { background: var(--blue-soft); color: var(--blue); position: static; }
.badge.canc { background: var(--red-soft); color: var(--red); position: static; }
.badge.prep { background: var(--nude); color: var(--cocoa); position: static; }
.badge.env { background: #EFE3F2; color: #7A4F86; position: static; }
.empty { background: #fff; border: 1px dashed var(--line); border-radius: 18px; padding: 40px; text-align: center; color: var(--muted); }
.week { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.week-day { background: #fff; border-radius: 18px; padding: 10px; display: grid; gap: 6px; align-content: start; min-height: 220px; }
.week-day.today { box-shadow: 0 0 0 2px var(--gold); }
.week-head { display: grid; justify-items: center; border: 0; background: transparent; cursor: pointer; padding: 4px; border-radius: 12px; }
.week-head:hover { background: var(--nude-2); }
.week-head span { font-size: .8rem; color: var(--muted); text-transform: capitalize; }
.week-head b { font: 500 1.31rem/1.1 var(--f-body); }
.week-head small { font-size: .74rem; color: var(--muted); }
.chip-appt { display: grid; text-align: left; border: 0; border-left: 3px solid var(--ok); background: var(--ok-soft); border-radius: 10px; padding: 6px 8px; font-size: .8rem; cursor: pointer; }
.chip-appt small { color: var(--muted); font-size: .72rem; }
.chip-appt.pend { border-left-color: var(--warn); background: var(--warn-soft); }
.chip-appt.aten { border-left-color: var(--blue); background: var(--blue-soft); }
.chip-appt.canc { border-left-color: var(--red); background: var(--red-soft); text-decoration: line-through; }
.order { background: #fff; border-radius: 18px; overflow: hidden; border-left: 4px solid var(--ok); }
.order.pend { border-left-color: var(--warn); }
.order.prep { border-left-color: var(--gold); }
.order.env { border-left-color: #7A4F86; }
.order.aten { border-left-color: var(--blue); opacity: .85; }
.order header, .order footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; }
.order header { border-bottom: 1px solid var(--line); }
.order header div, .order footer > span { display: grid; }
.order small { color: var(--muted); font-size: .82rem; }
.order ul { list-style: none; margin: 0; padding: 10px 18px; display: grid; gap: 6px; font-size: .92rem; }
.order li { display: flex; justify-content: space-between; gap: 12px; }
.order footer { background: var(--cream); font-size: .9rem; }
.order-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.promo-admin { display: grid; gap: 16px; }
.promo-edit { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 20px; background: #fff; border-radius: 20px; padding: 18px; }
.promo-edit.off { opacity: .75; }
.promo-edit img { border-radius: 14px; width: 100%; aspect-ratio: 1; object-fit: cover; }
.promo-fields { display: grid; gap: 12px; }
.promo-fields .btn { justify-self: start; }
.promo-top { display: flex; justify-content: space-between; align-items: center; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; position: relative; }
.switch input { position: absolute; opacity: 0; }
.switch span { width: 42px; height: 24px; border-radius: 999px; background: #D8C9C0; position: relative; transition: background-color .2s; }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch input:checked + span { background: var(--gold); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- Aparición ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .cart, .toast, .to-top, .card, .treatment, .card-media img { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .grid-products { grid-template-columns: repeat(3, 1fr); }
  .treatments { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .week { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .appt { grid-template-columns: 60px minmax(0, 1fr); }
  .appt-meta { justify-items: start; text-align: left; }
  .appt-actions { justify-content: flex-start; min-width: 0; }
}
@media (max-width: 900px) {
  .promos, .visit-grid, .checkout-grid, .product { grid-template-columns: 1fr; }
  .promo { grid-template-columns: 1fr; }
  .promo img { aspect-ratio: 16 / 9; }
  .trust ul { grid-template-columns: repeat(2, 1fr); }
  .trust li:nth-child(3) { border-left: 0; }
  .trust li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .product-media, .summary { position: static; }
  .routine { grid-template-columns: 1fr; padding: 22px; }
  .routine img { max-width: 320px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-logo { grid-column: 1 / -1; width: 160px; }
  .book-done dl { grid-template-columns: repeat(2, 1fr); }
  .app { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 16px; }
  .side-nav { grid-auto-flow: column; }
  .side-foot { margin: 0 0 0 auto; grid-auto-flow: column; align-items: center; }
  .user { display: none; }
}
@media (max-width: 680px) {
  .wrap { width: calc(100% - 32px); }
  .nav-toggle { display: grid; }
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 18px; background: var(--cream); border-bottom: 1px solid var(--line); display: none; }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 13px 0; font-size: 1.05rem; }
  .nav-links .nav-cta { margin-top: 8px; text-align: center; }
  .hero::before { background: linear-gradient(180deg, rgba(251, 246, 242, .55), rgba(251, 246, 242, .95) 55%); }
  .hero-content { margin: 0 16px; padding: 120px 0 60px; }
  .section-head.split { grid-template-columns: 1fr; }
  .round-photo { display: none; }
  .treatments, .svc-choices, .row, .row.three, .team, .trust ul, .week, .stats { grid-template-columns: 1fr; }
  .trust li + li { border-left: 0; border-top: 1px solid var(--line); }
  .grid-products { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card-body { padding: 12px; }
  .card-body h3 { font-size: 1.15rem; }
  .card-foot { flex-direction: column; align-items: stretch; }
  .buy { flex-direction: column; }
  .qty.big { justify-content: space-between; }
  .field.inline { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .promo-edit { grid-template-columns: 1fr; }
  .promo-edit img { max-width: 160px; }
  .side-foot { margin: 0; width: 100%; justify-content: space-between; }
  .wa-float { right: 16px; bottom: 16px; width: 54px; height: 54px; }
  .to-top { right: 19px; bottom: 82px; width: 46px; height: 46px; }
}
