:root {
    --black: #050505;
    --soft-black: #0b0b0b;
    --gold: #cc8b18;
    --gold-dark: #8e5b0b;
    --green: #25ad45;
    --line: #e5e5e5;
    --muted: #666;
    --page: #fdfdfd;
    --content-max: 1260px;
    --content-gutter: 38px;
}

.analytics-consent[hidden] {
    display: none;
}

.analytics-consent {
    position: fixed;
    z-index: 1000;
    right: 18px;
    bottom: 18px;
    left: 18px;
    max-width: 760px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 0 auto;
    padding: 16px 18px;
    border: 1px solid #333;
    border-radius: 12px;
    color: #fff;
    background: #0b0b0b;
    box-shadow: 0 12px 40px rgb(0 0 0 / 28%);
}

.analytics-consent strong {
    display: block;
    margin-bottom: 4px;
    font-size: 15px;
}

.analytics-consent p {
    margin: 0;
    color: #ddd;
    font-size: 13px;
    line-height: 1.45;
}

.analytics-consent a {
    color: #fff;
    text-decoration: underline;
}

.analytics-consent-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
}

.analytics-consent button {
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid #666;
    border-radius: 7px;
    color: #fff;
    background: transparent;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.analytics-consent .analytics-consent-accept {
    border-color: var(--gold);
    color: #080808;
    background: var(--gold);
}

@media (max-width: 640px) {
    .analytics-consent {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
    }

    .analytics-consent-actions,
    .analytics-consent button {
        width: 100%;
    }
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: #111;
    background: var(--page);
    font-family: Inter, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

button,
select,
input {
    color: inherit;
    font: inherit;
}

button,
select {
    cursor: pointer;
}

[hidden] {
    display: none !important;
}

svg {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    left: 12px;
    top: -80px;
    z-index: 1000;
    padding: 10px 14px;
    border-radius: 6px;
    background: #fff;
    color: #111;
    font-size: 14px;
    transition: top .2s ease;
}

.skip-link:focus {
    top: 12px;
}

.header-inner,
.footer-inner,
.section-inner {
    width: calc(100% - var(--content-gutter) - var(--content-gutter));
    max-width: var(--content-max);
    margin-right: auto;
    margin-left: auto;
}

/* Shipping promotion */
.shipping-promo {
    position: relative;
    z-index: 101;
    min-height: 36px;
    display: grid;
    color: #111;
    background: linear-gradient(90deg, #d99a22 0%, #f2c45d 50%, #d99a22 100%);
    border-top: 3px solid #6f4807;
}

.shipping-promo-inner {
    width: calc(100% - var(--content-gutter) - var(--content-gutter));
    max-width: var(--content-max);
    min-height: 33px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin: 0 auto;
    text-align: center;
    font-size: clamp(12px, .82vw, 14px);
    line-height: 1.25;
}

.shipping-promo-icon {
    font-size: 17px;
    line-height: 1;
}

.shipping-promo strong {
    font-weight: 800;
}

/* Header */
.site-header {
    position: relative;
    z-index: 100;
    height: 94px;
    color: #fff;
    background: #030303;
}

.page-productos .site-header {
    height: 82px;
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    gap: clamp(18px, 2.4vw, 38px);
}

.site-logo {
    flex: 0 0 auto;
    display: grid;
    width: 105px;
    height: 100%;
    place-items: center;
    overflow: hidden;
}

.site-logo img {
    width: 104px;
    height: auto;
}

.primary-nav {
    align-self: stretch;
    flex: 1 1 auto;
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: clamp(24px, 3vw, 47px);
    min-width: 0;
}

.primary-nav a {
    position: relative;
    display: flex;
    align-items: center;
    white-space: nowrap;
    font-size: clamp(12px, .92vw, 15px);
    font-weight: 600;
}

.primary-nav a::after {
    position: absolute;
    right: 0;
    bottom: 18px;
    left: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--gold);
    content: '';
    opacity: 0;
    transform: scaleX(.5);
    transition: opacity .18s ease, transform .18s ease;
}

.primary-nav a:hover,
.primary-nav a:focus-visible,
.primary-nav a.is-active {
    color: #fff;
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after,
.primary-nav a.is-active::after {
    opacity: 1;
    transform: scaleX(1);
}

.header-tools {
    flex: 0 0 auto;
    min-width: 76px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 18px;
}

.header-icon {
    position: relative;
    display: grid;
    width: 29px;
    height: 36px;
    place-items: center;
    padding: 0;
    border: 0;
    color: inherit;
    background: transparent;
}

.header-icon svg {
    width: 26px;
    height: 26px;
    stroke-width: 1.7;
}

.page-productos .site-logo img {
    width: 112px;
    transform: translateX(-10px);
}

.header-search-panel {
    position: absolute;
    z-index: 110;
    top: 100%;
    right: max(var(--content-gutter), calc((100vw - var(--content-max)) / 2));
    width: min(360px, calc(100% - var(--content-gutter) - var(--content-gutter)));
    display: flex;
    gap: 8px;
    padding: 10px;
    border: 1px solid #292929;
    border-radius: 0 0 9px 9px;
    color: #111;
    background: #0b0b0b;
    box-shadow: 0 16px 32px rgb(0 0 0 / 35%);
}

.header-search-input {
    min-width: 0;
    height: 42px;
    flex: 1 1 auto;
    padding: 0 13px;
    border: 1px solid #d8d8d8;
    border-radius: 6px;
    outline: 0;
    color: #111;
    background: #fff;
    font-size: 15px;
}

.header-search-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgb(204 139 24 / 20%);
}

.header-search-submit {
    height: 42px;
    flex: 0 0 auto;
    padding: 0 17px;
    border: 1px solid #c78412;
    border-radius: 6px;
    color: #fff;
    background: linear-gradient(180deg, #d49725, #a96908);
    font-size: 13px;
    font-weight: 700;
}

.menu-toggle {
    display: none;
    width: 34px;
    height: 34px;
    padding: 7px;
    border: 0;
    background: transparent;
}

.menu-toggle > span:not(.sr-only) {
    display: block;
    width: 100%;
    height: 2px;
    margin: 4px 0;
    border-radius: 2px;
    background: #fff;
}

/* Home hero */
.home-hero {
    position: relative;
    height: clamp(306px, 34.45vw, 594px);
    display: grid;
    grid-template-columns: 48.3% 51.7%;
    overflow: hidden;
    color: #fff;
    background: radial-gradient(circle at 52% 45%, #171717 0, #090909 42%, #030303 78%);
}

.hero-copy {
    position: relative;
    z-index: 2;
    padding: clamp(26px, 3.1vw, 54px) 12px 16px max(var(--content-gutter), calc((100vw - var(--content-max)) / 2));
}

.hero-eyebrow {
    display: inline-flex;
    min-height: clamp(23px, 2.7vw, 36px);
    align-items: center;
    gap: 6px;
    padding: 0 clamp(8px, 1vw, 14px);
    border: 1px solid #7b530f;
    border-radius: 7px;
    color: #fff;
    background: linear-gradient(90deg, #4b2f09, #835718);
    font-size: clamp(10px, .76vw, 13px);
    font-weight: 800;
}

.hero-eyebrow svg {
    width: 13px;
    height: 13px;
}

.home-hero h1 {
    margin: clamp(13px, 1.5vw, 24px) 0 10px;
    font-size: clamp(41px, 3.5vw, 60px);
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1.05;
}

.home-hero .hero-copy > p {
    margin: 0;
    font-size: clamp(12.5px, .94vw, 16px);
    font-weight: 500;
    line-height: 1.48;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: clamp(12px, 1.5vw, 22px);
    margin-top: clamp(15px, 1.8vw, 28px);
}

.button {
    display: inline-flex;
    min-height: clamp(37px, 3.5vw, 54px);
    align-items: center;
    justify-content: center;
    padding: 0 clamp(13px, 1.45vw, 22px);
    border: 1px solid;
    border-radius: 7px;
    white-space: nowrap;
    font-size: clamp(11px, .92vw, 15px);
    font-weight: 700;
}

.button svg {
    width: clamp(15px, 1.25vw, 20px);
    height: clamp(15px, 1.25vw, 20px);
    margin-right: 8px;
}

.button-whatsapp-outline {
    border-color: #b87c12;
    color: #fff;
    background: #080808;
}

.button-whatsapp-outline:hover {
    background: #171109;
}

.button-light {
    border-color: #ddd;
    color: #111;
    background: #fff;
}

.hero-perks {
    display: flex;
    align-items: center;
    gap: clamp(21px, 3vw, 50px);
    margin-top: clamp(16px, 2vw, 32px);
    white-space: nowrap;
    font-size: clamp(9.5px, .76vw, 13px);
    font-weight: 500;
}

.hero-perks span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hero-perks svg {
    width: clamp(15px, 1.4vw, 23px);
    height: clamp(15px, 1.4vw, 23px);
    color: var(--gold);
}

.hero-art {
    position: relative;
    height: 100%;
    overflow: hidden;
    border-radius: 16px 0 0 0;
}

.hero-art::after {
    position: absolute;
    inset: 0 auto 0 0;
    width: 17%;
    background: linear-gradient(90deg, #0a0a0a, transparent);
    content: '';
}

.hero-art::before {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 2;
    width: 18%;
    height: 22px;
    background: linear-gradient(90deg, #0a0a0a 45%, transparent);
    content: '';
}

.hero-art img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center top;
}

/* Shared home headings */
.section-heading {
    text-align: center;
}

.section-heading h2,
.how-heading h2 {
    margin: 0;
    font-size: clamp(19px, 1.45vw, 25px);
    font-weight: 800;
    line-height: 1.2;
}

.section-heading p,
.how-heading p {
    margin: 8px 0 0;
    color: #555;
    font-size: clamp(11px, .84vw, 14px);
    line-height: 1.4;
}

.brands-section,
.how-section,
.help-section,
.faq-section {
    scroll-margin-top: 90px;
}

.page-home main {
    background: #050505;
}

/* Brands */
.brands-section {
    position: relative;
    z-index: 3;
    min-height: 301px;
    margin-top: -1px;
    padding: 17px 0 16px;
    border-radius: 22px 22px 0 0;
    background: linear-gradient(180deg, #fff 0, #fbfbfb 70%, #f8f8f8 100%);
}

.brand-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: clamp(10px, 1.35vw, 18px);
    margin-top: 17px;
}

.brand-card {
    height: clamp(137px, 10.8vw, 185px);
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 5px 16px rgb(0 0 0 / 3%);
    transition: transform .18s ease, box-shadow .18s ease;
}

.brand-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgb(0 0 0 / 7%);
}

.brand-card img {
    width: 88%;
    height: clamp(38px, 4vw, 60px);
    object-fit: contain;
    transform: scale(1.16);
}

.brand-card strong {
    overflow: hidden;
    max-width: 100%;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: clamp(10.5px, .75vw, 13px);
    font-weight: 800;
}

.brand-card span {
    padding: 6px 10px;
    border: 1px solid #e5e5e5;
    border-radius: 5px;
    background: #fff;
    font-size: clamp(9px, .66vw, 11px);
    font-weight: 600;
}

.brand-strip {
    height: clamp(45px, 4.4vw, 70px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(10px, 1.8vw, 28px);
    margin-top: clamp(18px, 2vw, 28px);
    padding: 5px clamp(6px, 1vw, 15px);
    border-radius: 9px;
    background: #fafafa;
    box-shadow: 0 4px 14px rgb(0 0 0 / 3%);
}

.brand-strip > a:not(.more-brands) {
    min-width: 0;
    flex: 1 1 auto;
}

.brand-wordmark {
    display: block;
    overflow: hidden;
    width: 100%;
    color: #111;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(11px, 1.05vw, 17px);
    font-style: italic;
    font-weight: 900;
    letter-spacing: -.045em;
}

.more-brands {
    flex: 0 0 auto;
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    gap: 9px;
    padding: 0 10px;
    border: 1px solid #ededed;
    border-radius: 6px;
    white-space: nowrap;
    background: #fff;
    font-size: clamp(9px, .68vw, 11px);
    font-weight: 600;
}

.more-brands span {
    color: var(--gold);
    font-size: 17px;
}

/* How to buy */
.how-section {
    position: relative;
    width: calc(100% - var(--content-gutter) - var(--content-gutter));
    max-width: var(--content-max);
    height: clamp(330px, 38.4vw, 510px);
    margin: 0 auto;
    padding: clamp(22px, 2.5vw, 40px) clamp(27px, 3.2vw, 50px) clamp(15px, 2vw, 30px);
    overflow: hidden;
    border-radius: 15px;
    color: #fff;
    background: radial-gradient(circle at 70% 20%, #20231d 0, #0d0f0d 28%, #050505 70%);
}

.how-section::after {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(90deg, rgb(4 4 4 / 4%) 0 67%, rgb(3 3 3 / 20%) 100%);
    content: '';
    pointer-events: none;
}

.how-heading,
.steps,
.purchase-benefits {
    position: relative;
    z-index: 2;
}

.how-heading {
    text-align: left;
}

.how-heading p {
    margin-top: 6px;
    color: #ddd;
}

.steps {
    width: 75%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: clamp(13px, 1.8vw, 28px);
}

.step-card {
    min-width: 0;
    text-align: center;
}

.step-icon {
    height: clamp(92px, 10.2vw, 158px);
}

.step-icon > span {
    display: none;
}

.step-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: scale(1.12);
    transform-origin: center;
}

.step-card h3 {
    min-height: 28px;
    margin: 4px 3px 0;
    font-size: clamp(11px, .88vw, 15px);
    line-height: 1.3;
}

.step-card p {
    margin: 8px 7px 0;
    color: #dedede;
    font-size: clamp(8.5px, .67vw, 12px);
    line-height: 1.55;
}

.how-art {
    position: absolute;
    z-index: 1;
    top: 0;
    right: 0;
    width: auto;
    height: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
}

.how-art img {
    position: static;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
}

.how-art::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #0d0f0d 0, rgb(13 15 13 / 68%) 12%, transparent 34%);
    content: '';
    pointer-events: none;
}

.purchase-benefits {
    position: absolute;
    right: clamp(27px, 3.2vw, 50px);
    bottom: clamp(15px, 2vw, 30px);
    left: clamp(27px, 3.2vw, 50px);
    height: clamp(50px, 5.2vw, 82px);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
    border: 1px solid #6b6255;
    border-radius: 11px;
    background: rgb(3 3 3 / 78%);
}

.purchase-benefits > span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(8px, 1vw, 16px);
    padding: 0 7px;
    font-size: clamp(9px, .73vw, 12px);
    font-weight: 600;
    line-height: 1.35;
}

.purchase-benefits svg {
    flex: 0 0 auto;
    width: clamp(25px, 2.7vw, 43px);
    height: clamp(25px, 2.7vw, 43px);
    color: var(--gold);
}

/* Help */
.help-section {
    padding: 18px 0 11px;
    background: linear-gradient(180deg, #fff, #fdfdfd);
}

.help-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(9px, 1.25vw, 18px);
    margin-top: 12px;
}

.help-card {
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: clamp(12px, 1.4vw, 20px) 10px 10px;
    border: 1px solid #e8e8e8;
    border-radius: 11px;
    background: #fff;
    text-align: center;
    box-shadow: 0 5px 15px rgb(0 0 0 / 2%);
}

.help-card > img {
    width: clamp(45px, 4.2vw, 64px);
    height: clamp(45px, 4.2vw, 64px);
    object-fit: contain;
}

.tiktok-card > img {
    transform: scale(.71);
}

.help-card h3 {
    margin: 6px 0 0;
    font-size: clamp(11.5px, .86vw, 14px);
}

.help-card > strong {
    margin-top: 8px;
    font-size: clamp(10.5px, .8vw, 13px);
}

.help-card > p {
    min-height: 31px;
    margin: 8px 0 0;
    color: #555;
    font-size: clamp(9.5px, .74vw, 12px);
    line-height: 1.45;
}

.help-primary,
.help-secondary {
    display: inline-flex;
    min-width: 118px;
    min-height: 29px;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border-radius: 5px;
    font-size: clamp(9.5px, .74vw, 12px);
    font-weight: 700;
}

.help-primary {
    width: 78%;
    margin-top: 8px;
    color: #fff;
    background: linear-gradient(#2fbd51, #22a340);
    box-shadow: 0 3px 7px rgb(35 168 67 / 20%);
}

.help-secondary {
    margin-top: auto;
    border: 1px solid #e5e5e5;
    color: #111;
    background: #fff;
}

.quick-response {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: auto;
    padding-top: 9px;
    border-top: 1px solid #eee;
    text-align: left;
}

.quick-response i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #32b75a;
}

.quick-response span {
    display: flex;
    flex-direction: column;
    color: #666;
    font-size: clamp(8px, .6vw, 10px);
    line-height: 1.35;
}

.quick-response b {
    color: #111;
}

.security-strip {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 13px;
    border-radius: 9px;
    background: linear-gradient(90deg, #fff8ec, #f8f2e9, #fff8ec);
    font-size: clamp(10px, .78vw, 13px);
}

.security-strip svg {
    width: 22px;
    height: 25px;
    color: var(--gold);
}

/* FAQ */
.faq-section {
    padding: 10px 0 3px;
    background: #fdfdfd;
}

.section-heading-accent h2::after {
    display: block;
    width: 25px;
    height: 1px;
    margin: 6px auto 0;
    background: var(--gold);
    content: '';
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 8px;
}

.faq-column {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.faq-column details {
    border: 1px solid #e6e6e6;
    border-radius: 6px;
    background: #fff;
    font-size: clamp(10px, .72vw, 14px);
}

.faq-column summary {
    position: relative;
    min-height: 27px;
    display: flex;
    align-items: center;
    padding: 5px 30px 5px 14px;
    list-style: none;
    cursor: pointer;
    font-weight: 700;
}

.faq-column summary::-webkit-details-marker {
    display: none;
}

.faq-column summary::after {
    position: absolute;
    right: 13px;
    width: 7px;
    height: 7px;
    border-right: 1.5px solid #111;
    border-bottom: 1.5px solid #111;
    content: '';
    transform: translateY(-2px) rotate(45deg);
    transition: transform .18s ease;
}

.faq-column details[open] summary::after {
    transform: translateY(2px) rotate(225deg);
}

.faq-column details p {
    margin: 0;
    padding: 2px 14px 9px;
    color: #555;
    line-height: 1.45;
}

.faq-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 13px;
    color: #444;
    font-size: clamp(9.5px, .74vw, 12px);
}

.faq-contact svg {
    width: 20px;
    height: 20px;
    color: var(--green);
}

/* Products hero */
.page-hero {
    position: relative;
    isolation: isolate;
    height: 109px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #fff;
    background-image:
        linear-gradient(90deg, rgb(0 0 0 / 12%) 0 25%, #070707 35% 65%, rgb(0 0 0 / 12%) 75% 100%),
        url('/assets/img/banners/productos-hero-completo.png');
    background-position: center;
    background-size: cover;
}

.page-hero h1 {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: 32px;
    font-weight: 800;
    line-height: 1.15;
}

.page-hero p {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 9px 0 0;
    font-size: 13px;
}

.page-hero strong {
    color: #e3a01c;
}

/* Product catalog */
.catalog {
    width: calc(100% - var(--content-gutter) - var(--content-gutter));
    max-width: var(--content-max);
    min-height: 553px;
    display: grid;
    grid-template-columns: 286px minmax(0, 1fr);
    gap: 35px;
    margin: 0 auto;
    padding: 21px 0 12px;
    background: #fff;
}

.filters {
    align-self: start;
    min-width: 0;
    padding: 16px 16px 3px;
    border: 1px solid #e3e3e3;
    border-radius: 11px;
    background: #fff;
}

.filter-mobile-toggle {
    display: none;
}

.filter-group {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.filter-group + .filter-group {
    margin-top: 17px;
}

.filter-group legend {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 12px;
    padding: 4px 4px 13px;
    border-bottom: 1px solid #e5e5e5;
    font-size: 13px;
    font-weight: 800;
}

.filter-group legend span {
    font-size: 15px;
    font-weight: 500;
}

.filter-brands {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px 8px;
}

.filter-brands label,
.sizes label {
    position: relative;
    min-width: 0;
}

.filter-brands input,
.sizes input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.filter-brands label > span,
.sizes label > span {
    display: grid;
    place-items: center;
    border: 1px solid #dedede;
    border-radius: 7px;
    background: #fff;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease;
}

.filter-brands label > span {
    min-height: 62px;
    grid-template-rows: 29px minmax(0, 1fr);
    gap: 4px;
    overflow: hidden;
    padding: 6px 5px 5px;
}

.filter-brands img {
    width: 100%;
    height: 28px;
    object-fit: contain;
}

.brand-filter-name {
    display: -webkit-box;
    overflow: hidden;
    width: 100%;
    color: currentColor;
    font-size: clamp(9px, .62vw, 11px);
    font-weight: 800;
    line-height: 1.05;
    text-align: center;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.brand-filter-choice.has-logo .brand-filter-name {
    display: -webkit-box;
}

.brand-filter-choice:not(.has-logo),
.brand-filter-choice.is-missing-logo {
    grid-template-rows: minmax(0, 1fr);
}

.brand-filter-choice.is-missing-logo .brand-filter-logo {
    display: none;
}

.brand-filter-choice.has-logo.is-missing-logo .brand-filter-name {
    display: -webkit-box;
}

.filter-brands input:checked + span,
.sizes input:checked + span {
    border-color: #080808;
    color: #fff;
    background: #080808;
    height: -webkit-fill-available;
}

.filter-brands input:checked + span img {
    filter: invert(1) grayscale(1) brightness(3);
}

.filter-brands input:focus-visible + span,
.sizes input:focus-visible + span {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.all-brands {
    width: 100%;
    height: 36px;
    margin-top: 8px;
    border: 1px solid #e1e1e1;
    border-radius: 7px;
    background: #fff;
    font-size: 12px;
}

.sizes {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.sizes label > span {
    height: 29px;
    font-size: 12px;
}

.apply-filters {
    width: 100%;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 22px;
    border: 0;
    border-radius: 6px;
    color: #fff;
    background: #050505;
    font-size: 12px;
    font-weight: 700;
}

.apply-filters svg {
    width: 15px;
    height: 15px;
}

.clear-filters {
    width: 100%;
    height: 33px;
    border: 0;
    color: #555;
    background: transparent;
    font-size: 11px;
}

.results {
    min-width: 0;
}

.result-head {
    min-height: 35px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 15px;
}

.result-head p {
    margin: 7px 0 0 5px;
    font-size: 14px;
}

.result-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 4px;
    row-gap: 2px;
}

.result-query b {
    font-weight: 700;
}

.clear-search {
    margin-left: 5px;
    color: #95620b;
    font-size: 11px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.result-head strong {
    font-weight: 500;
}

.sort-control select {
    width: 180px;
    height: 35px;
    padding: 0 12px;
    border: 1px solid #dedede;
    border-radius: 7px;
    background: #fff;
    font-size: 12px;
}

.products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px 16px;
}

.product-card {
    min-width: 0;
    min-height: 252px;
    display: flex;
    flex-direction: column;
    padding: 4px 16px;
    border: 1px solid #e3e3e3;
    border-radius: 9px;
    background: #fff;
}

.product-image {
    width: 100%;
    height: 196px;
    flex: 0 0 auto;
    object-fit: contain;
}

.product-brand {
    margin-top: 0;
    font-size: 14px;
    line-height: 1.2;
}

.product-card h2 {
    margin: 2px 0 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.2;
}

.product-card.has-color-options {
    min-height: 300px;
}

.product-color-selector {
    min-width: 0;
    margin-top: 5px;
}

.product-color-current {
    display: block;
    overflow: hidden;
    color: #555;
    font-size: 11px;
    line-height: 1.25;
    margin-bottom: 4px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-color-current strong {
    color: #222;
    font-weight: 700;
}

.product-color-options {
    max-width: 100%;
    display: flex;
    align-items: center;
    gap: 5px;
    overflow-x: auto;
    padding: 3px 2px 4px;
    scrollbar-color: #bbb transparent;
    scrollbar-width: thin;
}

.product-color-button {
    width: 34px;
    height: 28px;
    flex: 0 0 34px;
    display: grid;
    place-items: center;
    padding: 1px;
    border: 1px solid #d7d7d7;
    border-radius: 6px;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.product-color-button:hover {
    border-color: #777;
    transform: translateY(-1px);
}

.product-color-button.is-selected {
    border-color: #050505;
    box-shadow: 0 0 0 1px #fff, 0 0 0 2px var(--gold);
}

.product-color-button:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.product-color-button img {
    width: 100%;
    height: 100%;
    border-radius: 4px;
    object-fit: contain;
}

.product-sizes {
    min-height: 18px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3px;
    margin-top: 4px;
}

.product-size {
    min-width: 19px;
    height: 21px;
    display: inline-grid;
    place-items: center;
    padding: 0 3px;
    border: 1px solid #d8d8d8;
    border-radius: 4px;
    color: #333;
    background: #fafafa;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
}

.product-size-unavailable {
    color: #666;
    font-size: 10px;
}

.product-price {
    margin: 12px 0 5px;
    font-size: 20px;
    line-height: 1.2;
}

.product-whatsapp {
    min-height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: auto;
    border-radius: 5px;
    color: #fff;
    background: linear-gradient(90deg, #24a942, #2ab649);
    white-space: nowrap;
    font-size: 12px;
}

.product-whatsapp svg {
    width: 14px;
    height: 14px;
}

.product-card small {
    margin-top: 3px;
    color: #666;
    text-align: center;
    font-size: 11px;
}

.empty-results {
    padding: 70px 20px;
    text-align: center;
}

/* Legal / secondary pages */
.legal {
    width: min(850px, calc(100% - var(--content-gutter) - var(--content-gutter)));
    min-height: 55vh;
    margin: 0 auto;
    padding: 70px 0;
    line-height: 1.8;
}

.legal a {
    color: #95620b;
    text-decoration: underline;
}

/* Footer */
.site-footer {
    color: #fff;
    background: radial-gradient(circle at 50% 0, #111 0, #050505 60%, #020202 100%);
}

.page-home .site-footer {
    padding-bottom: 7px;
}

.footer-inner {
    padding-top: clamp(14px, 1vw, 16px);
}

.footer-main {
    display: grid;
    grid-template-columns: 1.21fr 1.125fr 1.095fr 1.17fr 1.1fr;
    gap: clamp(20px, 2.6vw, 40px);
    min-height: clamp(165px, 13.4vw, 206px);
}

.footer-logo {
    display: block;
    width: clamp(78px, 7vw, 108px);
    height: clamp(62px, 5.7vw, 88px);
    overflow: hidden;
}

.footer-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer-brand > p {
    margin: 7px 0 0;
    color: #e0e0e0;
    font-size: clamp(10.5px, .8vw, 12.5px);
    line-height: 1.65;
}

.social-links {
    display: flex;
    gap: clamp(12px, 1.5vw, 23px);
    margin-top: 13px;
}

.social-links a,
.social-links > span {
    display: grid;
    width: clamp(16px, 1.5vw, 23px);
    height: clamp(16px, 1.5vw, 23px);
    place-items: center;
}

.social-links svg {
    width: 100%;
    height: 100%;
    stroke-width: 1.8;
}

.footer-column h2 {
    margin: 5px 0 12px;
    font-size: clamp(10.5px, .82vw, 13px);
    font-weight: 800;
}

.footer-column > a,
.footer-column > p,
.footer-contact-row {
    display: flex;
    margin: 0 0 clamp(5px, .5vw, 8px);
    color: #e2e2e2;
    font-size: clamp(10.5px, .84vw, 13.5px);
    line-height: 1.45;
}

.footer-contact > a,
.footer-contact-row {
    align-items: center;
    gap: clamp(8px, 1vw, 15px);
    white-space: nowrap;
}

.footer-contact svg {
    flex: 0 0 auto;
    width: clamp(17px, 1.6vw, 25px);
    height: clamp(17px, 1.6vw, 25px);
}

.footer-location {
    display: flex;
    align-items: center;
    align-self: start;
    min-width: 0;
    margin-top: 18px;
}

.map-crop {
    position: relative;
    width: clamp(70px, 5.2vw, 80px);
    height: clamp(135px, 10vw, 154px);
    flex: 0 0 auto;
    overflow: hidden;
}

.footer-map {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.footer-location p {
    margin: 0 0 0 8px;
    white-space: nowrap;
    font-size: clamp(9.5px, .84vw, 13.5px);
    line-height: 1.65;
}

.footer-bottom {
    min-height: clamp(47px, 3.85vw, 59px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-top: 1px solid #323232;
    color: #aaa;
    font-size: clamp(9.5px, .7vw, 11.5px);
}

.footer-bottom > span {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.footer-bottom strong {
    color: #eee;
    font-size: 1.05em;
}

.footer-bottom i {
    width: 1px;
    height: 12px;
    margin: 0 7px;
    background: #777;
}

.footer-seo {
    gap: 10px;
}

.footer-optimization {
    gap: 8px;
}

.footer-optimization .footer-rocket {
    flex: 0 0 auto;
}

.footer-seo svg,
.footer-rocket {
    width: clamp(17px, 1.5vw, 23px);
    height: clamp(17px, 1.5vw, 23px);
    color: #fff;
}

/* Tablet */
@media (max-width: 1180px) {
    .catalog {
        grid-template-columns: 260px minmax(0, 1fr);
        gap: 24px;
    }

    .products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1100px) {
    :root {
        --content-gutter: 22px;
    }

    .primary-nav {
        gap: 18px;
    }

    .header-tools {
        gap: 12px;
    }

    .catalog {
        grid-template-columns: 260px minmax(0, 1fr);
        gap: 24px;
    }

    .products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .footer-main {
        gap: 22px;
    }
}

@media (max-width: 960px) {
    .catalog {
        min-height: 0;
        grid-template-columns: 1fr;
    }

    .filters {
        padding: 0;
    }

    .filter-mobile-toggle {
        width: 100%;
        height: 48px;
        display: flex;
        align-items: center;
        gap: 9px;
        padding: 0 16px;
        border: 0;
        border-radius: 10px;
        background: #fff;
        font-weight: 700;
    }

    .filter-mobile-toggle svg {
        width: 18px;
        height: 18px;
    }

    .filter-mobile-toggle span {
        margin-left: auto;
    }

    .filter-content {
        display: none;
        padding: 0 16px 16px;
    }

    .filters.is-open .filter-content {
        display: block;
    }

    .filter-brands {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .sizes {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

/* Mobile navigation and home layout */
@media (max-width: 820px) {
    :root {
        --content-gutter: 16px;
    }

    .site-header,
    .page-productos .site-header {
        height: 76px;
    }

    .site-logo {
        width: 82px;
    }

    .site-logo img {
        width: 76px;
    }

    .page-productos .site-logo img {
        width: 76px;
        transform: none;
    }

    .menu-toggle {
        display: block;
    }

    .primary-nav {
        position: absolute;
        top: 76px;
        right: 0;
        left: 0;
        display: none;
        height: auto;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px 22px 18px;
        border-top: 1px solid #222;
        background: #050505;
        box-shadow: 0 16px 30px rgb(0 0 0 / 28%);
    }

    .primary-nav.is-open {
        display: flex;
    }

    .primary-nav a {
        min-height: 42px;
        font-size: 14px;
    }

    .primary-nav a::after {
        right: auto;
        bottom: 4px;
        width: 34px;
    }

    .header-tools {
        min-width: 0;
        margin-left: auto;
    }

    .header-search-panel {
        right: var(--content-gutter);
        left: var(--content-gutter);
        width: auto;
    }

    .header-search-input {
        font-size: 16px;
    }

    .home-hero {
        height: auto;
        min-height: 570px;
        grid-template-columns: 1fr;
    }

    .hero-copy {
        z-index: 3;
        padding: 34px var(--content-gutter) 30px;
        background: linear-gradient(180deg, rgb(3 3 3 / 98%) 0 61%, rgb(3 3 3 / 72%) 100%);
    }

    .home-hero h1 {
        font-size: clamp(38px, 10vw, 52px);
    }

    .home-hero .hero-copy > p {
        font-size: 14px;
    }

    .hero-art {
        position: absolute;
        inset: 0;
        z-index: 1;
        border-radius: 0;
        opacity: .42;
    }

    .hero-art::after {
        width: 100%;
        background: linear-gradient(180deg, #050505 0 48%, transparent 82%, #050505 100%);
    }

    .hero-actions {
        align-items: stretch;
    }

    .hero-perks {
        flex-wrap: wrap;
        white-space: normal;
        font-size: 12px;
    }

    .brands-section {
        padding: 24px 0;
    }

    .brand-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .brand-card {
        height: 135px;
    }

    .brand-strip {
        justify-content: flex-start;
        overflow-x: auto;
    }

    .brand-strip > a:not(.more-brands) {
        min-width: 70px;
    }

    .how-section {
        height: auto;
        min-height: 560px;
        margin: 18px auto 0;
        padding: 27px 20px 18px;
    }

    .steps {
        width: 100%;
        grid-template-columns: repeat(2, 1fr);
        row-gap: 16px;
    }

    .step-icon {
        height: 105px;
    }

    .step-card h3 {
        font-size: 13px;
    }

    .step-card p {
        font-size: clamp(8.5px, .67vw, 12px);
    }

    .how-art {
        display: none;
    }

    .purchase-benefits {
        position: relative;
        right: auto;
        bottom: auto;
        left: auto;
        height: auto;
        grid-template-columns: repeat(2, 1fr);
        row-gap: 12px;
        margin-top: 22px;
        padding: 12px 6px;
    }

    .help-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .help-card {
        min-height: auto;
    }

    .footer-main {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px 40px;
        padding-bottom: 28px;
    }

    .footer-location {
        justify-content: flex-start;
    }

    .footer-bottom {
        flex-wrap: wrap;
        justify-content: flex-start;
        padding: 15px 0;
    }

    .page-hero {
        height: 96px;
        background-color: #050505;
        background-image:
            linear-gradient(90deg, #050505 0 34%, rgb(5 5 5 / 78%) 61%, rgb(5 5 5 / 28%) 100%),
            url('/assets/img/banners/productos-zapatilla-hero.png');
        background-position: center, right center;
        background-repeat: no-repeat;
        background-size: 100% 100%, auto 100%;
    }

    .page-hero::before {
        position: absolute;
        inset: 0 auto 0 0;
        z-index: 0;
        width: 46px;
        background: linear-gradient(90deg, #050505 0 72%, transparent 100%);
        content: '';
        pointer-events: none;
    }

    .page-hero h1 {
        font-size: 26px;
    }
}

@media (max-width: 700px) {
    .products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .result-head {
        height: auto;
        align-items: center;
        gap: 10px;
        margin-bottom: 14px;
    }

    .result-head p {
        margin-left: 0;
    }

    .sort-control select {
        width: 155px;
    }

    .filter-brands {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .sizes {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .faq-grid {
        grid-template-columns: 1fr;
        gap: 3px;
    }
}

@media (max-width: 520px) {
    .shipping-promo {
        padding: 6px 0;
    }

    .shipping-promo-inner {
        min-height: 34px;
        flex-wrap: wrap;
        gap: 2px 6px;
        font-size: 12px;
    }

    .shipping-promo-separator {
        display: none;
    }

    .shipping-promo strong {
        flex-basis: 100%;
    }

    .header-tools {
        gap: 9px;
    }

    .header-icon {
        width: 22px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .home-hero {
        min-height: 610px;
    }

    .brand-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .help-grid,
    .footer-main {
        grid-template-columns: 1fr;
    }

    .footer-contact > a,
    .footer-contact-row {
        white-space: normal;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-bottom > span {
        white-space: normal;
    }

    .catalog {
        padding: 14px 0;
    }
}

@media (max-width: 420px) {
    .products {
        grid-template-columns: 1fr;
    }

    .product-card {
        min-height: 290px;
    }

    .product-image {
        height: 150px;
    }

    .result-head {
        align-items: stretch;
        flex-direction: column;
    }

    .sort-control select {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
