@font-face {
  font-family: Geist;
  src: url("./geist.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --night: #0c101c;
  --ink: #142036;
  --muted: #4e5b70;
  --paper: #f6f4ec;
  --line: #dce0e8;
  --yellow: #ffdb20;
  --gold: #e9b900;
  --red: #a32432;
  --blue: #1b4392;
  --round: 18px;
  font-family: Geist, "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 0; }
html { scroll-behavior: smooth; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .19em; }
img, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .52; }
:focus-visible { outline: 3px solid #5177da; outline-offset: 4px; }
h1, h2, h3, h4, p, figure, dl { margin: 0; }
p { line-height: 1.6; }
h1, h2, h3, h4 { line-height: 1.09; }
.wrap { width: min(calc(100% - 48px), 1160px); margin-inline: auto; }
.sr-only { position: absolute; inline-size: 1px; block-size: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip { position: fixed; z-index: 6; top: 10px; left: 14px; transform: translateY(-200%); padding: 10px 14px; border-radius: 8px; background: white; color: var(--ink); }
.skip:focus { transform: translateY(0); }

.topbar { position: sticky; top: 0; z-index: 3; color: #fff; background: var(--night); border-top: 3px solid transparent; border-image: linear-gradient(90deg,#ffdb20 0 50%,#2448b6 50% 75%,#d93643 75%) 1; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 70px; }
.topbar a { text-decoration: none; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 950; font-style: oblique 11deg; letter-spacing: -.07em; line-height: 1; font-size: 24px; text-decoration: none; white-space: nowrap; }
.brand-mark { font-size: .8em; letter-spacing: -.12em; color: var(--yellow); padding-right: 3px; }
.shop-nav { display: flex; align-items: center; gap: 28px; font-size: .94rem; color: #edf2ff; font-weight: 620; }
.shop-nav a:hover, .topbar a:hover, .site-foot a:hover { color: var(--yellow); }
.btn { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 9px; padding: 10px 17px; border: 1px solid transparent; border-radius: 9px; font-weight: 760; line-height: 1.24; text-align: center; text-decoration: none; }
.btn-yellow { background: var(--yellow); color: #131722; }
.btn-yellow:hover { background: #f4cb00; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #263553; }
.topbar .btn-dark { background: #182338; }
.topbar .btn-dark:hover { background: #263a5d; }
.btn-outline { background: #fff; border-color: #bfc7d5; color: var(--ink); }
.btn-outline:hover { border-color: #6c7d9b; }
.btn-block { width: 100%; }
.count { min-width: 24px; padding: 3px 6px; border-radius: 6px; background: var(--yellow); color: var(--night); font-size: .82rem; }

.shop-hero { position: relative; overflow: hidden; padding: 60px 0 62px; color: #fff; background: radial-gradient(ellipse at 80% 45%, #6b511433, transparent 57%), linear-gradient(115deg, #10203e, #111526 46%, #171627); }
.hero-grid { display: grid; grid-template-columns: 1.16fr 1fr; gap: clamp(30px,7vw,92px); align-items: center; }
.eyebrow { color: #57411c; font-weight: 780; letter-spacing: .1em; font-size: .78rem; text-transform: uppercase; }
.hero-kicker { display: inline-block; color: var(--yellow); border-left: 3px solid var(--yellow); padding-left: 12px; margin-bottom: 18px; }
.shop-hero h1 { font-size: clamp(3rem,6vw,6.15rem); font-weight: 900; letter-spacing: -.073em; line-height: .98; }
.shop-hero h1 em { color: var(--yellow); font-style: normal; }
.hero-description { color: #dce1ec; margin: 22px 0; max-width: 37ch; font-size: 1.08rem; }
.hero-price { display: flex; align-items: center; gap: 16px; margin: 21px 0 26px; }
.hero-price strong { color: #fff; font-size: 2.72rem; letter-spacing: -.07em; line-height: 1; }
.hero-price span { color: #cdd4e5; font-size: .9rem; line-height: 1.42; }
.product-gallery { width: min(100%, 380px); justify-self: center; }
.product-gallery a { display: block; overflow: hidden; border-radius: var(--round); border: 1px solid #fedd2c50; background: #20212b; box-shadow: 0 18px 60px #0007; }
.hero-product { width: 100%; height: auto; object-fit: contain; }
.product-gallery figcaption { margin-top: 10px; color: #dce1ec; text-align: center; font-size: .84rem; }
.store-benefits { background: #ffed94; }
.benefits-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding-block: 23px; }
.benefits-grid div { display: grid; gap: 5px; }
.benefits-grid strong { font-size: 1rem; }
.benefits-grid span { color: #4b432b; font-size: .93rem; }

.shop-section { padding-block: clamp(45px,8vw,86px); scroll-margin-top: 87px; }
.section-heading { display: grid; grid-template-columns: 1fr 340px; gap: 12px 28px; align-items: end; }
.section-heading h2, .shop-film h2, .flow-wrap h1, .admin-wrap h1 { font-size: clamp(2.25rem,5vw,4.35rem); letter-spacing: -.063em; font-weight: 860; }
.section-heading > p, .shop-film p:not(.eyebrow), .shop-faq p { color: var(--muted); }
details summary { cursor: pointer; }
.size-help { margin-top: 27px; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 13px 16px; max-width: 620px; }
.size-help summary { font-weight: 700; }
.size-help p { margin-top: 8px; color: var(--muted); }
.size-group { margin-top: 32px; }
.size-group h3 { font-size: 1.38rem; letter-spacing: -.035em; margin-bottom: 12px; }
.size-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 10px; }
.size-card { min-width: 0; display: flex; flex-direction: column; padding: 15px 13px 12px; min-height: 142px; background: #fff; border: 1px solid var(--line); border-radius: 13px; }
.size-card h4 { font-size: 1.19rem; letter-spacing: -.035em; }
.size-code, .size-measure { color: var(--muted); font-size: .86rem; line-height: 1.35; }
.size-code { margin-top: 5px; }
.size-measure { margin: 3px 0 10px; }
.size-card .btn { width: 100%; margin-top: auto; min-height: 41px; padding-inline: 5px; font-size: .9rem; }
.btn-add { background: #f0f3fa; color: var(--ink); border-color: #e6ebf5; }
.btn-add:hover { background: var(--yellow); border-color: var(--yellow); }
.shop-film { padding-block: 50px; color: white; background: #131f35; scroll-margin-top: 75px; }
.shop-film .eyebrow { color: var(--yellow); margin-bottom: 10px; }
.shop-film p:not(.eyebrow) { color: #d5deef; margin-top: 14px; }
.film-grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: 36px; align-items: center; }
.shop-film video { width: min(100%, 360px); height: auto; aspect-ratio: 9/16; justify-self: center; object-fit: contain; border: 1px solid #5e6b87; border-radius: var(--round); background: #0b111c; }
.shop-faq { margin-block: 52px; }
.shop-faq h2 { font-size: clamp(1.55rem,3.8vw,2.4rem); letter-spacing: -.045em; margin-bottom: 18px; }
.shop-faq details { border-top: 1px solid #c9d0dc; padding: 14px 0; }
.shop-faq details p { margin-top: 9px; }
.site-foot { background: var(--night); color: #fff; padding-block: 24px; }
.foot-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.site-foot a { text-decoration: none; }

dialog::backdrop { background: #0d1729a0; }
.cart-dialog, .order-detail { position: fixed; border: 0; padding: 0; overflow: hidden; color: var(--ink); background: #fff; }
.cart-dialog { inset: 0 0 0 auto; height: 100%; max-height: 100dvh; margin: 0; width: min(100%,520px); max-width: 100vw; box-shadow: 0 0 65px #0004; }
.order-detail { width: min(calc(100% - 24px),680px); max-height: min(88dvh,850px); border-radius: 14px; }
.cart-dialog[open], .order-detail[open] { display: grid; grid-template-rows: auto minmax(0,1fr); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 1.53rem; letter-spacing: -.045em; }
.close-button { display: inline-grid; place-items: center; border: 1px solid #c9d1df; border-radius: 8px; background: #fff; min-height: 42px; min-width: 42px; font-size: 1.54rem; line-height: 1; }
.drawer-body { padding: 18px 20px; overflow-y: auto; overscroll-behavior: contain; }
.cart-lines, .summary-lines { list-style: none; margin: 0; padding: 0; }
.cart-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-block: 11px; border-bottom: 1px solid var(--line); }
.cart-line div:nth-child(1) { min-width: 0; flex: 1; }
.cart-line div:nth-child(1) span { display: block; margin: 3px 0 0; }
.cart-line-total { white-space: nowrap; font-size: .95rem; }
.quantity { display: inline-flex; align-items: center; gap: 7px; }
.quantity button { padding: 0; width: 34px; height: 36px; border: 1px solid #c9d1df; border-radius: 7px; background: #fff; font-weight: 850; }
.quantity button:hover { background: #fff2ad; }
.totals { display: grid; gap: 7px; margin: 16px 0; padding: 13px; background: #f1f4fa; border-radius: 10px; }
.totals div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.totals dd { margin: 0; font-weight: 680; white-space: nowrap; }
.totals div:last-child { border-top: 1px solid #ced7e6; padding-top: 8px; margin-top: 2px; font-weight: 800; }
.totals div:last-child dd { font-size: 1.27rem; font-weight: 830; }
fieldset { min-inline-size: 0; margin: 0; border: 0; padding: 0; }
legend { font-weight: 800; margin-bottom: 11px; }
label { display: block; font-size: .93rem; font-weight: 670; }
input:not([type=checkbox]), select, textarea { min-height: 43px; width: 100%; margin-top: 5px; padding: 9px 10px; color: var(--ink); background: #fff; border: 1px solid #aebbd0; border-radius: 8px; }
textarea { resize: vertical; }
input[type=file] { min-height: 0; padding: 9px; }
input[type=checkbox] { inline-size: 18px; block-size: 18px; margin: 2px 0; accent-color: #20396a; flex-shrink: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; }
.wide { grid-column: 1 / -1; }
.optional { color: var(--muted); font-size: .81rem; font-weight: 500; }
.checkbox { display: flex; align-items: start; gap: 9px; margin: 15px 0; line-height: 1.45; }
.error, .note { padding: 10px 12px; border-radius: 8px; font-size: .93rem; margin-block: 10px; }
.error { color: #801e29; background: #fae8eb; border: 1px solid #eebfc7; }
.note { color: #354564; background: #edf1fa; }
.note:empty { display: none; }

.flow-wrap { width: min(calc(100% - 32px),630px); margin: 42px auto 70px; }
.flow-wrap h1, .admin-wrap h1 { margin: 5px 0 21px; font-size: clamp(2.15rem,5vw,3.6rem); }
.panel { margin-bottom: 13px; padding: clamp(15px,3.6vw,25px); border: 1px solid var(--line); border-radius: var(--round); background: #fff; }
.panel h2 { font-size: 1.3rem; letter-spacing: -.035em; margin-bottom: 12px; }
.order-heading, .order-actions, .admin-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; }
.order-heading + p { margin-top: 9px; color: var(--muted); }
.state { display: inline-flex; padding: 4px 8px; border-radius: 6px; background: #fff0bd; color: #544019; font-size: .84rem; font-weight: 700; line-height: 1.35; }
.state[data-state=pagado], .state[data-state=entregado] { color: #185137; background: #dbf3e7; }
.state[data-state=despachado], .state[data-state=revision] { color: #234e84; background: #e4edff; }
.state[data-state=rechazado], .state[data-state=cancelado] { color: #802330; background: #fae8eb; }
.summary-lines { margin-top: 10px; }
.summary-lines li { padding: 7px 0; display: flex; justify-content: space-between; gap: 8px; }
.delivery-details { display: grid; grid-template-columns: minmax(100px,1fr) minmax(0,1.55fr); gap: 5px 10px; }
.delivery-details dt { color: var(--muted); }
.delivery-details dd { margin: 0; font-weight: 650; overflow-wrap: anywhere; }
.order-payment p { color: var(--muted); }
.order-payment .bank { padding: 12px; margin-bottom: 14px; border: 1px solid #dce5f2; border-radius: 10px; background: #f4f7fc; }
.order-payment form { display: grid; gap: 8px; margin-top: 14px; }

.admin-wrap { padding: 33px 0 48px; }
.admin-nav { justify-content: flex-end; }
.login-panel { width: min(100%,470px); }
#admin-login { display: grid; gap: 13px; }
.metrics { display: grid; gap: 10px; grid-template-columns: repeat(4, minmax(0,1fr)); margin-bottom: 12px; }
.metric { padding: 13px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.metric strong { display: block; font-size: 1.55rem; }
.metric span { font-size: .93rem; color: var(--muted); }
.payment-settings summary { font-weight: 760; }
.payment-settings p { color: var(--muted); margin: 8px 0; }
.filters { display: grid; grid-template-columns: minmax(150px,1fr) minmax(145px,.7fr) auto auto; gap: 9px; align-items: end; margin-bottom: 15px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; min-width: 530px; border-collapse: collapse; text-align: left; }
thead { background: #f2f5fb; }
th, td { padding: 10px; border-bottom: 1px solid var(--line); }
th { font-size: .89rem; }
td small { display: block; color: var(--muted); }
.pagination { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.detail-actions { margin: 16px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.detail-action-form { display: grid; gap: 9px; margin: 14px 0; padding: 13px; background: #f1f4fa; border-radius: 10px; }
.event-list { padding-left: 20px; }
.event-list li { margin-top: 7px; line-height: 1.4; }

@media (max-width: 900px) {
  .size-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
}
@media (max-width: 680px) {
  .wrap { width: min(calc(100% - 30px),1160px); }
  .topbar-inner { min-height: 58px; }
  .brand { font-size: 21px; }
  .shop-nav { display: none; }
  .shop-hero { padding: 36px 0; }
  .hero-grid, .section-heading, .film-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 25px; }
  .shop-hero h1 { font-size: clamp(2.8rem,10.2vw,4.7rem); }
  .product-gallery { width: min(100%,325px); }
  .benefits-grid { grid-template-columns: 1fr; gap: 13px; }
  .size-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .size-card { padding: 12px 8px 9px; }
  .foot-inner { flex-wrap: wrap; }
  .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .filters { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 390px) {
  .drawer-body, .drawer-head { padding-inline: 12px; }
  .size-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .form-grid { grid-template-columns: 1fr; }
  .cart-line-total { font-size: .84rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
