:root {
    --bg: #02050a;
    --surface: #0a1410;
    --surface-2: #112019;
    --line: rgba(243, 241, 229, .1);
    --ink: #f3f1e5;
    --muted: #9aa89f;
    --accent: #1fbf63;
    --brand: #0c9045;
    --brand-deep: #07562a;
    --accent-ink: #02050a;
    --danger: #ff6b5e;
    --radius: 18px;
    --radius-sm: 12px;
    --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --ease: cubic-bezier(.23, 1, .32, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--bg); font-family: var(--font); line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Cabecera ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50; height: 68px; padding: 0 max(5vw, 20px);
    display: flex; align-items: center; justify-content: space-between;
    background: rgba(2, 5, 10, .72); border-bottom: 1px solid var(--line);
    -webkit-backdrop-filter: saturate(180%) blur(22px); backdrop-filter: saturate(180%) blur(22px);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .site-header { background: var(--bg); } }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.02em; }
.brand-mark { width: 38px; height: 38px; flex: none; background: url('assets/logo-small.png') center / contain no-repeat; }
.site-header nav { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; }
.site-header nav a { padding: 8px 12px; border-radius: 999px; color: var(--muted); }
.site-header nav a:hover { color: var(--ink); }
.cart-link { display: flex; align-items: center; gap: 8px; color: var(--ink) !important; background: var(--surface); }
.cart-count { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--surface-2); color: var(--muted); font-size: 12px; font-weight: 700; }
.cart-count.has-items { background: var(--accent); color: var(--accent-ink); }
.page-shell { min-height: calc(100vh - 220px); min-height: calc(100dvh - 220px); }

