/* Proyecta Más — tema "Rótulo"
   Idea: la tienda se lee como un plano. Cada producto es un rótulo de lámina,
   y la portada se acota como una medida de obra. Todo lo demás, en silencio. */

:root {
  --paper: #f5f6f8;
  --sheet: #ffffff;
  --ink: #1e4982;
  --night: #122e54;
  --marker: #ffe500;
  --graphite: #232a35;
  --muted: #5d6878;
  --rule: #cdd5e0;
  --rule-soft: #e3e8ef;
  --ok: #2e7d4f;
  --warn: #9a5b00;
  --danger: #b3261e;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1200px;
  --r-lg: 16px;
  --r-md: 12px;
  --r-sm: 8px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--graphite);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  font-variation-settings: "wdth" 100;
}
img { max-width: 100%; display: block; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--night); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
::selection { background: var(--marker); color: var(--night); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Tipografía: una sola familia, el ancho hace la jerarquía */
h1, h2, h3 { color: var(--night); line-height: 1.08; margin: 0; font-variation-settings: "wdth" 125; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5.6vw, 4.25rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 650; }
h3 { font-size: 1.125rem; font-weight: 650; font-variation-settings: "wdth" 110; }
p { margin: 0 0 1em; max-width: 68ch; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 52ch; }
.num { font-variant-numeric: tabular-nums; }

/* Barra de aviso */
.announce { background: var(--night); color: #fff; font-size: 14px; text-align: center; padding: 8px var(--gutter); }

/* Encabezado */
.site-header { background: var(--sheet); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--night); font-weight: 750; font-size: 1.15rem; font-variation-settings: "wdth" 125; }
.brand img { height: 34px; width: auto; }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a { text-decoration: none; color: var(--graphite); font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; }
.cart-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.cart-count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--marker); color: var(--night); font-size: 12px; font-weight: 700; display: inline-grid; place-items: center; }
.cart-count[data-empty="true"] { background: var(--rule-soft); color: var(--muted); }
@media (max-width: 640px) { .nav .nav-extra { display: none; } }

/* Portada acotada */
.hero { padding: clamp(48px, 9vw, 112px) 0 clamp(40px, 6vw, 72px); background-color: var(--sheet);
  background-image: linear-gradient(var(--rule-soft) 1px, transparent 1px), linear-gradient(90deg, var(--rule-soft) 1px, transparent 1px);
  background-size: 24px 24px; background-position: -1px -1px; border-bottom: 1px solid var(--rule); }
.hero h1 { max-width: 15ch; }
.hero .lead { margin-top: 20px; }
.cota { margin-top: 36px; max-width: 760px; display: flex; align-items: center; gap: 14px; color: var(--ink); font-size: 14px; position: relative; padding: 0 1px; }
.cota::before, .cota::after { content: ""; position: absolute; top: -9px; bottom: -9px; width: 1px; background: currentColor; }
.cota::before { left: 0; } .cota::after { right: 0; }
.cota-line { flex: 1; height: 1px; background: currentColor; position: relative; }
.cota-line:first-child::before, .cota-line:last-child::after { content: ""; position: absolute; top: -4px; border: 4.5px solid transparent; }
.cota-line:first-child::before { left: 0; border-right: 10px solid currentColor; border-left: 0; }
.cota-line:last-child::after { right: 0; border-left: 10px solid currentColor; border-right: 0; }
.cota-label { white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: no-preference) {
  .cota-line { transform-origin: center; animation: draw .9s .15s cubic-bezier(.6,0,.2,1) both; }
  .cota-line:first-child { transform-origin: right; } .cota-line:last-child { transform-origin: left; }
  @keyframes draw { from { transform: scaleX(0); } }
}

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border: 1px solid var(--ink);
  background: var(--ink); color: #fff; font: inherit; font-weight: 600; font-size: 15px; text-decoration: none; border-radius: var(--r-md); cursor: pointer; }
