/* Identidad Inversiones Sauma (Manual de Identidad Corporativa, rev. 1.0)
   Pantone 608 U  #F2E089 · Pantone 117 U  #B38F35 · Pantone Black 6 C  #131101
   Playfair Display (títulos) · Inter (texto) */
:root {
  --gold-light: #F2E089;
  --gold: #B38F35;
  --black: #131101;
  --gold-gradient: linear-gradient(135deg, #F2E089 0%, #D9B95C 45%, #B38F35 100%);

  --bg: #FBF9F3;
  --surface: #FFFFFF;
  --ink: #131101;
  --muted: #6F6A5C;
  --line: #ECE6D6;
  --gold-soft: #F7F0DA;
  --gold-text: #8F7028;      /* dorado oscurecido para texto sobre claro (contraste AA) */
  --on-dark: #F4F1E8;
  --on-dark-muted: #A9A493;
  --danger: #A6402F;

  --radius: 6px;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ---------- Encabezado ---------- */
.topbar { position: sticky; top: 0; z-index: 20; background: var(--black); border-bottom: 1px solid rgba(179, 143, 53, .35); }
.topbar__inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: block; flex-shrink: 0; }
.brand img { height: 38px; width: auto; }
.sitenav { display: flex; gap: 2px; overflow-x: auto; flex: 1; justify-content: center; scrollbar-width: none; }
.sitenav::-webkit-scrollbar { display: none; }
.sitenav a { padding: 8px 14px; color: var(--on-dark-muted); white-space: nowrap; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; position: relative; transition: color .2s; }
.sitenav a:hover { color: var(--on-dark); }
.sitenav a.is-active { color: var(--gold-light); }
.sitenav a.is-active::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 1px; background: var(--gold-gradient); }

