/* Pa'carriba — tienda. Una sola apariencia clara, como las tiendas técnicas de referencia:
   foto de estudio, mucho aire, tipografía grotesca ancha en titulares. La voz pone el calor. */
:root {
  --paper: #F5F4F0;
  --surface: #FFFFFF;
  --ink: #17201B;
  --muted: #5D6862;
  --line: #DCDDD6;
  --brand: #22483A;      /* verde páramo */
  --brand-2: #2F5F4C;
  --sun: #E39B2D;        /* amanecer */
  --sale: #B5432F;
  --ok: #2F7A45;
  --f-head: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --max: 1320px;
  --gut: max(16px, env(safe-area-inset-left, 0px));
  --gut-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}
* { box-sizing: border-box }
html { -webkit-text-size-adjust: 100% }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.55 var(--f-body); }
img, svg { max-width: 100%; display: block }
a { color: inherit }
button { font: inherit; color: inherit }
:focus-visible { outline: 2px solid var(--sun); outline-offset: 2px }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut-r) }
h1, h2, h3 { font-family: var(--f-head); font-stretch: 112%; line-height: 1.05; margin: 0; text-wrap: balance; letter-spacing: -.01em }
p { margin: 0 }
.eyebrow { font: 600 12px/1.2 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted) }
.mono { font-family: var(--f-mono) }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0) }

/* Barra de anuncios */
.promo { background: var(--brand); color: #fff; font-size: 13px; text-align: center; padding-block: 8px }
.promo .wrap { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap }

/* Encabezado */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(245,244,240,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line) }
.top .wrap { display: flex; align-items: center; gap: 28px; min-height: 64px }
.logo { font: 900 22px/1 var(--f-head); font-stretch: 125%; text-decoration: none; letter-spacing: -.02em; display: inline-flex; align-items: baseline; white-space: nowrap }
.logo .tick { display: inline-block; width: .42em; height: .42em; background: var(--sun); clip-path: polygon(50% 0, 100% 100%, 0 100%); margin: 0 .04em; transform: translateY(-.55em) }
.nav { display: flex; gap: 22px; font-weight: 600; font-size: 15px }
.nav > div { position: relative }
.nav a, .nav button { display: inline-block; text-decoration: none; background: none; border: 0; padding: 22px 0; cursor: pointer }
.nav a:hover, .nav button:hover { color: var(--brand-2) }
.mega { position: absolute; top: 100%; left: -20px; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 18px 20px; display: none; min-width: 300px; box-shadow: 0 12px 30px rgba(23,32,27,.08) }
.nav > div:hover .mega, .nav > div:focus-within .mega { display: grid; gap: 4px }
.mega a { padding: 6px 0; font-weight: 500; display: flex; justify-content: space-between; gap: 18px }
.mega a small { color: var(--muted); font: 400 12px var(--f-mono) }
.tools { margin-left: auto; display: flex; gap: 10px; align-items: center }
.icon-btn { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; padding: 8px 12px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); font-weight: 600; font-size: 14px; cursor: pointer }
.icon-btn svg { width: 18px; height: 18px }
.count { min-width: 20px; height: 20px; border-radius: 99px; background: var(--ink); color: #fff; font: 600 11px/20px var(--f-mono); text-align: center; padding: 0 5px }
.menu-btn { display: none }
@media (max-width: 900px) {
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--line); flex-direction: column; gap: 0; padding: 8px var(--gut-r) 16px var(--gut) }
  .nav.open { display: flex }
  .nav a, .nav button { padding: 12px 0; text-align: left }
  .mega { position: static; display: grid; border: 0; box-shadow: none; padding: 0 0 8px 12px; min-width: 0 }
  .menu-btn { display: inline-flex }
  .wa-txt { display: none }
}

