:root {
    --blue: #0b4f9f;
    --blue-dark: #07396f;
    --yellow: #ffc400;
    --yellow-dark: #e1a900;
    --black: #101010;
    --dark: #222831;
    --text: #1f2933;
    --muted: #6b7280;
    --line: #e5e7eb;
    --soft-line: #f0f2f5;
    --white: #ffffff;
    --light: #f7f8fa;
    --light-2: #f2f4f7;
    --whatsapp: #25d366;
    --container: min(1180px, 92vw);
    --radius: 3px;
    --shadow: 0 8px 22px rgba(16, 16, 16, .06);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; }
html { scroll-behavior: smooth; }
body {
    font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
    background: #eef1f5;
    color: var(--text);
    line-height: 1.5;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
.container { width: var(--container); margin-inline: auto; }

.top-strip { background: var(--black); color: var(--white); font-size: .78rem; }
.top-strip__content { min-height: 32px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.top-strip b { color: var(--yellow); }

.site-header { position: sticky; top: 0; z-index: 1000; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.header-main { min-height: 78px; display: grid; grid-template-columns: auto minmax(260px, 1fr) auto; align-items: center; gap: 1.25rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; min-width: max-content; }
.brand__mark { width: 46px; height: 46px; display: grid; place-items: center; background: var(--blue); color: var(--white); border: 3px solid var(--yellow); border-radius: var(--radius); font-size: .92rem; font-weight: 800; letter-spacing: .02em; }
.brand__text { display: grid; line-height: 1.08; }
.brand__name { color: var(--black); font-weight: 800; font-size: 1.13rem; }
.brand__note { margin-top: .18rem; color: var(--muted); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.search-box { width: min(560px, 100%); justify-self: center; display: flex; align-items: stretch; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.search-box input { width: 100%; min-height: 42px; border: 0; outline: 0; padding: 0 .95rem; color: var(--text); background: var(--white); font-size: .9rem; }
.search-box input::placeholder { color: #9a9a9a; }
.search-box button { border: 0; padding: 0 1.1rem; background: var(--blue); color: var(--white); font-size: .8rem; font-weight: 800; text-transform: uppercase; cursor: pointer; }
.search-box button:hover { background: var(--blue-dark); }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: .55rem; }
.menu-toggle { display: none; width: 42px; height: 42px; place-items: center; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); color: var(--dark); cursor: pointer; padding: 0; }
.menu-toggle span { display: block; width: 19px; height: 2px; background: var(--dark); margin: 3px auto; }
.menu-toggle:hover { border-color: var(--blue); }
.nav-wrap { background: var(--white); border-top: 1px solid var(--soft-line); }
.nav-row { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.primary-nav { display: flex; align-items: center; gap: .1rem; }
.primary-nav a { color: var(--dark); text-decoration: none; font-size: .9rem; font-weight: 700; padding: .86rem .85rem; border-bottom: 3px solid transparent; white-space: nowrap; }
.primary-nav a:hover, .primary-nav a.active { color: var(--blue); border-bottom-color: var(--yellow); }
.nav-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 1rem; background: var(--yellow); color: var(--black); text-decoration: none; font-size: .82rem; font-weight: 800; border-radius: var(--radius); white-space: nowrap; }
.nav-cta:hover { background: var(--yellow-dark); }

.hero-banner { padding: 0; background: var(--black); }
.hero-full { position: relative; min-height: 420px; background: var(--black); overflow: hidden; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-full::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(0,0,0,.76) 0%, rgba(0,0,0,.48) 42%, rgba(0,0,0,.18) 100%); pointer-events: none; }
.hero-overlay { position: absolute; inset: 0; z-index: 2; display: flex; align-items: flex-start; padding-top: 2.25rem; }
.hero-overlay h1 { max-width: 540px; color: var(--white); margin: 0; font-size: clamp(2.3rem, 5vw, 4.6rem); line-height: .98; letter-spacing: -.045em; text-shadow: 0 3px 18px rgba(0,0,0,.58); }
.hero-highlight { color: var(--yellow); }
h1, h2, h3, p { margin-top: 0; }
.page-hero h1 { margin-bottom: .9rem; color: var(--black); font-size: clamp(2rem, 4.1vw, 3.65rem); line-height: 1.02; letter-spacing: -0.045em; }
.page-hero p { max-width: 520px; color: var(--muted); font-size: .96rem; }
.banner-art { min-height: 0; aspect-ratio: 16 / 9; max-height: 390px; display: grid; place-items: center; background: var(--light); border-left: 1px solid var(--line); position: relative; overflow: hidden; }
.banner-art::before { content: ""; position: absolute; inset: 28px; border: 2px dashed #d9dde3; }
.banner-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.banner-art span { position: relative; z-index: 0; padding: .8rem 1rem; background: var(--white); color: var(--muted); border: 1px solid var(--line); font-size: .9rem; font-weight: 700; text-align: center; }

.section { padding: clamp(2.2rem, 4vw, 3.8rem) 0; background: transparent; }
.section--white { background: var(--white); }
.section--soft { background: var(--light); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2rem; }
.section-head--center { align-items: center; }
.eyebrow { margin-bottom: .45rem; color: var(--blue); font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; }
.section h2, .catalog-sidebar h2, .contact-card h2, .location-card h2 { margin-bottom: .4rem; color: var(--black); font-size: clamp(1.75rem, 3vw, 2.65rem); line-height: 1.06; letter-spacing: -0.04em; }
.lead { color: var(--muted); max-width: 720px; font-size: 1rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 .95rem; border: 1px solid transparent; border-radius: var(--radius); text-decoration: none; font-weight: 800; font-size: .82rem; cursor: pointer; transition: .18s ease; white-space: nowrap; }
.btn--yellow { background: var(--yellow); color: var(--black); border-color: var(--yellow); }
.btn--yellow:hover { background: var(--yellow-dark); border-color: var(--yellow-dark); }
.btn--dark { background: var(--black); color: var(--white); border-color: var(--black); }
.btn--dark:hover { background: var(--blue); border-color: var(--blue); }
.btn--outline { background: var(--white); color: var(--blue); border-color: var(--blue); }
.btn--outline:hover { background: var(--blue); color: var(--white); }
.product-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

.category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem; }
.category-card { display: grid; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; overflow: hidden; transition: .18s ease; }
.category-card:hover { transform: translateY(-2px); border-color: var(--blue); box-shadow: var(--shadow); }
.category-media { aspect-ratio: 4 / 3; min-height: 0; background: #f3f4f6; border-bottom: 1px solid var(--line); position: relative; display: grid; place-items: center; overflow: hidden; }
.category-media::after { content: ""; position: absolute; inset: 0; background: rgba(11,79,159,.04); }
.category-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.category-media span { z-index: 0; color: var(--muted); font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.category-body { padding: 1rem 1rem 1.1rem; }
.category-body h3 { margin-bottom: .35rem; color: var(--black); font-size: 1rem; line-height: 1.2; }
.category-body p { margin: 0; color: var(--muted); font-size: .84rem; }

.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.15rem; }
.product-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.product-card:hover { border-color: #cfd5dd; box-shadow: var(--shadow); }
.product-img, .product-photo { aspect-ratio: 1 / 1; min-height: 0; background: var(--light-2); border-bottom: 1px solid var(--line); display: grid; place-items: center; position: relative; overflow: hidden; text-decoration: none; }
.product-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: clamp(.75rem, 3vw, 1.15rem); z-index: 1; }
.product-img span, .product-photo span { color: var(--muted); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.product-body { padding: 1rem; display: flex; flex-direction: column; flex: 1; }
.product-kicker { color: var(--blue); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.product-title { margin: .35rem 0 .55rem; color: var(--black); font-size: 1rem; line-height: 1.25; min-height: 2.5rem; }
.product-meta { color: var(--muted); font-size: .82rem; margin-bottom: .65rem; }
.product-specs { list-style: none; padding: 0; margin: 0 0 .85rem; display: grid; gap: .22rem; color: var(--muted); font-size: .78rem; }
.product-specs b { color: var(--dark); }
.product-price { margin-top: auto; margin-bottom: .8rem; color: var(--black); font-size: 1.2rem; font-weight: 800; }
.product-card .btn { width: 100%; min-height: 40px; }
.product-card.is-hidden { display: none; }

.page-hero { padding: clamp(3.4rem, 6vw, 5.5rem) 0; background: var(--light); border-bottom: 1px solid var(--line); }
.page-hero--catalog { background: var(--white); }
.catalog-layout { display: grid; grid-template-columns: 260px 1fr; gap: 2rem; align-items: start; }
.catalog-sidebar { position: sticky; top: 150px; background: var(--white); border: 1px solid var(--line); padding: 1rem; }
.catalog-sidebar h2 { font-size: 1.25rem; margin-bottom: 1rem; }
.filter-btn { width: 100%; min-height: 40px; margin-bottom: .45rem; padding: 0 .8rem; border: 1px solid var(--line); background: var(--white); color: var(--dark); text-align: left; border-radius: var(--radius); cursor: pointer; font-weight: 700; font-size: .85rem; }
.filter-btn:hover, .filter-btn.active { background: var(--blue); border-color: var(--blue); color: var(--white); }
.catalog-note { margin-top: 1rem; padding: 1rem; background: var(--light); border-left: 4px solid var(--yellow); }
.catalog-note strong { color: var(--black); }
.catalog-note p { color: var(--muted); font-size: .82rem; margin: .35rem 0 0; }
.catalog-toolbar { margin-bottom: 1rem; padding: .85rem 1rem; border: 1px solid var(--line); background: var(--light); display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: .86rem; font-weight: 700; }
.empty-state { display: none; padding: 2rem; text-align: center; background: var(--light); border: 1px solid var(--line); color: var(--muted); font-weight: 700; }

.info-grid, .steps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.info-card, .step-card, .contact-card, .legal-card { background: var(--white); border: 1px solid var(--line); padding: 1.4rem; border-radius: var(--radius); }
.info-card span, .step-card span { display: inline-grid; place-items: center; width: 38px; height: 38px; margin-bottom: 1rem; background: var(--yellow); color: var(--black); font-weight: 800; border-radius: var(--radius); }
.info-card h2, .step-card h2 { font-size: 1.18rem; margin-bottom: .5rem; color: var(--black); }
.info-card p, .step-card p, .contact-card p, .legal-card p { color: var(--muted); }

.location-grid { display: grid; gap: 1.3rem; }
.location-card { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: center; background: var(--white); border: 1px solid var(--line); padding: 1.2rem; border-radius: var(--radius); }
.map-placeholder { min-height: 260px; display: grid; place-items: center; background: var(--light); border: 1px dashed #cfd5dd; color: var(--muted); text-align: center; padding: 1rem; font-weight: 700; }

.brand-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; }
.brand-grid--index { margin-top: .5rem; }
.brand-card { border: 1px solid var(--line); background: var(--white); padding: 1.2rem; text-align: center; border-radius: var(--radius); }
.logo-placeholder { height: 86px; display: grid; place-items: center; background: var(--white); border: 1px solid var(--line); margin-bottom: .85rem; position: relative; overflow: hidden; }
.logo-placeholder img { max-width: 80%; max-height: 70px; object-fit: contain; z-index: 1; }
.logo-placeholder span { color: var(--muted); font-size: .8rem; font-weight: 700; text-transform: uppercase; }
.brand-card h2, .brand-card h3 { font-size: 1rem; margin-bottom: .4rem; color: var(--black); }
.brand-card p { margin: 0; color: var(--muted); font-size: .82rem; }

.contact-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 1.4rem; align-items: start; }
.contact-form { background: var(--white); border: 1px solid var(--line); padding: 1.4rem; border-radius: var(--radius); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.form-field { display: grid; gap: .45rem; margin-bottom: 1rem; color: var(--black); font-weight: 700; font-size: .9rem; }
.form-field input, .form-field select, .form-field textarea { width: 100%; border: 1px solid var(--line); border-radius: var(--radius); padding: .85rem; background: var(--white); color: var(--text); outline: none; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(11,79,159,.1); }

.footer { background: var(--black); color: var(--white); padding: 3rem 0 1rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.footer h3, .footer h4 { margin-bottom: .7rem; color: var(--white); }
.footer p, .footer a, .footer li { color: #d4d4d4; font-size: .88rem; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--yellow); }
.footer-bottom { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; gap: 1rem; color: #bbbbbb; font-size: .8rem; }
.whatsapp-float { position: fixed; right: 18px; bottom: 18px; z-index: 1100; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: var(--whatsapp); color: var(--white); text-decoration: none; font-weight: 800; box-shadow: 0 10px 26px rgba(0,0,0,.18); }

@media (max-width: 1080px) {
    .category-grid, .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .brand-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .top-strip__content { flex-direction: column; align-items: flex-start; padding: .5rem 0; }
    .header-main { grid-template-columns: 1fr auto; min-height: auto; padding: .9rem 0; }
    .search-box { grid-column: 1 / -1; width: 100%; order: 3; }
    .menu-toggle { display: grid; }
    .nav-wrap { display: none; }
    .nav-wrap.is-open { display: block; }
    .nav-row { align-items: stretch; flex-direction: column; padding: .75rem 0 1rem; }
    .primary-nav { flex-direction: column; align-items: stretch; width: 100%; }
    .primary-nav a { border: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: .9rem; }
    .nav-cta { width: 100%; }
    .location-card, .contact-layout, .catalog-layout { grid-template-columns: 1fr; }
    .catalog-sidebar { position: static; }
    .catalog-toolbar { flex-direction: column; }
}

@media (max-width: 720px) {
    :root { --container: min(100% - 28px, 1180px); }
    .section-head { align-items: flex-start; flex-direction: column; }
    .product-grid, .brand-grid, .info-grid, .steps-grid { grid-template-columns: 1fr; }
    .category-media { aspect-ratio: 4 / 3; }
    .product-img, .product-photo { aspect-ratio: 1 / 1; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; }
    .form-grid { grid-template-columns: 1fr; }
    .page-hero h1 { font-size: clamp(2.1rem, 12vw, 3rem); }
    .banner-info { padding: 1.6rem; }
    .banner-art { max-height: none; }
    .search-box { flex-direction: column; }
    .search-box button { min-height: 42px; }
}

.pagination {
    margin-top: 1.8rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .45rem;
}

.pagination__btn {
    min-width: 40px;
    min-height: 40px;
    padding: 0 .85rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--dark);
    font-weight: 800;
    cursor: pointer;
}

.pagination__btn:hover:not(:disabled),
.pagination__btn.active {
    background: var(--blue);
    border-color: var(--blue);
    color: var(--white);
}

.pagination__btn:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.pagination__ellipsis {
    min-width: 28px;
    text-align: center;
    color: var(--muted);
    font-weight: 800;
}

.section--compact { padding: clamp(1.8rem, 3vw, 3rem) 0; }
.section-head--tight { margin-bottom: 1.15rem; }
.section-head--tight h2 { margin-bottom: 0; }
.categories-section { border-top: 1px solid var(--line); }
.category-grid--compact { grid-template-columns: repeat(9, minmax(0, 1fr)); gap: .8rem; }
.category-card--compact { border-radius: 0; }
.category-card--compact .category-media { aspect-ratio: 4 / 3; }
.category-card--compact .category-media::after { background: rgba(0,0,0,.06); }
.category-card--compact .category-body { padding: .7rem .5rem .85rem; text-align: center; }
.category-card--compact .category-body h3 { font-size: .84rem; line-height: 1.2; margin: 0; }
.category-card--compact .category-body p { display: none; }
.products-section .product-grid { margin-top: .25rem; }
.section--blue { background: linear-gradient(180deg, #0b4f9f 0%, #083c79 100%); }
.section-head--invert h2 { color: var(--white); }
.delivery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.delivery-card { background: rgba(255,255,255,.98); border: 1px solid rgba(255,255,255,.18); padding: 1.15rem; }
.delivery-card span { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-bottom: .8rem; background: var(--yellow); color: var(--black); font-weight: 800; }
.delivery-card h3 { margin: 0 0 .45rem; color: var(--black); font-size: 1rem; }
.delivery-card p { margin: 0; color: var(--muted); font-size: .86rem; }
#marcas .brand-card { background: #fff; }
#marcas .logo-placeholder { background: #fff; }

@media (max-width: 1280px) {
    .category-grid--compact { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 1080px) {
    .category-grid--compact { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .hero-full { min-height: 300px; }
    .hero-video { height: 100%; }
    .hero-overlay { padding-top: 1.4rem; }
    .hero-overlay h1 { max-width: 340px; font-size: clamp(1.85rem, 8vw, 3rem); }
    .delivery-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .category-grid--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero-full { min-height: 240px; }
    .hero-video { height: 100%; }
    .hero-overlay h1 { max-width: 250px; }
}

/* Ajustes v9 */
.brand { min-width: auto; }
.brand__mark { display: none; }
.brand__name { font-size: 1.2rem; }
.brand__note { font-size: .74rem; }

/* Botones de WhatsApp en verde */
.nav-cta,
.btn--whatsapp {
    background: var(--whatsapp);
    color: var(--white);
    border-color: var(--whatsapp);
}
.nav-cta:hover,
.btn--whatsapp:hover {
    background: #1fb85a;
    border-color: #1fb85a;
    color: var(--white);
}

/* Banner principal: texto centrado, imagen más oscura para lectura */
.hero-full img {
    opacity: .62;
    filter: saturate(1.02) contrast(1.03);
}
.hero-full::after {
    background: rgba(0, 0, 0, .28);
}
.hero-overlay {
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 0;
}
.hero-overlay h1 {
    margin-inline: auto;
    max-width: 780px;
    text-align: center;
}

/* Banners internos: catálogo, despachos y contacto */
.page-banner {
    position: relative;
    min-height: 360px;
    background: var(--black);
    overflow: hidden;
    display: grid;
    place-items: center;
}
.page-banner img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .58;
    filter: saturate(1.02) contrast(1.04);
}
.page-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .34);
}
.page-banner__overlay {
    position: relative;
    z-index: 2;
    width: 100%;
    text-align: center;
}
.page-banner h1 {
    margin: 0;
    color: var(--white);
    font-size: clamp(2.4rem, 6vw, 5.3rem);
    line-height: .95;
    letter-spacing: -.045em;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .24);
}

/* Delivery con menos blanco */
.section--blue {
    background: #0b4f9f;
}
.delivery-card {
    background: #083c79;
    border: 1px solid rgba(255,255,255,.22);
    color: var(--white);
}
.delivery-card h3,
.delivery-card p {
    color: var(--white);
}
.delivery-card p {
    opacity: .84;
}
.delivery-card span {
    background: var(--yellow);
    color: var(--black);
}

@media (max-width: 900px) {
    .page-banner {
        min-height: 280px;
    }
}
@media (max-width: 720px) {
    .page-banner {
        min-height: 230px;
    }
    .page-banner h1 {
        font-size: clamp(2.1rem, 11vw, 3.2rem);
    }
}


/* Ajuste visual de marcas aliadas */
#marcas { background: #eef1f5; }
#marcas .section-head h2 { margin-bottom: .2rem; }
#marcas .brand-grid { gap: 1.15rem; }
#marcas .brand-card {
    padding: 1rem 1rem 1.15rem;
    border-radius: 0;
    box-shadow: 0 10px 22px rgba(17, 24, 39, .04);
}
#marcas .logo-placeholder {
    height: 118px;
    margin-bottom: .95rem;
    padding: .65rem;
    border-radius: 0;
    background: #fff;
}
#marcas .logo-placeholder img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: contain;
    display: block;
}
#marcas .logo-placeholder span { display: none; }
#marcas .brand-card h3 {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.25;
}
@media (max-width: 900px) {
    #marcas .brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    #marcas .logo-placeholder { height: 104px; }
}
@media (max-width: 560px) {
    #marcas .brand-grid { grid-template-columns: 1fr; }
    #marcas .logo-placeholder { height: 96px; }
}


/* Ajustes v11: logo real, WhatsApp con imagen y cards de producto sin unidad */
.brand {
    gap: .85rem;
}
.brand__logo-wrap {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #06172d;
    border: 2px solid var(--yellow);
}
.brand__logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.brand__name {
    font-size: 1.18rem;
}
.brand__note {
    font-size: .72rem;
}
.whatsapp-float {
    width: 58px;
    height: 58px;
    background: transparent;
    box-shadow: 0 10px 26px rgba(0,0,0,.18);
    overflow: hidden;
}
.whatsapp-float img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.product-specs {
    margin-bottom: .7rem;
}
.product-specs li {
    line-height: 1.35;
}
@media (max-width: 900px) {
    .brand__logo-wrap {
        width: 52px;
        height: 52px;
        flex-basis: 52px;
    }
    .brand__name {
        font-size: 1.02rem;
    }
    .brand__note {
        font-size: .65rem;
    }
}
@media (max-width: 420px) {
    .brand__logo-wrap {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
    }
    .brand__name {
        font-size: .95rem;
    }
}


/* Ajuste v12: imágenes de productos ocupando todo el espacio de la card */
.product-img,
.product-photo {
    background: #ffffff;
}

.product-photo img {
    width: 100%;
    height: 100%;
    padding: 0 !important;
    object-fit: cover;
    object-position: center;
    background: #ffffff;
}

/* Mantiene el placeholder gris solo cuando no existe imagen */
.product-photo span {
    position: relative;
    z-index: 0;
}

.product-photo img[style*="display: none"] + span {
    display: grid;
}

/* En mobile mantenemos la proporción cuadrada */
@media (max-width: 720px) {
    .product-img,
    .product-photo {
        aspect-ratio: 1 / 1;
    }
}


/* Ajustes v13: productos más compactos, filtros por categoría y despachos lado a lado */
.products-section .product-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: .85rem;
}

.products-section .product-photo {
    aspect-ratio: 1 / 0.86;
}

.products-section .product-body {
    padding: .78rem;
}

.products-section .product-kicker {
    font-size: .62rem;
    line-height: 1.2;
}

.products-section .product-title {
    font-size: .82rem;
    line-height: 1.18;
    min-height: 2.25rem;
    margin: .25rem 0 .45rem;
}

.products-section .product-specs {
    font-size: .68rem;
    margin-bottom: .5rem;
}

.products-section .product-price {
    font-size: 1rem;
    margin-bottom: .55rem;
}

.products-section .product-card .btn {
    min-height: 34px;
    font-size: .72rem;
}

.location-grid--two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
}

.location-card--simple {
    display: block;
    padding: clamp(1.5rem, 3vw, 2.2rem);
    min-height: 260px;
}

.location-card--simple h2 {
    margin-bottom: .65rem;
}

.location-card--simple .btn {
    margin-top: .75rem;
}

@media (max-width: 1180px) {
    .products-section .product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .products-section .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .location-grid--two {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .product-grid,
    .products-section .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: .7rem;
    }
    .product-body {
        padding: .7rem;
    }
    .product-photo {
        aspect-ratio: 1 / 1;
    }
    .product-kicker {
        font-size: .58rem;
        line-height: 1.18;
        letter-spacing: .04em;
    }
    .product-title {
        font-size: .78rem;
        line-height: 1.16;
        min-height: 2.25rem;
        margin: .25rem 0 .45rem;
    }
    .product-specs {
        font-size: .66rem;
        margin-bottom: .45rem;
    }
    .product-price {
        font-size: .98rem;
        margin-bottom: .5rem;
    }
    .product-card .btn {
        min-height: 34px;
        font-size: .7rem;
        padding-inline: .5rem;
    }
    .catalog-toolbar {
        font-size: .75rem;
        padding: .7rem;
    }
}


/* Ajuste v14: carrusel móvil para categorías */
.category-carousel {
    position: relative;
}

.category-arrow {
    display: none;
}

@media (max-width: 720px) {
    .categories-section {
        padding-top: 1.7rem;
        padding-bottom: 1.8rem;
    }

    .categories-section .section-head {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: .8rem;
        margin-bottom: 1rem;
    }

    .categories-section .section-head h2 {
        font-size: clamp(1.8rem, 8vw, 2.45rem);
        line-height: .95;
        letter-spacing: -.05em;
        max-width: 70%;
    }

    .categories-section .section-head .btn {
        min-height: 42px;
        padding: 0 .9rem;
        font-size: .8rem;
    }

    .category-carousel {
        margin-inline: -6px;
        padding-inline: 34px;
    }

    .category-grid--compact {
        display: flex;
        grid-template-columns: none;
        gap: .7rem;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        padding: 0 0 .25rem;
        scrollbar-width: none;
    }

    .category-grid--compact::-webkit-scrollbar {
        display: none;
    }

    .category-card--compact {
        flex: 0 0 calc((100% - .7rem) / 2);
        min-width: 0;
        scroll-snap-align: start;
    }

    .category-card--compact .category-media {
        aspect-ratio: 1.15 / 1;
    }

    .category-card--compact .category-body {
        min-height: 56px;
        padding: .62rem .45rem .7rem;
        display: grid;
        place-items: center;
    }

    .category-card--compact .category-body h3 {
        font-size: .82rem;
        line-height: 1.05;
        letter-spacing: -.02em;
    }

    .category-arrow {
        display: grid;
        place-items: center;
        position: absolute;
        top: 43%;
        transform: translateY(-50%);
        z-index: 5;
        width: 30px;
        height: 46px;
        border: 1px solid var(--line);
        background: var(--black);
        color: var(--white);
        font-size: 1.8rem;
        font-weight: 800;
        line-height: 1;
        cursor: pointer;
        box-shadow: 0 8px 18px rgba(0,0,0,.16);
    }

    .category-arrow--prev {
        left: 0;
    }

    .category-arrow--next {
        right: 0;
    }

    .category-arrow:active {
        transform: translateY(-50%) scale(.96);
    }
}

@media (max-width: 380px) {
    .category-carousel {
        padding-inline: 30px;
    }

    .category-card--compact .category-body h3 {
        font-size: .76rem;
    }
}