/* Categorías de la tienda */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: -8px 0 24px; }
.chips button { border: 1px solid var(--line); background: var(--surface); color: var(--muted); padding: 8px 16px; border-radius: 999px; font-size: 13px; transition: all .2s; }
.chips button:hover { border-color: var(--gold); color: var(--ink); }
.chips button.is-active { background: var(--black); border-color: var(--black); color: var(--gold-light); }
.cart-btn { position: relative; border: 1px solid rgba(242, 224, 137, .45); background: transparent; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--gold-light); flex-shrink: 0; transition: background .2s; }
.cart-btn:hover { background: rgba(242, 224, 137, .08); }
.cart-count { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--gold-gradient); color: var(--black); font-size: 11px; font-weight: 600; display: grid; place-items: center; }
.cart-btn.bump { animation: bump .35s ease; }
@keyframes bump { 50% { transform: scale(1.15); } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--black); color: var(--on-dark); padding: 96px 0 104px; }
.hero__mark { position: absolute; right: -6%; top: 50%; transform: translateY(-50%); width: min(560px, 70vw); opacity: .12; pointer-events: none; }
.hero__inner { position: relative; }
.eyebrow { text-transform: uppercase; letter-spacing: .28em; font-size: 11px; font-weight: 600; color: var(--gold-light); margin: 0 0 14px; }
.eyebrow--dark { color: var(--gold-text); margin-bottom: 6px; }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 6.5vw, 72px); line-height: 1.05; margin: 0 0 18px; max-width: 13ch; }
.hero h1 em { font-style: italic; background: var(--gold-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__sub { color: var(--on-dark-muted); max-width: 46ch; margin: 0 0 32px; font-weight: 300; font-size: 16px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: var(--radius); padding: 13px 26px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; transition: opacity .2s, background .2s, color .2s, border-color .2s; }
.btn--gold { background: var(--gold-gradient); color: var(--black); }
.btn--gold:hover { opacity: .9; }
.btn--outline { border-color: rgba(242, 224, 137, .5); color: var(--gold-light); background: transparent; }
.btn--outline:hover { background: rgba(242, 224, 137, .08); }
.btn--dark { background: var(--black); color: var(--gold-light); }
.btn--dark:hover:not(:disabled) { opacity: .88; }
.btn--ghost { background: none; border-color: var(--line); color: var(--ink); }
.btn--small { padding: 9px 14px; font-size: 11px; background: var(--black); color: var(--gold-light); }
.btn--small:hover:not(:disabled) { background: var(--gold); color: var(--black); }
.btn--block { width: 100%; }
.btn:disabled { opacity: .35; cursor: not-allowed; }

/* ---------- Catálogo ---------- */
.toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 56px 0 28px; }
.toolbar h2 { font-family: var(--serif); font-weight: 400; font-size: 36px; margin: 0; line-height: 1.1; }
.toolbar input { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 11px 16px; width: 260px; max-width: 100%; font: inherit; color: var(--ink); }
.toolbar input:focus { outline: none; border-color: var(--gold); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 24px; padding-bottom: 80px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s, border-color .25s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(19, 17, 1, .08); border-color: rgba(179, 143, 53, .45); }
.card__media { position: relative; aspect-ratio: 4 / 5; background: var(--gold-soft); }
.card__media > img { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; top: 12px; left: 12px; background: var(--black); color: var(--gold-light); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; padding: 5px 10px; border-radius: 3px; }
.card__body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card__body h3 { font-family: var(--serif); font-size: 18px; font-weight: 500; margin: 0; line-height: 1.25; }
.card__desc { color: var(--muted); font-size: 13px; margin: 0 0 10px; flex: 1; }
.card__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price { font-weight: 600; color: var(--gold-text); }
.empty { color: var(--muted); text-align: center; padding: 32px 0; }

/* Placeholder: monograma sobre tono por categoría (se reemplaza con la foto real) */
.ph { width: 100%; height: 100%; display: grid; place-items: center; }
.ph img { width: 38%; opacity: .55; }
.ph--clothing { background: linear-gradient(160deg, #F7F1E3, #EDE2C6); }
.ph--accessories { background: linear-gradient(160deg, #F2EFE8, #E1DBCC); }
.ph--skincare { background: linear-gradient(160deg, #F4F3EC, #E4E3D3); }
.ph--jewelry { background: linear-gradient(160deg, #1E1B08, #131101); }
.ph--jewelry img { opacity: .8; }

/* ---------- Pie ---------- */
.footer { background: var(--black); color: var(--on-dark-muted); padding: 56px 0 32px; border-top: 1px solid rgba(179, 143, 53, .35); }
.footer__inner { display: grid; justify-items: center; gap: 28px; text-align: center; }
.footer__logo { width: 150px; height: auto; }
.contact { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px; font-size: 14px; }
.contact a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--on-dark); transition: color .2s; }
.contact a:hover { color: var(--gold-light); }
.contact svg { color: var(--gold); }
.footer__legal { margin: 0; font-size: 12px; letter-spacing: .06em; }

/* ---------- Carrito ---------- */
.overlay { position: fixed; inset: 0; background: rgba(19, 17, 1, .5); z-index: 40; }
.drawer { position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 100%); background: var(--surface); z-index: 50; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .3s ease; box-shadow: -12px 0 32px rgba(0, 0, 0, .12); }
.drawer.is-open { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 20px; background: var(--black); color: var(--on-dark); }
.drawer__head h3 { font-family: var(--serif); font-weight: 400; font-size: 24px; margin: 0; }
.icon-btn { border: 0; background: none; font-size: 16px; color: var(--on-dark-muted); width: 36px; height: 36px; border-radius: 50%; }
.icon-btn:hover { color: var(--gold-light); background: rgba(242, 224, 137, .08); }
.drawer__body { flex: 1; overflow-y: auto; padding: 20px; }
.drawer__body .empty img { margin: 24px auto 12px; opacity: .6; }
.drawer__foot { border-top: 1px solid var(--line); padding: 16px 20px 20px; display: grid; gap: 10px; }
.total { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.total strong { font-family: var(--serif); font-size: 24px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink); }

.cart-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.line__thumb { width: 64px; height: 80px; border-radius: 4px; overflow: hidden; }
.line__thumb > img { width: 100%; height: 100%; object-fit: cover; }
.line__info { display: grid; gap: 2px; font-size: 14px; }
.line__info strong { font-family: var(--serif); font-weight: 500; font-size: 15px; }
.line__info > span { color: var(--muted); font-size: 13px; }
.line__sub { font-size: 14px; color: var(--gold-text); }
.qty { display: inline-flex; align-items: center; gap: 10px; margin-top: 6px; }
.qty button { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.qty button:hover { border-color: var(--gold); }
.qty span { min-width: 14px; text-align: center; font-size: 14px; }

.checkout { display: grid; gap: 14px; align-content: start; }
.checkout label { display: grid; gap: 6px; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.checkout input, .checkout select, .checkout textarea { border: 1px solid var(--line); border-radius: var(--radius); padding: 11px 12px; font: inherit; font-size: 15px; letter-spacing: 0; text-transform: none; background: var(--bg); color: var(--ink); resize: vertical; }
.checkout input:focus, .checkout select:focus, .checkout textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(179, 143, 53, .15); }
.hp { position: absolute; left: -9999px; }
.form-error { color: var(--danger); font-size: 13px; margin: 0; }

.done { text-align: center; padding-top: 40px; }
.done__icon { margin: 0 auto 20px; }
.done h4 { font-family: var(--serif); font-size: 28px; font-weight: 400; margin: 0 0 10px; }
.done p { color: var(--muted); }
.done strong { color: var(--gold-text); }

/* ---------- Extras ---------- */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 30; width: 54px; height: 54px; border-radius: 50%; background: var(--black); color: var(--gold-light); display: grid; place-items: center; box-shadow: 0 8px 20px rgba(19, 17, 1, .25); border: 1px solid rgba(242, 224, 137, .4); transition: transform .2s; }
.wa-float:hover { transform: scale(1.06); }
body.no-scroll .wa-float { display: none; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--black); color: var(--gold-light); padding: 11px 20px; border-radius: var(--radius); font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 60; border: 1px solid rgba(242, 224, 137, .3); }
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Secciones generales ---------- */
.hero--page { padding: 72px 0 80px; }
.section { padding: 72px 16px; }
.section__title { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 4vw, 38px); line-height: 1.15; margin: 0 0 28px; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 72px 0; }

.lines { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.line-card { display: flex; flex-direction: column; gap: 10px; padding: 32px 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: transform .25s, box-shadow .25s, border-color .25s; }
.line-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(19, 17, 1, .08); border-color: rgba(179, 143, 53, .5); }
.line-card__icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--black); color: var(--gold-light); margin-bottom: 6px; }
.line-card__icon svg { width: 32px; height: 32px; }
.line-card h3, .duo__card h3, .features h3 { font-family: var(--serif); font-weight: 500; font-size: 22px; margin: 0; }
.line-card p { margin: 0; color: var(--muted); flex: 1; }
.line-card__cta { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); margin-top: 8px; }

.grid--featured { padding-bottom: 0; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.card--link { text-decoration: none; color: inherit; }
.card--link .card__body { gap: 6px; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.steps span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold-text); font-family: var(--serif); font-size: 20px; margin-bottom: 14px; }
.steps h4 { font-family: var(--serif); font-weight: 500; font-size: 20px; margin: 0 0 6px; }
.steps p { margin: 0; color: var(--muted); }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; margin-bottom: 28px; }
.features article { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-top: 2px solid var(--gold); border-radius: var(--radius); }
.features h3 { font-size: 19px; margin-bottom: 6px; }
.features p { margin: 0; color: var(--muted); font-size: 14px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { display: flex; align-items: center; gap: 10px; }
.ticks svg { color: var(--gold); flex-shrink: 0; }

.duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.duo__card { padding: 32px 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: grid; gap: 12px; align-content: start; }
.duo__card p { margin: 0; color: var(--muted); }

/* ---------- Formularios de servicios ---------- */
.tabs { display: flex; gap: 4px; padding: 4px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; width: fit-content; max-width: 100%; margin: 0 auto 48px; }
.tabs button { border: 0; background: none; padding: 10px 22px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.tabs button[aria-selected="true"] { background: var(--black); color: var(--gold-light); }
.form-wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 48px; align-items: start; }
.anchor { position: absolute; top: -120px; }
.form-intro p { color: var(--muted); }
.privacy { font-size: 13px; padding: 12px 14px; border-left: 2px solid var(--gold); background: var(--gold-soft); color: var(--ink) !important; border-radius: 0 var(--radius) var(--radius) 0; }
.card-form { display: grid; gap: 28px; padding: 32px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); }
.card-form fieldset { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; min-width: 0; }
.card-form legend { font-family: var(--serif); font-size: 20px; padding: 0; margin-bottom: 14px; grid-column: 1 / -1; }
.card-form label { display: grid; gap: 6px; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); min-width: 0; }
.card-form .full { grid-column: 1 / -1; }
.card-form input, .card-form select, .card-form textarea { width: 100%; border: 1px solid var(--line); border-radius: var(--radius); padding: 11px 12px; font: inherit; font-size: 15px; letter-spacing: 0; text-transform: none; background: var(--surface); color: var(--ink); resize: vertical; min-width: 0; }
.card-form input:focus, .card-form select:focus, .card-form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(179, 143, 53, .15); }
.card-form input::placeholder, .card-form textarea::placeholder { color: #A9A493; }
.card-form label.is-invalid { color: var(--danger); }
.card-form label.is-invalid input, .card-form label.is-invalid select, .card-form label.is-invalid textarea { border-color: var(--danger); }
.card-form .check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--ink); }
.card-form .check input { width: 18px; height: 18px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--black); }
.card-form .check.is-invalid span { color: var(--danger); }
.field-hint { margin: -4px 0 0; font-size: 12.5px; color: var(--muted); }
.form-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-note { font-size: 13px; color: var(--muted); }
.form-success { grid-column: 2; text-align: center; padding: 48px 32px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); }
.form-success img { margin: 0 auto 16px; }
.form-success h3 { font-family: var(--serif); font-weight: 400; font-size: 30px; margin: 0 0 8px; }
.form-success p { color: var(--muted); margin: 0 auto 24px; max-width: 40ch; }
.form-success strong { color: var(--gold-text); }