/* ---------- Botones (grupo 1: se hunden al tocar) ---------- */
.button, .category-filter, .size-pill span, .stepper button, .text-link {
    -webkit-tap-highlight-color: transparent;
    transition: transform .16s var(--ease), background-color .2s ease-out, color .2s ease-out, border-color .2s ease-out, opacity .2s;
}
.button {
    display: inline-flex; min-height: 50px; align-items: center; justify-content: center; gap: 12px; padding: 0 24px;
    border: 0; border-radius: 999px; cursor: pointer; font-size: 15px; font-weight: 600; letter-spacing: -.01em;
}
.button:active, .category-filter:active, .size-pill:active span, .stepper button:active { transform: scale(.96); transition-duration: .08s; }
.text-link:active { opacity: .6; transition-duration: .08s; }
@media (hover: hover) {
    .button-primary:hover, .button-whatsapp:hover { filter: brightness(1.08); }
    .button-ghost:hover { background: rgba(255,255,255,.1); }
    .category-filter:hover { border-color: rgba(255,255,255,.3); color: var(--ink); }
}
.button:disabled { cursor: not-allowed; opacity: .6; }
.button-primary { background: var(--accent); color: var(--accent-ink); }
.button-ghost { background: rgba(255,255,255,.07); color: var(--ink); }
.button-whatsapp { background: #25d366; color: #052e16; }
.button-dark { background: var(--ink); color: var(--bg); }
.button-accent { background: var(--accent); color: var(--accent-ink); }
.button-full { width: 100%; }
.text-link { padding: 4px 0; border: 0; background: none; color: var(--accent); cursor: pointer; font-size: 13px; font-weight: 600; }
.danger-link { color: var(--danger); }

/* ---------- Hero ---------- */
.hero {
    position: relative; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 32px; overflow: hidden;
    min-height: 600px; padding: 72px max(6vw, 24px);
    background: radial-gradient(900px 500px at 85% 20%, rgba(12,144,69,.28), transparent 60%), var(--bg);
}
.eyebrow { margin: 0 0 14px; color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.hero h1 { font-size: clamp(44px, 7.4vw, 96px); line-height: 1; font-weight: 700; letter-spacing: -.03em; }
.hero h1 span { color: var(--accent); }
.hero-lead { max-width: 480px; margin: 24px 0 32px; color: var(--muted); font-size: 18px; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-visual { position: relative; display: grid; place-items: center; min-height: 380px; }
.hero-pitch { position: absolute; inset: 4% 0; border: 1px solid var(--line); border-radius: 28px;
    background: linear-gradient(var(--line), var(--line)) center / 1px 100% no-repeat, radial-gradient(circle at center, transparent 58px, var(--line) 59px, var(--line) 60px, transparent 61px); }
.hero-logo { position: relative; width: min(380px, 80%); height: auto; filter: drop-shadow(0 30px 60px rgba(12,144,69,.35)); }
.hero-shirt { position: relative; display: grid; place-items: center; width: min(280px, 60%); aspect-ratio: 1 / 1.1; background: linear-gradient(160deg, var(--accent), var(--brand));
    clip-path: polygon(28% 0, 42% 7%, 58% 7%, 72% 0, 100% 17%, 86% 38%, 76% 31%, 76% 100%, 24% 100%, 24% 31%, 14% 38%, 0 17%); }
.hero-shirt span { margin-top: 18%; color: var(--accent-ink); font-size: clamp(56px, 9vw, 104px); font-weight: 800; letter-spacing: -.04em; }

.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 0 max(6vw, 24px); margin-top: -8px; }
.perks > div { display: grid; gap: 2px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.perks strong { font-size: 15px; }
.perks span { color: var(--muted); font-size: 13px; }

/* ---------- Colección ---------- */
.collection { padding: 96px max(6vw, 20px) 88px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-heading h1, .section-heading h2, .how-it-works h2, .faq h2 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.05; font-weight: 700; letter-spacing: -.03em; }
.section-heading > p { max-width: 320px; margin: 0; color: var(--muted); font-size: 14px; }
.search-box input { width: min(320px, 100%); min-height: 46px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); outline: none; font-size: 15px; }
.search-box input:focus { border-color: var(--accent); }
.category-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.category-filter { min-height: 40px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; font-size: 14px; font-weight: 600; }
.category-filter.is-active { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.team-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: -18px 0 28px; }
.team-filters[hidden] { display: none; }
.team-filter { min-height: 38px; padding: 0 15px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); cursor: pointer; font-size: 13px; font-weight: 600; }
.team-filter.is-active { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.team-filter.is-empty { color: var(--muted); }
.team-filter:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.load-more-wrap { display: grid; grid-column: 1 / -1; justify-items: center; padding-top: 8px; }
.load-more-wrap .button { min-height: 48px; }
.product-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.product-art { position: relative; display: grid; aspect-ratio: 1 / 1; place-items: center; overflow: hidden; background: var(--surface-2); }
.product-art-photo { background: #f1f2ef; }
.art-red { background: linear-gradient(160deg, #3a1714, #1b0d0c); }.art-blue { background: linear-gradient(160deg, #13293f, #0b1520); }.art-black { background: linear-gradient(160deg, #262b28, #101312); }
.art-green { background: linear-gradient(160deg, #1e3317, #0e1809); }.art-cream { background: linear-gradient(160deg, #3b3524, #1c1912); }.art-purple { background: linear-gradient(160deg, #2e1b33, #150c18); }
.art-chip { position: absolute; z-index: 1; top: 14px; left: 14px; padding: 5px 11px; border-radius: 99px; background: rgba(2,5,10,.72); font-size: 12px; font-weight: 600; }
.shirt-shape { display: grid; width: 46%; aspect-ratio: 1 / 1.1; place-items: center; background: #1fbf63; clip-path: polygon(28% 0, 42% 7%, 58% 7%, 72% 0, 100% 17%, 86% 38%, 76% 31%, 76% 100%, 24% 100%, 24% 31%, 14% 38%, 0 17%); }
.shirt-shape span { margin-top: 20%; color: var(--accent-ink); font-size: 28px; font-weight: 800; }
.product-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center; }
.product-photo-landscape { object-fit: cover; }
.product-info { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 18px; }
.product-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.product-title h2, .product-title h3 { font-size: 17px; font-weight: 600; letter-spacing: -.015em; }
.product-title strong { white-space: nowrap; font-size: 16px; color: var(--accent); }
.product-desc, .product-patches { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.product-ref { margin: 0; color: var(--muted); font-size: 12px; letter-spacing: .02em; }
.product-ref strong { color: var(--ink, inherit); font-weight: 700; }
.product-patches { color: #8fd1a8; }
.add-form { display: grid; gap: 12px; margin-top: auto; padding-top: 6px; }
.size-picker { margin: 0; padding: 0; border: 0; min-width: 0; }
.size-picker legend { margin-bottom: 8px; padding: 0; color: var(--muted); font-size: 12px; font-weight: 600; }
.size-picker > div { display: flex; flex-wrap: wrap; gap: 6px; }
.size-pill { position: relative; cursor: pointer; }
.size-pill input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.size-pill span { display: grid; min-width: 44px; min-height: 40px; place-items: center; padding: 0 10px; border: 1px solid var(--line); border-radius: 12px; font-size: 14px; font-weight: 600; }
.size-pill input:checked + span { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.size-pill input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.customize { border: 1px solid var(--line); border-radius: var(--radius-sm); }
.customize summary { padding: 11px 14px; color: var(--muted); cursor: pointer; font-size: 13px; font-weight: 600; list-style: none; }
.customize summary::-webkit-details-marker { display: none; }
.customize[open] summary { color: var(--ink); }
.customize-price-note { margin: -2px 14px 12px; color: var(--muted); font-size: 12px; }
.customize label { display: grid; gap: 6px; padding: 0 14px 12px; color: var(--muted); font-size: 12px; font-weight: 600; }

.add-form input:not([type="radio"]), .admin-form input:not([type="checkbox"]):not([type="file"]):not([type="radio"]), .admin-form select, .admin-form textarea, .admin-login input {
    width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; outline: none; background: var(--bg); color: var(--ink); font-size: 15px;
}
.add-form input:focus, .admin-form input:focus, .admin-form select:focus, .admin-form textarea:focus, .admin-login input:focus { border-color: var(--accent); }

.skeleton-card { aspect-ratio: 4 / 5; border-radius: var(--radius); background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%) 0 0 / 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Cómo pedir / FAQ ---------- */
.how-it-works { padding: 88px max(6vw, 20px); background: var(--surface); }
.how-it-works h2 { margin-bottom: 40px; max-width: 14ch; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps > div { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.steps > div > span { color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: .1em; }
.steps h3 { margin: 40px 0 8px; font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }
.faq { max-width: 820px; margin: 0 auto; padding: 88px 20px 96px; }
.faq h2 { margin-bottom: 28px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { padding: 20px 0; cursor: pointer; font-size: 18px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 0 0 20px; color: var(--muted); font-size: 15px; }
.faq details a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Páginas interiores, carrito ---------- */
.inner-page { max-width: 1100px; min-height: 520px; margin: auto; padding: 64px 24px 96px; }
.inner-page > .section-heading { margin-bottom: 36px; }
.cart-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .8fr); align-items: start; gap: 32px; }
.cart-items { border-top: 1px solid var(--line); }
.cart-item { display: grid; grid-template-columns: 96px 1fr; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.cart-item-photo, .cart-item-icon { width: 96px; height: 108px; border-radius: 14px; object-fit: contain; background: var(--surface-2); }
.cart-item-icon[hidden] { display: none; }
.cart-item-details > p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.cart-item-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.stepper { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; }
.stepper span { min-width: 28px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.stepper button { width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--surface-2); cursor: pointer; font-size: 18px; line-height: 1; }
.stepper button:disabled { opacity: .35; cursor: not-allowed; }
.summary-card { display: grid; gap: 10px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.summary-card > .eyebrow { margin-bottom: 4px; }
.summary-line { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 14px; }
.summary-total { padding-top: 14px; border-top: 1px solid var(--line); color: var(--ink); font-weight: 600; }
.summary-total strong { font-size: 22px; letter-spacing: -.02em; }
.summary-note { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.free-shipping-note { display: flex; align-items: center; gap: 9px; margin: 0; padding: 12px 14px; border: 1px solid rgba(31,191,99,.28); border-radius: var(--radius-sm); background: rgba(31,191,99,.09); color: var(--ink); font-size: 15px; font-weight: 700; }
.free-shipping-note span { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 13px; }
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(250px, .75fr); align-items: start; gap: 24px; }
.checkout-form { display: grid; min-width: 0; gap: 16px; }
.checkout-form > .summary-card { gap: 0; min-width: 0; padding: 26px; }
.checkout-form > .summary-card > .eyebrow { margin-bottom: 14px; }
.checkout-item { display: flex; min-width: 0; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.checkout-item > div { display: grid; min-width: 0; gap: 5px; }
.checkout-item strong { overflow-wrap: anywhere; font-size: 15px; }
.checkout-item small { color: var(--muted); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.checkout-item > span { flex: none; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.checkout-form .summary-total { margin-top: 4px; }
.review-note { display: flex; align-items: flex-start; gap: 12px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--muted); font-size: 13px; line-height: 1.65; cursor: pointer; }
.review-note input { width: 20px; height: 20px; flex: none; margin: 1px 0 0; accent-color: var(--accent); }
.review-note strong { color: var(--ink); }
.review-note a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.checkout-form > .button { width: 100%; min-height: 56px; }
.checkout-next { position: sticky; top: 92px; align-content: start; gap: 12px; padding: 26px; }
.checkout-next-icon { display: grid; width: 42px; height: 42px; place-items: center; margin-bottom: 4px; border-radius: 14px; background: rgba(31,191,99,.12); color: var(--accent); font-size: 22px; }
.checkout-next .eyebrow { margin: 0; }
.checkout-next h2 { font-size: 21px; line-height: 1.2; letter-spacing: -.025em; }
.checkout-next .summary-note { font-size: 14px; }
.confirmation { display: grid; min-height: 560px; place-items: center; padding: 64px 24px 96px; }
.confirmation-card { display: grid; width: min(100%, 560px); gap: 16px; padding: 36px; border: 1px solid var(--line); border-radius: 24px; background: radial-gradient(500px 220px at 50% 0, rgba(31,191,99,.09), transparent 70%), var(--surface); box-shadow: 0 24px 80px rgba(0,0,0,.18); }
.confirmation-check { display: grid; width: 52px; height: 52px; place-items: center; border: 1px solid rgba(31,191,99,.32); border-radius: 17px; background: rgba(31,191,99,.12); color: var(--accent); font-size: 26px; font-weight: 700; }
.confirmation .eyebrow { margin: 2px 0 -8px; }
.confirmation h1 { font-size: clamp(42px, 7vw, 64px); line-height: .98; letter-spacing: -.045em; }
.confirmation h1 span { color: var(--accent); }
.confirmation-intro, .confirmation-card-pending > p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.65; }
.confirmation-summary { display: grid; margin-top: 4px; padding: 4px 18px 0; border: 1px solid var(--line); border-radius: 16px; background: rgba(2,5,10,.28); }
.confirmation-item { display: grid; min-width: 0; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.confirmation-item-quantity { display: grid; min-width: 32px; min-height: 28px; place-items: center; border-radius: 9px; background: var(--surface-2); color: var(--ink); font-size: 12px; font-weight: 700; }
.confirmation-item-details { display: grid; min-width: 0; gap: 4px; }
.confirmation-item-details strong { overflow-wrap: anywhere; font-size: 14px; }
.confirmation-item-details small { color: var(--muted); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.confirmation-item-price { padding-top: 3px; font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.confirmation-summary .summary-total { margin-top: 2px; }
.confirmation-card > .button { min-height: 56px; }
.back-store { justify-self: center; min-height: 40px; }
.confirmation-card-pending { max-width: 480px; }
.empty-state { padding: 64px 24px; border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; grid-column: 1 / -1; }
.empty-state h1, .empty-state h2 { margin: 0 0 10px; font-size: 26px; letter-spacing: -.02em; }
.empty-state p { max-width: 460px; margin: 0 auto 22px; color: var(--muted); }
.empty-icon { margin-bottom: 10px; color: var(--accent); font-size: 36px; }
.empty-state code { padding: 2px 6px; border-radius: 6px; background: var(--surface-2); }
.notice { margin: 0; padding: 14px 16px; border-radius: var(--radius-sm); background: rgba(255, 193, 7, .1); color: #ffd666; font-size: 13px; }
.form-errors { padding: 14px 16px; border-radius: var(--radius-sm); background: rgba(255,107,94,.12); color: #ffb3ab; font-size: 14px; }
.form-errors ul { margin: 6px 0 0; padding-left: 18px; }
.optional { color: var(--muted); font-weight: 400; }

/* Mensaje emergente */
.toast { position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); z-index: 90; padding: 12px 20px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 14px; font-weight: 600; pointer-events: none; opacity: 0; transform: translate(-50%, 12px); transition: opacity .25s var(--ease), transform .25s var(--ease); }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Footer ---------- */
.site-footer { display: flex; justify-content: space-between; gap: 32px; padding: 40px max(6vw, 20px) max(40px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.site-footer p { margin: 0; }
.footer-brand { max-width: 340px; display: grid; gap: 6px; }
.footer-title { color: var(--ink); font-weight: 700; font-size: 15px; }
.legal-footer-links { display: flex; flex-wrap: wrap; align-content: flex-start; justify-content: flex-end; gap: 10px 20px; }
.legal-footer-links a:hover { color: var(--ink); }

/* ---------- Legales ---------- */
.legal-page { max-width: 780px; }
.legal-page h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.05; font-weight: 700; letter-spacing: -.03em; }
.legal-page h2 { margin: 36px 0 10px; font-size: 20px; font-weight: 600; letter-spacing: -.015em; }
.legal-page p, .legal-page li { color: #c3c9c4; font-size: 16px; line-height: 1.7; }
.legal-page a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal-page code { padding: 2px 6px; border-radius: 6px; background: var(--surface-2); font-size: .9em; }
.legal-updated { margin: 12px 0 24px; color: var(--muted) !important; font-size: 13px !important; }
.legal-callout { margin: 24px 0; padding: 20px 22px; border: 1px solid rgba(31,191,99,.35); border-radius: var(--radius); background: rgba(12,144,69,.12); }
.legal-callout strong { font-size: 17px; }
.legal-callout p { margin: 6px 0 0; }

/* ---------- Animación de aparición ---------- */
.motion-reveal { opacity: 0; transform: translateY(16px); transition: opacity .4s var(--ease) var(--reveal-delay, 0ms), transform .4s var(--ease) var(--reveal-delay, 0ms); }
.motion-reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Administración (panel claro) ---------- */
.admin-body { --bg: #f2f3ef; --surface: #fff; --surface-2: #eef0ea; --line: #e1e4dc; --ink: #151916; --muted: #6a726c; --accent: #0c9045; --accent-ink: #fff; background: var(--bg); }
.admin-body .site-header { background: rgba(242, 243, 239, .72); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .admin-body .site-header { background: var(--bg); } }
.admin-body .legal-footer-links, .admin-body .site-footer { color: var(--muted); }
.admin-body .brand-mark { background-image: url('../assets/logo-small.png'); }
.admin-body .button-dark { background: var(--ink); color: #fff; }
.admin-body .size-pill span, .admin-body .customize { border-color: var(--line); }
.admin-page { max-width: 1250px; margin: auto; padding: 52px max(4vw, 20px) 84px; }
.admin-page > .section-heading { margin-bottom: 28px; }
.admin-layout { display: grid; grid-template-columns: minmax(280px, .78fr) minmax(0, 1.4fr); align-items: start; gap: 22px; }
.admin-panel { min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.admin-panel h2, .admin-login h1 { margin: 0 0 20px; font-size: 22px; letter-spacing: -.02em; }
.admin-form { display: grid; gap: 15px; }
.admin-form > label, .admin-login .admin-form > label { display: grid; gap: 7px; color: var(--muted); font-size: 13px; font-weight: 600; }
.admin-body .admin-form input:not([type="checkbox"]):not([type="file"]), .admin-body .admin-form select, .admin-body .admin-form textarea, .admin-body .admin-login input { background: #fff; color: var(--ink); }
.admin-form textarea { resize: vertical; }
.size-options { margin: 0; padding: 13px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.size-options legend { padding: 0 5px; color: var(--muted); font-size: 13px; font-weight: 600; }
.size-options > div { display: flex; flex-wrap: wrap; gap: 8px; }
.size-options label, .checkbox-label { display: flex !important; min-height: 38px; align-items: center; gap: 6px !important; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px !important; }
.size-options input[type="checkbox"], .checkbox-label input[type="checkbox"] { width: 16px; height: 16px; min-height: 0; margin: 0; accent-color: var(--accent); }
.admin-current-image { display: block; width: 100%; max-height: 190px; border-radius: 12px; object-fit: contain; background: var(--surface-2); }
.admin-help { margin: 0; color: var(--muted); font-size: 13px; }
.admin-notice { margin: 0 0 20px; padding: 13px 16px; border-radius: var(--radius-sm); background: #e3f1e8; color: #1c5a37; font-size: 14px; }
.admin-page .form-errors { margin-bottom: 20px; }
.admin-list-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.admin-list-heading h2 { margin-bottom: 18px; }
.admin-list-heading > span { color: var(--muted); font-size: 13px; }
.admin-product-filters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(140px, .45fr); align-items: end; gap: 12px; margin: 0 0 22px; }
.admin-product-filters label { display: grid; gap: 7px; color: var(--muted); font-size: 13px; font-weight: 600; }
.admin-product-filters input, .admin-product-filters select { width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font: inherit; font-size: 14px; }
.admin-product-filters input:focus, .admin-product-filters select:focus { border-color: var(--accent); outline: 2px solid rgba(12,144,69,.12); }
.admin-product-filters > .admin-help { grid-column: 1 / -1; }
.admin-product-group { margin-top: 20px; }
.admin-product-group[hidden], .admin-product[hidden] { display: none; }
.admin-product-group-heading { margin-bottom: 10px; }
.admin-product-group-heading h3 { display: flex; align-items: center; gap: 9px; margin: 0; font-size: 16px; }
.admin-product-group-heading h3 span { display: grid; min-width: 24px; height: 24px; place-items: center; padding: 0 6px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 12px; }
.admin-product-group-heading p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.admin-product-list { border-top: 1px solid var(--line); }
.admin-product { display: grid; grid-template-columns: auto 88px minmax(0, 1fr) auto; align-items: center; gap: 13px; padding: 13px; border-bottom: 1px solid var(--line); }
.admin-product-group-hidden .admin-product { border-left: 3px solid #c58b24; background: #fffdf7; }
.admin-product > img, .admin-image-placeholder { display: grid; width: 88px; height: 88px; border: 1px solid var(--line); border-radius: 10px; object-fit: contain; background: #fff; }
.admin-product-info { display: grid; gap: 4px; min-width: 0; font-size: 13px; }
.admin-product-info strong { overflow-wrap: anywhere; font-size: 14px; }
.admin-product-info > span { color: var(--muted); }
.admin-product-info > .admin-source-badge { justify-self: start; padding: 3px 8px; border: 1px solid rgba(197,139,36,.35); border-radius: 999px; background: #fff4d8; color: #76500c; font-size: 11px; font-weight: 700; }
.admin-product-empty { margin: 16px 0 0; padding: 20px; border: 1px dashed var(--line); border-radius: var(--radius-sm); color: var(--muted); text-align: center; }
.admin-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 9px; }
.admin-actions form, .logout-form { margin: 0; }
.admin-login { max-width: 430px; margin: 70px auto 90px; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.admin-login h1 { margin-bottom: 9px; font-size: 30px; }
.admin-login > p:not(.eyebrow) { margin: 0 0 23px; color: var(--muted); font-size: 14px; }
.admin-login .form-errors { margin-bottom: 18px; }
.logout-form .text-link { font-family: inherit; }

/* ---------- Adaptación ---------- */
@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; min-height: 0; padding: 56px 24px 40px; }
    .hero-visual { min-height: 260px; order: -1; }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .steps { grid-template-columns: 1fr; }
    .steps h3 { margin-top: 20px; }
    .cart-layout { grid-template-columns: 1fr; }
    .checkout-layout { grid-template-columns: 1fr; }
    .checkout-next { position: static; }
    .admin-layout { grid-template-columns: 1fr; }
    .perks { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .site-header { height: 60px; }
    .site-header nav a:not(.cart-link) { display: none; }
    .brand-name { font-size: 15px; }
    .brand-mark { width: 34px; height: 34px; }
    .hero-lead { font-size: 16px; }
    .collection { padding: 64px 16px; }
    .section-heading { align-items: stretch; flex-direction: column; gap: 14px; }
    .search-box input { width: 100%; }
    .product-grid { grid-template-columns: 1fr; }
    .category-filters { flex-wrap: nowrap; overflow-x: auto; margin-right: -16px; padding-right: 16px; scrollbar-width: none; }
    .category-filter { flex: 0 0 auto; }
    .team-filters { flex-wrap: nowrap; overflow-x: auto; margin: -8px -16px 24px; padding: 2px 16px 8px; scrollbar-width: none; }
    .team-filter { flex: 0 0 auto; }
    .how-it-works, .faq { padding-top: 64px; padding-bottom: 64px; }
    .inner-page { padding: 44px 16px 72px; }
    .inner-page > .section-heading { margin-bottom: 24px; }
    .confirmation { min-height: 0; padding: 40px 16px 64px; }
    .confirmation-card { gap: 14px; padding: 24px 20px; border-radius: 20px; }
    .confirmation-summary { padding-right: 13px; padding-left: 13px; }
    .confirmation-item { grid-template-columns: auto minmax(0, 1fr); gap: 8px 10px; }
    .confirmation-item-price { grid-column: 2; padding-top: 0; }
    .confirmation .button { padding-right: 16px; padding-left: 16px; font-size: 14px; }
    .checkout-layout { gap: 16px; }
    .checkout-form { gap: 12px; }
    .checkout-form > .summary-card, .checkout-next { padding: 20px; border-radius: 16px; }
    .checkout-item { gap: 10px; padding: 14px 0; }
    .checkout-item > span { font-size: 13px; }
    .review-note { padding: 15px; }
    .checkout-next { gap: 10px; }
    .cart-item { grid-template-columns: 76px 1fr; gap: 14px; }
    .cart-item-photo, .cart-item-icon { width: 76px; height: 88px; }
    .site-footer { flex-direction: column; gap: 20px; }
    .legal-footer-links { justify-content: flex-start; }
    .admin-page { padding: 40px 16px 60px; }
    .admin-panel { padding: 18px; }
    .admin-product-filters { grid-template-columns: 1fr; }
    .admin-product-filters > .admin-help { grid-column: auto; }
    .admin-product { grid-template-columns: auto 64px minmax(0, 1fr); gap: 10px; padding: 12px 8px; }
    .admin-product > img, .admin-image-placeholder { width: 64px; height: 68px; }
    .admin-actions { grid-column: 3; flex-direction: row; align-items: center; justify-content: flex-start; }
    .admin-login { margin: 40px 16px 60px; padding: 24px; }
}


/* ================= Pulido estilo app (grupos 2 a 6) ================= */

/* 2 · Ventanas: nacen del punto tocado, rápidas, sin aparecer de la nada */
dialog.sheet { width: min(380px, calc(100vw - 32px)); padding: 24px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); color: var(--ink);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .55); opacity: 0; transform: scale(.94);
    transition: opacity .16s ease-out, transform .22s var(--ease); }
dialog.sheet.is-open { opacity: 1; transform: none; }
dialog.sheet.is-closing { transition-duration: .12s, .12s; transform: scale(.97); }
dialog.sheet::backdrop { background: rgba(0, 0, 0, .5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; transition: opacity .2s ease-out; }
dialog.sheet.is-open::backdrop { opacity: 1; }
dialog.sheet.is-closing::backdrop { transition-duration: .12s; }
dialog.sheet h2 { margin: 0 0 8px; font-size: 20px; font-weight: 650; }
dialog.sheet p { margin: 0 0 22px; color: var(--muted); font-size: 15px; }
.sheet-actions { display: flex; gap: 10px; }
.sheet-actions .button { flex: 1; min-height: 46px; padding: 0 16px; }
.button-danger { background: var(--danger); color: #1a0502; }
.admin-body dialog.sheet { box-shadow: 0 30px 80px rgba(0, 0, 0, .25); }

/* Desplegables (FAQ y personalizar): se abren con altura suave desde arriba */
:root { interpolate-size: allow-keywords; }
details::details-content { block-size: 0; overflow: clip; opacity: 0; transition: block-size .26s var(--ease), opacity .2s ease-out, content-visibility .26s allow-discrete; }
details[open]::details-content { block-size: auto; opacity: 1; }
.faq summary::after { transition: transform .22s var(--ease); }

/* Mensaje emergente: sube desde abajo, sin aparecer de golpe */
.toast { transform: translate(-50%, 14px) scale(.96); transform-origin: 50% 100%; }
.toast.is-visible { transform: translate(-50%, 0) scale(1); }

/* 4 · Letras: espaciado de los títulos como Apple (más cerrado cuanto más grande) */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; font-optical-sizing: auto; text-rendering: optimizeLegibility; }
body { font-feature-settings: "kern", "liga", "calt"; letter-spacing: -.011em; }
h1, h2, h3 { text-wrap: balance; }
p, li, .summary-note, .hero-lead { text-wrap: pretty; }
.hero h1 { font-size: clamp(46px, 7.6vw, 100px); line-height: 1.02; letter-spacing: -.045em; }
.section-heading h1, .section-heading h2, .how-it-works h2, .faq h2, .legal-page h1 { letter-spacing: -.038em; line-height: 1.04; }
.confirmation h1 { letter-spacing: -.04em; }
.steps h3 { letter-spacing: -.026em; }
.product-title h2, .product-title h3, .empty-state h1, .empty-state h2 { letter-spacing: -.02em; }
.legal-page h2, .admin-panel h2, .admin-login h1 { letter-spacing: -.024em; }
.hero-lead { letter-spacing: -.016em; }
.summary-total strong { letter-spacing: -.03em; }
.product-title strong, .summary-line, .cart-count, .stepper span { font-variant-numeric: tabular-nums; }
.eyebrow, .team-group { letter-spacing: .12em; }
.button, .category-filter, .team-filter, .size-pill span { letter-spacing: -.008em; }
.brand-name { letter-spacing: -.025em; }

/* 5 · Móvil: sin zoom al escribir, sin destello gris, pantalla estable */
html { scrollbar-gutter: stable; -webkit-tap-highlight-color: transparent; }
a, button, summary, label, input, select, textarea, [role="button"] { -webkit-tap-highlight-color: transparent; }
a, button, summary, label, select, [role="button"], .size-pill, .stepper button { touch-action: manipulation; }
@media (pointer: coarse), (max-width: 900px) {
    input, select, textarea, .search-box input, .add-form input:not([type="radio"]), .admin-form input:not([type="checkbox"]):not([type="file"]):not([type="radio"]), .admin-form select, .admin-form textarea, .admin-login input { font-size: 16px; }
}
body { overflow-x: clip; overscroll-behavior-y: none; }
.site-header { padding-left: max(5vw, 20px, env(safe-area-inset-left)); padding-right: max(5vw, 20px, env(safe-area-inset-right)); }
@media (min-width: 0) { .site-header { padding-top: env(safe-area-inset-top); height: calc(68px + env(safe-area-inset-top)); } }
@media (max-width: 600px) { .site-header { height: calc(60px + env(safe-area-inset-top)); } }
img { max-width: 100%; height: auto; }
.product-photo, .cart-item-photo { height: 100%; }
.cart-item-photo { height: 108px; }
.product-grid { min-height: 520px; }
.skeleton-card { min-height: 380px; }
.team-filters, .category-filters { overflow-anchor: none; }
.results-count { min-height: 20px; }
html:focus-within { scroll-padding-top: 90px; }
html { scroll-padding-top: 84px; }

/* 6 · Respeta a quien tiene el movimiento reducido */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
    .skeleton-card { animation: none; }
    .motion-reveal, .motion-reveal.is-visible { opacity: 1; transform: none; }
    .button:active, .category-filter:active, .team-filter:active, .size-pill:active span, .stepper button:active { transform: none; opacity: .72; }
    dialog.sheet, dialog.sheet.is-closing { transform: none; }
    .toast, .toast.is-visible { transform: translateX(-50%); }
    details::details-content { transition: none; }
}

/* ---------- Panel de administración: sistema visual de la tienda ---------- */
.admin-body {
    --bg: #f3f6f3;
    --surface: #fff;
    --surface-2: #edf3ee;
    --line: #dfe7e0;
    --ink: #17211b;
    --muted: #65736a;
    --accent: #0b8f49;
    --accent-ink: #fff;
    background: var(--bg);
}
.admin-body .site-header {
    height: 72px;
    border-bottom-color: rgba(20, 60, 36, .09);
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 4px 18px rgba(23, 46, 30, .04);
}
.admin-body .site-header nav { gap: 5px; }
.admin-body .site-header nav > a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    color: #536258;
    font-size: 13px;
    font-weight: 600;
}
.admin-body .site-header nav > a:hover,
.admin-body .site-header nav > a:focus-visible {
    background: #edf5ef;
    color: #087b3d;
}
.admin-body .site-header nav .cart-link { background: var(--surface-2); }
.admin-body .site-header .brand-mark { background-image: url('../assets/logo-small.png'); }
.admin-body .site-header .logout-form { margin-left: 4px; }
.admin-body .site-header .logout-form .text-link {
    min-height: 40px;
    padding: 0 12px;
    border-radius: 999px;
    color: #a13e36;
}
.admin-body .site-header .logout-form .text-link:hover { background: #fff0ee; }
.admin-body .site-footer { color: var(--muted); }
.admin-page { max-width: 1480px; padding-top: 44px; }
.admin-page > .section-heading { align-items: center; margin-bottom: 24px; }
.admin-page > .section-heading .eyebrow { margin-bottom: 7px; }
.admin-page > .section-heading h1 { color: #17211b; font-size: clamp(30px, 4vw, 42px); }
.admin-page > .section-heading > a { padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.admin-layout { grid-template-columns: minmax(320px, .78fr) minmax(0, 1.55fr); gap: 20px; }
.admin-panel {
    padding: 26px;
    border-color: #e2e9e3;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 32px rgba(23, 46, 30, .055);
}
.admin-panel h2 { color: #17211b; font-size: 20px; }
.admin-panel .admin-list-heading h2 { margin-bottom: 16px; }
.admin-body .admin-form { gap: 17px; }
.admin-body .admin-form > label,
.admin-body .admin-login .admin-form > label { color: #46564b; font-size: 13px; }
.admin-body .admin-form input:not([type="checkbox"]):not([type="file"]),
.admin-body .admin-form select,
.admin-body .admin-form textarea,
.admin-body .admin-login input,
.admin-body .team-rename input {
    width: 100%;
    min-height: 46px;
    padding: 10px 13px;
    border: 1px solid #d8e1d9;
    border-radius: 11px;
    background: #fbfdfb;
    color: #17211b;
    box-shadow: 0 1px 2px rgba(23, 46, 30, .025);
}
.admin-body .admin-form textarea { min-height: 92px; }
.admin-body .admin-form input::placeholder,
.admin-body .admin-form textarea::placeholder { color: #8a978e; }
.admin-body .admin-form input:focus,
.admin-body .admin-form select:focus,
.admin-body .admin-form textarea:focus,
.admin-body .admin-login input:focus,
.admin-body .team-rename input:focus,
.admin-body .admin-product-filters input:focus,
.admin-body .admin-product-filters select:focus {
    border-color: #0b8f49;
    outline: 3px solid rgba(11, 143, 73, .12);
    outline-offset: 0;
}
.admin-body .admin-form input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 1px dashed #c8d8cb;
    border-radius: 11px;
    background: #f7faf7;
    color: #46564b;
}
.admin-body .checkbox-label,
.admin-body .size-options label {
    border-color: #dfe7e0;
    background: #f8faf8;
}
.admin-body .checkbox-label:has(input:checked),
.admin-body .size-options label:has(input:checked) {
    border-color: rgba(11, 143, 73, .4);
    background: #eef8f0;
    color: #176336;
}
.admin-body .admin-form > .button {
    min-height: 48px;
    border-radius: 12px;
    box-shadow: 0 5px 12px rgba(11, 143, 73, .16);
}
.admin-current-image {
    max-height: 240px;
    border: 1px solid var(--line);
    background: #f7f9f7;
}
.admin-notice {
    border: 1px solid #cbe6d1;
    background: #edf8ef;
    color: #1c6536;
}
.admin-product-filters { grid-template-columns: minmax(0, 1fr) minmax(150px, .4fr); gap: 12px; }
.admin-product-filters label { color: #46564b; }
.admin-product-filters input,
.admin-product-filters select {
    min-height: 46px;
    border-color: #d8e1d9;
    border-radius: 11px;
    background: #fbfdfb;
    color: #17211b;
}
.admin-product-filters > .admin-help {
    padding: 10px 12px;
    border-radius: 10px;
    background: #f5f8f5;
    color: #526258;
    font-weight: 600;
}
.admin-product-group { margin-top: 24px; }
.admin-product-group-heading { margin-bottom: 12px; }
.admin-product-group-heading h3 { color: #26352b; font-size: 15px; }
.admin-product-group-heading h3 span { background: #edf3ee; color: #4d6052; }
.admin-product-list { display: grid; gap: 9px; border-top: 0; }
.admin-product {
    grid-template-columns: 76px minmax(0, 1fr) auto;
    gap: 14px;
    padding: 12px;
    border: 1px solid #e4eae4;
    border-radius: 14px;
    background: #fff;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.admin-product:hover {
    transform: translateY(-1px);
    border-color: #c9ddcd;
    box-shadow: 0 6px 18px rgba(23, 46, 30, .055);
}
.admin-product-group-hidden .admin-product {
    border-color: #eee2c8;
    border-left: 3px solid #c58b24;
    background: #fffdf8;
}
.admin-product > img,
.admin-image-placeholder {
    width: 76px;
    height: 82px;
    border-color: #e1e7e1;
    border-radius: 11px;
    background: #f7f9f7;
}
.admin-product-info { gap: 5px; color: #536258; font-size: 12px; }
.admin-product-info strong { color: #17211b; font-size: 13px; line-height: 1.4; }
.admin-product-info > span { color: #68766c; }
.admin-product-info > .admin-source-badge {
    border-color: #f0d89c;
    background: #fff7e5;
    color: #76500c;
}
.admin-actions { flex-direction: row; align-items: center; gap: 12px; }
.admin-actions .text-link { min-height: 36px; padding: 0 10px; border-radius: 9px; }
.admin-actions .text-link:hover { background: #edf5ef; }
.admin-actions .danger-link:hover { background: #fff0ee; }
.admin-product-empty { border-color: #d6e1d8; background: #f9fbf9; }
.admin-login {
    margin-top: 78px;
    border-color: #e2e9e3;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 16px 48px rgba(23, 46, 30, .08);
}
.admin-login .button { min-height: 48px; border-radius: 12px; background: #0b8f49; }
.admin-body .team-group {
    margin: 24px 0 10px;
    color: #536258;
    font-size: 12px;
    font-weight: 750;
    text-transform: uppercase;
}
.admin-body .team-group span {
    display: inline-grid;
    min-width: 24px;
    height: 24px;
    place-items: center;
    margin-left: 5px;
    border-radius: 999px;
    background: #edf3ee;
    color: #536258;
    letter-spacing: 0;
}
.admin-body .team-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border: 1px solid #e4eae4;
    border-radius: 13px;
    background: #fff;
}
.admin-body .team-rename { display: flex; align-items: center; gap: 8px; min-width: 0; }
.admin-body .team-rename input { min-width: 0; min-height: 40px; padding: 8px 10px; background: #fbfdfb; }
.admin-body .team-meta { color: #65736a; font-size: 12px; white-space: nowrap; }
.admin-body .team-actions { display: flex; align-items: center; gap: 8px; }
.admin-body .team-actions form { margin: 0; }
.admin-body .team-actions .text-link,
.admin-body .team-rename .text-link { padding: 8px 10px; border-radius: 8px; white-space: nowrap; }
.admin-body .team-actions .text-link:hover,
.admin-body .team-rename .text-link:hover { background: #edf5ef; }
.admin-body .team-actions .danger-link:hover { background: #fff0ee; }

@media (max-width: 900px) {
    .admin-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
    .admin-body .site-header {
        height: auto;
        min-height: calc(60px + env(safe-area-inset-top));
        align-items: center;
        gap: 8px;
        padding-top: calc(6px + env(safe-area-inset-top));
        padding-bottom: 6px;
    }
    .admin-body .site-header .brand { flex: 0 0 auto; gap: 7px; }
    .admin-body .site-header .brand-mark { width: 30px; height: 30px; }
    .admin-body .site-header .brand-name { font-size: 12px; }
    .admin-body .site-header nav {
        min-width: 0;
        flex: 1 1 auto;
        justify-content: flex-end;
        gap: 2px;
        overflow-x: auto;
        scrollbar-width: none;
    }
    .admin-body .site-header nav::-webkit-scrollbar { display: none; }
    .admin-body .site-header nav > a {
        display: inline-flex;
        flex: 0 0 auto;
        min-height: 36px;
        padding: 0 8px;
        font-size: 11px;
    }
    .admin-body .site-header .logout-form .text-link { min-height: 36px; padding: 0 8px; font-size: 11px; }
    .admin-page { padding: 32px 14px 56px; }
    .admin-page > .section-heading { align-items: flex-start; }
    .admin-panel { padding: 18px; border-radius: 16px; }
    .admin-product-filters { grid-template-columns: minmax(0, 1fr); }
    .admin-product-filters > .admin-help { grid-column: auto; }
    .admin-product { grid-template-columns: 62px minmax(0, 1fr); gap: 10px; padding: 10px; }
    .admin-product > img,
    .admin-image-placeholder { width: 62px; height: 68px; }
    .admin-product-info { align-self: center; }
    .admin-actions { grid-column: 2; justify-content: flex-start; gap: 8px; }
    .admin-body .team-row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
    .admin-body .team-rename { grid-column: 1 / -1; }
    .admin-body .team-meta { grid-column: 1; }
    .admin-body .team-actions { grid-column: 2; justify-content: flex-end; }
    .admin-login { margin: 42px 14px 60px; padding: 22px; }
}

/* ---------- Filtro por tipo de producto ---------- */
.product-type-filter-section {
    display: grid;
    gap: 10px;
    margin: -12px 0 24px;
}
.filter-section-label {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.season-select {
    width: 100%;
    max-width: 260px;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid var(--line, rgba(255,255,255,.18));
    border-radius: 10px;
    background: rgba(255,255,255,.06);
    color: inherit;
    font: inherit;
}
.season-select option { color: #111; background: #fff; }
.product-type-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.product-type-filter {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--muted);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: border-color .18s ease, background-color .18s ease, color .18s ease, transform .16s var(--ease);
}
.product-type-filter:hover {
    border-color: rgba(31, 191, 99, .55);
    color: var(--ink);
}
.product-type-filter:active { transform: scale(.97); }
.product-type-filter.is-active {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--accent-ink);
}
.product-type-count {
    display: inline-grid;
    min-width: 22px;
    height: 22px;
    place-items: center;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--muted);
    font-size: 11px;
    font-variant-numeric: tabular-nums;
}
.product-type-filter.is-active .product-type-count {
    background: rgba(2, 5, 10, .14);
    color: inherit;
}
.product-type-filter:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}
.admin-body .product-type-filter-section { display: none; }

@media (max-width: 600px) {
    .product-type-filter-section { margin: -8px 0 22px; }
    .product-type-filters {
        flex-wrap: nowrap;
        margin-right: -16px;
        padding: 2px 16px 8px 2px;
        overflow-x: auto;
        scrollbar-width: none;
        scroll-snap-type: x proximity;
    }
    .product-type-filters::-webkit-scrollbar { display: none; }
    .product-type-filter { flex: 0 0 auto; scroll-snap-align: start; }
}

/* ---------- Herramientas de administración y filtros extra ---------- */
.announcement-bar { padding: 9px 16px; background: var(--accent); color: var(--accent-ink); font-size: 13px; font-weight: 600; text-align: center; }
.announcement-bar a { color: inherit; text-decoration: underline; }
.product-badge { position: absolute; z-index: 1; top: 14px; right: 14px; padding: 5px 11px; border-radius: 99px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 700; }
.product-badge-soldout { background: #6a726c; color: #fff; }
.old-price { margin-right: 4px; color: var(--muted); font-weight: 400; font-size: .85em; }
.product-card.is-sold-out .product-photo { opacity: .5; }
.sold-out-note { margin: 14px 0 0; padding: 11px 14px; border: 1px dashed var(--line); border-radius: var(--radius-sm); color: var(--muted); font-size: 13px; text-align: center; }

.admin-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; margin: 0 0 22px; }
.admin-stat { display: grid; gap: 2px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); text-decoration: none; }
.admin-stat strong { font-size: 24px; letter-spacing: -.02em; }
.admin-stat span { color: var(--muted); font-size: 12px; }
a.admin-stat:hover { border-color: var(--accent); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th, .admin-table td { padding: 9px 6px; border-bottom: 1px solid var(--line); text-align: left; }
.admin-table th { color: var(--muted); font-size: 12px; }
.admin-bulk { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 18px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); }
.admin-bulk select, .admin-bulk input[type="number"] { min-height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font: inherit; font-size: 14px; }
.admin-bulk input[type="number"] { width: 80px; }
.admin-bulk [hidden] { display: none; }
.admin-bulk .button { min-height: 40px; padding: 0 18px; }
.admin-flags { display: flex; flex-wrap: wrap; gap: 5px; }
.admin-flag { padding: 2px 8px; border-radius: 999px; background: #e3f1e8; color: #1c5a37; font-size: 11px; font-style: normal; font-weight: 700; }
.admin-flag-warn { background: #fff4d8; color: #76500c; }
.category-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.category-edit { display: flex; flex: 1; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; }
.category-edit input[name="name"] { flex: 1; min-width: 140px; min-height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 14px; }
.category-order { width: 70px; min-height: 40px; padding: 0 8px; border: 1px solid var(--line); border-radius: 10px; font: inherit; }
.sortable-list { display: grid; gap: 9px; }
.sortable-list [data-sort-item] { cursor: default; }
.sortable-list [data-sort-item].is-dragging { opacity: .45; }
.drag-handle { display: grid; width: 36px; min-width: 36px; height: 40px; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); color: var(--muted); font: inherit; font-size: 20px; line-height: 1; cursor: grab; touch-action: none; }
.drag-handle:active { cursor: grabbing; }
.sort-status:not([hidden]) { margin: 10px 0; color: #1c5a37; font-weight: 600; }
.sort-status.is-error { color: #a12a20; }
.sortable-group-title { margin: 20px 0 8px; color: var(--muted); font-size: 13px; }
.category-sort-list { margin-top: 14px; }
.category-row { justify-content: flex-start; }
.category-row > form:last-child { flex: 0 0 auto; }
.team-row { grid-template-columns: auto minmax(0, 1fr) auto auto !important; }
.admin-body .admin-product { grid-template-columns: auto auto 76px minmax(0, 1fr) auto; }
.featured-sort-row { display: grid; grid-template-columns: auto 76px minmax(0, 1fr); align-items: center; gap: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.featured-sort-row img, .featured-sort-row .admin-image-placeholder { width: 76px; height: 82px; border: 1px solid var(--line); border-radius: 11px; object-fit: contain; background: #fff; }

@media (max-width: 600px) {
    .admin-body .admin-product { grid-template-columns: auto auto 62px minmax(0, 1fr); }
    .admin-body .admin-product > img, .admin-body .admin-image-placeholder { width: 62px; height: 68px; }
    .admin-body .admin-product .admin-actions { grid-column: 3 / -1; }
    .admin-body .team-row { grid-template-columns: auto minmax(0, 1fr) auto !important; }
    .admin-body .team-rename { grid-column: 2 / -1; }
    .admin-body .team-meta { grid-column: 2; }
    .admin-body .team-actions { grid-column: 2 / -1; justify-content: flex-start; }
    .category-row { align-items: flex-start; }
    .category-edit { align-items: flex-start; }
    .featured-sort-row { grid-template-columns: auto 62px minmax(0, 1fr); gap: 10px; }
    .featured-sort-row img, .featured-sort-row .admin-image-placeholder { width: 62px; height: 68px; }
}
