/* =====================================================================
   SH SERVICIOS · Hoja de estilos del sitio público
   Identidad industrial: amarillo de acento, negro, grises y blanco.
   Escrita sobre Bootstrap 5 pero con componentes propios: la idea es
   que NO parezca una plantilla genérica.
   ===================================================================== */

/* ---------------------------------------------------------------------
   1. Variables
   --------------------------------------------------------------------- */
:root {
    --yellow:        #F5C400;
    --yellow-dark:   #D9AE00;
    --yellow-soft:   #FFF5CC;
    --black:         #111111;
    --dark:          #252525;
    --dark-2:        #1A1A1A;
    --gray:          #6B6B6B;
    --gray-light:    #E8E8E8;
    --gray-bg:       #F5F5F5;
    --white:         #FFFFFF;

    --ok:            #2E9E5B;
    --warn:          #E08A00;
    --danger:        #C6402F;
    --info:          #2A6FB5;

    --radius:        6px;
    --radius-lg:     10px;
    --shadow-sm:     0 1px 3px rgba(17,17,17,.10);
    --shadow:        0 6px 20px rgba(17,17,17,.10);
    --shadow-lg:     0 18px 46px rgba(17,17,17,.18);

    --ease:          cubic-bezier(.22,.61,.36,1);
    --t-fast:        .18s var(--ease);
    --t:             .3s var(--ease);

    --header-h:      86px;
    --font:          "Segoe UI", Roboto, "Helvetica Neue", Arial, system-ui, sans-serif;
}

/* ---------------------------------------------------------------------
   2. Base
   --------------------------------------------------------------------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
    font-family: var(--font);
    color: var(--dark);
    background: var(--white);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--black);
    line-height: 1.15;
}

a { color: var(--dark); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--yellow-dark); }

img { max-width: 100%; height: auto; }

::selection { background: var(--yellow); color: var(--black); }

.skip-link {
    position: absolute; top: -60px; left: 12px; z-index: 2000;
    background: var(--yellow); color: var(--black);
    padding: 10px 18px; font-weight: 700; border-radius: 0 0 var(--radius) var(--radius);
    transition: top var(--t-fast);
}
.skip-link:focus { top: 0; }

:focus-visible {
    outline: 3px solid var(--yellow);
    outline-offset: 2px;
}

/* Barra de scroll con carácter */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--gray-bg); }
::-webkit-scrollbar-thumb { background: #C9C9C9; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--yellow-dark); }

/* Franja de peligro: el detalle industrial que se repite en el sitio */
.hazard-stripe {
    height: 6px;
    background: repeating-linear-gradient(
        135deg,
        var(--yellow) 0 18px,
        var(--black) 18px 36px
    );
}

/* ---------------------------------------------------------------------
   3. Tipografía utilitaria
   --------------------------------------------------------------------- */
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: .78rem; font-weight: 800; letter-spacing: .16em;
    text-transform: uppercase; color: var(--gray);
}
.eyebrow::before {
    content: ''; width: 26px; height: 3px; background: var(--yellow);
}

.section-title {
    font-size: clamp(1.6rem, 3.2vw, 2.35rem);
    margin: 6px 0 10px;
    text-transform: uppercase;
}
.section-title--light { color: var(--white); }

.section-lead { color: var(--gray); max-width: 62ch; margin-bottom: 0; }

.section-head {
    display: flex; flex-wrap: wrap; align-items: flex-end;
    justify-content: space-between; gap: 18px; margin-bottom: 30px;
}

