/* Fauna Urbana — estilos */
:root {
  --blue: #2A5BB5;
  --blue-dark: #1D4387;
  --blue-soft: #EEF3FB;
  --blue-text-soft: #DCE6F7;
  --gold: #E0A82E;
  --gold-soft: #FBEFD5;
  --gold-text: #8A6410;
  --navy: #14213D;
  --ink: #1B1F1D;
  --muted: #5B6661;
  --line: #E4E7E5;
  --soft: #F4F6F5;
  --radius: 20px;
  --display: 'Barlow Condensed', Inter, sans-serif;
  --body: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: #fff; }
img { max-width: 100%; display: block; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
button { font: inherit; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Transiciones entre páginas ---------- */
.page { animation: page-in .55s cubic-bezier(.22, .61, .36, 1) both; }
body.is-leaving .page { animation: page-out .25s ease-in both; }
@keyframes page-in { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes page-out { to { opacity: 0; transform: translateY(-12px); } }

/* ---------- Cabecera ---------- */
.strip { background: var(--blue); color: #fff; font-size: 13px; padding: 8px 24px; text-align: center; }
.site-header { border-bottom: 1px solid var(--line); background: #fff; }
.header-row { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 66px; height: 52px; object-fit: contain; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 30px; letter-spacing: .02em; line-height: .95; color: var(--blue); }
.brand-name small { display: block; font-size: 13px; font-weight: 700; letter-spacing: .24em; color: var(--gold-text); }
.search { flex: 1 1 320px; display: flex; align-items: center; gap: 8px; border: 1.5px solid #CBD2CE; border-radius: 999px; padding: 4px 6px 4px 18px; min-width: 0; }
.search:focus-within { border-color: var(--blue); }
.search input { flex: 1; min-width: 0; border: 0; outline: none; font: inherit; font-size: 15px; background: transparent; padding: 8px 0; }
.icon-btn { width: 40px; height: 40px; border-radius: 999px; border: 0; background: var(--blue); color: #fff; display: grid; place-items: center; cursor: pointer; }
.header-link { padding: 10px 14px; font-weight: 600; text-decoration: none; font-size: 15px; }
.catnav { display: flex; flex-wrap: wrap; gap: 4px 24px; font-size: 15px; font-weight: 500; padding-bottom: 12px; }
.catnav a { padding: 8px 0; text-decoration: none; color: var(--ink); border-bottom: 3px solid transparent; transition: color .2s, border-color .2s; }
.catnav a:hover { color: var(--blue); }
.catnav a[aria-current="page"] { color: var(--blue); font-weight: 700; border-bottom-color: var(--gold); }

/* ---------- Botones y etiquetas ---------- */
.btn { display: inline-flex; align-items: center; height: 52px; padding: 0 26px; border-radius: 999px; font-weight: 700; text-decoration: none; transition: transform .15s, background .2s; }
.btn:hover { transform: translateY(-1px); }
.btn-light { background: #fff; color: var(--blue); }
.btn-light:hover { color: var(--blue-dark); }
.btn-outline-light { border: 1.5px solid #9FB8E6; color: #fff; font-weight: 600; }
.btn-outline-light:hover { color: #fff; background: rgba(255,255,255,.08); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { color: #fff; background: #000; }
.btn-outline { border: 1.5px solid var(--blue); height: 48px; padding: 0 24px; }
.badge { align-self: flex-start; background: var(--gold); color: var(--ink); font-weight: 700; font-size: 13px; padding: 6px 12px; border-radius: 999px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .14em; color: var(--gold-text); }

/* ---------- Títulos ---------- */
.h-display { margin: 0; font-family: var(--display); font-weight: 800; letter-spacing: 0; }
.section { padding-top: 56px; }
.section-title { font-size: 40px; margin: 0 0 20px; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-head .section-title { margin: 0; }
.section-sub { font-size: 15px; color: var(--muted); }

/* ---------- Portada ---------- */
.hero { display: flex; flex-wrap: wrap; gap: 20px; padding-top: 32px; }
.hero-main { flex: 999 1 520px; min-width: 0; background: var(--blue); color: #fff; border-radius: 24px; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; min-height: 380px; }
.hero-main h1 { font-size: 68px; line-height: 1; max-width: 520px; }
.hero-main p { margin: 0; font-size: 18px; line-height: 1.5; color: var(--blue-text-soft); max-width: 440px; }
.hero-copy { display: flex; flex-direction: column; gap: 16px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-side { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.mini-card { flex: 1; display: flex; gap: 18px; align-items: center; background: var(--soft); border-radius: 24px; padding: 20px; }
.mini-card .media { width: 132px; height: 132px; flex: none; border-radius: 16px; display: grid; place-items: center; }
.mini-card .media img { width: 88%; height: 88%; object-fit: contain; }
.mini-card h2, .mini-card h3 { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.3; }
.meta { font-size: 13px; font-weight: 600; color: var(--muted); }

/* ---------- Carrusel de marcas ---------- */
.brands { margin-top: 56px; padding: 48px 0; background: var(--blue-soft); }
.brands .section-head { margin-bottom: 24px; }
.marquee { display: flex; flex-direction: column; gap: 16px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.track { display: flex; gap: 16px; width: max-content; animation: marquee 45s linear infinite; }
.track.reverse { animation-direction: reverse; animation-duration: 55s; }
.marquee:hover .track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 8px)); } }
.brand-card { flex: none; width: 200px; height: 104px; border-radius: 18px; background: #fff; border: 1px solid #DCE3EF; display: grid; place-items: center; padding: 12px 16px; text-align: center;
  font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1; letter-spacing: .02em; color: var(--navy); text-transform: uppercase; }
.brand-card img { max-height: 70px; object-fit: contain; }
.brands-more { text-align: center; margin: 20px 0 0; font-family: var(--display); font-weight: 700; font-size: 22px; color: var(--blue); }

/* ---------- Tarjetas de categoría ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.tile { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; padding: 20px; border-radius: var(--radius); color: var(--ink); text-decoration: none; min-height: 150px; transition: transform .2s, box-shadow .2s; }
.tile:hover { color: var(--ink); transform: translateY(-3px); box-shadow: 0 10px 24px rgba(20, 33, 61, .10); }
.tile strong { font-size: 17px; }
.tile span { display: block; font-size: 14px; color: #4A544F; }
.tile .more { font-size: 13px; font-weight: 600; color: var(--blue); margin-top: 2px; }
.tiles.compact .tile { min-height: 110px; gap: 4px; justify-content: flex-end; }

/* ---------- Filtros ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { height: 44px; padding: 0 16px; border-radius: 999px; font-size: 15px; font-weight: 600; cursor: pointer; border: 1.5px solid #CBD2CE; background: #fff; color: var(--ink); transition: background .2s, color .2s, border-color .2s; }
.chip:hover { border-color: var(--blue); }
.chip[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.sort { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 14px; }
.sort span { color: var(--muted); margin-right: 4px; }
.sort button { height: 44px; padding: 0 12px; border: 0; background: transparent; font-size: 14px; cursor: pointer; color: var(--ink); }
.sort button[aria-pressed="true"] { color: var(--blue); font-weight: 700; text-decoration: underline; }

/* ---------- Productos ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 20px; }
.grid.is-swapping { opacity: 0; transform: translateY(8px); }
.grid { transition: opacity .25s, transform .25s; }
.card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(20, 33, 61, .10); }
.card .media { position: relative; aspect-ratio: 1 / 1; display: grid; place-items: center; }
.card .media img { width: 72%; height: 72%; object-fit: contain; }
.tag { position: absolute; top: 12px; left: 12px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; }
.card .body { display: flex; flex-direction: column; gap: 6px; padding: 16px; flex: 1; }
.card h3 { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.35; }
.card .size { font-size: 14px; color: var(--muted); }
.prices { display: flex; flex-direction: column; margin-top: auto; padding-top: 10px; }
.price { font-size: 20px; font-weight: 700; }
.old { font-size: 13px; color: var(--muted); text-decoration: line-through; }
.row-prices { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; }
.row-prices .old { font-size: 14px; }

.list-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 20px; }
.row-card { display: flex; gap: 14px; align-items: center; background: var(--soft); border-radius: var(--radius); padding: 14px; }
.row-card .media { width: 88px; height: 88px; flex: none; border-radius: 14px; display: grid; place-items: center; }
.row-card .media img { width: 86%; height: 86%; object-fit: contain; }
.row-card h3 { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.3; }
.row-card .price { font-size: 17px; }

/* ---------- Bandas ---------- */
.band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; background: var(--gold-soft); border-radius: 24px; padding: 32px 40px; }
.band > div { display: flex; flex-direction: column; gap: 6px; flex: 1 1 360px; }
.band h2 { font-size: 34px; }
.band p { margin: 0; font-size: 16px; line-height: 1.5; color: #3D4541; }

/* ---------- Página de categoría ---------- */
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 14px; padding-top: 20px; }
.crumbs a { padding: 10px 0; }
.crumbs span { color: var(--muted); }
.cat-hero { display: flex; flex-wrap: wrap; gap: 20px; padding-top: 12px; }
.cat-hero .hero-main { min-height: 300px; justify-content: center; gap: 16px; padding: 44px 48px; }
.cat-hero .hero-main h1 { font-size: 72px; }
.spotlight { flex: 1 1 360px; min-width: 0; display: flex; gap: 18px; align-items: center; border-radius: 24px; padding: 24px; }
.spotlight .media { width: 170px; height: 170px; flex: none; border-radius: 18px; background: #fff; display: grid; place-items: center; }
.spotlight .media img { width: 86%; height: 86%; object-fit: contain; }
.spotlight h2 { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.3; }
.spotlight .label { font-size: 13px; font-weight: 700; color: var(--gold-text); }
.spotlight .size { font-size: 14px; color: #4A544F; }
.spotlight .price { font-size: 22px; }

/* ---------- Pie ---------- */
.site-footer { margin-top: 72px; background: var(--blue); color: #fff; border-top: 6px solid var(--gold); }
.footer-row { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: flex-start; justify-content: space-between; font-size: 15px; line-height: 1.6; padding-top: 36px; padding-bottom: 36px; }
.footer-row > div { display: flex; flex-direction: column; gap: 2px; flex: 1 1 200px; }
.footer-row .footer-brand { flex-direction: row; align-items: center; gap: 14px; flex: 1 1 300px; }
.footer-brand img { width: 84px; height: 66px; object-fit: contain; }
.footer-brand b { font-family: var(--display); font-weight: 800; font-size: 30px; letter-spacing: .02em; line-height: 1; display: block; }
.footer-brand span { color: var(--blue-text-soft); }
.site-footer a { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .catnav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .catnav a { white-space: nowrap; }
  .header-row { gap: 12px; }
  .hero-main { padding: 32px 28px; min-height: 0; }
  .hero-main h1 { font-size: 46px; }
  .cat-hero .hero-main h1 { font-size: 52px; }
  .section-title { font-size: 32px; }
  .band { padding: 28px; }
  .mini-card .media { width: 100px; height: 100px; }
  .spotlight .media { width: 120px; height: 120px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .page, body.is-leaving .page, .track { animation: none; }
  .card, .tile, .btn, .grid { transition: none; }
}