.btn:hover { background: var(--night); border-color: var(--night); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--sheet); color: var(--night); }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: progress; }

/* Secciones */
.section { padding: clamp(40px, 6vw, 80px) 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head p { margin: 0; color: var(--muted); }

/* Grilla de rótulos */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 24px; }
.rotulo { background: var(--sheet); border: 1px solid var(--graphite); display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .15s ease; }
.rotulo:hover { transform: translateY(-2px); color: inherit; }
.rotulo:hover .rotulo-title { text-decoration: underline; text-decoration-thickness: 1px; }
.rotulo-media { aspect-ratio: 4 / 3; background: var(--paper); border-bottom: 1px solid var(--graphite); overflow: hidden; position: relative; }
.rotulo-media img { width: 100%; height: 100%; object-fit: cover; }
.rotulo-media .placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink);
  background-image: linear-gradient(var(--rule-soft) 1px, transparent 1px), linear-gradient(90deg, var(--rule-soft) 1px, transparent 1px); background-size: 16px 16px; }
.rotulo-media .placeholder span { font-size: 2.4rem; font-weight: 750; font-variation-settings: "wdth" 125; }
.rotulo-table { display: grid; grid-template-columns: 1fr 1fr; font-size: 13px; }
.rotulo-table > div { padding: 8px 12px; border-top: 1px solid var(--rule); }
.rotulo-table > div:nth-child(even) { border-left: 1px solid var(--rule); }
.rotulo-table .full { grid-column: 1 / -1; border-left: 0 !important; border-top: 0; padding: 14px 12px 12px; }
.rotulo-table small { display: block; color: var(--muted); font-size: 11px; line-height: 1.2; }
.rotulo-title { font-size: 1.05rem; font-weight: 650; color: var(--night); font-variation-settings: "wdth" 110; line-height: 1.25; }
.rotulo-sub { color: var(--muted); font-size: 13px; margin-top: 4px; }
.price { font-weight: 700; color: var(--night); font-variant-numeric: tabular-nums; }
.price s { color: var(--muted); font-weight: 400; margin-left: 8px; font-size: .55em; }
.tag-marker { position: absolute; top: 12px; left: 12px; background: var(--marker); color: var(--night); font-size: 12px; font-weight: 700; padding: 3px 8px; }

/* Filtros */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.chip { padding: 6px 12px; border: 1px solid var(--rule); background: var(--sheet); border-radius: var(--r-md); font-size: 14px; text-decoration: none; color: var(--graphite); }
.chip[aria-current="true"] { border-color: var(--ink); color: var(--ink); font-weight: 600; }

/* Producto */
.product { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); padding: clamp(28px, 5vw, 56px) 0; }
@media (max-width: 860px) { .product { grid-template-columns: 1fr; } }
.gallery-main { background: var(--sheet); border: 1px solid var(--graphite); aspect-ratio: 4 / 3; overflow: hidden; position: relative; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; background: var(--sheet); }
.thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.thumbs button { width: 72px; height: 54px; padding: 0; border: 1px solid var(--rule); background: var(--sheet); cursor: pointer; }
.thumbs button[aria-pressed="true"] { border-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-info h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.product-info .lead { margin: 12px 0 0; }
.buybox { margin: 24px 0; padding: 20px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.buybox .price { font-size: 1.9rem; }
.buybox .note { font-size: 14px; color: var(--muted); margin: 6px 0 18px; }
.qty { display: inline-flex; border: 1px solid var(--rule); margin-right: 10px; }
.qty button { width: 40px; border: 0; background: var(--sheet); font: inherit; font-size: 18px; cursor: pointer; }
.qty input { width: 44px; border: 0; text-align: center; font: inherit; }
.ficha { border: 1px solid var(--graphite); background: var(--sheet); margin-top: 24px; }
.ficha h2 { font-size: 1rem; padding: 10px 14px; border-bottom: 1px solid var(--graphite); font-variation-settings: "wdth" 110; }
.ficha dl { margin: 0; display: grid; grid-template-columns: minmax(110px, 38%) 1fr; font-size: 14px; }
.ficha dt, .ficha dd { margin: 0; padding: 8px 14px; border-top: 1px solid var(--rule-soft); }
.ficha dt { color: var(--muted); border-right: 1px solid var(--rule-soft); }
.ficha dl > :nth-child(-n+2) { border-top: 0; }
.prose { max-width: 70ch; }
.prose h2 { margin: 1.6em 0 .5em; font-size: 1.35rem; }
.prose h3 { margin: 1.4em 0 .4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin: .25em 0; }

/* Pasos (es una secuencia real: elegís, pagás, recibís) */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); border: 1px solid var(--graphite); background: var(--sheet); }
.steps li { list-style: none; padding: 22px; border-left: 1px solid var(--rule); counter-increment: step; }
.steps li:first-child { border-left: 0; }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--ink); color: var(--ink); font-weight: 700; margin-bottom: 12px; }
.steps { counter-reset: step; padding: 0; margin: 0; }
@media (max-width: 720px) { .steps li { border-left: 0; border-top: 1px solid var(--rule); } .steps li:first-child { border-top: 0; } }