.thanks { text-align: center; padding: 96px 16px; display: grid; justify-items: center; gap: 12px; }
.thanks h1 { font-family: var(--serif); font-weight: 400; font-size: 44px; margin: 8px 0 0; }
.thanks p { color: var(--muted); margin: 0 0 16px; }

.footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; }
.footer__nav a { color: var(--on-dark-muted); text-decoration: none; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.footer__nav a:hover { color: var(--gold-light); }
a.cart-btn { text-decoration: none; }

/* ---------- Encuesta de satisfacción (no listada) ---------- */
.topbar--min .topbar__inner { justify-content: center; }
.footer--min { padding: 32px 0 24px; }
.survey { padding: 48px 0 72px; }
.survey__inner { max-width: 720px; }
.survey__intro { text-align: center; margin-bottom: 28px; }
.survey__intro img { margin: 0 auto 16px; }
.survey__intro h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 5vw, 42px); line-height: 1.1; margin: 0 0 8px; }
.survey__intro p:not(.eyebrow) { color: var(--muted); margin: 0; }
.survey-form fieldset { grid-template-columns: 1fr 1fr; }
.survey-summary { background: var(--black); color: var(--on-dark); border-radius: var(--radius); padding: 18px 22px; }
.survey-summary dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; font-size: 14px; }
.survey-summary dt { color: var(--gold-light); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; align-self: center; }
.survey-summary dd { margin: 0; }
.rate-help { grid-column: 1 / -1; margin: -6px 0 2px; font-size: 13px; color: var(--muted); }

