:root {
  --black: #000000;
  --white: #ffffff;
  --red: #e42036;
  --grey: #8a8a8a;
  --line: #2a2a2a;
  --mono: "Courier Prime", "Courier New", monospace;
  --sans: "Jost", "Futura", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--black); }
body {
  background: var(--black);
  color: var(--white);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
main { flex: 1; }

/* Marquee */
.announce { border-bottom: 1px solid var(--line); overflow: hidden; white-space: nowrap; padding: 8px 0; font-size: 13px; letter-spacing: .04em; }
.announce__track { display: inline-block; padding-left: 100%; animation: scroll 28s linear infinite; }
@keyframes scroll { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .announce__track { animation: none; padding-left: 16px; } }

/* Header */
.header { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 18px 24px; }
.header__nav { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 13px; }
.header__nav a:hover, .header__nav a[aria-current="page"] { color: var(--red); }
.header__logo img { height: 64px; width: auto; }
.header__cart { justify-self: end; font-size: 13px; display: flex; gap: 8px; align-items: center; }
.header__cart:hover { color: var(--red); }
.cart-count { border: 1px solid var(--white); border-radius: 50%; min-width: 22px; height: 22px; display: inline-grid; place-items: center; font-size: 12px; }

/* Hero */
.hero { text-align: center; padding: 56px 24px 40px; }
.hero__img { width: min(340px, 70vw); margin: 0 auto 28px; }
.hero h1 { font-family: var(--sans); font-weight: 700; letter-spacing: .14em; font-size: clamp(22px, 4vw, 34px); text-transform: uppercase; }
.hero p { color: var(--grey); margin: 10px auto 26px; max-width: 46ch; }

/* Buttons */
.btn { display: inline-block; font-family: var(--sans); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: 14px; border: 1px solid var(--white); border-radius: 999px; padding: 12px 28px; background: transparent; transition: background .15s, color .15s, border-color .15s; }
.btn:hover { background: var(--white); color: var(--black); }
.btn--solid { background: var(--red); border-color: var(--red); }
.btn--solid:hover { background: var(--white); border-color: var(--white); color: var(--black); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn[disabled]:hover { background: transparent; color: inherit; }
.btn--block { display: block; width: 100%; text-align: center; }

/* Sections */
.section { padding: 36px 24px 64px; max-width: 1240px; margin: 0 auto; width: 100%; }
.section__title { font-family: var(--sans); text-transform: uppercase; letter-spacing: .18em; font-size: 14px; margin-bottom: 24px; display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.section__title a:hover { color: var(--red); }

/* Product grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px; }
.card { display: block; }
.card__media { position: relative; aspect-ratio: 4 / 5; background: var(--black); border: 1px solid var(--line); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: opacity .25s; }
.card__media img + img { position: absolute; inset: 0; opacity: 0; }
.card:hover .card__media img + img { opacity: 1; }
.card__body { padding-top: 12px; display: flex; justify-content: space-between; gap: 12px; }
.card__name { font-family: var(--sans); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: 14px; }
.card__variant { color: var(--grey); font-size: 13px; }
.card__price { white-space: nowrap; }
.badge { position: absolute; top: 10px; left: 10px; z-index: 1; font-family: var(--sans); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; background: var(--red); padding: 3px 8px; }

/* PDP */
.pdp { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; }
.gallery__main { aspect-ratio: 4 / 5; border: 1px solid var(--line); background: var(--black); display: grid; place-items: center; overflow: hidden; }
.gallery__main img { width: 100%; height: 100%; object-fit: contain; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; }
.thumb { aspect-ratio: 1; border: 1px solid var(--line); background: #0b0b0b; padding: 0; overflow: hidden; display: grid; place-items: center; }
.thumb[aria-current="true"] { border-color: var(--red); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb__label, .placeholder { color: var(--grey); font-size: 12px; text-align: center; padding: 12px; letter-spacing: .06em; text-transform: uppercase; }
.placeholder { border: 1px dashed var(--grey); margin: 16px; padding: 22px; }
.pdp__info h1 { font-family: var(--sans); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: clamp(24px, 3vw, 32px); }
.pdp__variant { color: var(--grey); margin-top: 4px; }
.pdp__price { font-size: 22px; margin: 18px 0; }
.pdp__desc { color: #cfcfcf; margin-bottom: 24px; max-width: 52ch; }
.label { font-family: var(--sans); text-transform: uppercase; letter-spacing: .14em; font-size: 12px; color: var(--grey); margin-bottom: 8px; display: block; }
.sizes { display: flex; gap: 10px; margin-bottom: 8px; }
.size { min-width: 56px; padding: 10px 0; text-align: center; border: 1px solid var(--line); background: transparent; font-family: var(--sans); letter-spacing: .1em; }
.size:hover { border-color: var(--white); }
.size[aria-pressed="true"] { background: var(--white); color: var(--black); border-color: var(--white); }
.hint { font-size: 13px; color: var(--grey); min-height: 20px; margin-bottom: 18px; }
.hint--error { color: var(--red); }
.meta { margin-top: 28px; border-top: 1px solid var(--line); }
.meta p { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13px; color: #cfcfcf; display: flex; justify-content: space-between; gap: 16px; }

/* Cart / checkout */
.page-title { font-family: var(--sans); text-transform: uppercase; letter-spacing: .16em; font-size: 22px; margin-bottom: 28px; }
.layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.line { display: grid; grid-template-columns: 88px 1fr auto; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line img { width: 88px; aspect-ratio: 4 / 5; object-fit: cover; border: 1px solid var(--line); }
.line__name { font-family: var(--sans); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: 14px; }
.line__sub { color: var(--grey); font-size: 13px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); margin-top: 10px; }
.qty button { background: none; border: 0; width: 32px; height: 32px; }
.qty button:hover { color: var(--red); }
.qty span { min-width: 28px; text-align: center; }
.linklike { background: none; border: 0; color: var(--grey); text-decoration: underline; font-size: 13px; margin-left: 14px; }
.linklike:hover { color: var(--red); }
.summary { border: 1px solid var(--line); padding: 24px; position: sticky; top: 16px; }
.summary h2 { font-family: var(--sans); text-transform: uppercase; letter-spacing: .16em; font-size: 14px; margin-bottom: 16px; }
.row { display: flex; justify-content: space-between; padding: 6px 0; gap: 12px; }
.row--total { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 14px; font-size: 18px; }
.empty { color: var(--grey); padding: 40px 0; }

form.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--sans); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--grey); }
.field input, .field select { background: #0b0b0b; color: var(--white); border: 1px solid var(--line); padding: 12px; font: inherit; border-radius: 0; }
.field input:focus, .field select:focus { outline: 1px solid var(--red); border-color: var(--red); }
fieldset { border: 0; display: contents; }
legend { font-family: var(--sans); text-transform: uppercase; letter-spacing: .16em; font-size: 14px; grid-column: 1 / -1; margin: 18px 0 2px; }
.notice { border: 1px dashed var(--red); padding: 14px; font-size: 13px; margin-top: 16px; color: #e8e8e8; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 28px 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--grey); }

:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

@media (max-width: 860px) {
  /* El logo WACO siempre va centrado, también en móvil */
  .header { grid-template-columns: 1fr auto 1fr; gap: 8px; padding: 14px 16px; }
  .header__logo { justify-self: center; }
  .header__logo img { height: 46px; }
  .header__cart { font-size: 12px; gap: 6px; }
  .pdp, .layout { grid-template-columns: 1fr; gap: 32px; }
  .summary { position: static; }
  form.fields { grid-template-columns: 1fr; }
}

.is-light { background: #ffffff !important; }
.card__media.is-light img, .gallery__main.is-light img { object-fit: contain; }

/* Playeras al mismo tamaño visual que Ghost Drip (escala por producto en app.js) */
img.shirt { transform: scale(var(--s, 1)); }
.line { overflow: hidden; }
.line img.shirt { transform-origin: center; }

/* Cupón (checkout) */
.coupon { margin: 20px 0; }
.coupon__row { display: flex; gap: 10px; }
.coupon__row input { flex: 1; min-width: 0; background: #0b0b0b; color: var(--white); border: 1px solid var(--line); padding: 12px; font: inherit; text-transform: uppercase; border-radius: 0; }
.coupon__row input:focus { outline: 1px solid var(--red); border-color: var(--red); }
.coupon .btn { padding: 12px 20px; }
.coupon .hint { margin: 8px 0 0; }
.row--discount { color: var(--red); }

/* ---------- Ampliación del sitio (nav, footer, filtros, contenido) ---------- */
.skip { position: absolute; left: -999px; top: 0; background: var(--red); padding: 8px 14px; z-index: 10; }
.skip:focus { left: 0; }
.header__tools { justify-self: end; display: flex; gap: 18px; align-items: center; font-size: 13px; }
.header__tools a:hover, .header__tools a[aria-current="page"] { color: var(--red); }
.header__burger { display: none; background: none; border: 0; width: 36px; height: 36px; padding: 6px; flex-direction: column; justify-content: center; gap: 5px; }
.header__burger span { display: block; height: 2px; background: var(--white); }

.footer { flex-direction: column; gap: 24px; padding: 40px 24px 28px; }
.footer__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; max-width: 1240px; width: 100%; }
.footer h2 { font-family: var(--sans); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--white); margin-bottom: 10px; }
.footer a { display: block; padding: 3px 0; }
.footer a:hover { color: var(--red); }

.filters { display: flex; flex-wrap: wrap; gap: 14px; align-items: end; margin-bottom: 8px; }
.filters .field { min-width: 150px; }
.subhead { font-family: var(--sans); text-transform: uppercase; letter-spacing: .16em; font-size: 13px; color: var(--grey); margin: 28px 0 16px; }
.notice { border: 1px dashed var(--red); padding: 12px 14px; font-size: 13px; margin: 0 0 20px; color: #e8e8e8; }
.tag { font-family: var(--sans); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; border: 1px solid var(--red); color: var(--red); padding: 1px 6px; margin-left: 6px; vertical-align: middle; }
.lead { font-size: 18px; max-width: 60ch; margin-bottom: 24px; }
.doc { margin-bottom: 28px; max-width: 70ch; }
.doc h2 { font-family: var(--sans); text-transform: uppercase; letter-spacing: .14em; font-size: 15px; margin-bottom: 10px; }
.doc p { color: #cfcfcf; margin-bottom: 8px; }
.plain { list-style: none; color: #cfcfcf; margin-bottom: 16px; }
.plain li { padding: 4px 0; }
ol.plain { list-style: decimal inside; }
.pdp__links, .fitnote { color: var(--grey); font-size: 13px; margin-top: 16px; }
.pdp__links a { text-decoration: underline; }
.pdp__links a:hover { color: var(--red); }
.related { max-width: 1240px; margin: 0 auto; padding: 0 24px 64px; width: 100%; }

.acc { border-bottom: 1px solid var(--line); }
.acc__btn { width: 100%; text-align: left; background: none; border: 0; padding: 14px 0; display: flex; justify-content: space-between; gap: 16px; font-family: var(--sans); font-weight: 600; letter-spacing: .06em; font-size: 15px; }
.acc__btn:hover { color: var(--red); }
.acc__panel { padding: 0 0 16px; color: #cfcfcf; }

.tablewrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; max-width: 520px; }
th, td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; font-size: 14px; }
th { font-family: var(--sans); text-transform: uppercase; letter-spacing: .1em; font-size: 12px; color: var(--grey); }

textarea { background: #0b0b0b; color: var(--white); border: 1px solid var(--line); padding: 12px; font: inherit; border-radius: 0; resize: vertical; }
textarea:focus, .searchbox:focus { outline: 1px solid var(--red); border-color: var(--red); }
.searchbox { width: 100%; max-width: 520px; background: #0b0b0b; color: var(--white); border: 1px solid var(--line); padding: 12px; font: inherit; border-radius: 0; margin-bottom: 24px; }
.chans a { text-decoration: underline; }
.chans a:hover { color: var(--red); }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-bottom: 8px; }
.tile { position: relative; aspect-ratio: 16 / 9; border: 1px solid var(--line); overflow: hidden; display: grid; place-items: center; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; transition: opacity .2s; }
.tile:hover img { opacity: .85; }
.tile span { position: relative; font-family: var(--sans); font-weight: 700; letter-spacing: .18em; text-transform: uppercase; font-size: clamp(20px, 3vw, 30px); }
.feature { display: grid; grid-template-columns: minmax(0, 320px) 1fr; gap: 32px; align-items: center; }
.feature img { width: 100%; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--line); }
.feature h3 { font-family: var(--sans); letter-spacing: .1em; text-transform: uppercase; font-size: 22px; }
.feature p { margin: 8px 0 18px; }
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.mosaic img { width: 100%; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--line); }
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 720px; margin-bottom: 28px; }
.about img { width: 100%; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--line); }
.tile img.shirt { object-fit: contain; }

@media (max-width: 860px) {
  .header { grid-template-columns: auto 1fr auto; }
  .header__burger { display: flex; }
  .header__logo { grid-column: 2; }
  .header__nav { display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 5; background: var(--black); border-bottom: 1px solid var(--line); padding: 12px 16px; flex-direction: column; gap: 10px; font-size: 14px; }
  .header__nav.is-open { display: flex; }
  .header { position: relative; }
  .header__tools { gap: 10px; font-size: 12px; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .feature { grid-template-columns: 1fr; }
  .mosaic { grid-template-columns: repeat(2, 1fr); }
  .tiles { grid-template-columns: 1fr; }
}

/* Redes sociales y WhatsApp */
.social { display: flex; flex-wrap: wrap; gap: 10px; }
.social--col { margin-top: 12px; }
.social__btn { display: inline-flex !important; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px !important; color: var(--white); font-family: var(--sans); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.social__btn svg { width: 18px; height: 18px; }
.social__btn:hover { border-color: var(--red); color: var(--red) !important; }
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 20; width: 52px; height: 52px; border-radius: 50%; background: var(--red); display: grid; place-items: center; color: var(--white); box-shadow: 0 2px 12px #000a; }
.wa-float svg { width: 28px; height: 28px; }
.wa-float:hover { background: var(--white); color: var(--black); }

/* Cabecera: logo siempre centrado (escritorio y móvil); carrito a la derecha */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.header { grid-template-columns: 1fr auto 1fr !important; }
.header__burger { grid-column: 1; justify-self: start; }
.header__nav { grid-column: 1; }
.header__logo { grid-column: 2 !important; justify-self: center; }
.header__tools { grid-column: 3; justify-self: end; }
.hero__cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
.hero { padding-bottom: 28px; }
.size--wide { min-width: 0; padding: 10px 16px; }
.sizes { flex-wrap: wrap; }
@media (max-width: 860px) {
  .header { padding: 12px 14px; }
  .header__logo img { height: 44px; }
  .header__nav a, .header__burger, .header__cart { min-height: 44px; display: flex; align-items: center; }
  .section { padding: 24px 16px 48px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .card__body { flex-direction: column; gap: 4px; }
  .card__name { font-size: 12px; }
  .card__variant { font-size: 12px; }
  .hero { padding: 32px 16px 24px; }
  .btn { padding: 12px 22px; }
  .line { grid-template-columns: 72px 1fr auto; gap: 12px; }
  .line img { width: 72px; }
  .coupon__row { flex-direction: column; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .wa-float { right: 14px; bottom: 14px; }
}
@media (max-width: 420px) { .btn { font-size: 13px; letter-spacing: .1em; } }
.header__burger span { width: 100%; }
@media (max-width: 860px) { .header__burger { align-items: stretch !important; } }

/* Mensajes de éxito: rojo con check al final */
.hint--ok { color: var(--red); }
.ok { display: inline-grid; place-items: center; width: 18px; height: 18px; border: 1px solid var(--red); border-radius: 50%; font-size: 12px; line-height: 1; vertical-align: middle; margin-left: 2px; }
.thanks { border: 1px solid var(--red); padding: 20px; margin-bottom: 28px; max-width: 760px; }
.thanks h2 { font-family: var(--sans); text-transform: uppercase; letter-spacing: .12em; font-size: 18px; margin-bottom: 10px; color: var(--red); }
.thanks p { color: #e8e8e8; margin-bottom: 8px; }
.line--plain { grid-template-columns: 1fr auto; }

.empty--red { color: var(--red); font-family: var(--sans); letter-spacing: .06em; }
.linklike--red { color: var(--red) !important; }

/* Enlaces y títulos h2 en rojo (los botones, tarjetas de producto, accesos de imagen, logo y redes mantienen su estilo) */
h2 { color: var(--red); }
a:not(.btn):not(.card):not(.tile):not(.header__logo):not(.social__btn):not(.wa-float):not(.skip) { color: var(--red); }
a:not(.btn):not(.card):not(.tile):not(.header__logo):not(.social__btn):not(.wa-float):not(.skip):hover { color: var(--white); }
.header__nav a:hover, .header__nav a[aria-current="page"], .section__title a:hover, .footer a:hover, .header__tools a:hover, .header__cart:hover { color: var(--white); }
.header__nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
.linklike { color: var(--red); }
.linklike:hover { color: var(--white); }

/* Existencias y próximamente */
.card--soon { cursor: default; }
.card--soon .card__media { display: grid; place-items: center; background: #000; border: 1px solid var(--line); }
.card--soon .card__media span { font-family: var(--sans); font-weight: 600; letter-spacing: .22em; text-transform: uppercase; font-size: 13px; color: var(--grey); }
.soon-tag { display: inline-block; border: 1px solid var(--red); color: var(--red); font-family: var(--sans); text-transform: uppercase; letter-spacing: .12em; font-size: 12px; padding: 6px 12px; margin: 0 0 16px; }
.size[disabled], .qty button[disabled] { opacity: .4; cursor: not-allowed; }
.size[disabled]:hover { border-color: var(--line); }
.hint--inline { display: inline; margin: 0 0 0 10px; }
.badge { max-width: calc(100% - 20px); }
