@font-face { font-family: 'Pisafuerte Sans'; src: url('../fonts/pisafuerte-sans.woff2') format('woff2'); font-display: swap; }

:root {
    --ink: #16233F;
    --muted: #5C6780;
    --line: #DDE2EA;
    --surface: #F1F3F7;
    --paper: #FFFFFF;
    --accent: #2447D6;
    --sale: #D92D3A;
    --sun: #FFD23F;
    --display: 'Pisafuerte Sans', 'Bricolage Grotesque', 'Arial Narrow', sans-serif;
    --body: 'Instrument Sans', Arial, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: var(--body); font-size: 15px; line-height: 1.5; color: var(--ink); background: var(--paper); }
a { color: inherit; text-decoration: none; cursor: pointer; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; cursor: pointer; border: none; background: none; padding: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: 34px; font-weight: 700; }
h2 { font-size: 24px; font-weight: 700; }
h3 { font-size: 16px; font-weight: 700; }
[hidden] { display: none !important; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
main.wrap { padding-top: 24px; padding-bottom: 64px; min-height: 60vh; }
.section { margin-top: 56px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 20px; }
.section-head a { font-weight: 600; text-decoration: underline; }
.muted { color: var(--muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 8px; background: var(--ink); color: #fff; font-weight: 600; }
.btn:hover { background: var(--accent); text-decoration: none; }
.btn-ghost { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-ghost:hover { background: var(--surface); }
.btn-wide { width: 100%; }
.link-btn { text-decoration: underline; font-weight: 600; }

.promo-bar { background: var(--sun); text-align: center; font-size: 13px; font-weight: 600; padding: 7px 16px; }
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 10; }
.header-row { display: flex; align-items: center; gap: 28px; height: 72px; }
.logo { font-family: var(--display); font-size: 30px; font-weight: 800; letter-spacing: -0.03em; }
.logo:hover { text-decoration: none; }
.logo i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--sale); margin-left: 3px; }
.search { flex: 1; display: flex; max-width: 560px; height: 44px; background: var(--surface); border-radius: 22px; padding: 0 6px 0 18px; }
.search input { flex: 1; border: none; background: none; font: inherit; color: inherit; outline: none; min-width: 0; }
.search button { width: 36px; display: grid; place-items: center; }
.header-actions { display: flex; gap: 22px; margin-left: auto; }
.header-link { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 12px; font-weight: 600; }
.header-link b { position: absolute; top: -6px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--sale); color: #fff; font-size: 11px; line-height: 18px; text-align: center; }
.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.main-nav { display: flex; gap: 26px; height: 46px; align-items: center; font-weight: 600; overflow-x: auto; white-space: nowrap; }
.main-nav .divider { width: 1px; height: 18px; background: var(--line); }
.main-nav .sale { color: var(--sale); }

.hero { display: grid; grid-template-columns: 1.05fr 1fr; background: var(--surface); border-radius: 20px; overflow: hidden; min-height: 440px; }
.hero-copy { padding: 56px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 22px; }
.hero-copy h1 { font-size: clamp(40px, 5.4vw, 72px); font-weight: 800; letter-spacing: -0.035em; line-height: 0.98; }
.hero-copy p { font-size: 18px; max-width: 34ch; margin: 0; color: var(--muted); }
.hero-panel { position: relative; background-color: var(--sun); background-image: url('../img/banner-otono.jpg'); background-size: cover; display: grid; place-items: center; }
.hero-shoe { display: grid; place-items: center; width: 100%; }
.hero-panel .shoe { width: 78%; transform: rotate(-8deg); }
.hero-panel:hover { text-decoration: none; }
.tile-link span:last-child { display: flex; justify-content: flex-end; }
.sticker { position: absolute; top: 28px; right: 28px; width: 118px; height: 118px; border-radius: 50%; background: var(--sale); color: #fff; display: grid; place-content: center; text-align: center; font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1; transform: rotate(10deg); }
.sticker small { font-family: var(--body); font-size: 12px; font-weight: 600; }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile-link { background: var(--surface); border-radius: 16px; padding: 22px 24px 0; display: flex; flex-direction: column; overflow: hidden; }
.tile-link:hover { text-decoration: none; background: #E7EBF2; }
.tile-link strong { font-family: var(--display); font-size: 26px; }
.tile-link .shoe { width: 78%; align-self: flex-end; margin-top: 4px; }

.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 28px 0; }
.trust strong { display: block; font-family: var(--display); font-size: 17px; }
.trust span { color: var(--muted); font-size: 14px; }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card { position: relative; display: flex; flex-direction: column; }
.tile { position: relative; display: grid; place-items: center; aspect-ratio: 1 / 1; background: var(--surface); border-radius: 14px; overflow: hidden; }
.tile .shoe { width: 82%; transition: transform .25s ease; }
.card:hover .tile .shoe { transform: scale(1.06) rotate(-3deg); }
.badge { position: absolute; top: 12px; left: 12px; padding: 3px 9px; border-radius: 6px; font-size: 12px; font-weight: 700; background: var(--sale); color: #fff; }
.badge-new { background: var(--ink); }
.heart { position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; border-radius: 50%; background: var(--paper); display: grid; place-items: center; }
.heart .icon { width: 20px; height: 20px; }
.heart.on { color: var(--sale); }
.heart.on .icon { fill: currentColor; }
.card-brand { margin-top: 12px; font-size: 13px; color: var(--muted); }
.card-name { font-weight: 600; }
.rating { font-size: 13px; color: var(--muted); }
.rating .stars { color: #E0A100; letter-spacing: 1px; }
.price { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; font-weight: 700; font-size: 16px; }
.price s { font-weight: 400; font-size: 14px; color: var(--muted); }
.price .now-sale { color: var(--sale); }
.card .add { margin-top: 10px; height: 40px; border-radius: 8px; font-weight: 600; box-shadow: inset 0 0 0 1.5px var(--line); }
.card .add:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }

.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { text-decoration: underline; }
.listing { display: grid; grid-template-columns: 230px 1fr; gap: 40px; margin-top: 24px; }
.filters h3 { margin: 22px 0 10px; }
.filters h3:first-child { margin-top: 0; }
.filters label { display: flex; align-items: center; gap: 9px; padding: 4px 0; }
.swatch { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(22, 35, 63, .25); }
.swatch-negro { background: #23262B; }
.swatch-marron { background: #7A4B2A; }
.swatch-rojo { background: #C22B34; }
.swatch-blanco { background: #F6F5F0; }
.swatch-azul { background: #2B4C8C; }
.swatch-beige { background: #CDB592; }
.range { display: flex; gap: 8px; }
.range input, .field input, .promo input { width: 100%; height: 42px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 8px; font: inherit; color: inherit; }
.filters .btn { margin-top: 18px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.toolbar select { height: 40px; padding: 0 10px; border: 1.5px solid var(--line); border-radius: 8px; font: inherit; color: inherit; background: var(--paper); }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination button { width: 42px; height: 42px; border-radius: 8px; font-weight: 600; box-shadow: inset 0 0 0 1.5px var(--line); }
.pagination button.current { background: var(--ink); color: #fff; box-shadow: none; }
.empty { padding: 48px 0; text-align: center; }
.empty p { color: var(--muted); margin: 8px 0 20px; }

.product { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; }
.gallery-main { display: grid; place-items: center; aspect-ratio: 5 / 4; background: var(--surface); border-radius: 18px; overflow: hidden; }
.gallery-main .shoe { width: 80%; }
.gallery-main.view-espejo .shoe { transform: scaleX(-1); }
.gallery-main.view-detalle .shoe { transform: scale(1.7) translateX(-12%); }
.thumbs { display: flex; gap: 12px; margin-top: 12px; }
.thumbs button { width: 92px; aspect-ratio: 5 / 4; background: var(--surface); border-radius: 10px; display: grid; place-items: center; overflow: hidden; }
.thumbs button.current { box-shadow: inset 0 0 0 2px var(--ink); }
.thumbs .shoe { width: 80%; }
.thumbs .view-espejo .shoe { transform: scaleX(-1); }
.thumbs .view-detalle .shoe { transform: scale(1.7) translateX(-12%); }
.product-info h1 { margin: 4px 0 8px; }
.product-info .price { font-size: 26px; margin: 16px 0 4px; }
.product-info .price s { font-size: 17px; }
.option-title { display: flex; justify-content: space-between; margin: 24px 0 10px; font-weight: 600; }
.option-title a { font-weight: 400; text-decoration: underline; }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.sizes button { min-width: 52px; height: 44px; border-radius: 8px; font-weight: 600; box-shadow: inset 0 0 0 1.5px var(--line); }
.sizes button:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.sizes button.current { background: var(--ink); color: #fff; box-shadow: none; }
.buy-row { display: flex; gap: 12px; margin-top: 24px; }
.buy-row .btn { flex: 1; height: 52px; }
.stepper { display: flex; align-items: center; height: 52px; border-radius: 8px; box-shadow: inset 0 0 0 1.5px var(--line); }
.stepper button { width: 42px; height: 100%; font-size: 20px; }
.stepper span { min-width: 26px; text-align: center; font-weight: 600; }
.icon-btn { width: 52px; height: 52px; border-radius: 8px; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--line); }
.icon-btn.on { color: var(--sale); }
.icon-btn.on .icon { fill: currentColor; }
.perks { margin: 20px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 14px; }
.perks li { padding: 3px 0; }
details { border-top: 1px solid var(--line); padding: 14px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
details summary { font-weight: 600; cursor: pointer; }
details p { margin: 10px 0 0; color: var(--muted); max-width: 60ch; }
.accordion { margin-top: 28px; }
.reviews { display: grid; grid-template-columns: 280px 1fr; gap: 48px; }
.review-score { font-family: var(--display); font-size: 56px; font-weight: 800; line-height: 1; }
.rate button { font-size: 26px; color: #E0A100; padding: 0 2px; }
.review { border-bottom: 1px solid var(--line); padding: 16px 0; }
.review:first-child { padding-top: 0; }
.review p { margin: 6px 0 0; max-width: 64ch; }

.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 48px; margin-top: 24px; align-items: start; }
.line { display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line .tile { border-radius: 10px; }
.line-name { font-weight: 600; }
.line-meta { font-size: 13px; color: var(--muted); }
.line-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.line .stepper { height: 36px; }
.line .stepper button { width: 32px; font-size: 17px; }
.line-remove { font-size: 13px; text-decoration: underline; color: var(--muted); }
.summary { background: var(--surface); border-radius: 16px; padding: 24px; }
.summary h2 { margin-bottom: 16px; }
.summary-row { display: flex; justify-content: space-between; padding: 5px 0; }
.summary-total { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 14px; font-weight: 700; font-size: 18px; }
.promo { display: flex; gap: 8px; margin: 16px 0; }
.promo input { background: var(--paper); }
.promo .btn { height: 42px; padding: 0 16px; }
.summary .link-btn { display: block; margin: 14px auto 0; font-size: 14px; }

#cartPanel { position: fixed; top: 0; right: 0; bottom: 0; width: 420px; max-width: 100vw; background: var(--paper); z-index: 30; padding: 24px; display: flex; flex-direction: column; box-shadow: -12px 0 40px rgba(22, 35, 63, .18); }
#cartPanel .panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
#cartPanelBody { flex: 1; overflow-y: auto; }
#cartPanel .line { grid-template-columns: 72px 1fr auto; }
#cartPanel .panel-foot { border-top: 1px solid var(--line); padding-top: 16px; display: grid; gap: 10px; }
#backdrop { position: fixed; inset: 0; background: rgba(22, 35, 63, .4); z-index: 25; }

.account { display: grid; grid-template-columns: 420px 1fr; gap: 64px; margin-top: 24px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 5px; }
.check { display: flex; gap: 9px; align-items: flex-start; margin: 4px 0 18px; }
.account-aside { background: var(--surface); border-radius: 16px; padding: 28px; }
.account-aside ul { padding-left: 18px; color: var(--muted); }
.account-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }

.confirm { max-width: 560px; margin: 48px auto; text-align: center; }
.confirm p { color: var(--muted); margin: 14px 0 24px; }
.prose { max-width: 720px; }
.prose h2 { margin: 36px 0 10px; }
.prose p, .prose li { color: var(--muted); }
.prose table { border-collapse: collapse; width: 100%; margin-top: 12px; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.size-guide { height: 12px; background-image: url('../img/guia-tallas.png'); }

.site-footer { background: var(--ink); color: #fff; margin-top: 40px; }
.newsletter { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 36px 0; border-bottom: 1px solid rgba(255, 255, 255, .16); flex-wrap: wrap; }
.newsletter strong { font-family: var(--display); font-size: 24px; display: block; }
.newsletter span { color: #B9C2D6; }
.newsletter-form { display: flex; gap: 8px; flex: 1; max-width: 460px; }
.newsletter-form input { flex: 1; height: 46px; padding: 0 14px; border: none; border-radius: 8px; font: inherit; min-width: 0; }
.newsletter-form .btn { background: var(--sun); color: var(--ink); }
.footer-cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; padding: 40px 0; }
.footer-cols h3 { margin-bottom: 12px; }
.footer-cols a { display: block; color: #B9C2D6; padding: 3px 0; }
.footer-cols p { color: #B9C2D6; max-width: 32ch; margin: 10px 0 0; }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, .16); padding: 18px 0; display: flex; gap: 22px; flex-wrap: wrap; font-size: 13px; color: #B9C2D6; }
.footer-legal span { margin-right: auto; }

#toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 22px; border-radius: 8px; font-weight: 600; z-index: 50; box-shadow: 0 8px 24px rgba(22, 35, 63, .3); }
#cookies { position: fixed; left: 24px; bottom: 24px; width: 400px; max-width: calc(100vw - 48px); background: var(--paper); border-radius: 16px; padding: 24px; z-index: 40; box-shadow: 0 12px 48px rgba(22, 35, 63, .28); }
#cookies p { margin: 8px 0 18px; color: var(--muted); font-size: 14px; }
#cookies p a { text-decoration: underline; }
#cookies .cookie-actions { display: flex; gap: 10px; }
#cookies .btn { flex: 1; }

@media (max-width: 900px) {
    .hero, .product, .listing, .cart-layout, .account, .reviews { grid-template-columns: 1fr; }
    .hero-copy { padding: 32px; }
    .hero-panel { min-height: 260px; }
    .grid, .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .tiles, .trust, .footer-cols { grid-template-columns: 1fr 1fr; }
    .header-link span { display: none; }
    .header-row { gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    .tile .shoe { transition: none; }
}