.rate { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto 74px; align-items: center; gap: 4px 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.rate:last-of-type { border-bottom: 0; }
.rate__label { font-size: 15px; color: var(--ink); }
.rate__text { font-size: 12px; color: var(--gold-text); font-weight: 600; text-align: right; }
.rate.is-invalid .rate__label { color: var(--danger); }
.stars { position: relative; display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.pills label { position: relative; }
.stars input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.stars label { cursor: pointer; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: #D9D3C2; }
.stars label::before { content: "★"; font-size: 28px; line-height: 1; transition: color .12s, transform .12s; }
.stars input:checked ~ label, .stars label:hover, .stars label:hover ~ label { color: var(--gold); }
.stars label:hover::before { transform: scale(1.12); }
.stars input:focus-visible + label { outline: 2px solid var(--gold); outline-offset: 1px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.choice { display: grid; gap: 10px; padding-top: 6px; }
.choice.is-invalid .rate__label { color: var(--danger); }
.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pills label { display: block; cursor: pointer; }
.pills input { position: absolute; opacity: 0; pointer-events: none; }
.pills span { display: inline-block; padding: 10px 22px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 14px; color: var(--ink); letter-spacing: 0; text-transform: none; font-weight: 500; transition: all .15s; }
.pills input:checked + span { background: var(--black); border-color: var(--black); color: var(--gold-light); }
.pills input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.survey-done { margin-top: 0; }
.link-out { display: grid; gap: 14px; padding-top: 4px; border-top: 1px solid var(--line); }
.link-out input { font-size: 13px !important; color: var(--gold-text) !important; }

/* ---------- Tablero de resultados (no listado) ---------- */
.dash { padding: 40px 0 72px; }
.dash__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.dash__head h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 4vw, 38px); margin: 0 0 4px; line-height: 1.1; }
.dash__sub { margin: 0; color: var(--muted); }
.dash__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.file-btn { position: relative; cursor: pointer; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop { text-align: center; padding: 48px 24px; border: 1.5px dashed rgba(179, 143, 53, .5); border-radius: var(--radius); background: var(--surface); transition: background .2s, border-color .2s; }
.drop.is-over { background: var(--gold-soft); border-color: var(--gold); }
.drop img { margin: 0 auto 12px; }
.drop h2 { font-family: var(--serif); font-weight: 400; font-size: 24px; margin: 0 0 14px; }
.drop ol { display: inline-grid; gap: 6px; text-align: left; margin: 0 0 16px; padding-left: 20px; }
.drop__note { font-size: 13px; color: var(--muted); max-width: 52ch; margin: 0 auto; }
.demo-flag { background: var(--gold-soft); border-left: 2px solid var(--gold); padding: 10px 14px; border-radius: 0 var(--radius) var(--radius) 0; font-size: 14px; margin-bottom: 16px; }
.filters { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.filters label { display: grid; gap: 4px; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); min-width: 0; flex: 1 1 160px; }
.filters select { width: 100%; min-width: 0; font: inherit; font-size: 14px; letter-spacing: 0; text-transform: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 9px 10px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 20px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: grid; gap: 4px; align-content: start; }
.tile__label { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tile__value { font-size: 32px; font-weight: 600; line-height: 1.1; }
.tile__value small { font-size: 15px; font-weight: 400; color: var(--muted); }
.tile__value--text { font-size: 20px; }
.tile__note { font-size: 13px; color: var(--muted); }
.tile .st { justify-self: start; }
.dash__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 20px; min-width: 0; }
.panel h3 { font-family: var(--serif); font-weight: 500; font-size: 20px; margin: 0 0 2px; }
.panel__sub { font-size: 13px; color: var(--muted); margin: 0 0 16px; }

.bars { display: grid; gap: 4px; }
.bar { display: grid; grid-template-columns: minmax(110px, 38%) 1fr auto; align-items: center; gap: 12px; padding: 6px 4px; border-radius: 4px; }
.bar:hover, .bar:focus-visible { background: var(--bg); outline: none; }
.bar__label { font-size: 14px; }
.bar__track { position: relative; height: 12px; background: repeating-linear-gradient(to right, transparent 0 calc(20% - 1px), #E1E0D9 calc(20% - 1px) 20%); border-left: 1px solid #C3C2B7; }
.bar__fill { display: block; height: 100%; background: var(--gold); border-radius: 0 4px 4px 0; min-width: 2px; }
.bar__value { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; min-width: 52px; text-align: right; }

/* Estados: siempre ícono + texto, nunca solo color */
.st { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.st--good { background: #E3F4E3; color: #006300; }
.st--warn { background: #FEF1D3; color: #7A5200; }
.st--bad { background: #FBE3E3; color: #A62525; }
.st--none { background: var(--bg); color: var(--muted); }
.bar__value .st { padding: 1px 6px; }

.table-scroll { overflow-x: auto; margin: 0 -22px; padding: 0 22px; }
.score-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.score-table th, .score-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.score-table thead th { font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border-bottom-color: var(--gold); line-height: 1.3; vertical-align: bottom; }
.score-table thead th.num { max-width: 90px; }
.more-btn { margin-top: 14px; }
.score-table tbody th { font-weight: 600; white-space: nowrap; }
.score-table .num { text-align: center; font-variant-numeric: tabular-nums; }
.score-table tbody tr { cursor: pointer; }
.score-table tbody tr:hover, .score-table tbody tr:focus-visible { background: var(--bg); outline: none; }
.score-table tbody tr.is-selected { background: var(--gold-soft); }
.score-table td:last-child { white-space: normal; min-width: 180px; }
.score-table td:last-child .st { margin: 2px 2px 2px 0; }
.cell { display: inline-block; min-width: 40px; padding: 3px 6px; border-radius: 4px; font-weight: 600; }
.cell--good { background: #E3F4E3; color: #006300; }
.cell--warn { background: #FEF1D3; color: #7A5200; }
.cell--bad { background: #FBE3E3; color: #A62525; }
.cell--none { color: var(--muted); }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 12px; color: var(--muted); margin: 14px 0 0; }

.comments { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.comments li { padding: 12px 14px; background: var(--bg); border-radius: var(--radius); }
.comments__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.comments p { margin: 0; }
.comments__who { font-size: 12px; color: var(--muted); }
.stars-static { color: var(--gold); letter-spacing: 1px; }
.stars-static span { color: #D9D3C2; }
.tip { position: fixed; z-index: 70; pointer-events: none; background: var(--black); color: var(--on-dark); font-size: 13px; padding: 7px 10px; border-radius: 4px; max-width: 280px; box-shadow: 0 6px 16px rgba(19, 17, 1, .2); }

@media (max-width: 900px) {
  .dash__grid { grid-template-columns: 1fr; gap: 0; }
  .form-wrap { grid-template-columns: 1fr; gap: 24px; }
  .form-success { grid-column: 1; }
}

@media (max-width: 760px) {
  .topbar__inner { flex-wrap: wrap; height: auto; padding: 12px 16px 4px; gap: 8px; }
  .brand img { height: 30px; }
  .cart-btn { margin-left: auto; width: 40px; height: 40px; }
  .sitenav { order: 3; flex-basis: 100%; justify-content: space-between; margin: 0 -8px; }
  .sitenav a { padding: 8px; font-size: 11px; letter-spacing: .08em; }
  .sitenav a.is-active::after { left: 8px; right: 8px; }
  .section { padding: 56px 16px; }
  .band { padding: 56px 0; }
  .card-form { padding: 22px 18px; }
  .card-form fieldset { grid-template-columns: 1fr; }
  .tabs { margin-bottom: 32px; }
  .tabs button { padding: 10px 14px; font-size: 13px; }
  .survey { padding: 32px 0 56px; }
  .dash { padding: 28px 0 56px; }
  .panel { padding: 16px; }
  .table-scroll { margin: 0 -16px; padding: 0 16px; }
  .bar { grid-template-columns: 1fr auto; gap: 4px 10px; }
  .bar__label { grid-column: 1 / -1; }
  .tile__value { font-size: 26px; }
  .rate { grid-template-columns: 1fr auto; gap: 2px 8px; }
  .rate__label { grid-column: 1 / -1; }
  .rate__text { text-align: left; }
  .stars label { width: 40px; height: 40px; }
  .stars label::before { font-size: 32px; }
  .hero { padding: 64px 0 72px; }
  .hero__mark { right: -30%; width: 90vw; opacity: .1; }
  .toolbar { margin-top: 40px; }
  .toolbar input { width: 100%; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card__body { padding: 12px; }
  .card__body h3 { font-size: 16px; }
  .card__row { flex-direction: column; align-items: stretch; }
  .wa-float { right: 14px; bottom: 14px; width: 50px; height: 50px; }
}

/* ---------- Conexión con Supabase ---------- */
.ph--other { background: linear-gradient(160deg, #F4F1E8, #E6E0CF); }
.ts-box { min-height: 0; }
.ts-box:empty { display: none; }
.checkout .ts-box { margin-top: 4px; }
.empty.loading { grid-column: 1 / -1; }
.grid > .empty { grid-column: 1 / -1; }
.hold-note { margin: 0 0 14px; padding: 9px 12px; font-size: 12.5px; color: var(--ink); background: var(--gold-soft); border-left: 2px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0; font-variant-numeric: tabular-nums; }
.hold-note--urgent { background: #fbe9e4; border-left-color: #b4442c; color: #6d2414; }
.badge--held { background: var(--gold); color: var(--black); }
.toast.toast--warn { background: #7A5200; color: #fff; border-color: transparent; max-width: min(92vw, 460px); text-align: center; }