.section { padding: clamp(48px, 7vw, 88px) 0; }
.section--gray { background: var(--gray-bg); }
.section--dark { background: var(--black); color: #D5D5D5; }
.section--dark .section-title { color: var(--white); }
.section--dark .section-lead { color: #A5A5A5; }

.text-accent { color: var(--yellow-dark); }
.text-muted-2 { color: var(--gray); }

/* ---------------------------------------------------------------------
   4. Botones
   --------------------------------------------------------------------- */
.btn {
    --bs-btn-border-radius: var(--radius);
    font-weight: 700;
    letter-spacing: .02em;
    border-radius: var(--radius);
    padding: 12px 22px;
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    border: 2px solid transparent;
    transition: transform var(--t-fast), background var(--t-fast), color var(--t-fast), box-shadow var(--t-fast);
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 8px 15px; font-size: .875rem; }
.btn-lg { padding: 15px 30px; font-size: 1.05rem; }

.btn-accent {
    background: var(--yellow); color: var(--black); border-color: var(--yellow);
    box-shadow: 0 4px 0 var(--yellow-dark);
}
.btn-accent:hover {
    background: #FFD426; color: var(--black);
    box-shadow: 0 6px 0 var(--yellow-dark); transform: translateY(-2px);
}
.btn-accent:active { box-shadow: 0 2px 0 var(--yellow-dark); }

.btn-dark-2 {
    background: var(--black); color: var(--white); border-color: var(--black);
}
.btn-dark-2:hover { background: var(--dark); color: var(--yellow); }

.btn-outline-accent {
    background: transparent; color: var(--black); border-color: var(--black);
}
.btn-outline-accent:hover { background: var(--yellow); border-color: var(--yellow); color: var(--black); }

.btn-outline-light-2 {
    background: transparent; color: var(--white); border-color: rgba(255,255,255,.45);
}
.btn-outline-light-2:hover { background: var(--white); color: var(--black); border-color: var(--white); }

.btn-ghost {
    background: transparent; color: var(--gray); border-color: var(--gray-light);
}
.btn-ghost:hover { background: var(--gray-bg); color: var(--black); }

.btn-wa {
    background: #25D366; color: #fff; border-color: #25D366;
}
.btn-wa:hover { background: #1EBE5A; color: #fff; }

/* ---------------------------------------------------------------------
   5. Cabecera
   --------------------------------------------------------------------- */
/* z-index alto: el <header> crea contexto de apilado y el menu movil vive
   adentro; si queda por debajo del backdrop transparente, los clicks en los
   links del menu los captura el backdrop y no navegan. */
.site-header { position: sticky; top: 0; z-index: 1200; }

.mainbar { background: var(--dark-2); border-bottom: 3px solid var(--yellow); }
.mainbar__inner {
    display: flex; align-items: center; gap: 26px;
    min-height: 68px; padding-block: 9px;
}

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand__logo { max-height: 44px; width: auto; }
.brand__mark {
    width: 46px; height: 46px; display: grid; place-items: center;
    background: var(--yellow); color: var(--black); font-size: 1.4rem;
    border-radius: var(--radius);
    clip-path: polygon(12% 0, 100% 0, 88% 100%, 0 100%);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong {
    color: var(--white); font-size: 1.2rem; font-weight: 800;
    letter-spacing: .04em; text-transform: uppercase;
}
.brand__text small { color: var(--yellow); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }

/* Buscador colapsable: sólo el ícono; el campo se despliega al tocarlo */
.searchbox { position: relative; flex-shrink: 0; }
.searchbox__toggle {
    width: 44px; height: 44px; border: 0; border-radius: var(--radius);
    background: #2F2F2F; color: var(--white); font-size: 1.1rem; cursor: pointer;
    display: grid; place-items: center; transition: background var(--t-fast), color var(--t-fast);
}
.searchbox__toggle:hover,
.searchbox.is-open .searchbox__toggle { background: var(--yellow); color: var(--black); }

.searchbox__form {
    position: absolute; top: calc(100% + 14px); right: 0;
    width: min(440px, 92vw); display: none;
    background: var(--dark-2); padding: 10px; border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg); border: 1px solid #333;
    animation: dropIn .16s var(--ease);
}
.searchbox.is-open .searchbox__form { display: block; }
.searchbox__input {
    width: 100%; height: 44px; padding: 0 50px 0 16px;
    border: 2px solid #3A3A3A; border-radius: var(--radius);
    background: #fff; color: var(--black); font-size: .95rem;
}
.searchbox__input::placeholder { color: #8A8A8A; }
.searchbox__input:focus { outline: none; border-color: var(--yellow); }
.searchbox__btn {
    position: absolute; right: 14px; top: 14px; width: 36px; height: 36px;
    border: 0; border-radius: var(--radius); background: var(--yellow);
    color: var(--black); font-size: 1rem; cursor: pointer; display: grid; place-items: center;
    transition: background var(--t-fast);
}
.searchbox__btn:hover { background: #FFD426; }

.searchbox__results {
    position: absolute; top: calc(100% + 6px); left: 10px; right: 10px;
    background: var(--white); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg); overflow: hidden; z-index: 60;
    max-height: 60vh; overflow-y: auto;
    animation: dropIn .18s var(--ease);
}
@keyframes dropIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

.suggest-item {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 16px; border-bottom: 1px solid var(--gray-light);
    transition: background var(--t-fast);
}
.suggest-item:last-child { border-bottom: 0; }
.suggest-item:hover, .suggest-item.is-active { background: var(--yellow-soft); }
.suggest-item__thumb {
    width: 42px; height: 42px; border-radius: var(--radius); flex-shrink: 0;
    object-fit: cover; background: var(--gray-bg);
    display: grid; place-items: center; color: var(--gray);
}
.suggest-item__body { min-width: 0; flex: 1; }
.suggest-item__label { font-weight: 700; font-size: .92rem; color: var(--black); display: block;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest-item__sub { font-size: .78rem; color: var(--gray); }
.suggest-item__tag {
    font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
    background: var(--gray-bg); color: var(--gray); padding: 3px 8px; border-radius: 20px;
}
.suggest-empty { padding: 22px 16px; text-align: center; color: var(--gray); font-size: .9rem; }

.mainbar__actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.mainbar__cta { white-space: nowrap; }

.mainbar__toggle {
    width: 46px; height: 46px; border: 0; border-radius: var(--radius);
    background: #2F2F2F; display: none; flex-direction: column;
    align-items: center; justify-content: center; gap: 5px; cursor: pointer;
}
.mainbar__toggle span {
    display: block; width: 22px; height: 2px; background: var(--white);
    transition: transform var(--t-fast), opacity var(--t-fast);
}
.mainbar__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mainbar__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.mainbar__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menú (inline en escritorio) */
.navmenu { display: flex; align-items: center; gap: 20px; margin-right: auto; }
.navmenu__list {
    display: flex; list-style: none; margin: 0; padding: 0; gap: 2px; flex-wrap: nowrap;
}
.navmenu__list a {
    display: block; padding: 11px 13px; color: #CFCFCF; white-space: nowrap;
    font-weight: 700; font-size: .84rem; letter-spacing: .03em; text-transform: uppercase;
    position: relative;
}
.navmenu__list a::after {
    content: ''; position: absolute; left: 13px; right: 13px; bottom: 4px;
    height: 3px; background: var(--yellow); transform: scaleX(0);
    transform-origin: left; transition: transform var(--t);
}
.navmenu__list a:hover { color: var(--white); }
.navmenu__list a:hover::after, .navmenu__list a.is-active::after { transform: scaleX(1); }
.navmenu__list a.is-active { color: var(--yellow); }

.navmenu__cta { display: none; }   /* sólo dentro del menú móvil */

.badge-count {
    display: inline-grid; place-items: center; min-width: 20px; height: 20px;
    padding: 0 6px; border-radius: 20px; background: var(--yellow);
    color: var(--black); font-size: .7rem; font-weight: 800;
}

/* ---------------------------------------------------------------------
   6. Hero
   --------------------------------------------------------------------- */
.hero {
    position: relative; background: var(--black); color: var(--white);
    overflow: hidden; padding: clamp(56px, 8vw, 104px) 0 clamp(70px, 9vw, 120px);
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: radial-gradient(circle at 25% 40%, #000 0%, transparent 72%);
}
.hero::after {
    content: ''; position: absolute; right: -8%; top: -18%;
    width: 62vw; height: 145%;
    background: linear-gradient(140deg, rgba(245,196,0,.13), rgba(245,196,0,0) 62%);
    transform: skewX(-14deg);
}
.hero__inner { position: relative; z-index: 2; }

.hero__badge {
    display: inline-flex; align-items: center; gap: 9px;
    background: rgba(245,196,0,.14); border: 1px solid rgba(245,196,0,.34);
    color: var(--yellow); padding: 7px 15px; border-radius: 40px;
    font-size: .78rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
    margin-bottom: 22px;
}

.hero__title {
    font-size: clamp(2.1rem, 5.4vw, 4rem);
    color: var(--white); text-transform: uppercase; margin-bottom: 18px;
    line-height: 1.03;
}
.hero__title em { font-style: normal; color: var(--yellow); position: relative; }
.hero__title em::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 4px; height: 8px;
    background: rgba(245,196,0,.22);
}

.hero__lead { font-size: clamp(1rem, 1.7vw, 1.2rem); color: #C7C7C7; max-width: 55ch; margin-bottom: 30px; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }

/* En escritorio los botones del hero muestran sólo el ícono y revelan
   el texto al pasar el mouse. En teléfono/tablet quedan como están. */
@media (min-width: 768px) {
    .hero__actions .btn {
        gap: 0; padding-inline: 18px; overflow: hidden;
        transition: gap var(--t), padding var(--t), transform var(--t-fast),
                    background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
    }
    .hero__actions .btn__label {
        display: inline-block; max-width: 0; opacity: 0;
        white-space: nowrap; overflow: hidden;
        transition: max-width var(--t), opacity var(--t-fast);
    }
    .hero__actions .btn:hover,
    .hero__actions .btn:focus-visible { gap: 9px; padding-inline: 26px; }
    .hero__actions .btn:hover .btn__label,
    .hero__actions .btn:focus-visible .btn__label { max-width: 240px; opacity: 1; }
}

.hero__visual { position: relative; }
.hero__visual-frame {
    position: relative; border-radius: var(--radius-lg); overflow: hidden;
    border: 1px solid rgba(255,255,255,.12);
    background: linear-gradient(160deg, #2A2A2A, #141414);
    aspect-ratio: 4 / 3; display: grid; place-items: center;
}
.hero__visual-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero__visual-frame::after {
    content: ''; position: absolute; inset: auto 0 0 0; height: 6px;
    background: repeating-linear-gradient(135deg, var(--yellow) 0 14px, transparent 14px 28px);
}
.hero__visual-tag {
    position: absolute; left: -14px; bottom: 26px; z-index: 3;
    background: var(--yellow); color: var(--black); padding: 12px 18px;
    border-radius: var(--radius); font-weight: 800; box-shadow: var(--shadow);
    display: flex; align-items: center; gap: 10px;
}
.hero__visual-tag i { font-size: 1.3rem; }

/* Bandas de confianza bajo el hero */
.trustbar { background: var(--yellow); }
.trustbar__inner {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 2px; background: rgba(0,0,0,.10);
}
.trustbar__item {
    background: var(--yellow); padding: 20px 18px;
    display: flex; align-items: center; gap: 13px; color: var(--black);
}
.trustbar__item i { font-size: 1.7rem; }
.trustbar__item strong { display: block; font-size: .95rem; }
.trustbar__item span { font-size: .8rem; opacity: .78; }

/* ---------------------------------------------------------------------
   7. Tarjetas de categoría
   --------------------------------------------------------------------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(214px, 1fr)); gap: 16px; }

.cat-card {
    position: relative; display: flex; flex-direction: column; gap: 10px;
    background: var(--white); border: 1px solid var(--gray-light);
    border-radius: var(--radius-lg); padding: 22px 20px; overflow: hidden;
    transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.cat-card::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
    background: var(--yellow); transform: scaleY(0); transform-origin: top;
    transition: transform var(--t);
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #D6D6D6; }
.cat-card:hover::before { transform: scaleY(1); }
.cat-card__icon {
    width: 50px; height: 50px; display: grid; place-items: center; font-size: 1.5rem;
    background: var(--gray-bg); color: var(--black); border-radius: var(--radius);
    transition: background var(--t), color var(--t); flex-shrink: 0; overflow: hidden;
}
.cat-card:hover .cat-card__icon { background: var(--yellow); }
/* Cuando la categoría tiene imagen propia (para íconos que no existen en
   Bootstrap Icons, ej. un autoelevador). */
.cat-card__icon--img { background: #fff; padding: 5px; }
.cat-card:hover .cat-card__icon--img { background: #fff; }
.cat-card__icon img { width: 100%; height: 100%; object-fit: contain; }
.cat-card__title { font-size: 1.02rem; margin: 0; }
.cat-card__count { font-size: .8rem; color: var(--gray); }
.cat-card__arrow {
    margin-top: auto; color: var(--gray); font-size: .84rem; font-weight: 700;
    display: inline-flex; align-items: center; gap: 6px;
    transition: color var(--t-fast), gap var(--t-fast);
}
.cat-card:hover .cat-card__arrow { color: var(--black); gap: 10px; }

/* Versión compacta para repuestos */
.cat-chip {
    display: inline-flex; align-items: center; gap: 9px;
    background: var(--white); border: 1px solid var(--gray-light);
    border-radius: 40px; padding: 9px 17px; font-weight: 600; font-size: .9rem;
    transition: all var(--t-fast);
}
.cat-chip:hover { background: var(--black); color: var(--white); border-color: var(--black); transform: translateY(-2px); }
.cat-chip i { color: var(--yellow-dark); }
.cat-chip:hover i { color: var(--yellow); }
.cat-chip small { color: var(--gray); font-size: .76rem; }
.cat-chip:hover small { color: #B0B0B0; }

/* ---------------------------------------------------------------------
   8. Tarjeta de producto
   --------------------------------------------------------------------- */
.product-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); gap: 22px;
}
.product-grid--list { grid-template-columns: 1fr; gap: 14px; }

.pcard {
    position: relative; display: flex; flex-direction: column;
    background: var(--white); border: 1px solid var(--gray-light);
    border-radius: var(--radius-lg); overflow: hidden;
    transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.pcard:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: #DADADA; }

.pcard__media {
    position: relative; aspect-ratio: 4 / 3; overflow: hidden;
    background: linear-gradient(160deg, #EFEFEF, #DEDEDE);
}
.pcard__media img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .55s var(--ease);
}
.pcard:hover .pcard__media img { transform: scale(1.07); }

.pcard__placeholder {
    width: 100%; height: 100%; display: grid; place-items: center;
    color: #B4B4B4; font-size: 2.6rem;
}

.pcard__badges {
    position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column;
    gap: 6px; align-items: flex-start; z-index: 2;
}
.pcard__actions {
    position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column; gap: 6px;
    opacity: 0; transform: translateX(8px); transition: all var(--t); z-index: 2;
}
.pcard:hover .pcard__actions, .pcard__actions:focus-within { opacity: 1; transform: none; }
@media (hover: none) { .pcard__actions { opacity: 1; transform: none; } }

.icon-action {
    width: 36px; height: 36px; display: grid; place-items: center;
    background: rgba(255,255,255,.94); border: 1px solid var(--gray-light);
    border-radius: var(--radius); color: var(--dark); cursor: pointer;
    transition: all var(--t-fast);
}
.icon-action:hover { background: var(--yellow); border-color: var(--yellow); color: var(--black); }
.icon-action.is-active { background: var(--black); border-color: var(--black); color: var(--yellow); }

.pcard__body { padding: 16px 17px 18px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.pcard__meta { display: flex; align-items: center; gap: 8px; font-size: .75rem; color: var(--gray); }
.pcard__meta strong { color: var(--black); font-weight: 700; }
.pcard__title {
    font-size: 1.02rem; margin: 0; line-height: 1.32;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pcard__title a:hover { color: var(--yellow-dark); }

.pcard__specs {
    display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px;
}
/* Etiquetas dentro del cuerpo: sólo en teléfono (ver media query). */
.pcard__tags { display: none; flex-wrap: wrap; gap: 5px; margin-top: 2px; }
.spec-pill {
    display: inline-flex; align-items: center; gap: 5px;
    background: var(--gray-bg); border-radius: 4px; padding: 4px 9px;
    font-size: .74rem; color: var(--dark); font-weight: 600;
}
.spec-pill i { color: var(--gray); font-size: .8rem; }

.pcard__foot {
    margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--gray-light);
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 10px; flex-wrap: wrap;
}
.pcard__price { line-height: 1.15; flex: 1 1 auto; min-width: 0; }
.pcard__price strong { font-size: 1.22rem; color: var(--black); display: block; }
.pcard__price small { font-size: .72rem; color: var(--gray); }
.pcard__price del { font-size: .8rem; color: var(--gray); }

.pcard__cta { display: flex; gap: 6px; flex: 0 0 auto; margin-left: auto; }
.pcard__cta .btn { white-space: nowrap; }

/* Vista lista */
.product-grid--list .pcard { flex-direction: row; }
.product-grid--list .pcard__media { width: 220px; flex-shrink: 0; aspect-ratio: 1; }
.product-grid--list .pcard__body { flex-direction: column; }
@media (max-width: 640px) {
    .product-grid--list .pcard { flex-direction: column; }
    .product-grid--list .pcard__media { width: 100%; aspect-ratio: 4/3; }
}

/* Etiquetas y estados */
.tag {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em;
    padding: 4px 9px; border-radius: 4px; background: var(--gray-bg); color: var(--dark);
}
.tag--accent    { background: var(--yellow); color: var(--black); }
.tag--dark      { background: var(--black); color: var(--white); }
.tag--secondary { background: #DDD; color: var(--dark); }
.tag--success   { background: #DFF3E6; color: #1E7A45; }
.tag--danger    { background: #FBE3E0; color: var(--danger); }
.tag--warning   { background: #FCEFD6; color: #97640B; }
.tag--info      { background: #DEEBF8; color: var(--info); }

.status {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: .78rem; font-weight: 700;
}
.status::before {
    content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--gray);
    box-shadow: 0 0 0 3px rgba(107,107,107,.16);
}
.status--ok::before      { background: var(--ok);     box-shadow: 0 0 0 3px rgba(46,158,91,.18); }
.status--warn::before    { background: var(--warn);   box-shadow: 0 0 0 3px rgba(224,138,0,.18); }
.status--off::before     { background: var(--danger); box-shadow: 0 0 0 3px rgba(198,64,47,.18); }
.status--info::before    { background: var(--info);   box-shadow: 0 0 0 3px rgba(42,111,181,.18); }
.status--neutral::before { background: #999; }
.status--ok      { color: #1E7A45; }
.status--warn    { color: #97640B; }
.status--off     { color: var(--danger); }
.status--info    { color: var(--info); }
.status--neutral { color: var(--gray); }

/* ---------------------------------------------------------------------
   9. Catálogo: filtros y encabezado
   --------------------------------------------------------------------- */
.page-hero {
    background: var(--black); color: var(--white);
    padding: 42px 0 46px; position: relative; overflow: hidden;
}
.page-hero::after {
    content: ''; position: absolute; right: -6%; top: -40%; width: 46vw; height: 190%;
    background: linear-gradient(160deg, rgba(245,196,0,.12), transparent 60%); transform: skewX(-13deg);
}
.page-hero__inner { position: relative; z-index: 2; }
.page-hero h1 { color: var(--white); font-size: clamp(1.8rem, 4vw, 2.7rem); text-transform: uppercase; }
.page-hero p { color: #B9B9B9; max-width: 68ch; margin: 8px 0 0; }

.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .82rem; color: #9A9A9A; margin-bottom: 12px; }
.breadcrumbs a { color: #C9C9C9; }
.breadcrumbs a:hover { color: var(--yellow); }
.breadcrumbs span::before { content: '/'; margin-right: 8px; color: #666; }

.catalog-layout { display: grid; grid-template-columns: 286px 1fr; gap: 28px; align-items: start; }
@media (max-width: 991px) { .catalog-layout { grid-template-columns: 1fr; } }

.filters {
    background: var(--white); border: 1px solid var(--gray-light);
    border-radius: var(--radius-lg); position: sticky; top: 96px;
    max-height: calc(100vh - 120px); overflow-y: auto;
}
.filters__head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 15px 18px; border-bottom: 1px solid var(--gray-light);
    position: sticky; top: 0; background: var(--white); z-index: 2;
}
.filters__head h2 { font-size: .95rem; margin: 0; text-transform: uppercase; letter-spacing: .05em; }

.filter-group { border-bottom: 1px solid var(--gray-light); }
.filter-group:last-child { border-bottom: 0; }
.filter-group__head {
    width: 100%; background: none; border: 0; padding: 14px 18px;
    display: flex; align-items: center; justify-content: space-between;
    font-weight: 700; font-size: .87rem; color: var(--black); cursor: pointer;
    text-transform: uppercase; letter-spacing: .03em;
}
.filter-group__head i { transition: transform var(--t-fast); color: var(--gray); }
.filter-group__head[aria-expanded="false"] i { transform: rotate(-90deg); }
.filter-group__body { padding: 0 18px 16px; }

.filter-check {
    display: flex; align-items: center; gap: 9px; padding: 5px 0;
    font-size: .875rem; cursor: pointer; color: var(--dark);
}
.filter-check input { accent-color: var(--yellow-dark); width: 16px; height: 16px; }
.filter-check:hover { color: var(--black); }
.filter-check span.count { margin-left: auto; color: var(--gray); font-size: .78rem; }

.filter-range { display: flex; gap: 8px; align-items: center; }
.filter-range input { width: 100%; }

.form-control, .form-select {
    border-radius: var(--radius); border: 1px solid #D3D3D3; padding: 10px 12px;
    font-size: .92rem; transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.form-control:focus, .form-select:focus {
    border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(245,196,0,.22);
}
.form-label { font-weight: 700; font-size: .82rem; color: var(--dark); margin-bottom: 5px; }

.catalog-toolbar {
    display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
    background: var(--white); border: 1px solid var(--gray-light);
    border-radius: var(--radius-lg); padding: 12px 16px; margin-bottom: 20px;
}
.catalog-toolbar__count { font-size: .9rem; color: var(--gray); }
.catalog-toolbar__count strong { color: var(--black); }
.catalog-toolbar__right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.view-switch { display: inline-flex; border: 1px solid var(--gray-light); border-radius: var(--radius); overflow: hidden; }
.view-switch a {
    width: 38px; height: 38px; display: grid; place-items: center; color: var(--gray);
    transition: all var(--t-fast);
}
.view-switch a.is-active { background: var(--black); color: var(--yellow); }
.view-switch a:hover { background: var(--gray-bg); }
.view-switch a.is-active:hover { background: var(--black); }

.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.active-filter {
    display: inline-flex; align-items: center; gap: 7px;
    background: var(--black); color: var(--white); border-radius: 30px;
    padding: 5px 12px; font-size: .78rem; font-weight: 600;
}
.active-filter a { color: var(--yellow); font-size: .9rem; line-height: 1; }

.filters-mobile-btn { display: none; }
@media (max-width: 991px) {
    .filters { position: fixed; inset: 0 auto 0 0; width: min(360px, 92vw); z-index: 1200;
        border-radius: 0; max-height: none; transform: translateX(-100%);
        transition: transform var(--t), visibility var(--t); visibility: hidden; }
    .filters.is-open { transform: none; visibility: visible; box-shadow: var(--shadow-lg); }
    .filters-mobile-btn { display: inline-flex; }
}

/* Paginación */
.pagination-wrap { display: flex; justify-content: center; margin-top: 34px; }
.pagination-list { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; }
.pagination-list a, .pagination-list span {
    min-width: 42px; height: 42px; display: grid; place-items: center; padding: 0 12px;
    border: 1px solid var(--gray-light); border-radius: var(--radius);
    font-weight: 700; font-size: .9rem; color: var(--dark); background: var(--white);
    transition: all var(--t-fast);
}
.pagination-list a:hover { border-color: var(--black); }
.pagination-list .is-current { background: var(--black); border-color: var(--black); color: var(--yellow); }
.pagination-list .is-disabled { opacity: .4; }

/* Estado vacío */
.empty-state {
    text-align: center; padding: 60px 20px; background: var(--white);
    border: 2px dashed var(--gray-light); border-radius: var(--radius-lg);
}
.empty-state i { font-size: 3rem; color: var(--gray-light); }
.empty-state h3 { margin: 14px 0 8px; font-size: 1.2rem; }
.empty-state p { color: var(--gray); max-width: 46ch; margin: 0 auto 18px; }

/* ---------------------------------------------------------------------
   10. Ficha de producto
   --------------------------------------------------------------------- */
/* Escritorio: imagen y video apilados en la columna izquierda, info a la derecha.
   Celular: imagen -> info -> video (una sola columna). */
.product-layout {
    display: grid; gap: 40px 40px; align-items: start;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    grid-template-rows: min-content min-content 1fr;
    grid-template-areas: "gallery info" "video info" "docs info";
}
.product-layout > .gallery-col   { grid-area: gallery; min-width: 0; }
.product-layout > .product-head  { grid-area: info; }
.product-layout > .product-video { grid-area: video; min-width: 0; align-self: start; }
.product-layout > .product-docs  { grid-area: docs;  min-width: 0; align-self: start; }
.product-layout > .product-video .panel,
.product-layout > .product-docs .panel { margin-bottom: 0; }

@media (max-width: 991px) {
    .product-layout {
        grid-template-columns: 1fr; gap: 22px;
        grid-template-rows: auto;
        grid-template-areas: "gallery" "info" "docs" "video";
    }
}

.gallery__main {
    position: relative; aspect-ratio: 4/3; border-radius: var(--radius-lg); overflow: hidden;
    background: var(--gray-bg); border: 1px solid var(--gray-light); cursor: zoom-in;
}
.gallery__main img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.gallery__zoom-hint {
    position: absolute; right: 12px; bottom: 12px; background: rgba(17,17,17,.78); color: #fff;
    padding: 6px 12px; border-radius: 30px; font-size: .74rem; display: flex; align-items: center; gap: 6px;
}
.gallery__thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin-top: 10px; }
.gallery__thumb {
    aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; cursor: pointer;
    border: 2px solid transparent; background: var(--gray-bg); transition: border-color var(--t-fast);
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb.is-active { border-color: var(--yellow); }
.gallery__thumb:hover { border-color: var(--gray); }

.lightbox {
    position: fixed; inset: 0; background: rgba(10,10,10,.94); z-index: 2000;
    display: none; align-items: center; justify-content: center; padding: 24px;
}
.lightbox.is-open { display: flex; animation: fadeIn .2s var(--ease); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: var(--radius); }
.lightbox__close, .lightbox__nav {
    position: absolute; background: rgba(255,255,255,.12); border: 0; color: #fff;
    width: 48px; height: 48px; border-radius: 50%; font-size: 1.3rem; cursor: pointer;
    transition: background var(--t-fast);
}
.lightbox__close:hover, .lightbox__nav:hover { background: var(--yellow); color: var(--black); }
.lightbox__close { top: 22px; right: 22px; }
.lightbox__nav--prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 22px; top: 50%; transform: translateY(-50%); }

.product-head__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 12px; }
.product-head h1 { font-size: clamp(1.5rem, 3.2vw, 2.2rem); margin-bottom: 10px; }
.product-code {
    font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
    background: var(--black); color: var(--yellow); padding: 4px 10px;
    border-radius: 4px; font-size: .82rem; font-weight: 700;
}

.price-box {
    background: var(--gray-bg); border-left: 5px solid var(--yellow);
    border-radius: var(--radius); padding: 20px 22px; margin: 22px 0;
}
.price-box__label { font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gray); }
.price-box__value { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 800; color: var(--black); line-height: 1.1; }
.price-box__alt { font-size: .9rem; color: var(--gray); }
.price-box__note { font-size: .78rem; color: var(--gray); margin-top: 6px; }
.price-box del { color: var(--gray); font-size: 1.1rem; font-weight: 600; }

.product-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 6px; }

.quick-specs {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1px;
    background: var(--gray-light); border: 1px solid var(--gray-light);
    border-radius: var(--radius); overflow: hidden; margin: 22px 0; max-width: 100%;
}
@media (max-width: 600px) { .quick-specs { grid-template-columns: 1fr 1fr; } }
.quick-spec { background: var(--white); padding: 14px 15px; min-width: 0; overflow-wrap: anywhere; }
.quick-spec span { display: block; font-size: .72rem; color: var(--gray); text-transform: uppercase; letter-spacing: .07em; }
.quick-spec strong { font-size: 1rem; color: var(--black); display: block; white-space: normal; overflow-wrap: anywhere; word-break: break-word; }
.quick-spec--filler { background: var(--white); }

.product-head { min-width: 0; }
.product-description { margin: 0 0 22px; color: var(--dark); line-height: 1.7; min-width: 0; }
.product-description, .product-description * { overflow-wrap: anywhere; word-break: break-word; }
.product-description__title {
    display: flex; align-items: center; gap: 8px; font-size: 1.05rem; margin: 0 0 8px; color: var(--black);
}
.product-description__title i { color: var(--yellow-dark); }
.product-description p { margin: 0 0 10px; }
.product-description p:last-child { margin-bottom: 0; }
.product-description ul, .product-description ol { margin: 0 0 10px; padding-left: 1.3rem; }
.product-description img { max-width: 100%; height: auto; border-radius: var(--radius); }

.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { padding: 11px 14px; border-bottom: 1px solid var(--gray-light); font-size: .92rem; text-align: left; }
.spec-table th { width: 46%; color: var(--gray); font-weight: 600; }
.spec-table td { font-weight: 700; color: var(--black); }
.spec-table tr:hover { background: var(--gray-bg); }

.spec-group__title {
    font-size: .82rem; text-transform: uppercase; letter-spacing: .1em;
    color: var(--black); background: var(--gray-bg); padding: 9px 14px; margin: 0;
    border-left: 3px solid var(--yellow);
}

.panel {
    background: var(--white); border: 1px solid var(--gray-light);
    border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 22px;
}
.panel__head {
    padding: 15px 20px; border-bottom: 1px solid var(--gray-light);
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.panel__head h2, .panel__head h3 { margin: 0; font-size: 1.02rem; text-transform: uppercase; letter-spacing: .04em; }
.panel__body { padding: 20px; }
.panel__body--flush { padding: 0; }

/* Compatibilidad */
.compat-list { display: flex; flex-wrap: wrap; gap: 8px; }
.compat-item {
    display: inline-flex; align-items: center; gap: 7px;
    background: var(--gray-bg); border: 1px solid var(--gray-light);
    border-radius: 30px; padding: 7px 14px; font-size: .85rem; font-weight: 600;
    transition: all var(--t-fast);
}
.compat-item:hover { background: var(--yellow); border-color: var(--yellow); color: var(--black); }
.compat-item i { color: var(--gray); }
.compat-item small { color: var(--gray); font-weight: 500; }

.code-list { display: grid; gap: 8px; }
.code-row {
    display: flex; align-items: center; gap: 12px; padding: 10px 14px;
    background: var(--gray-bg); border-radius: var(--radius);
}
.code-row__type {
    font-size: .68rem; text-transform: uppercase; letter-spacing: .07em; font-weight: 800;
    background: var(--black); color: var(--yellow); padding: 3px 8px; border-radius: 3px;
    min-width: 84px; text-align: center;
}
.code-row__value { font-family: ui-monospace, Consolas, monospace; font-weight: 700; color: var(--black); }
.code-copy { margin-left: auto; background: none; border: 0; color: var(--gray); cursor: pointer; }
.code-copy:hover { color: var(--black); }


/* Video */
.video-embed { position: relative; aspect-ratio: 16/9; border-radius: var(--radius-lg); overflow: hidden; background: #000; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Documentos */
.doc-row {
    display: flex; align-items: center; gap: 12px; padding: 12px 14px;
    border: 1px solid var(--gray-light); border-radius: var(--radius); margin-bottom: 8px;
    transition: all var(--t-fast);
}
.doc-row:hover { border-color: var(--yellow); background: #FFFDF3; }
.doc-row__icon { width: 40px; height: 40px; display: grid; place-items: center; background: var(--gray-bg); border-radius: var(--radius); color: var(--danger); font-size: 1.2rem; }
.doc-row__name { font-weight: 700; font-size: .92rem; }
.doc-row__meta { font-size: .76rem; color: var(--gray); }

/* ---------------------------------------------------------------------
   11. Comparador
   --------------------------------------------------------------------- */
.compare-hint {
    display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
    background: #FFF9E6; border: 1px solid #F0E4B0; border-radius: var(--radius);
    padding: 11px 15px; font-size: .9rem; color: #7a5c00;
}
.compare-hint i { font-size: 1.05rem; }

.compare-wrap {
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    border: 1px solid var(--gray-light); border-radius: var(--radius-lg);
}
.compare-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--white); }
.compare-table th, .compare-table td {
    padding: 13px 16px; border-bottom: 1px solid var(--gray-light); vertical-align: middle;
    min-width: 170px;
}
.compare-table thead th { background: var(--black); color: var(--white); position: sticky; top: 0; z-index: 5; text-align: center; }
.compare-table tbody th,
.compare-table__label {
    text-align: left; color: var(--gray); font-weight: 600; font-size: .86rem;
    width: 190px; min-width: 160px; background: var(--gray-bg);
    position: sticky; left: 0; z-index: 4;
}
.compare-table thead .compare-table__label { z-index: 6; background: #1b1b1b; }
.compare-table td { text-align: center; font-weight: 700; color: var(--black); }
.compare-table tbody tr:nth-child(even) td { background: #FBFBFA; }
.compare-table tbody tr:hover td { background: #FFFDF3; }
.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td { border-bottom: 0; }

.compare-table__img {
    width: 100%; max-width: 150px; aspect-ratio: 4 / 3; object-fit: cover;
    border-radius: 6px; margin-bottom: 8px; background: #fff;
}
.compare-table__name { display: block; font-size: .92rem; line-height: 1.3; font-weight: 700; }
.compare-table__head-actions { display: flex; gap: 6px; justify-content: center; margin-top: 10px; }
.compare-table__remove { padding-inline: 9px; }
.compare-table__actions { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }

.compare-table td.is-best {
    color: #1E7A45; background: #E9F7EE !important; position: relative;
}
.compare-table__best { color: #1E7A45; font-size: .85rem; margin-left: 4px; vertical-align: -1px; }

.compare-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1100;
    background: var(--black); border-top: 3px solid var(--yellow);
    padding: 12px 0; box-shadow: 0 -8px 30px rgba(0,0,0,.28);
    animation: slideUp .28s var(--ease);
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: none; } }
.compare-bar__inner { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.compare-bar__items { display: flex; gap: 10px; flex: 1; flex-wrap: wrap; min-width: 0; }
.compare-chip {
    display: flex; align-items: center; gap: 9px; background: #1F1F1F;
    border: 1px solid #333; border-radius: var(--radius); padding: 6px 10px; color: #E4E4E4; font-size: .82rem;
    flex: 0 0 auto; max-width: 100%;
}
.compare-chip img { width: 34px; height: 34px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.compare-chip span {
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px;
}
.compare-chip button { background: none; border: 0; color: #8A8A8A; cursor: pointer; flex-shrink: 0; padding: 0; }
.compare-chip button:hover { color: var(--danger); }
.compare-bar__actions { display: flex; gap: 8px; align-items: center; }
.compare-bar .btn-ghost { color: #B0B0B0; border-color: #3A3A3A; }
.compare-bar .btn-ghost:hover { background: #262626; color: #fff; }

/* ---------------------------------------------------------------------
   12. Cotizador
   --------------------------------------------------------------------- */
.quote-item {
    display: flex; align-items: center; gap: 15px; padding: 15px;
    border: 1px solid var(--gray-light); border-radius: var(--radius-lg); margin-bottom: 10px;
    background: var(--white); transition: border-color var(--t-fast);
}
.quote-item:hover { border-color: #D0D0D0; }
.quote-item__img { width: 76px; height: 76px; object-fit: cover; border-radius: var(--radius); background: var(--gray-bg); flex-shrink: 0; }
.quote-item__body { flex: 1; min-width: 0; }
.quote-item__title { font-weight: 700; font-size: .96rem; margin: 0 0 3px; }
.quote-item__meta { font-size: .78rem; color: var(--gray); }
.quote-item__price { text-align: right; font-weight: 800; white-space: nowrap; }

.qty-input { display: inline-flex; border: 1px solid var(--gray-light); border-radius: var(--radius); overflow: hidden; }
.qty-input button { width: 34px; height: 36px; border: 0; background: var(--gray-bg); cursor: pointer; font-weight: 800; }
.qty-input button:hover { background: var(--yellow); }
.qty-input input { width: 52px; border: 0; text-align: center; font-weight: 700; }
.qty-input input:focus { outline: none; }

.summary-box {
    background: var(--white); border: 1px solid var(--gray-light);
    border-radius: var(--radius-lg); padding: 22px; position: sticky; top: 96px;
}
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: .92rem; color: var(--gray); }
.summary-row strong { color: var(--black); }
.summary-total {
    display: flex; justify-content: space-between; align-items: center;
    background: var(--black); color: var(--white); border-radius: var(--radius);
    padding: 15px 18px; margin-top: 12px;
}
.summary-total span { text-transform: uppercase; font-size: .8rem; letter-spacing: .08em; }
.summary-total strong { font-size: 1.35rem; color: var(--yellow); }

/* ---------------------------------------------------------------------
   13. Servicios, marcas y otros bloques
   --------------------------------------------------------------------- */
.service-card {
    position: relative; background: var(--white); border: 1px solid var(--gray-light);
    border-radius: var(--radius-lg); padding: 26px 24px; height: 100%; overflow: hidden;
    transition: all var(--t);
}
.service-card::after {
    content: ''; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px;
    background: var(--yellow); opacity: .07; border-radius: 50%; transition: all var(--t);
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #DCDCDC; }
.service-card:hover::after { transform: scale(1.7); opacity: .12; }
.service-card__icon {
    width: 56px; height: 56px; display: grid; place-items: center; font-size: 1.6rem;
    background: var(--black); color: var(--yellow); border-radius: var(--radius);
    margin-bottom: 16px; position: relative; z-index: 1;
}
.service-card h3 { font-size: 1.12rem; margin-bottom: 8px; position: relative; z-index: 1; }
.service-card p { color: var(--gray); font-size: .92rem; margin-bottom: 14px; position: relative; z-index: 1; }
.service-card__list { list-style: none; padding: 0; margin: 0 0 16px; position: relative; z-index: 1; }
.service-card__list li { font-size: .85rem; color: var(--dark); padding: 3px 0 3px 22px; position: relative; }
.service-card__list li::before {
    content: '\F26E'; font-family: "bootstrap-icons"; position: absolute; left: 0;
    color: var(--yellow-dark); font-size: .8rem;
}

.brand-strip {
    /* Flex + wrap: la grilla se adapta sola a la cantidad de marcas.
       Cada marca nueva cae abajo y la última fila se estira para llenar
       el ancho (nunca queda el bloque gris vacío). */
    display: flex; flex-wrap: wrap;
    gap: 1px; background: var(--gray-light); border: 1px solid var(--gray-light);
    border-radius: var(--radius-lg); overflow: hidden;
}
.brand-cell {
    flex: 1 1 calc(25% - 1px);   /* ~4 por fila en escritorio */
    background: var(--white); padding: 16px 14px; display: grid; place-items: center;
    min-height: 128px; transition: background var(--t-fast);
}
.brand-cell:hover { background: var(--gray-bg); }
.brand-cell img { max-height: 74px; max-width: 82%; width: auto; object-fit: contain; filter: grayscale(1); opacity: .68; transition: all var(--t); }
.brand-cell:hover img { filter: none; opacity: 1; }
.brand-cell span { font-weight: 800; color: var(--gray); letter-spacing: .04em; text-transform: uppercase; font-size: .92rem; }
.brand-cell:hover span { color: var(--black); }

.benefit {
    display: flex; gap: 16px; align-items: flex-start;
    padding: 20px; border-radius: var(--radius-lg); background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08); height: 100%;
}
.benefit__icon {
    width: 48px; height: 48px; flex-shrink: 0; display: grid; place-items: center;
    background: var(--yellow); color: var(--black); border-radius: var(--radius); font-size: 1.3rem;
}
.benefit h3 { font-size: 1.02rem; color: var(--white); margin-bottom: 5px; }
.benefit p { font-size: .88rem; color: #A8A8A8; margin: 0; }

.cta-band {
    background: var(--yellow); border-radius: var(--radius-lg); padding: 34px;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
    position: relative; overflow: hidden;
}
.cta-band::before {
    content: ''; position: absolute; inset: 0;
    background: repeating-linear-gradient(135deg, rgba(0,0,0,.045) 0 22px, transparent 22px 44px);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(1.35rem, 3vw, 1.9rem); margin: 0 0 6px; text-transform: uppercase; }
.cta-band p { margin: 0; color: rgba(0,0,0,.72); }

/* Formularios de contacto */
.contact-card {
    background: var(--white); border: 1px solid var(--gray-light);
    border-radius: var(--radius-lg); padding: 26px;
}
.contact-info-item {
    display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--gray-light);
}
.contact-info-item:last-child { border-bottom: 0; }
.contact-info-item__icon {
    width: 44px; height: 44px; flex-shrink: 0; display: grid; place-items: center;
    background: var(--black); color: var(--yellow); border-radius: var(--radius); font-size: 1.1rem;
}
.contact-info-item__icon svg { width: 20px; height: 20px; }
.contact-info-item strong { display: block; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--gray); }
.contact-info-item span, .contact-info-item a { font-size: 1rem; font-weight: 600; color: var(--black); }

.map-frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--gray-light); aspect-ratio: 16/9; }
.map-frame iframe { width: 100%; height: 100%; border: 0; }

/* Asistente / recomendador */
.wizard-step { border: 1px solid var(--gray-light); border-radius: var(--radius-lg); padding: 22px; margin-bottom: 14px; background: var(--white); }
.wizard-step__num {
    width: 34px; height: 34px; display: grid; place-items: center; background: var(--yellow);
    color: var(--black); font-weight: 800; border-radius: 50%; margin-bottom: 12px;
}
.option-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.option-card {
    border: 2px solid var(--gray-light); border-radius: var(--radius); padding: 14px;
    text-align: center; cursor: pointer; transition: all var(--t-fast);
}
.option-card input { display: none; }
.option-card i { font-size: 1.5rem; color: var(--gray); display: block; margin-bottom: 6px; }
.option-card span { font-weight: 700; font-size: .88rem; }
.option-card:has(input:checked) { border-color: var(--yellow); background: #FFFDF3; }
.option-card:has(input:checked) i { color: var(--yellow-dark); }
.option-card:hover { border-color: var(--gray); }

.match-reason {
    display: flex; align-items: flex-start; gap: 8px; font-size: .84rem;
    color: #1E7A45; padding: 3px 0;
}
.match-reason i { margin-top: 3px; }

/* ---------------------------------------------------------------------
   14. Pie de página
   --------------------------------------------------------------------- */
.site-footer { background: var(--black); color: #A8A8A8; margin-top: 60px; }
.site-footer__stripe {
    height: 6px;
    background: repeating-linear-gradient(135deg, var(--yellow) 0 18px, var(--black) 18px 36px);
}
.site-footer__main { padding: 52px 0 36px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand strong { display: block; color: var(--white); font-size: 1.12rem; text-transform: uppercase; letter-spacing: .05em; }
.footer-brand span { font-size: .78rem; color: var(--yellow); }
/* El pie es oscuro: el logo va sobre un recuadro claro para que se vea siempre. */
.footer-brand__logo { max-height: 56px; width: auto; max-width: 100%; background: #fff; padding: 8px 12px; border-radius: 8px; }
.footer-about { font-size: .9rem; line-height: 1.7; }
.footer-social { display: flex; gap: 8px; margin-top: 16px; }
.footer-social a {
    width: 38px; height: 38px; display: grid; place-items: center; border-radius: var(--radius);
    background: #1E1E1E; color: #BEBEBE; transition: all var(--t-fast);
}
.footer-social a:hover { background: var(--yellow); color: var(--black); }

.footer-title {
    font-size: .84rem; text-transform: uppercase; letter-spacing: .12em;
    color: var(--white); margin-bottom: 16px; position: relative; padding-bottom: 10px;
}
.footer-title::after { content: ''; position: absolute; left: 0; bottom: 0; width: 26px; height: 3px; background: var(--yellow); }

.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: 8px; }
.footer-list a { color: #A8A8A8; font-size: .89rem; }
.footer-list a:hover { color: var(--yellow); padding-left: 4px; }
.footer-list__all { color: var(--yellow) !important; font-weight: 700; }

.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li { display: flex; gap: 11px; margin-bottom: 12px; font-size: .89rem; }
.footer-contact i { color: var(--yellow); margin-top: 3px; }
.footer-contact a { color: #C4C4C4; }
.footer-contact a:hover { color: var(--yellow); }

.site-footer__bottom {
    border-top: 1px solid #1F1F1F; padding: 18px 0;
    display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between;
    font-size: .82rem;
}
.site-footer__bottom p { margin: 0; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 16px; }
.site-footer__links a { color: #8A8A8A; }
.site-footer__links a:hover { color: var(--yellow); }
.site-footer__credit { width: 100%; text-align: center; color: #7A7A7A; }
.site-footer__credit a { color: var(--yellow); font-weight: 700; }
.site-footer__credit a:hover { text-decoration: underline; }

/* ---------------------------------------------------------------------
   15. Flotantes: WhatsApp y notificaciones
   --------------------------------------------------------------------- */
.wa-float {
    position: fixed; right: 20px; bottom: 20px; z-index: 1080;
    display: inline-flex; align-items: center; gap: 0;
    background: #25D366; color: #fff; padding: 15px; border-radius: 50px;
    box-shadow: 0 10px 26px rgba(37,211,102,.36); font-weight: 700;
    transition: transform var(--t), box-shadow var(--t), gap var(--t), padding var(--t);
}
.wa-float i { font-size: 1.4rem; }
/* Etiqueta oculta por defecto; se despliega al pasar el mouse. */
.wa-float__label {
    font-size: .92rem; max-width: 0; opacity: 0; overflow: hidden; white-space: nowrap;
    transition: max-width var(--t), opacity var(--t-fast);
}
.wa-float:hover,
.wa-float:focus-visible {
    gap: 10px; padding: 14px 20px 14px 15px;
    transform: translateY(-3px); color: #fff; box-shadow: 0 14px 32px rgba(37,211,102,.48);
}
.wa-float:hover .wa-float__label,
.wa-float:focus-visible .wa-float__label { max-width: 160px; opacity: 1; }
@media (max-width: 575px) {
    .wa-float { right: 14px; bottom: 14px; }
}
body.has-compare-bar .wa-float { bottom: 92px; }

.toast-stack {
    position: fixed; top: 20px; right: 20px; z-index: 2100;
    display: flex; flex-direction: column; gap: 10px; max-width: min(380px, 92vw);
}
.toast-msg {
    display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px;
    background: var(--white); border-radius: var(--radius);
    box-shadow: var(--shadow-lg); border-left: 5px solid var(--gray);
    animation: toastIn .28s var(--ease);
}
@keyframes toastIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }
.toast-msg.is-leaving { animation: toastOut .24s var(--ease) forwards; }
@keyframes toastOut { to { opacity: 0; transform: translateX(30px); } }
.toast-msg--success { border-left-color: var(--ok); }
.toast-msg--danger  { border-left-color: var(--danger); }
.toast-msg--warning { border-left-color: var(--warn); }
.toast-msg--info    { border-left-color: var(--info); }
.toast-msg__icon { font-size: 1.2rem; }
.toast-msg--success .toast-msg__icon { color: var(--ok); }
.toast-msg--danger  .toast-msg__icon { color: var(--danger); }
.toast-msg--warning .toast-msg__icon { color: var(--warn); }
.toast-msg--info    .toast-msg__icon { color: var(--info); }
.toast-msg__text { font-size: .9rem; flex: 1; }
.toast-msg__close { background: none; border: 0; color: var(--gray); cursor: pointer; font-size: .9rem; }

/* ---------------------------------------------------------------------
   16. Utilidades y animaciones
   --------------------------------------------------------------------- */
.skeleton {
    background: linear-gradient(90deg, #EEE 25%, #F7F7F7 50%, #EEE 75%);
    background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius);
}
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* Mejora progresiva: sin JS (o si el observer falla) el contenido SIEMPRE
   se ve. La clase .js la agrega el propio documento en el <head>. */
.reveal { opacity: 1; transform: none; }
.js .reveal {
    opacity: 0; transform: translateY(22px);
    transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

.is-loading { position: relative; pointer-events: none; opacity: .55; }
.is-loading::after {
    content: ''; position: absolute; inset: 0; margin: auto; width: 30px; height: 30px;
    border: 3px solid var(--gray-light); border-top-color: var(--yellow);
    border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.divider-accent { width: 52px; height: 4px; background: var(--yellow); border-radius: 2px; margin: 14px 0; }

mark { background: rgba(245,196,0,.42); color: inherit; padding: 0 2px; border-radius: 2px; }

.text-mono { font-family: ui-monospace, Consolas, monospace; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
    html { scroll-behavior: auto; }
}

/* ---------------------------------------------------------------------
   17. Responsive
   --------------------------------------------------------------------- */
@media (max-width: 991px) {
    .mainbar__toggle { display: flex; }
    .mainbar__cta { display: none; }   /* el CTA va dentro del menú */
    /* El menu pasa a panel lateral: sin el, la busqueda y el hamburguesa
       quedan pegados al logo. Se empujan a la derecha. */
    .mainbar__actions { margin-left: auto; }

    .navmenu {
        position: fixed; inset: 0 0 0 auto; width: min(330px, 88vw);
        transform: translateX(100%); transition: transform var(--t), visibility var(--t);
        z-index: 1200; overflow-y: auto; padding: 24px 18px;
        background: var(--black); border-left: 3px solid var(--yellow);
        flex-direction: column; align-items: stretch; gap: 18px;
        margin-right: 0; visibility: hidden;
    }
    .navmenu.is-open {
        transform: none; visibility: visible;
        box-shadow: -14px 0 40px rgba(0,0,0,.34);
    }
    .navmenu__list { flex-direction: column; gap: 0; }
    .navmenu__list a { padding: 15px 6px; border-bottom: 1px solid #1E1E1E; }
    .navmenu__list a::after { display: none; }
    .navmenu__cta { display: flex; justify-content: center; width: 100%; }

    /* En mobile/tablet la imagen del hero se traslada abajo y queda mal:
       se oculta por completo (en desktop >=992px se ve normal). */
    .hero .row > .col-lg-6:last-child { display: none; }

    .brand-cell { flex-basis: calc(33.333% - 1px); }   /* ~3 por fila en tablet */
}

@media (max-width: 767px) {
    body { font-size: 15px; }
    .mainbar__inner { gap: 12px; }
    .navmenu__list a { text-transform: none; letter-spacing: 0; font-size: .95rem; }
    .section { padding: 40px 0; }
    .product-grid { grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 12px; }
    .pcard__body { padding: 12px 13px 14px; }
    .pcard__title { font-size: .92rem; }
    .pcard__price strong { font-size: 1.05rem; }
    .pcard__cta .btn span { display: none; }
    .cta-band { padding: 24px; }

    /* En teléfono la tarjeta no muestra las características de abajo;
       las etiquetas ocupan ese lugar (y se sacan de la imagen). */
    .pcard__specs { display: none; }
    .pcard__badges { display: none; }
    .pcard__tags { display: flex; }
    .pcard__tags .tag { font-size: .62rem; padding: 3px 7px; }

    /* Comparador en celular: que entren 2 columnas y se pueda deslizar
       para ver la tercera, sin que todo quede aplastado. */
    .compare-wrap { scroll-snap-type: x proximity; }
    .compare-table th, .compare-table td {
        padding: 9px 10px; min-width: 130px; font-size: .82rem; scroll-snap-align: start;
    }
    .compare-table tbody th,
    .compare-table__label {
        width: 82px; min-width: 82px; font-size: .7rem; padding: 9px 8px;
    }
    .compare-table thead th { font-size: .78rem; padding-top: 12px; }
    .compare-table__img { max-width: 92px; margin-bottom: 6px; }
    .compare-table__name { font-size: .8rem; }
    .compare-table__head-actions { flex-direction: column; gap: 5px; margin-top: 8px; }
    .compare-table__head-actions .btn { width: 100%; }
    .compare-table__best { display: block; margin: 3px auto 0; }
    .compare-table thead .compare-table__label .eyebrow { font-size: .58rem; letter-spacing: .03em; }
    .compare-table thead .compare-table__label .eyebrow::before { display: none; }

    /* Barra flotante del comparador: chips en una fila que se desliza,
       y los botones en su propia fila (no apilados ni cortados). */
    .compare-bar { padding: 8px 0; }
    .compare-bar__inner { flex-wrap: wrap; gap: 8px; }
    .compare-bar__items {
        flex: 1 1 100%; flex-wrap: nowrap; overflow-x: auto;
        -webkit-overflow-scrolling: touch; padding-bottom: 2px;
    }
    .compare-chip { padding: 5px 8px; gap: 7px; }
    .compare-chip img { width: 26px; height: 26px; }
    .compare-chip span { max-width: 110px; font-size: .74rem; }
    .compare-bar__actions { flex: 1 1 100%; justify-content: flex-end; gap: 8px; }
    .compare-bar__actions .btn { padding: 9px 14px; }
}

@media (max-width: 575px) {
    .brand-cell { flex-basis: calc(50% - 1px); }   /* 2 por fila en teléfono */

    /* Categorías más compactas: 2 columnas, tarjetas chicas, sin la línea "Ver equipos" */
    .cat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .cat-card { padding: 14px 12px; gap: 6px; border-radius: var(--radius); }
    .cat-card__icon { width: 36px; height: 36px; font-size: 1.1rem; }
    .cat-card__title { font-size: .9rem; line-height: 1.25; }
    .cat-card__count { font-size: .72rem; }
    .cat-card__arrow { display: none; }
}

@media (max-width: 480px) {
    .hero__actions .btn { width: 100%; }
    .product-grid { grid-template-columns: 1fr 1fr; }
}

/* Overlay para menús móviles */
.overlay-backdrop {
    position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 1150;
    opacity: 0; pointer-events: none; transition: opacity var(--t);
}
.overlay-backdrop.is-visible { opacity: 1; pointer-events: auto; }

/* El menú hamburguesa de la cabecera no oscurece la página: el backdrop
   sigue capturando el click para cerrar, pero es invisible. */
.overlay-backdrop--nav { background: transparent; }

/* ---------------------------------------------------------------------
   18. Pantalla de acceso
   --------------------------------------------------------------------- */
.auth-body {
    min-height: 100vh; display: grid; place-items: center;
    background: var(--black); padding: 24px;
    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 46px 46px;
}
.auth-card {
    width: min(430px, 100%); background: var(--white);
    border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
}
.auth-card__head { background: var(--dark-2); padding: 30px 30px 26px; text-align: center; position: relative; }
.auth-card__head::after {
    content: ''; position: absolute; inset: auto 0 0 0; height: 5px;
    background: repeating-linear-gradient(135deg, var(--yellow) 0 14px, transparent 14px 28px);
}
.auth-card__head .brand__mark { margin: 0 auto 14px; width: 56px; height: 56px; font-size: 1.7rem; }
.auth-card__head h1 { color: var(--white); font-size: 1.25rem; text-transform: uppercase; letter-spacing: .06em; margin: 0; }
.auth-card__head p { color: #9A9A9A; font-size: .84rem; margin: 6px 0 0; }
.auth-card__body { padding: 30px; }
.auth-card__foot { padding: 16px 30px 26px; text-align: center; font-size: .82rem; color: var(--gray); }
