:root {
  --black: #0a0a0a;
  --white: #ffffff;
  --card: #efefed;
  --line: #e2e2df;
  --muted: #6b6b68;
  --font: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 2.5vw, 32px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--black); background: var(--white); font-size: 14px; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
.muted { color: var(--muted); }
.small { font-size: 12px; }

/* Franja superior */
.marquee { background: var(--black); color: var(--white); overflow: hidden; font-size: 11px; font-weight: 600; letter-spacing: .06em; height: 30px; display: flex; align-items: center; }
.marquee__track { display: flex; gap: 64px; white-space: nowrap; animation: marquee 28s linear infinite; padding-left: 64px; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* Cabecera */
.header { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 14px var(--gutter); background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header__left { display: flex; gap: 24px; font-weight: 500; }
.header__right { display: flex; justify-content: flex-end; }
.header a:hover, .link-btn:hover { opacity: .6; }
/* Logo oficial: se pinta con el color del texto (negro o blanco según el fondo) */
.logo-mark { display: block; aspect-ratio: 1946 / 227; background-color: currentColor;
  -webkit-mask: url("assets/logo.png") center / contain no-repeat; mask: url("assets/logo.png") center / contain no-repeat; }
.logo { display: block; width: clamp(130px, 14vw, 190px); }
.link-btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.cart-btn { position: relative; display: grid; place-items: center; width: 36px; height: 36px; }
.cart-btn:hover { opacity: .6; }
.cart-count { position: absolute; top: 2px; right: 0; display: grid; place-items: center; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px; background: var(--black); color: var(--white); font-size: 10px; font-weight: 600; }
.cart-count:empty, .cart-count[data-zero] { display: none; }

/* Portada */
.hero { position: relative; height: calc(100svh - 30px - 59px); min-height: 460px; overflow: hidden; color: var(--white); display: flex; align-items: flex-end; }
.hero__media { position: absolute; inset: 0; background:
  radial-gradient(ellipse at 50% 35%, #3a3a38 0%, #141414 60%, #050505 100%); }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Degradado abajo para que el texto y el botón se lean sobre el vídeo */
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 35%); }
.hero__content { position: relative; width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: var(--gutter); }
.hero__kicker { font-weight: 600; letter-spacing: .04em; font-size: clamp(13px, 1.4vw, 18px); }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 28px; background: var(--black); color: var(--white); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: 12px; transition: opacity .2s; }
.btn:hover { opacity: .85; }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn--light { background: transparent; color: var(--white); border: 1px solid var(--white); border-radius: 8px; }
.btn--light:hover { background: var(--white); color: var(--black); opacity: 1; }
.btn--block { width: 100%; }

/* Catálogo */
.shop { padding: 48px var(--gutter) 64px; }
.shop__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 20px; }
.shop__head h2 { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
/* Con pocas camisetas: 2 columnas grandes. Cuando haya más, cambiar a repeat(4, 1fr). */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 12px; }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(2, 1fr); } }
.card { cursor: pointer; }
.card__media { position: relative; aspect-ratio: 4 / 5; background: var(--card); overflow: hidden; }
.card__media img, .card__media svg { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__media img, .card:hover .card__media svg { transform: scale(1.04); }
/* Fotos de producto sobre fondo blanco */
.card__media:has(img), .product__gallery:has(img), .line__img:has(img) { background: #fff; }
/* Las fotos traen un fondo casi blanco (≈250): lo llevamos a blanco puro para que no se vea recuadro */
.card__media img, .product__gallery img, .line__img img { filter: brightness(1.03); }
.card__media img, .product__gallery img, .line__img img { object-fit: contain !important; padding: 6%; }
.product__gallery { align-content: start; }
.product__gallery > img { aspect-ratio: auto; height: auto; }
.line__img img { padding: 4%; }
.card__alt { position: absolute; inset: 0; opacity: 0; transition: opacity .35s ease, transform .5s ease; }
.card:hover .card__alt { opacity: 1; }
.card:hover .card__media > img:first-child { opacity: 0; }
.card__media > img:first-child { transition: opacity .35s ease, transform .5s ease; }
.tag { display: inline-block; font-size: 10px; font-weight: 600; letter-spacing: .06em; padding: 5px 8px; background: var(--white); }
.tag:empty { display: none; }
.card .tag { position: absolute; top: 10px; left: 10px; }
.card__add { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.85); display: grid; place-items: center; font-size: 18px; }
.card__name { margin-top: 10px; font-weight: 500; }
.card__price { margin-top: 6px; }
.card__specs { margin-top: 3px; font-size: 11px; letter-spacing: .08em; color: var(--muted); }
.dots { display: flex; gap: 6px; margin-top: 8px; }
.dot { width: 10px; height: 10px; border-radius: 50%; border: 1px solid rgba(0,0,0,.2); }

/* Sobre nosotros */
.about { padding: 80px var(--gutter); border-top: 1px solid var(--line); text-align: center; }
.about__logo { width: 100%; }
.about p { max-width: 480px; margin: 28px auto 0; font-size: 16px; line-height: 1.5; }

/* Pie */
.footer { background: var(--black); color: var(--white); padding: 48px var(--gutter) 24px; }
.footer__cols { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 32px; }
@media (max-width: 800px) { .footer__cols { grid-template-columns: 1fr 1fr; } .newsletter { grid-column: 1 / -1; } }
.footer h4 { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; font-weight: 600; }
.footer a { display: block; color: #b5b5b2; margin-bottom: 8px; }
.footer a:hover { color: var(--white); }
.newsletter__row { display: flex; border-bottom: 1px solid #555; }
.newsletter input { flex: 1; min-width: 0; background: none; border: 0; color: var(--white); font: inherit; padding: 12px 0; outline: none; }
.newsletter .btn { background: none; padding: 0 0 0 16px; }
.newsletter__msg { margin-top: 10px; font-size: 12px; color: #b5b5b2; }
.newsletter__msg:empty { display: none; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 48px; color: #8a8a87; font-size: 12px; }

/* Capas */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.4); opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 40; }
.overlay.is-open { opacity: 1; pointer-events: auto; }
.close { position: absolute; top: 14px; right: 16px; font-size: 16px; width: 32px; height: 32px; z-index: 2; }

/* Ficha */
.product { position: fixed; z-index: 50; inset: 4vh 4vw; background: var(--white); display: grid; grid-template-columns: 1.3fr 1fr; overflow: hidden; }
.product[hidden], .cart[hidden] { display: none; }
.product__gallery { background: var(--card); overflow-y: auto; display: grid; gap: 2px; }
.product__gallery > * { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.product__info { padding: 48px 40px; overflow-y: auto; display: flex; flex-direction: column; gap: 20px; }
.product__info .tag { background: var(--card); align-self: flex-start; }
.product__info h2 { font-size: 28px; font-weight: 800; letter-spacing: -.03em; }
.product__price { font-size: 18px; margin-top: -12px; }
.product__specs { font-size: 11px; letter-spacing: .08em; color: var(--muted); margin-top: -16px; }
.product__specs:empty, .product__desc:empty { display: none; }
.opt__label { display: block; margin-bottom: 10px; font-size: 12px; }
.swatches { display: flex; gap: 8px; }
.swatch { width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(0,0,0,.2); outline-offset: 3px; }
.swatch[aria-pressed="true"] { outline: 1.5px solid var(--black); }
.sizes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.size { height: 42px; border: 1px solid var(--line); font-weight: 500; }
.size:hover { border-color: var(--black); }
.size[aria-pressed="true"] { background: var(--black); color: var(--white); border-color: var(--black); }
.product__desc { line-height: 1.6; color: #333; }
details { border-top: 1px solid var(--line); padding-top: 14px; }
summary { cursor: pointer; font-weight: 500; }
details p { margin-top: 10px; color: var(--muted); line-height: 1.5; }
@media (max-width: 800px) {
  .product { inset: 0; grid-template-columns: 1fr; overflow-y: auto; }
  .product__gallery { overflow: visible; }
  .product__info { overflow: visible; padding: 28px 20px 40px; }
  .header__left a:nth-child(2) { display: none; }
}

/* Botón de icono (menú) */
.icon-btn { display: grid; place-items: center; width: 36px; height: 36px; margin-left: -6px; }
.icon-btn:hover { opacity: .6; }

/* Menú lateral */
.menu { position: fixed; z-index: 50; top: 0; left: 0; bottom: 0; width: min(380px, 100vw); background: var(--white); display: flex; flex-direction: column; padding: 0 24px 28px; animation: slideL .25s ease; }
.menu[hidden] { display: none; }
@keyframes slideL { from { transform: translateX(-100%); } }
.menu__head { position: relative; display: flex; align-items: center; height: 64px; border-bottom: 1px solid var(--line); margin: 0 -24px; padding: 0 24px; }
.menu__logo { width: 130px; }
.menu .close { top: 16px; right: 16px; }
.menu__main { display: flex; flex-direction: column; gap: 6px; padding: 28px 0; }
.menu__main a { font-size: 28px; font-weight: 800; letter-spacing: -.03em; }
.menu__sub { margin-top: auto; display: flex; flex-direction: column; gap: 12px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); }
.menu a:hover { color: var(--black); opacity: .7; }
.cart { animation: slideR .25s ease; }
@keyframes slideR { from { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .menu, .cart { animation: none; } }

/* Aviso de bienvenida (10%) */
.promo { position: fixed; z-index: 55; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(820px, calc(100vw - 32px)); max-height: calc(100svh - 32px); overflow-y: auto; background: var(--white); display: grid; grid-template-columns: 1fr 1fr; animation: promoIn .3s ease; }
.promo[hidden] { display: none; }
@keyframes promoIn { from { opacity: 0; transform: translate(-50%, -46%); } }
.promo__media { background: #111 url("assets/video/hero-poster.jpg") center / cover; min-height: 460px; }
.promo .close { top: 10px; right: 10px; background: var(--white); border-radius: 50%; }
.promo__body { padding: 44px 36px 28px; display: flex; flex-direction: column; gap: 18px; text-align: center; }
.promo__logo { width: 150px; margin: 0 auto 8px; }
.promo h2 { font-size: 30px; line-height: 1.05; font-weight: 900; letter-spacing: -.035em; text-transform: uppercase; }
.promo p { line-height: 1.5; }
#promoForm, #promoDone { display: flex; flex-direction: column; gap: 14px; }
#promoForm[hidden], #promoDone[hidden] { display: none; }
.promo form { display: grid; gap: 10px; margin-top: 6px; }
.promo input { height: 46px; border: 1px solid #cfcfcb; padding: 0 14px; font: inherit; outline: none; }
.promo input:focus { border-color: var(--black); }
.promo__error { color: #b00020; font-size: 12px; min-height: 0; }
.promo__error:empty { display: none; }
.promo__skip { font-size: 12px; text-decoration: underline; color: var(--muted); }
.promo__code { font-size: 26px; font-weight: 900; letter-spacing: .12em; padding: 14px; border: 1.5px dashed var(--black); }
.promo__legal { margin-top: auto; font-size: 10px; color: var(--muted); }
@media (max-width: 700px) {
  .promo { grid-template-columns: 1fr; }
  .promo__media { min-height: 0; height: 160px; }
  .promo__body { padding: 28px 20px 20px; }
  .promo h2 { font-size: 24px; }
}

/* Carrito */
.cart { position: fixed; z-index: 50; top: 0; right: 0; bottom: 0; width: min(420px, 100vw); background: var(--white); display: flex; flex-direction: column; }
.cart__head { position: relative; padding: 20px; border-bottom: 1px solid var(--line); }
.cart__head h3 { font-size: 16px; font-weight: 800; }
.cart__items { flex: 1; overflow-y: auto; padding: 8px 20px; }
.cart__empty { padding: 40px 0; text-align: center; color: var(--muted); }
.line { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line__img { aspect-ratio: 4 / 5; background: var(--card); overflow: hidden; }
.line__img > * { width: 100%; height: 100%; object-fit: cover; }
.line__name { font-weight: 500; }
.line__meta { color: var(--muted); font-size: 12px; margin-top: 2px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); margin-top: 10px; }
.qty button { width: 28px; height: 28px; }
.qty span { min-width: 24px; text-align: center; }
.line__remove { font-size: 11px; text-decoration: underline; color: var(--muted); margin-top: 8px; }
.cart__foot { padding: 20px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.cart__total { display: flex; justify-content: space-between; font-size: 15px; }

/* Aviso */
.toast { position: fixed; z-index: 60; left: 50%; top: 80px; transform: translate(-50%, -20px); background: var(--black); color: var(--white); padding: 12px 18px; font-size: 13px; opacity: 0; pointer-events: none; transition: .25s; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