/* Preguntas */
.faq details { border-top: 1px solid var(--rule); padding: 16px 0; }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; font-weight: 600; color: var(--night); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; color: var(--ink); font-weight: 400; font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 10px 0 0; color: var(--muted); }

/* Carrito y checkout */
.checkout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); padding: clamp(28px, 5vw, 56px) 0; align-items: start; }
@media (max-width: 900px) { .checkout { grid-template-columns: 1fr; } }
.panel { background: var(--sheet); border: 1px solid var(--rule); padding: clamp(18px, 3vw, 28px); }
.panel + .panel { margin-top: 20px; }
.panel h2 { font-size: 1.15rem; margin-bottom: 16px; font-variation-settings: "wdth" 115; }
.line { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--rule-soft); }
.line:first-child { border-top: 0; }
.line img, .line .ph { width: 56px; height: 42px; object-fit: cover; background: var(--paper); border: 1px solid var(--rule); }
.line-title { font-weight: 600; color: var(--night); font-size: 15px; }
.line-meta { font-size: 13px; color: var(--muted); display: flex; gap: 10px; align-items: center; }
.line-meta button { border: 0; background: none; color: var(--muted); text-decoration: underline; cursor: pointer; padding: 0; font: inherit; }
.totals { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; font-size: 15px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--rule); }
.totals .grand { font-size: 1.25rem; font-weight: 700; color: var(--night); padding-top: 8px; border-top: 1px solid var(--rule); }
.totals .save { color: var(--ok); }
.field { display: grid; gap: 6px; margin-bottom: 14px; align-content: start; }
.coupon input::placeholder { text-transform: none; }
.field label { font-size: 14px; font-weight: 600; color: var(--night); }
.field input, .field select, .field textarea { font: inherit; padding: 11px 12px; border: 1px solid var(--rule); background: #fff; border-radius: var(--r-md); color: var(--graphite); width: 100%; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--ink); outline: 1px solid var(--ink); }
.field .hint { font-size: 13px; color: var(--muted); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }
.methods { display: grid; gap: 10px; }
.method { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--rule); background: #fff; cursor: pointer; }
.method:has(input:checked) { border-color: var(--ink); box-shadow: inset 3px 0 0 var(--ink); }
.method b { color: var(--night); display: block; }
.method small { color: var(--muted); }
.method .badge { background: var(--marker); color: var(--night); font-size: 12px; font-weight: 700; padding: 2px 8px; }
.coupon { display: flex; gap: 8px; margin-top: 12px; }
.coupon input { flex: 1; font: inherit; padding: 9px 10px; border: 1px solid var(--rule); text-transform: uppercase; }
.coupon button { font: inherit; padding: 0 14px; border: 1px solid var(--ink); background: #fff; color: var(--ink); cursor: pointer; }
.alert { padding: 12px 14px; border-left: 3px solid var(--danger); background: #fdf1f0; color: var(--danger); font-size: 14px; margin-bottom: 14px; }
.alert.ok { border-color: var(--ok); background: #eef7f1; color: var(--ok); }
.alert.info { border-color: var(--ink); background: #eef3fa; color: var(--night); }
.empty { text-align: center; padding: 48px 16px; }
.secure { font-size: 13px; color: var(--muted); margin-top: 12px; display: flex; gap: 8px; align-items: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Página de pedido */
.order-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.status { display: inline-block; padding: 4px 10px; font-size: 13px; font-weight: 700; border: 1px solid currentColor; }
.status.paid, .status.fulfilled { color: var(--ok); }
.status.pending, .status.awaiting_transfer, .status.transfer_review { color: var(--warn); }
.status.cancelled, .status.refunded { color: var(--danger); }
.bank { display: grid; grid-template-columns: auto 1fr auto; gap: 8px 16px; align-items: center; font-size: 15px; }
.bank dt { color: var(--muted); }
.bank dd { margin: 0; font-weight: 600; color: var(--night); word-break: break-all; }
.copy { border: 1px solid var(--rule); background: #fff; font: inherit; font-size: 13px; padding: 4px 10px; cursor: pointer; }
.dl { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--rule-soft); }
.dl:first-child { border-top: 0; }
.dl small { color: var(--muted); display: block; }

/* Pie */
.site-footer { background: var(--night); color: #c9d3e3; margin-top: clamp(40px, 6vw, 80px); padding: 48px 0 32px; font-size: 14px; }
.site-footer a { color: #fff; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
@media (max-width: 720px) { .site-footer .cols { grid-template-columns: 1fr; } }
.site-footer h3 { color: #fff; font-size: 15px; margin-bottom: 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer .legal { border-top: 1px solid rgba(255,255,255,.14); margin-top: 32px; padding-top: 18px; color: #94a3bb; font-size: 13px; }
.site-footer .brandline { font-size: 1.25rem; font-weight: 750; color: #fff; font-variation-settings: "wdth" 125; margin-bottom: 8px; }
.site-footer .brandline::after { content: ""; display: block; width: 40px; height: 3px; background: var(--marker); margin-top: 10px; }

/* Aviso flotante del carrito */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--night); color: #fff; padding: 12px 16px; font-size: 14px;
  display: flex; gap: 16px; align-items: center; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 50; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { color: var(--marker); font-weight: 600; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Bordes redondeados en toda la tienda */
.rotulo { border-radius: var(--r-lg); overflow: hidden; border-color: #c3ccd8; }
.rotulo:hover { border-color: var(--ink); }
.rotulo-media { border-bottom-color: #c3ccd8; }
.gallery-main { border-radius: var(--r-lg); border-color: #c3ccd8; }
.thumbs button { border-radius: var(--r-sm); overflow: hidden; }
.ficha { border-radius: var(--r-lg); overflow: hidden; border-color: #c3ccd8; }
.ficha h2 { border-bottom-color: #c3ccd8; }
.steps { border-radius: var(--r-lg); overflow: hidden; border-color: #c3ccd8; }
.panel { border-radius: var(--r-lg); }
.method { border-radius: var(--r-md); }
.method:has(input:checked) { box-shadow: 0 0 0 1px var(--ink); }
.coupon input, .coupon button { border-radius: var(--r-md); }
.alert { border-radius: var(--r-md); border-left-width: 4px; }
.status, .chip, .tag-marker, .cart-count { border-radius: 999px; }
.status { padding: 4px 12px; }
.copy { border-radius: var(--r-sm); }
.qty { border-radius: var(--r-md); overflow: hidden; margin-right: 10px; }
.line img, .line .ph { border-radius: var(--r-sm); }
.toast { border-radius: var(--r-md); }
.faq details { padding: 16px 4px; }
.site-footer .brandline::after { border-radius: 999px; }