/* Héroe */
.hero { position: relative; overflow: hidden; background: #0f1a15; color: #fff }
.hero svg.paisaje { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover }
.hero .wrap { position: relative; padding-block: clamp(80px, 14vw, 170px) clamp(56px, 9vw, 110px); display: grid; gap: 18px }
.hero h1 { font-size: clamp(2.6rem, 7.2vw, 6rem); font-weight: 900; font-stretch: 118%; max-width: 13ch; letter-spacing: -.025em }
.hero p { font-size: clamp(1.05rem, 1.6vw, 1.3rem); max-width: 46ch; color: #e8ece7 }
.hero .eyebrow { color: #f3d9a6 }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 22px; border-radius: 3px; font-weight: 700; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; font-size: 15px; letter-spacing: .01em }
.btn svg { width: 18px; height: 18px; flex: none }
.btn-sun { background: var(--sun); color: var(--ink) }
.btn-sun:hover { background: #f0ab3c }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff }
.btn-ghost:hover { background: rgba(255,255,255,.1) }
.btn-ink { background: var(--ink); color: #fff }
.btn-ink:hover { background: var(--brand) }
.btn-line { border-color: var(--ink); background: transparent }
.btn-line:hover { background: var(--ink); color: #fff }
.btn-wa { background: #1f8a4c; color: #fff }
.btn-wa:hover { background: #18723e }
.btn[disabled] { opacity: .45; cursor: not-allowed }

/* Secciones */
.sec { padding-block: clamp(48px, 7vw, 88px) }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 28px }
.sec-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-weight: 800 }
.sec-head p { color: var(--muted); max-width: 52ch }
.link-more { font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--sun); padding-bottom: 2px; white-space: nowrap }

/* Salidas */
.salidas { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 14px }
.salida { position: relative; min-height: 240px; border-radius: 4px; overflow: hidden; color: #fff; text-decoration: none; display: flex; flex-direction: column; justify-content: flex-end; padding: 20px; isolation: isolate }
.salida svg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; transition: transform .5s ease }
.salida:hover svg { transform: scale(1.04) }
.salida h3 { font-size: 1.7rem; font-weight: 800 }
.salida .alt { font: 500 12px var(--f-mono); opacity: .9 }
.salida p { font-size: .95rem; margin-top: 6px; max-width: 32ch; opacity: .95 }

/* Grilla de producto */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 28px 18px }
.card { text-decoration: none; display: grid; gap: 10px; align-content: start; min-width: 0 }
.card .ph { position: relative; aspect-ratio: 1; border-radius: 3px; overflow: hidden; background: #ecebe6 }
.card .ph svg, .card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease }
.card:hover .ph svg, .card:hover .ph img { transform: scale(1.03) }
.badge { position: absolute; top: 10px; left: 10px; background: var(--surface); font: 600 11px/1 var(--f-mono); padding: 6px 8px; border-radius: 2px; text-transform: uppercase; letter-spacing: .05em }
.badge.sale { background: var(--sale); color: #fff }
.badge.out { background: var(--ink); color: #fff }
.card .brand { font: 600 12px var(--f-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em }
.card .name { font-weight: 600; line-height: 1.3 }
.price { font-variant-numeric: tabular-nums; font-weight: 700; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap }
.price s { color: var(--muted); font-weight: 400; font-size: .9em }
.price .now.sale { color: var(--sale) }
.card .swatch-row { display: flex; gap: 6px }
.card .dot { width: 12px; height: 12px; border-radius: 99px; border: 1px solid var(--line) }

/* Promesas */
.promesas { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line) }
.promesa { background: var(--surface); padding: 24px; display: grid; gap: 6px; align-content: start }
.promesa strong { font-size: 1.05rem }
.promesa p { color: var(--muted); font-size: .95rem }

/* Bloque marca propia */
.propia { background: var(--ink); color: #f1efe8 }
.propia .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding-block: clamp(56px, 8vw, 100px) }
.propia h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 900 }
.propia p { color: #c9cec8; max-width: 48ch; margin-top: 14px }
.propia .sello { aspect-ratio: 1; max-width: 360px; width: 100%; justify-self: center }
@media (max-width: 800px) { .propia .wrap { grid-template-columns: 1fr } }

.marcas { display: flex; flex-wrap: wrap; gap: 10px 34px; align-items: center; justify-content: center; font: 800 1.35rem/1 var(--f-head); font-stretch: 120%; color: #7a837d; padding-block: 36px; border-block: 1px solid var(--line) }
.marcas a { text-decoration: none }
.marcas a:hover { color: var(--ink) }

/* Listado */
.crumbs { font: 500 13px var(--f-mono); color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; padding-top: 22px }
.crumbs a { text-decoration: none } .crumbs a:hover { color: var(--ink) }
.col-head { padding-block: 18px 30px; display: grid; gap: 10px }
.col-head h1 { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 900 }
.col-head .frase { font-size: 1.2rem; max-width: 52ch }
.col-head .desc { color: var(--muted); max-width: 64ch }
.col-layout { display: grid; grid-template-columns: 240px 1fr; gap: 36px; padding-bottom: 80px }
.filtros { display: grid; gap: 22px; align-content: start; position: sticky; top: 90px }
.filtros fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px }
.filtros legend { font: 600 12px var(--f-mono); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; color: var(--muted) }
.filtros label { display: flex; gap: 8px; align-items: center; font-size: 15px; cursor: pointer }
.filtros input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--brand) }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; font-size: 14px; color: var(--muted) }
select { font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 3px; background: var(--surface); color: var(--ink) }
.vacio { padding: 40px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 4px }
.filtros-btn { display: none }
@media (max-width: 860px) {
  .col-layout { grid-template-columns: 1fr }
  .filtros { position: static; display: none; background: var(--surface); padding: 18px; border: 1px solid var(--line); border-radius: 4px }
  .filtros.open { display: grid }
  .filtros-btn { display: inline-flex }
}

/* Producto */
.pdp { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); padding-block: 18px 64px }
.gal { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-content: start }
.gal > * { aspect-ratio: 1; border-radius: 3px; overflow: hidden; background: #ecebe6 }
.gal > *:first-child { grid-column: 1 / -1 }
.gal svg, .gal img { width: 100%; height: 100%; object-fit: cover }
.buy { display: grid; gap: 18px; align-content: start; position: sticky; top: 90px }
.buy h1 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 800 }
.buy .brand { font: 600 13px var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); text-decoration: none }
.buy .price { font-size: 1.5rem }
.buy .ce { font-size: 14px; color: var(--muted) }
.cristiano { background: #fff7e8; border-left: 3px solid var(--sun); padding: 14px 16px; font-size: 1.02rem }
.cristiano b { display: block; font: 600 11px var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: #9a6413; margin-bottom: 4px }
.opts { display: grid; gap: 8px }
.opts .lbl { font-weight: 600; font-size: 14px; display: flex; justify-content: space-between }
.opts .lbl a { font-weight: 500; color: var(--muted) }
.chips { display: flex; gap: 8px; flex-wrap: wrap }
.chip { min-width: 52px; padding: 10px 14px; border: 1.5px solid var(--line); background: var(--surface); border-radius: 3px; cursor: pointer; font-weight: 600; font-size: 14px }
.chip[aria-pressed=true] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink) }
.chip.agotado { color: #a5aaa6; text-decoration: line-through }
.stock { font: 500 13px var(--f-mono) }
.stock.low { color: var(--sale) } .stock.ok { color: var(--ok) }
.qty-row { display: flex; gap: 10px; flex-wrap: wrap }
.qty { display: inline-flex; border: 1.5px solid var(--line); border-radius: 3px; background: var(--surface) }
.qty button { width: 42px; border: 0; background: none; font-size: 18px; cursor: pointer }
.qty input { width: 44px; border: 0; text-align: center; font: 600 15px var(--f-body); background: none }
.qty-row .btn { flex: 1; min-width: 180px }
.model { font-size: 14px; color: var(--muted) }
.aviso { font-size: 14px; background: #fbeee9; border-left: 3px solid var(--sale); padding: 10px 12px }
.barras { display: grid; grid-template-columns: auto 1fr auto; gap: 8px 14px; align-items: center; font-size: 14px }
.barras .track { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden }
.barras .fill { height: 100%; background: var(--brand) }
.barras .n { font: 500 12px var(--f-mono); color: var(--muted) }
details { border-top: 1px solid var(--line); padding-block: 14px }
details:last-of-type { border-bottom: 1px solid var(--line) }
summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between }
summary::after { content: "+"; font-weight: 400 }
details[open] summary::after { content: "–" }
details > div { padding-top: 12px; color: var(--muted); font-size: 15px; display: grid; gap: 8px }
.specs { width: 100%; border-collapse: collapse; font-size: 14px }
.specs th, .specs td { text-align: left; padding: 8px 0; border-bottom: 1px solid var(--line); vertical-align: top }
.specs th { font-weight: 500; color: var(--muted); width: 45%; padding-right: 12px }
.specs td { color: var(--ink) }
.salida-tags { display: flex; gap: 8px; flex-wrap: wrap }
.tag { font: 500 12px var(--f-mono); padding: 6px 10px; border: 1px solid var(--line); border-radius: 99px; text-decoration: none; background: var(--surface) }
.tag:hover { border-color: var(--ink) }
@media (max-width: 900px) { .pdp { grid-template-columns: 1fr } .buy { position: static } }

/* Carrito */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; padding-block: 18px 80px; align-items: start }
.lineas { display: grid; gap: 0; border-top: 1px solid var(--line) }
.linea { display: grid; grid-template-columns: 88px 1fr auto; gap: 14px; padding-block: 16px; border-bottom: 1px solid var(--line); align-items: center }
.linea .ph { width: 88px; height: 88px; border-radius: 3px; overflow: hidden; background: #ecebe6 }
.linea .meta { display: grid; gap: 4px; min-width: 0 }
.linea .meta small { color: var(--muted) }
.linea .quitar { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; padding: 0; justify-self: start; font-size: 13px }
.resumen { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 22px; display: grid; gap: 14px; position: sticky; top: 90px }
.resumen .fila { display: flex; justify-content: space-between; font-variant-numeric: tabular-nums }
.resumen .total { font-size: 1.25rem; font-weight: 800; border-top: 1px solid var(--line); padding-top: 12px }
form.checkout { display: grid; gap: 12px }
.campo { display: grid; gap: 5px }
.campo label { font-size: 13px; font-weight: 600 }
.campo input, .campo textarea, .campo select { font: inherit; padding: 11px 12px; border: 1px solid var(--line); border-radius: 3px; background: #fff; width: 100% }
.dos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px }
.pagos { display: grid; gap: 8px }
.pago { display: flex; gap: 10px; align-items: start; padding: 12px; border: 1px solid var(--line); border-radius: 3px; cursor: pointer; background: #fff }
.pago small { display: block; color: var(--muted) }
.pago input { accent-color: var(--brand); margin-top: 4px }
.err { color: var(--sale); font-size: 14px }
@media (max-width: 900px) { .cart-layout { grid-template-columns: 1fr } .resumen { position: static } }
@media (max-width: 480px) { .dos { grid-template-columns: 1fr } }

/* Gracias */
.gracias { padding-block: 80px; display: grid; gap: 16px; max-width: 640px }
.gracias h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 900 }

/* Pie */
.pie { background: #111814; color: #c8cdc8; padding-block: 56px 32px; font-size: 14px }
.pie .wrap { display: grid; gap: 36px }
.pie .cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px }
.pie h4 { color: #fff; font: 600 12px var(--f-mono); text-transform: uppercase; letter-spacing: .08em; margin: 0 0 12px }
.pie a { text-decoration: none; display: block; padding: 3px 0 }
.pie a:hover { color: #fff }
.pie .logo { color: #fff; font-size: 26px }
.pie .legal { border-top: 1px solid #27302b; padding-top: 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: #87908a; font-size: 12px }
@media (max-width: 800px) { .pie .cols { grid-template-columns: 1fr 1fr } }

.nota-demo { background: #fff3d6; color: #6d4a0c; font-size: 13px; text-align: center; padding: 8px 16px }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 4px; font-weight: 600; opacity: 0; pointer-events: none; transition: .25s; z-index: 50; display: flex; gap: 14px; align-items: center }
.toast.show { opacity: 1; transform: translateX(-50%) }
.toast a { color: var(--sun) }

@media (prefers-reduced-motion: reduce) { * { transition: none !important } }

@media (max-width: 600px) {
  .promo span:not(:first-child) { display: none }
  .nota-demo { font-size: 12px }
}
