/* ==========================================================
   FLASHLED - Hoja de estilos principal
   ========================================================== */
:root {
    --primary-yellow: #FFD700;
    --primary-yellow-dark: #e6c200;
    --dark-bg: #111111;
    --dark-soft: #1c1c1c;
    --light-bg: #f4f5f7;
    --text-dark: #2a2a2a;
    --text-light: #fff;
    --muted: #7a7a7a;
    --gray-border: #e6e6e6;
    --green: #28a745;
    --red: #e63946;
    --radius: 10px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, .06);
    --shadow-md: 0 10px 25px rgba(0, 0, 0, .10);
    --shadow-lg: 0 20px 45px rgba(0, 0, 0, .16);
    --max-width: 1280px;
    --transition: .25s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html { scroll-behavior: smooth; }

body {
    background-color: var(--light-bg);
    color: var(--text-dark);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main { flex: 1 0 auto; }

img { display: block; max-width: 100%; }
a { color: inherit; }
button { font-family: inherit; }

/* Contenedor genérico */
.wrap {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 5%;
}

/* ==========================================================
   HEADER
   ========================================================== */
.site-header {
    background-color: var(--dark-bg);
    color: var(--text-light);
    padding: 15px 5% 18px;
    position: sticky;
    top: 0;
    z-index: 500;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .25);
}

.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 16px;
}

.logo {
    font-size: 24px;
    font-weight: 900;
    font-style: italic;
    color: var(--text-light);
    text-decoration: none;
    letter-spacing: .5px;
    white-space: nowrap;
}
.logo span { color: var(--primary-yellow); }
.logo-bolt,
.brand-bolt { color: var(--primary-yellow); }
.logo-bolt {
    display: inline-block;
    margin: 0 .03em;
    font-size: .88em;
    line-height: 1;
    transform: translateY(-.02em);
}
.brand-bolt {
    display: inline-block;
    margin: 0 .04em;
    font-size: .82em;
    line-height: 1;
    transform: translateY(-.04em);
}

.main-menu {
    display: flex;
    gap: 6px;
    list-style: none;
    align-items: center;
}
.main-menu > li { position: relative; }
.main-menu > li > a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 10px 12px;
    border-radius: 6px;
    transition: color var(--transition), background var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.main-menu > li > a:hover,
.main-menu > li > a.active {
    color: var(--primary-yellow);
}
.main-menu > li > a.active { background: rgba(255, 215, 0, .08); }

/* Dropdown de categorías en el menú */
.dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 240px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all var(--transition);
    z-index: 600;
}
.has-dropdown.open .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
    border-radius: 6px;
    transition: background var(--transition), color var(--transition);
}
.dropdown a.category-option {
    position: relative;
    min-height: 58px;
    padding: 9px 44px 9px 66px;
    overflow: hidden;
    justify-content: flex-start;
    background: #fff;
}
.dropdown a.category-option::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 50%;
    width: 46px;
    height: 46px;
    transform: translateY(-50%);
    border-radius: 7px;
    background: var(--cat-image) center / cover no-repeat;
    box-shadow: 0 1px 5px rgba(0,0,0,.16);
}
.dropdown a.category-option i { display: none; }
.dropdown a.category-option span { position: relative; z-index: 1; }
.dropdown a.category-option:hover {
    background: var(--primary-yellow);
    color: var(--dark-bg);
}
.category-menu-item { position: relative; border-bottom: 1px solid #f0f0f0; }
.category-menu-item:last-of-type { border-bottom: 0; }
.subcategory-list { position: absolute; left: calc(100% - 1px); top: -1px; z-index: 701; display: none; flex-direction: column; flex-wrap: nowrap; gap: .35rem; width: 250px; padding: .55rem; border: 1px solid #e5e5e5; border-radius: 0 .45rem .45rem .45rem; background: #fff; box-shadow: 8px 8px 20px rgba(0,0,0,.16); }
.category-menu-item.is-open .subcategory-list { display: flex; }
.subcategory-branch { position: relative; flex: 1 1 100%; min-width: 0; }
.category-branch-toggle { position: absolute; top: 18px; right: 12px; z-index: 2; display: inline-flex; align-items: center; justify-content: center; width: 1.7rem; height: 1.7rem; border: 1px solid #ddd; border-radius: 50%; background: #fff; color: #777; cursor: pointer; }
.category-branch-toggle:hover, .category-menu-item.is-open .category-branch-toggle { border-color: var(--primary-yellow); background: var(--primary-yellow); color: var(--dark-bg); }
.category-branch-toggle i { width: auto !important; color: inherit !important; font-size: .65rem; transition: transform .2s ease; }
.category-menu-item.is-open .category-branch-toggle i { transform: rotate(90deg); }
.subcategory-option { position: relative; display: flex !important; align-items: center; min-height: 58px; width: 100%; box-sizing: border-box; padding: 9px 12px 9px 66px !important; border: 1px solid #e5e5e5; border-radius: 7px !important; background: #fff; color: #333 !important; font-size: 14px !important; font-weight: 700; }
.subcategory-option::before { content: ''; position: absolute; left: 10px; top: 50%; width: 46px; height: 46px; transform: translateY(-50%); border-radius: 7px; background: var(--cat-image) center / cover no-repeat; box-shadow: 0 1px 5px rgba(0,0,0,.16); }
.subcategory-option:hover { border-color: var(--primary-yellow); background: #fff8c7 !important; color: var(--dark-bg) !important; }
.subcategory-products { position: absolute; left: calc(100% - 1px); top: -.55rem; z-index: 702; display: none; width: 250px; gap: .15rem; padding: .55rem; border: 1px solid #e5e5e5; border-radius: 0 .45rem .45rem .45rem; background: #fff; box-shadow: 8px 8px 20px rgba(0,0,0,.16); }
.subcategory-branch.is-open .subcategory-products { display: grid; }
.product-option { display: flex !important; align-items: center; gap: .4rem !important; padding: .22rem .35rem !important; border-radius: .25rem !important; color: #666 !important; font-size: .72rem !important; }
.product-option i { width: 14px !important; color: #b9a400 !important; font-size: .65rem; }
.product-option:hover { background: #fff8c7 !important; color: var(--dark-bg) !important; }
.all-categories-option { margin-top: 2px; font-weight: 800; }
.dropdown a i { color: #b9a400; width: 18px; text-align: center; }
.dropdown a:hover { background: var(--light-bg); color: var(--dark-bg); }
.dropdown .dropdown-divider { height: 1px; background: var(--gray-border); margin: 6px 4px; }

.user-actions {
    display: flex;
    align-items: center;
    gap: 22px;
}
.icon-link {
    position: relative;
    color: var(--text-light);
    text-decoration: none;
    font-size: 20px;
    transition: color var(--transition), transform var(--transition);
    display: inline-flex;
    align-items: center;
}
.icon-link:hover { color: var(--primary-yellow); transform: translateY(-1px); }

.cart-badge,
.fav-badge {
    position: absolute;
    top: -8px;
    right: -11px;
    background-color: var(--primary-yellow);
    color: var(--dark-bg);
    font-size: 11px;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s;
    line-height: 1;
}
.cart-badge.bump { transform: scale(1.5); }
.fav-badge { background: #ff5a7a; color: #fff; }

.menu-toggle {
    display: none;
    background: none;
    border: 1px solid #333;
    color: #fff;
    font-size: 18px;
    padding: 7px 12px;
    border-radius: 6px;
    cursor: pointer;
}

/* Barra de búsqueda */
.search-bar-container { display: flex; gap: 12px; }
.search-bar-container .search-input-group { display: none; }
.site-header.search-open .search-input-group { display: flex; }
.search-toggle { background: transparent; border: 0; cursor: pointer; padding: 0; }
.search-toggle:hover { color: var(--primary-yellow); }

.categories-dropdown {
    background-color: var(--primary-yellow);
    border: none;
    padding: 0 20px;
    min-height: 46px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--dark-bg);
    white-space: nowrap;
    transition: background var(--transition);
}
.categories-dropdown:hover { background: var(--primary-yellow-dark); }

.search-input-group {
    display: flex;
    flex-grow: 1;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
}
.search-input-group input {
    flex-grow: 1;
    padding: 12px 16px;
    border: none;
    outline: none;
    font-size: 15px;
    color: var(--text-dark);
}
.search-input-group button {
    background-color: var(--primary-yellow);
    border: none;
    padding: 0 24px;
    cursor: pointer;
    font-size: 17px;
    color: var(--dark-bg);
    transition: background var(--transition);
}
.search-input-group button:hover { background: var(--primary-yellow-dark); }

/* Dropdown flotante de categorías (búsqueda) */
.cat-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    z-index: 600;
    display: none;
}
.cat-menu.show { display: block; }
.cat-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
    border-radius: 6px;
}
.cat-menu a i { color: #b9a400; width: 18px; text-align: center; }
.cat-menu a:hover { background: var(--light-bg); }

/* ==========================================================
   BOTONES
   ========================================================== */
.btn-primary,
.btn-dark,
.btn-outline,
.btn-ghost {
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 26px;
    transition: all var(--transition);
    text-decoration: none;
}
.btn-primary { background-color: var(--primary-yellow); color: var(--dark-bg); }
.btn-primary:hover { background-color: var(--primary-yellow-dark); transform: translateY(-2px); }
.btn-dark { background-color: var(--dark-bg); color: #fff; }
.btn-dark:hover { background-color: #000; transform: translateY(-2px); }
.btn-outline { background: transparent; border: 2px solid var(--dark-bg); color: var(--dark-bg); }
.btn-outline:hover { background: var(--dark-bg); color: #fff; }
.btn-ghost { background: transparent; border: 2px solid var(--gray-border); color: var(--text-dark); }
.btn-ghost:hover { border-color: var(--dark-bg); }
.btn-wa { background: #25D366; color: #fff; }
.btn-wa:hover { background: #1fbe59; transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ==========================================================
   HERO
   ========================================================== */
.hero {
    position: relative;
    min-height: 440px;
    background: linear-gradient(to right, rgba(0, 0, 0, .92) 0%, rgba(0, 0, 0, .45) 70%),
        url('https://images.unsplash.com/photo-1565814329452-e1efa11c5b89?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover;
    display: flex;
    align-items: center;
    padding: 60px 5%;
    color: #fff;
}
.hero-content { max-width: 640px; }
.hero .tag {
    display: inline-block;
    background: rgba(255, 215, 0, .15);
    color: var(--primary-yellow);
    border: 1px solid rgba(255, 215, 0, .4);
    padding: 6px 14px;
    border-radius: 40px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .5px;
    margin-bottom: 18px;
    text-transform: uppercase;
}
.hero h1 {
    font-family: Tahoma, 'Segoe UI', Geneva, Verdana, sans-serif;
    font-size: 50px;
    font-style: italic;
    font-weight: 400;
    letter-spacing: -1px;
    line-height: 1.08;
    margin-bottom: 16px;
}
.hero h1 span { color: var(--primary-yellow); }
.hero p { font-size: 18px; margin-bottom: 30px; color: #ddd; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ==========================================================
   BENEFICIOS
   ========================================================== */
.benefits {
    background-color: var(--dark-bg);
    padding: 22px 5%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    border-top: 2px solid #222;
    color: #fff;
}
.benefit-item { display: flex; align-items: center; gap: 14px; }
.benefit-item i { font-size: 26px; color: var(--primary-yellow); }
.benefit-text h4 { font-size: 15px; margin-bottom: 2px; }
.benefit-text p { font-size: 12px; color: #aaa; }

/* ==========================================================
   SECCIONES
   ========================================================== */
.container { padding: 46px 5%; max-width: var(--max-width); margin: 0 auto; }
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 26px;
    gap: 16px;
    flex-wrap: wrap;
}
.section-header h2 {
    font-size: 26px;
    font-weight: 800;
    border-left: 5px solid var(--primary-yellow);
    padding-left: 15px;
    line-height: 1.15;
}
.section-header a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: color var(--transition);
}
.section-header a:hover { color: var(--dark-bg); }

.page-block { padding: 46px 5%; max-width: var(--max-width); margin: 0 auto; }

/* ==========================================================
   CATEGORÍAS (tarjetas)
   ========================================================== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}
.category-card {
    background-color: var(--dark-bg);
    border-radius: var(--radius);
    padding: 18px;
    text-align: left;
    color: #fff;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
    position: relative;
    overflow: hidden;
    height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-decoration: none;
}
.category-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.category-card .cat-count {
    font-size: 12px;
    color: var(--primary-yellow);
    font-weight: 700;
    margin-bottom: 6px;
    z-index: 2;
}
.category-card h4 {
    font-size: 14px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.25;
}
.category-card h4 i { color: var(--primary-yellow); }
.category-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .38;
    transition: opacity var(--transition), transform .6s;
}
.category-card:hover img { opacity: .55; transform: scale(1.08); }

/* Tarjetas de categoría grandes (página categorías) */
.categories-page-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.category-tile {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 26px;
    color: #fff;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}
.category-tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.category-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s;
}
.category-tile::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .88) 10%, rgba(0, 0, 0, .25) 70%);
}
.category-tile:hover img { transform: scale(1.07); }
.category-tile > * { position: relative; z-index: 2; }
.category-tile .tile-icon {
    font-size: 26px;
    color: var(--primary-yellow);
    margin-bottom: 12px;
}
.category-tile h3 { font-size: 22px; margin-bottom: 6px; }
.category-tile p { font-size: 14px; color: #d6d6d6; margin-bottom: 14px; }
.category-tile .tile-link { font-size: 13px; font-weight: 700; color: var(--primary-yellow); }

/* ==========================================================
   PRODUCTOS
   ========================================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.products-grid.cols-6 { grid-template-columns: repeat(6, 1fr); }

.product-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 16px;
    position: relative;
    border: 1px solid var(--gray-border);
    transition: box-shadow var(--transition), transform var(--transition);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.discount-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background-color: var(--primary-yellow);
    color: var(--dark-bg);
    font-size: 12px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 5px;
    z-index: 2;
}
.product-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--dark-bg);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 5px;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: .4px;
}
.wishlist-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #fff;
    border: 1px solid var(--gray-border);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 15px;
    cursor: pointer;
    color: #bbb;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}
.wishlist-btn:hover { color: #ff5a7a; border-color: #ff5a7a; transform: scale(1.06); }
.wishlist-btn.active { color: #ff5a7a; border-color: #ff5a7a; background: #fff0f3; }

.product-thumb {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin: 26px 0 14px;
    background: #f7f7f7;
}
.product-img {
    width: 100%;
    height: 175px;
    object-fit: cover;
    transition: transform .4s;
}
.product-card:hover .product-img { transform: scale(1.05); }

.product-cat {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: #999;
    font-weight: 700;
    margin-bottom: 6px;
}
.product-title {
    font-size: 14.5px;
    font-weight: 600;
    margin-bottom: 8px;
    flex-grow: 1;
    line-height: 1.35;
    color: var(--text-dark);
}
.product-rating {
    font-size: 12px;
    color: #f5a623;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.product-rating span { color: #999; }
.product-prices { margin-bottom: 8px; display: flex; flex-direction: column; }
.price-old { font-size: 13px; color: #999; text-decoration: line-through; }
.price-new { font-size: 19px; font-weight: 800; color: var(--dark-bg); }

.stock-status {
    font-size: 12px;
    color: var(--green);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.stock-status::before {
    content: '';
    width: 8px;
    height: 8px;
    background-color: var(--green);
    border-radius: 50%;
    display: inline-block;
}
.stock-status.out { color: var(--red); }
.stock-status.out::before { background-color: var(--red); }

.btn-add-cart {
    width: 100%;
    background-color: var(--primary-yellow);
    border: none;
    padding: 11px;
    border-radius: 7px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: background var(--transition);
    color: var(--dark-bg);
}
.btn-add-cart:hover { background-color: var(--primary-yellow-dark); }
.btn-add-cart:disabled { background: #eee; color: #aaa; cursor: not-allowed; }

/* ==========================================================
   BANNERS / BREADCRUMBS
   ========================================================== */
.page-banner {
    position: relative;
    padding: 46px 5%;
    color: #fff;
    background: linear-gradient(to right, rgba(0, 0, 0, .9) 0%, rgba(0, 0, 0, .45) 100%),
        url('https://images.unsplash.com/photo-1513694203232-719a280e022f?auto=format&fit=crop&w=1920&q=80') center/cover;
}
.page-banner .inner { max-width: var(--max-width); margin: 0 auto; }
.breadcrumbs { font-size: 14px; margin-bottom: 14px; color: #ccc; }
.breadcrumbs a { color: var(--primary-yellow); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs span { color: #ddd; }
.page-banner h1 { font-size: 38px; font-weight: 800; font-style: italic; }
.page-banner p { font-size: 16px; color: #ddd; margin-top: 10px; max-width: 640px; }

/* ==========================================================
   LAYOUT CON SIDEBAR (catálogo)
   ========================================================== */
.catalog {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    padding: 40px 5%;
    max-width: var(--max-width);
    margin: 0 auto;
}
.sidebar {
    width: 260px;
    flex-shrink: 0;
    background: #fff;
    padding: 22px;
    border-radius: var(--radius);
    border: 1px solid var(--gray-border);
    position: sticky;
    top: 150px;
}
.filter-group { margin-bottom: 24px; border-bottom: 1px solid var(--gray-border); padding-bottom: 20px; }
.filter-group:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.filter-group h3 {
    font-size: 15px;
    margin-bottom: 14px;
    color: var(--dark-bg);
    text-transform: uppercase;
    letter-spacing: .5px;
}
.filter-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    margin-bottom: 11px;
    cursor: pointer;
    color: #555;
}
.filter-group label:hover { color: var(--dark-bg); }
.filter-group input[type="checkbox"] {
    accent-color: var(--primary-yellow);
    width: 16px;
    height: 16px;
    cursor: pointer;
}
.filter-group .filter-count { margin-left: auto; font-size: 12px; color: #aaa; }

.products-area { flex-grow: 1; min-width: 0; }

.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    background: #fff;
    padding: 14px 20px;
    border-radius: var(--radius);
    border: 1px solid var(--gray-border);
    gap: 14px;
    flex-wrap: wrap;
}
.toolbar p { font-size: 14px; color: #666; }
.toolbar p strong { color: var(--dark-bg); }
.sort-select {
    padding: 9px 14px;
    border: 1px solid var(--gray-border);
    border-radius: 7px;
    outline: none;
    font-size: 14px;
    cursor: pointer;
    background-color: #fff;
    color: var(--text-dark);
}

/* Paginación */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; flex-wrap: wrap; }
.page-btn {
    padding: 10px 15px;
    border: 1px solid var(--gray-border);
    background: #fff;
    border-radius: 7px;
    cursor: pointer;
    font-weight: 700;
    color: var(--text-dark);
    transition: all var(--transition);
}
.page-btn:hover:not(:disabled),
.page-btn.active { background: var(--primary-yellow); border-color: var(--primary-yellow); }
.page-btn:disabled { opacity: .45; cursor: not-allowed; }

/* ==========================================================
   DETALLE DE PRODUCTO
   ========================================================== */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 44px;
    padding: 40px 5%;
    max-width: var(--max-width);
    margin: 0 auto;
    align-items: start;
}
.detail-gallery {
    background: #fff;
    border: 1px solid var(--gray-border);
    border-radius: 16px;
    padding: 20px;
    position: sticky;
    top: 150px;
}
.detail-gallery .main-img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 12px;
    background: #f7f7f7;
}
.detail-thumbs { display: flex; gap: 10px; margin-top: 14px; }
.detail-thumbs img {
    width: 76px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid var(--gray-border);
    cursor: pointer;
    transition: border-color var(--transition);
}
.detail-thumbs img.active,
.detail-thumbs img:hover { border-color: var(--primary-yellow); }

.detail-info .detail-cat {
    color: #999;
    text-transform: uppercase;
    letter-spacing: .7px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 10px;
}
.detail-info h1 { font-size: 30px; line-height: 1.2; margin-bottom: 12px; }
.detail-info .detail-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #f5a623;
    font-size: 14px;
    margin-bottom: 18px;
}
.detail-info .detail-rating span { color: #999; }

.detail-price-box {
    background: #fff;
    border: 1px solid var(--gray-border);
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 22px;
}
.detail-price-box .price-new { font-size: 32px; }
.detail-price-box .price-old { font-size: 15px; }
.detail-price-box .save {
    display: inline-block;
    background: #eafbe9;
    color: var(--green);
    font-weight: 700;
    font-size: 13px;
    padding: 4px 10px;
    border-radius: 20px;
    margin-left: 10px;
}

.detail-desc { color: #555; font-size: 15px; margin-bottom: 22px; line-height: 1.7; }

.qty-row { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.qty-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--gray-border);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}
.qty-control button {
    width: 42px;
    height: 44px;
    border: none;
    background: #f5f5f5;
    font-size: 18px;
    cursor: pointer;
    color: var(--text-dark);
    transition: background var(--transition);
}
.qty-control button:hover { background: #e9e9e9; }
.qty-control input {
    width: 56px;
    height: 44px;
    text-align: center;
    border: none;
    outline: none;
    font-size: 16px;
    font-weight: 700;
}
.detail-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.detail-actions .btn-primary { flex: 1; min-width: 200px; }

.detail-specs {
    background: #fff;
    border: 1px solid var(--gray-border);
    border-radius: 12px;
    padding: 20px;
}
.detail-specs h3 { font-size: 17px; margin-bottom: 14px; }
.detail-specs table { width: 100%; border-collapse: collapse; font-size: 14px; }
.detail-specs td { padding: 10px 6px; border-bottom: 1px solid var(--gray-border); color: #555; }
.detail-specs td:first-child { font-weight: 700; color: var(--dark-bg); width: 42%; }
.detail-specs tr:last-child td { border-bottom: none; }

/* ==========================================================
   CARRITO
   ========================================================== */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 28px;
    padding: 40px 5%;
    max-width: var(--max-width);
    margin: 0 auto;
    align-items: start;
}
.cart-list {
    background: #fff;
    border: 1px solid var(--gray-border);
    border-radius: var(--radius);
    overflow: hidden;
}
.cart-list-header {
    display: grid;
    grid-template-columns: 1fr 130px 130px 50px;
    gap: 12px;
    padding: 15px 20px;
    background: #fafafa;
    border-bottom: 1px solid var(--gray-border);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #888;
    font-weight: 700;
}
.cart-item {
    display: grid;
    grid-template-columns: 1fr 130px 130px 50px;
    gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--gray-border);
    align-items: center;
}
.cart-item:last-child { border-bottom: none; }
.cart-item-info { display: flex; gap: 14px; align-items: center; min-width: 0; }
.cart-item-info img {
    width: 76px;
    height: 68px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    background: #f4f4f4;
}
.cart-item-info h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.3;
}
.cart-item-info h4 a { text-decoration: none; color: var(--text-dark); }
.cart-item-info h4 a:hover { color: #b9a400; }
.cart-item-info .ci-cat { font-size: 12px; color: #999; }
.cart-item-info .ci-unit { font-size: 12px; color: #888; margin-top: 4px; }
.cart-item-total { font-weight: 800; font-size: 15px; text-align: right; }
.cart-item .qty-control { transform: scale(.9); transform-origin: left center; }
.remove-btn {
    background: none;
    border: none;
    color: #c0c0c0;
    font-size: 17px;
    cursor: pointer;
    transition: color var(--transition);
    justify-self: center;
}
.remove-btn:hover { color: var(--red); }

.cart-summary {
    background: #fff;
    border: 1px solid var(--gray-border);
    border-radius: var(--radius);
    padding: 24px;
    position: sticky;
    top: 150px;
}
.cart-summary h3 { font-size: 19px; margin-bottom: 18px; }
.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
}
.summary-row.total {
    border-top: 1px solid var(--gray-border);
    padding-top: 16px;
    margin-top: 16px;
    font-size: 20px;
    font-weight: 800;
    color: var(--dark-bg);
}
.summary-note {
    background: #fffbe6;
    border: 1px solid #ffe98a;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 12.5px;
    color: #8a6d00;
    margin: 16px 0;
    display: flex;
    gap: 8px;
}
.cart-summary .btn-primary,
.cart-summary .btn-wa { width: 100%; margin-top: 10px; }
.summary-trust {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 16px;
    font-size: 12px;
    color: #999;
    flex-wrap: wrap;
}
.summary-trust span { display: flex; align-items: center; gap: 5px; }

/* Estado vacío */
.empty-state {
    text-align: center;
    padding: 70px 20px;
    background: #fff;
    border: 1px solid var(--gray-border);
    border-radius: var(--radius);
}
.empty-state i {
    font-size: 54px;
    color: #ddd;
    margin-bottom: 18px;
}
.empty-state h3 { font-size: 22px; margin-bottom: 8px; }
.empty-state p { color: #888; margin-bottom: 24px; }

/* ==========================================================
   CTA / NOSOTROS / CONTACTO
   ========================================================== */
.cta-banner {
    background: linear-gradient(to right, var(--dark-bg) 0%, #2a2a2a 100%);
    color: #fff;
    padding: 54px 5%;
    text-align: center;
    margin-top: 20px;
}
.cta-banner h2 { font-size: 32px; margin-bottom: 12px; font-style: italic; }
.cta-banner h2 span { color: var(--primary-yellow); }
.cta-banner p { color: #ccc; max-width: 620px; margin: 0 auto 26px; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 30px 0;
}
.stat-card {
    background: #fff;
    border: 1px solid var(--gray-border);
    border-radius: var(--radius);
    padding: 26px 20px;
    text-align: center;
}
.stat-card .stat-num { font-size: 34px; font-weight: 900; color: var(--dark-bg); }
.stat-card .stat-num span { color: var(--primary-yellow); }
.stat-card p { font-size: 13px; color: #888; margin-top: 4px; text-transform: uppercase; letter-spacing: .5px; }

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 44px;
    align-items: center;
}
.two-col img { border-radius: 16px; box-shadow: var(--shadow-md); }
.two-col h2 { font-size: 28px; margin-bottom: 16px; }
.two-col p { color: #555; margin-bottom: 14px; line-height: 1.75; }

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 30px;
}
.value-card {
    background: #fff;
    border: 1px solid var(--gray-border);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: transform var(--transition), box-shadow var(--transition);
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.value-card .v-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(255, 215, 0, .18);
    color: #b9a400;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 16px;
}
.value-card h3 { font-size: 18px; margin-bottom: 8px; }
.value-card p { font-size: 14px; color: #666; line-height: 1.65; }

/* Contacto */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    padding: 40px 5%;
    max-width: var(--max-width);
    margin: 0 auto;
    align-items: start;
}
.contact-info-card {
    background: var(--dark-bg);
    color: #fff;
    border-radius: 16px;
    padding: 32px;
}
.contact-info-card h2 { font-size: 24px; margin-bottom: 8px; }
.contact-info-card > p { color: #bbb; font-size: 14px; margin-bottom: 26px; }
.contact-line { display: flex; gap: 16px; margin-bottom: 22px; align-items: flex-start; }
.contact-line .ci-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(255, 215, 0, .15);
    color: var(--primary-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.contact-line h4 { font-size: 14px; margin-bottom: 3px; }
.contact-line p, .contact-line a { font-size: 14px; color: #ccc; text-decoration: none; }
.contact-line a:hover { color: var(--primary-yellow); }
.contact-social { display: flex; gap: 12px; margin-top: 26px; }
.contact-social a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all var(--transition);
}
.contact-social a:hover { background: var(--primary-yellow); color: var(--dark-bg); }

.form-card {
    background: #fff;
    border: 1px solid var(--gray-border);
    border-radius: 16px;
    padding: 32px;
}
.form-card h2 { font-size: 24px; margin-bottom: 6px; }
.form-card > p { color: #888; font-size: 14px; margin-bottom: 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 7px; color: #444; }
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--gray-border);
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    font-family: inherit;
    transition: border-color var(--transition), box-shadow var(--transition);
    background: #fff;
    color: var(--text-dark);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-yellow);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, .25);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* Mapa / info extra */
.map-box {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--gray-border);
    background: #fff;
}
.map-box img { width: 100%; height: 300px; object-fit: cover; }

/* ==========================================================
   FOOTER
   ========================================================== */
.site-footer {
    background: var(--dark-bg);
    color: #bbb;
    padding: 50px 5% 0;
    margin-top: 20px;
    flex-shrink: 0;
}
.footer-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.4fr;
    gap: 34px;
    padding-bottom: 40px;
}
.footer-brand .logo { display: inline-block; margin-bottom: 14px; font-size: 26px; }
.footer-brand p { font-size: 14px; line-height: 1.7; color: #999; max-width: 320px; }
.footer-col h4 {
    color: #fff;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .6px;
    margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
    color: #999;
    text-decoration: none;
    font-size: 14px;
    transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--primary-yellow); }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .07);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all var(--transition);
}
.footer-social a:hover { background: var(--primary-yellow); color: var(--dark-bg); }
.footer-contact-line { display: flex; gap: 10px; font-size: 14px; color: #999; margin-bottom: 10px; }
.footer-contact-line i { color: var(--primary-yellow); margin-top: 3px; }
.footer-contact-line a { color: #999; text-decoration: none; }
.footer-contact-line a:hover { color: var(--primary-yellow); }
.footer-payments { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.footer-payments span {
    background: rgba(255, 255, 255, .07);
    color: #ccc;
    font-size: 11px;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: 600;
}
.footer-bottom {
    border-top: 1px solid #262626;
    padding: 18px 0;
    text-align: center;
    font-size: 13px;
    color: #777;
    max-width: var(--max-width);
    margin: 0 auto;
}
.footer-bottom strong { color: var(--primary-yellow); }

/* ==========================================================
   WHATSAPP FLOTANTE + TOAST
   ========================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 22px;
    right: 22px;
    background-color: #25D366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
    text-decoration: none;
    z-index: 900;
    transition: transform var(--transition);
}
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #25D366;
    animation: waPulse 2s infinite;
}
@keyframes waPulse {
    0% { transform: scale(1); opacity: .8; }
    100% { transform: scale(1.6); opacity: 0; }
}

.toast-wrap {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    pointer-events: none;
}
.toast {
    background: var(--dark-bg);
    color: #fff;
    padding: 13px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: toastIn .3s ease;
    border-left: 4px solid var(--primary-yellow);
    max-width: 90vw;
}
.toast.success { border-left-color: var(--green); }
.toast.error { border-left-color: var(--red); }
.toast i { color: var(--primary-yellow); font-size: 16px; }
.toast.success i { color: var(--green); }
@keyframes toastIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================
   UTILIDADES
   ========================================================== */
.hidden { display: none !important; }
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.section-title-center { text-align: center; margin-bottom: 14px; }
.section-title-center h2 { font-size: 28px; }
.section-sub-center { text-align: center; color: #888; max-width: 560px; margin: 0 auto 36px; }

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1100px) {
    .categories-grid { grid-template-columns: repeat(3, 1fr); }
    .products-grid { grid-template-columns: repeat(3, 1fr); }
    .products-grid.cols-6 { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .product-detail { grid-template-columns: 1fr; }
    .detail-gallery { position: static; }
    .cart-layout { grid-template-columns: 1fr; }
    .cart-summary { position: static; }
    .contact-layout { grid-template-columns: 1fr; }
    .two-col { grid-template-columns: 1fr; }
    .values-grid { grid-template-columns: 1fr 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .categories-page-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
    .menu-toggle { display: inline-flex; }
    .main-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--dark-bg);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px 5%;
        border-top: 1px solid #262626;
        display: none;
        box-shadow: 0 14px 24px rgba(0, 0, 0, .35);
    }
    .main-menu.show { display: flex; }
    .main-menu > li > a { padding: 13px 4px; border-radius: 0; border-bottom: 1px solid #1e1e1e; }
    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: #191919;
        display: none;
        padding: 0 0 8px;
    }
    .has-dropdown.open .dropdown { display: block; }
    .dropdown a { color: #ccc; }
    .dropdown a:hover { background: #222; color: var(--primary-yellow); }
    .subcategory-list { position: static; width: auto; padding: .45rem .5rem .55rem 1rem; border: 0; border-radius: 0; background: #151515; box-shadow: none; }
    .subcategory-products { position: static; width: auto; margin: .15rem 0 .35rem .65rem; padding: .25rem 0 .25rem .55rem; border: 0; border-left: 2px solid #f0d94c; border-radius: 0; background: transparent; box-shadow: none; }
    .category-branch-toggle { top: 13px; right: 4px; }
    .dropdown .dropdown-divider { background: #2a2a2a; }
    .site-header { position: relative; }
    .benefits { grid-template-columns: repeat(2, 1fr); }
}

/* Botón Categorías: segunda rama lateral, sin apilar subcategorías en línea. */
.category-cascade-menu { overflow: visible !important; }
.category-cascade-menu .category-menu-item { position: relative; }
.category-cascade-menu .category-option { position: relative; min-height: 58px; padding: 9px 44px 9px 66px !important; box-sizing: border-box; background: #fff; font-size: 14px !important; font-weight: 700; }
.category-cascade-menu .category-option::before { content: ''; position: absolute; left: 10px; top: 50%; width: 46px; height: 46px; transform: translateY(-50%); border-radius: 7px; background: var(--cat-image) center / cover no-repeat; box-shadow: 0 1px 5px rgba(0,0,0,.16); }
.category-cascade-menu .category-option i { display: none; }
@media (max-width: 860px) {
    .site-header.category-open .category-cascade-menu { position: relative !important; display: block !important; width: min(18rem, 82vw) !important; max-height: 65vh; overflow: visible !important; padding: .5rem !important; }
    .category-cascade-menu .subcategory-list { left: calc(100% + 8px) !important; top: -.5rem !important; width: min(18rem, 82vw) !important; max-height: 65vh; overflow-y: auto; padding: .5rem !important; border: 1px solid #ddd; background: #fff; box-shadow: 8px 8px 20px rgba(0,0,0,.2); }
    .category-cascade-menu .subcategory-option { background: #fff !important; color: #333 !important; }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 34px; }
    .hero { min-height: 380px; padding: 44px 5%; }
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .products-grid,
    .products-grid.cols-6 { grid-template-columns: repeat(2, 1fr); }
    .search-bar-container { flex-direction: column; }
    .categories-dropdown { justify-content: center; min-height: 44px; }
    .catalog { flex-direction: column; padding: 28px 5%; }
    .sidebar { width: 100%; position: static; }
    .toolbar { flex-direction: column; align-items: stretch; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .categories-page-grid { grid-template-columns: 1fr; }
    .values-grid { grid-template-columns: 1fr; }
    .page-banner h1 { font-size: 28px; }
    .detail-actions .btn-primary { min-width: 100%; }
    .cart-list-header { display: none; }
    .cart-item { grid-template-columns: 1fr; gap: 14px; position: relative; }
    .cart-item-total { text-align: left; }
    .remove-btn { position: absolute; top: 14px; right: 14px; }
    .form-grid { grid-template-columns: 1fr; }
    .cta-banner h2 { font-size: 26px; }
}

@media (max-width: 480px) {
    .products-grid,
    .products-grid.cols-6 { grid-template-columns: 1fr; }
    .categories-grid { grid-template-columns: 1fr; }
    .benefits { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 28px; }
    .logo { font-size: 20px; }
    .detail-gallery .main-img { height: 280px; }
}

/* ==========================================================
   HERO CARRUSEL
   ========================================================== */
.hero-carousel {
    position: relative;
    display: block;
    padding: 0;
    min-height: 460px;
    overflow: hidden;
    background: #111;
}
.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    padding: 60px 5%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.04);
    transition: opacity .8s ease, transform .9s ease, visibility .8s;
}
.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, .92) 0%, rgba(0, 0, 0, .45) 70%);
}
.hero-slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    z-index: 1;
}
.hero-slide .hero-content {
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .6s ease .15s, transform .6s ease .15s;
}
.hero-slide.active .hero-content {
    opacity: 1;
    transform: translateY(0);
}

.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .35);
    border: 1px solid rgba(255, 255, 255, .35);
    color: #fff;
    font-size: 17px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    backdrop-filter: blur(4px);
}
.hero-nav:hover {
    background: var(--primary-yellow);
    color: var(--dark-bg);
    border-color: var(--primary-yellow);
}
.hero-nav.prev { left: 20px; }
.hero-nav.next { right: 20px; }

.hero-dots {
    position: absolute;
    bottom: 24px;
    left: 5%;
    z-index: 5;
    display: flex;
    gap: 10px;
}
.hero-dot {
    width: 34px;
    height: 5px;
    border: none;
    border-radius: 3px;
    background: rgba(255, 255, 255, .35);
    cursor: pointer;
    transition: all var(--transition);
    padding: 0;
}
.hero-dot:hover { background: rgba(255, 255, 255, .6); }
.hero-dot.active { background: var(--primary-yellow); width: 50px; }

@media (max-width: 860px) {
    .hero-nav { width: 40px; height: 40px; }
    .hero-nav.prev { left: 10px; }
    .hero-nav.next { right: 10px; }
}
@media (max-width: 768px) {
    .hero-carousel { min-height: 400px; }
    .hero-slide { padding: 50px 6%; }
    .hero-nav { display: none; }
    .hero-dots { bottom: 18px; }
}

/* ==========================================================
   LOADER ELÉCTRICO (rayo / trueno)
   ========================================================== */
/* Responsive refinements */
:root { --max-width: 1500px; }
.site-header > .top-nav,
.site-header > .search-bar-container,
.footer-grid,
.footer-bottom { width: 100%; max-width: var(--max-width); margin-left: auto; margin-right: auto; }
.container, .page-block, .catalog { width: min(100%, var(--max-width)); }
.product-thumb { height: 190px; display: flex; align-items: center; justify-content: center; }
.product-img { height: 100%; object-fit: contain; mix-blend-mode: multiply; }

@media (min-width: 1440px) {
    .site-header { padding-left: 3%; padding-right: 3%; }
    .hero-slide { padding-left: max(5%, calc((100vw - var(--max-width)) / 2)); padding-right: max(5%, calc((100vw - var(--max-width)) / 2)); }
    .benefits { padding-left: max(5%, calc((100vw - var(--max-width)) / 2)); padding-right: max(5%, calc((100vw - var(--max-width)) / 2)); }
}
@media (max-width: 768px) {
    .site-header { padding: 12px 16px 16px; }
    .top-nav { gap: 12px; margin-bottom: 12px; }
    .logo { font-size: 21px; }
    .user-actions { gap: 16px; }
    .search-bar-container { gap: 8px; }
    .container, .page-block { padding: 32px 16px; }
    .hero-carousel { min-height: 420px; }
    .hero-slide { padding: 42px 22px 52px; }
    .hero h1 { font-size: clamp(29px, 8vw, 38px); }
    .hero p { font-size: 16px; margin-bottom: 22px; }
    .hero-actions { gap: 10px; }
    .hero-actions .btn-primary, .hero-actions .btn-ghost { width: 100%; }
    .benefits { padding: 18px 16px; gap: 14px 10px; }
    .section-header { margin-bottom: 18px; }
    .section-header h2 { font-size: 22px; }
    .products-grid { gap: 12px; }
    .product-card { padding: 12px; }
    .product-thumb { height: 150px; margin-top: 22px; }
    .product-title { font-size: 14px; }
    .btn-primary, .btn-dark, .btn-outline, .btn-ghost { padding: 12px 16px; font-size: 14px; }
}
@media (max-width: 480px) {
    .main-menu { padding-left: 16px; padding-right: 16px; }
    .search-input-group input { min-width: 0; font-size: 14px; }
    .search-input-group button { padding: 0 18px; }
    .hero-carousel { min-height: 450px; }
    .hero-slide { padding: 34px 18px 56px; }
    .hero .tag { font-size: 11px; padding: 5px 10px; }
    .hero h1 { font-size: 27px; }
    .hero p { font-size: 15px; }
    .categories-grid { gap: 12px; }
    .category-card { height: 118px; padding: 14px; }
    .product-thumb { height: 170px; }
    .products-grid, .products-grid.cols-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .product-card { min-width: 0; }
    .product-title { min-height: 57px; }
    .price-new { font-size: 17px; }
    .stock-status { font-size: 11px; }
    .product-card .btn-block { font-size: 12px; padding-left: 8px; padding-right: 8px; }
}
@media (max-width: 360px) {
    .products-grid, .products-grid.cols-6 { grid-template-columns: 1fr; }
    .hero h1 { font-size: 25px; }
}

@property --ea {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

.flash-loader {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 44%, rgba(255, 215, 0, .14), rgba(0, 0, 0, .97) 62%);
    opacity: 0;
    visibility: hidden;
    transition: opacity .28s ease, visibility .28s ease;
}
.flash-loader.show { opacity: 1; visibility: visible; }

/* Destello de trueno */
.flash-loader .thunder {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 42%, #fff, rgba(255, 255, 255, 0) 55%);
    opacity: 0;
    mix-blend-mode: screen;
    pointer-events: none;
    animation: thunderFlash 3s infinite;
}
@keyframes thunderFlash {
    0%, 6%, 8%, 10%, 100% { opacity: 0; }
    7% { opacity: .40; }
    9% { opacity: .12; }
    54% { opacity: 0; }
    55% { opacity: .16; }
    56% { opacity: 0; }
}

/* Panel con borde eléctrico */
.loader-panel {
    position: relative;
    padding: 40px 56px;
    border-radius: 20px;
    background: rgba(10, 10, 10, .88);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    box-shadow: 0 0 60px rgba(255, 215, 0, .22), 0 0 0 1px rgba(255, 215, 0, .28), inset 0 0 40px rgba(255, 215, 0, .09);
}
.loader-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 3px;
    background: conic-gradient(from var(--ea), rgba(255, 215, 0, 0) 0deg 150deg, #FFD700 215deg, #fff 250deg, #FFD700 285deg, rgba(255, 215, 0, 0) 350deg 360deg);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: electricSpin 2.2s linear infinite;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, .9));
}
@keyframes electricSpin { to { --ea: 360deg; } }

/* Anillo del rayo */
.bolt-ring {
    position: relative;
    width: 132px;
    height: 132px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(255, 215, 0, .10), transparent 70%);
}
.bolt-ring::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    padding: 3px;
    background: conic-gradient(from var(--ea), transparent 0deg 200deg, #FFD700 250deg, #fff 270deg, #FFD700 292deg, transparent 340deg 360deg);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: electricSpin 1.3s linear infinite;
    filter: drop-shadow(0 0 8px #FFD700);
}
.bolt-ring::after {
    content: '';
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 215, 0, .4);
    animation: ringPulse 1.6s ease-out infinite;
}
@keyframes ringPulse {
    0% { transform: scale(.82); opacity: .9; }
    100% { transform: scale(1.28); opacity: 0; }
}
.bolt-ring i {
    font-size: 56px;
    color: var(--primary-yellow);
    text-shadow: 0 0 8px #fff, 0 0 18px #FFD700, 0 0 40px #FFD700, 0 0 70px rgba(255, 215, 0, .7);
    animation: boltPulse .85s ease-in-out infinite;
}
@keyframes boltPulse {
    0%, 100% { transform: scale(1) rotate(-2deg); filter: brightness(1); }
    50% { transform: scale(1.14) rotate(2deg); filter: brightness(1.6); }
}

.loader-brand {
    font-size: 25px;
    font-weight: 900;
    font-style: italic;
    color: #fff;
    letter-spacing: 1px;
    line-height: 1;
}
.loader-brand span { color: var(--primary-yellow); text-shadow: 0 0 14px rgba(255, 215, 0, .8); }

.loader-text {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: #fff;
    animation: textFlicker 2.6s infinite;
    text-align: center;
}
@keyframes textFlicker {
    0%, 18%, 22%, 25%, 53%, 57%, 100% { opacity: 1; }
    20%, 24%, 55% { opacity: .35; }
}

/* Utilidad: borde eléctrico reutilizable */
.electric-border { position: relative; }
.electric-border::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    padding: 2px;
    background: conic-gradient(from var(--ea), transparent 0deg 200deg, #FFD700 250deg, #fff 270deg, #FFD700 292deg, transparent 340deg 360deg);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: electricSpin 2.6s linear infinite;
    pointer-events: none;
}

/* Chispa eléctrica al agregar al carrito */
.icon-link.zap { animation: zap .55s ease; }
@keyframes zap {
    0% { filter: drop-shadow(0 0 0 rgba(255, 215, 0, 0)); }
    45% { filter: drop-shadow(0 0 12px #FFD700) drop-shadow(0 0 22px #FFD700); transform: scale(1.18); }
    100% { filter: drop-shadow(0 0 0 rgba(255, 215, 0, 0)); transform: scale(1); }
}

/* Shimmer eléctrico mientras cargan las imágenes de producto */
.product-thumb {
    background: linear-gradient(110deg, #efefef 8%, #fbfbfb 18%, #efefef 33%);
    background-size: 220% 100%;
    animation: thumbShimmer 1.8s linear infinite;
}
.product-thumb img { position: relative; z-index: 1; }
@keyframes thumbShimmer { to { background-position: -220% 0; } }

/* Composición móvil: categorías y búsqueda en una sola fila, sin huecos. */
@media (max-width: 768px) {
    body { padding-top: 135px !important; }
    .search-bar-container { flex-direction: row !important; align-items: center; width: 100%; }
    .search-bar-container > div:first-child { flex: 0 0 auto; }
    .search-bar-container .search-input-group { display: flex !important; min-width: 0; flex: 1 1 auto; }
    .categories-dropdown { min-height: 44px; padding: 0 12px; font-size: 13px; }
    .categories-dropdown .fa-chevron-down { margin-left: 2px; }
    .categories-grid { grid-template-columns: repeat(5, minmax(104px, 1fr)) !important; overflow-x: auto; padding-bottom: 4px; }
    .products-grid, .products-grid.cols-6 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 480px) {
    body { padding-top: 135px !important; }
    .search-input-group input { font-size: 12px; padding: 10px 8px; }
    .search-input-group button { padding: 0 13px; }
    .categories-dropdown { padding: 0 9px; font-size: 12px; }
}

/* Navbar fijo también para las páginas HTML heredadas. */
.site-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
}
body { padding-top: 137px; }
@media (max-width: 860px) { body { padding-top: 135px; } }
@media (max-width: 560px) { body { padding-top: 135px; } }

/* Beneficios siempre en cuatro columnas, como col-md-3. */
.benefits { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 10px; padding-left: 3%; padding-right: 3%; }
.benefit-text p { display: none !important; }
.benefit-item { min-width: 0; gap: 8px; }
.benefit-item i { font-size: clamp(16px, 2.4vw, 26px); }
.benefit-text h4 { font-size: clamp(9px, 1.5vw, 15px); white-space: nowrap; }

/* Categorías como carrusel horizontal. */
.categories-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 16px;
    padding: 4px 3px 12px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
}
.categories-grid .category-card {
    flex: 0 0 190px;
    scroll-snap-align: start;
}

/* Beneficios compactos para que los cuatro no se superpongan. */
.benefits { gap: 4px !important; padding-left: 2% !important; padding-right: 2% !important; }
.benefit-item { gap: 4px !important; overflow: hidden; }
.benefit-text { min-width: 0; }
.benefit-text h4 { white-space: normal !important; overflow-wrap: anywhere; line-height: 1.1; }
@media (max-width: 560px) {
    .categories-grid { gap: 10px; }
    .categories-grid .category-card { flex-basis: 112px; height: 118px; padding: 12px; }
    .benefit-item { flex-direction: column; justify-content: center; text-align: center; }
    .benefit-text h4 { font-size: 9px; }
}

/* Tipografía fluida basada en rem para evitar desbordamientos. */
html { font-size: 100%; }
body { font-size: 1rem; overflow-x: hidden; }
.logo { font-size: clamp(1.2rem, 3vw, 1.5rem); }
.main-menu > li > a { font-size: clamp(.78rem, 1.4vw, .94rem); }
.hero h1 { font-size: clamp(1.75rem, 6vw, 3.125rem); max-width: 100%; overflow-wrap: anywhere; }
.hero p { font-size: clamp(.9rem, 2vw, 1.125rem); max-width: 32rem; }
.hero .tag { font-size: clamp(.62rem, 1.3vw, .8125rem); }
.section-header h2 { font-size: clamp(1.25rem, 3vw, 1.625rem); }
.category-card h4 { font-size: clamp(.75rem, 1.5vw, .875rem); overflow-wrap: anywhere; }
.benefit-text h4 { font-size: clamp(.55rem, 1.3vw, .9375rem) !important; }
.benefit-text p { font-size: .75rem; }
.btn-primary, .btn-dark, .btn-outline, .btn-ghost, .btn-wa { font-size: clamp(.75rem, 1.5vw, .9375rem); }
.search-input-group input { font-size: clamp(.75rem, 1.6vw, .9375rem); }
.product-title, .product-card h3 { font-size: clamp(.78rem, 1.7vw, 1rem); overflow-wrap: anywhere; }

/* Enlace compacto para guardar favoritos cuando el usuario aún no ha iniciado sesión. */
.product-card .btn-ghost {
    align-self: flex-start;
    width: fit-content;
    max-width: 100%;
    padding: .3rem .45rem;
    font-size: clamp(.62rem, .95vw, .72rem);
    line-height: 1.2;
    gap: .2rem;
    white-space: normal;
}

.product-card .btn-ghost.btn-sm {
    min-height: 0;
}

@media (max-width: 48rem) {
    .product-card .btn-ghost.btn-sm {
        padding: .25rem .4rem;
        font-size: .65rem;
    }
}
@media (max-width: 30rem) {
    .hero h1 { font-size: clamp(1.55rem, 8vw, 2.15rem); }
    .hero p { font-size: .875rem; }
.benefit-text h4 { font-size: .55rem !important; }
}

/* Productos destacados: carrusel horizontal para ahorrar espacio. */
.featured-products-grid { display: flex !important; flex-wrap: nowrap !important; overflow-x: auto; overflow-y: hidden; gap: .8rem; padding: .2rem .1rem .8rem; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--primary-yellow) #e7e7e7; }
.featured-products-grid::-webkit-scrollbar { height: .35rem; }
.featured-products-grid::-webkit-scrollbar-track { background: #e7e7e7; border-radius: 999px; }
.featured-products-grid::-webkit-scrollbar-thumb { background: var(--primary-yellow); border-radius: 999px; }
.featured-products-grid .product-card { flex: 0 0 calc((100% - 2.4rem) / 4); scroll-snap-align: start; }
.compact-product-card .product-card-image { display: block; }
.compact-product-card .product-card-image img { aspect-ratio: 1 / .82; }
.product-stock { display: block; margin: .15rem 0 .5rem; color: #249b4b; font-size: .68rem; }
.product-stock i { margin-right: .2rem; font-size: .48rem; }
.product-actions { display: flex; align-items: center; gap: .35rem; }
.quantity-control { display: inline-flex; align-items: center; justify-content: space-between; min-width: 4.5rem; height: 1.85rem; padding: 0 .18rem; border: 1px solid #cfcfcf; border-radius: .42rem; background: #fff; }
.quantity-control button { width: 1.25rem; height: 1.5rem; padding: 0; border: 0; background: transparent; color: #333; font-size: 1rem; line-height: 1; cursor: pointer; }
.quantity-control button:hover { color: var(--primary-yellow); }
.quantity-value { min-width: 1rem; color: #222; font-size: .75rem; text-align: center; }
.add-product-button { display: inline-flex; align-items: center; justify-content: center; flex: 1; min-width: 0; height: 1.85rem; padding: 0 .35rem; border: 1px solid var(--primary-yellow); border-radius: .42rem; background: var(--primary-yellow); color: #111; font-size: clamp(.58rem, .75vw, .72rem); font-weight: 700; text-decoration: none; white-space: nowrap; }
.add-product-button i { margin-right: .22rem; font-size: .65rem; }
@media (max-width: 48rem) { .featured-products-grid { gap: .6rem; } .featured-products-grid .product-card { flex-basis: calc((100% - .6rem) / 2); } }

/* Panel expandible de categorías */
.site-header.category-open .search-bar-container { display: grid !important; grid-template-columns: auto minmax(0, 1fr); align-items: center; }
.site-header.category-open .search-bar-container > div:first-child { display: contents; }
.site-header.category-open .cat-menu { position: static; display: grid; grid-column: 1 / -1; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; width: 100%; margin-top: 10px; padding: 12px; border-radius: var(--radius); background: #fff; }
.site-header.category-open .cat-menu a { min-height: 58px; justify-content: flex-start; border: 1px solid var(--gray-border); background: var(--light-bg); font-size: .95rem; font-weight: 700; }
.site-header.category-open .cat-menu a:hover { background: var(--primary-yellow); color: var(--dark-bg); }
.site-header.category-open .cat-menu a { position: relative; overflow: hidden; }
.site-header.category-open .cat-menu a::after { content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 42%; background-image: var(--cat-image); background-size: cover; background-position: center; opacity: .45; pointer-events: none; }
.site-header.category-open .cat-menu a span, .site-header.category-open .cat-menu a i { position: relative; z-index: 1; }
.site-header.category-open .cat-menu a { min-height: 4.75rem; padding-left: 5.25rem; padding-right: .75rem; }
.site-header.category-open .cat-menu a i { display: none; }
.site-header.category-open .cat-menu a::after { width: 3.75rem; height: 3.75rem; top: 50%; bottom: auto; left: .75rem; right: auto; transform: translateY(-50%); aspect-ratio: 1 / 1; border-radius: .65rem; opacity: .95; box-shadow: 0 2px 7px rgba(0,0,0,.16); }
@media (max-width: 560px) {
    .site-header.category-open .search-bar-container { grid-template-columns: 1fr; }
    .site-header.category-open .search-bar-container .search-input-group { display: flex !important; }
    .site-header.category-open .cat-menu { grid-template-columns: 1fr; max-height: 55vh; overflow-y: auto; margin-top: 8px; padding: 8px; }
    .site-header.category-open .cat-menu a { min-height: 4rem; padding-left: 4.25rem; padding-right: .75rem; }
    .site-header.category-open .cat-menu a::after { width: 3rem; height: 3rem; left: .6rem; right: auto; border-radius: .5rem; }
}

/* Sistema responsive unificado: mismos componentes, solo cambian sus dimensiones. */
.site-header, .hero-carousel, .benefits, .container, .site-footer { width: 100%; }
.top-nav, .search-bar-container { max-width: var(--max-width); margin-left: auto; margin-right: auto; }
.categories-grid { display: flex !important; flex-wrap: nowrap !important; }
.categories-grid .category-card { flex: 0 0 clamp(7rem, 14vw, 11.875rem); }
.products-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.75rem, 1.6vw, 1.25rem); }
.benefits { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
.hero-carousel { height: clamp(27rem, 42vw, 35rem); min-height: 27rem; }
@media (max-width: 64rem) {
    .products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .categories-grid .category-card { flex-basis: 9rem; }
}
@media (max-width: 48rem) {
    .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .categories-grid .category-card { flex-basis: 7rem; }
    .hero-carousel { height: clamp(15rem, 64vw, 22rem); min-height: 15rem; }
    .benefits { gap: .25rem !important; }
}
@media (max-width: 30rem) {
    .products-grid { gap: .5rem; }
    .categories-grid { gap: .625rem; }
    .categories-grid .category-card { flex-basis: 7rem; }
    .hero-carousel { height: clamp(14rem, 70vw, 18rem); min-height: 14rem; }
}

/* Texto visible unificado para los botones de atención por WhatsApp. */
a.btn-wa, button.btn-wa { font-size: 0 !important; }
a.btn-wa::after, button.btn-wa::after { content: none !important; display: none !important; }
.btn-wa { font-size: clamp(.78rem, 1.5vw, .95rem) !important; }
.btn-wa .fa-whatsapp { font-size: 1.25rem; color: #25d366; }

/* Tarjetas compactas para mostrar más productos sin perder legibilidad. */
.products-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.65rem, 1.2vw, 1rem); }
.product-card { padding: .65rem; border-radius: .65rem; min-width: 0; }
.product-card > a { display: block; overflow: hidden; border-radius: .45rem; background: #f5f5f5; }
.product-card > a img { display: block; width: 100%; aspect-ratio: 1 / .88; object-fit: contain; background: #f5f5f5; transition: transform .3s ease; }
.product-card:hover > a img { transform: scale(1.04); }
.product-info { padding-top: .5rem; min-width: 0; }
.product-info small { display: block; margin-bottom: .2rem; overflow: hidden; color: #888; font-size: clamp(.58rem, .8vw, .7rem); font-weight: 700; letter-spacing: .04em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.product-info h3 { margin: 0 0 .35rem; min-height: 2.45em; overflow: hidden; font-size: clamp(.72rem, 1.05vw, .9rem); line-height: 1.22; }
.product-info h3 a { color: #171717; text-decoration: none; }
.product-info .price { margin-bottom: .45rem; font-size: clamp(.85rem, 1.25vw, 1.1rem); font-weight: 800; line-height: 1.15; }
.product-info .price del { display: block; margin-top: .15rem; color: #999; font-size: .7em; font-weight: 400; }
.product-info .btn-block { min-height: 2rem; padding: .4rem .55rem; border-radius: .45rem; font-size: clamp(.65rem, .9vw, .78rem); line-height: 1; }
@media (max-width: 48rem) {
    .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: .55rem; }
    .product-card { padding: .5rem; }
    .product-card > a img { aspect-ratio: 1 / .82; }
    .product-info { padding-top: .4rem; }
    .product-info h3 { min-height: 2.65em; }
}
@media (max-width: 30rem) {
    .products-grid { gap: .45rem; }
    .product-card { padding: .42rem; }
    .product-info h3 { font-size: .72rem; }
    .product-info .price { font-size: .84rem; }
    .product-info .btn-block { padding-left: .3rem; padding-right: .3rem; font-size: .63rem; }
}

/* WhatsApp: botón negro con borde verde neón y puntas redondas. */
.btn-wa {
    background: #050505 !important;
    color: #fff !important;
    border: 1px solid #25d366 !important;
    border-radius: 999px !important;
    box-shadow: 0 0 5px rgba(37,211,102,.8), inset 0 0 5px rgba(37,211,102,.08);
    padding: .55rem 1rem !important;
    gap: .5rem;
}
.btn-wa:hover { background: #101010 !important; color: #fff !important; border-color: #7aff9d !important; box-shadow: 0 0 9px #25d366, 0 0 16px rgba(37,211,102,.4); transform: translateY(-2px); }
.btn-wa .fa-whatsapp { color: #25d366; }

/* Footer limpio: sin logo ni redes, con datos de contacto ordenados. */
.site-footer { padding: 28px 5%; background: #0b0b0b; border-top: 1px solid rgba(37,211,102,.28); }
.site-footer .container { max-width: var(--max-width); margin: 0 auto; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; }
.site-footer .container h3 { display: none; }
.site-footer .container p { margin: 0; padding: .7rem 1rem; border: 1px solid rgba(255,255,255,.12); border-radius: .65rem; color: #d2d2d2; font-size: .9rem; }
.site-footer .container p::before { color: #25d366; font-weight: 700; margin-right: .45rem; }
.site-footer .container p:first-of-type::before { content: '⌖'; }
.site-footer .container p:last-of-type::before { content: '✉'; }
.site-footer .container a { color: #d2d2d2; text-decoration: none; }
.site-footer .container a:hover { color: #25d366; }
@media (max-width: 40rem) { .site-footer .container { display: grid; grid-template-columns: 1fr; } .site-footer .container p { width: 100%; } }

/* Botón flotante real de WhatsApp, con el estilo de la referencia. */
.whatsapp-float { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 1200; display: inline-flex; align-items: center; gap: .55rem; min-height: 2.75rem; padding: .55rem 1rem; border: 1px solid #25d366; border-radius: 999px; background: #050505; color: #fff; text-decoration: none; font-size: .9rem; box-shadow: 0 0 6px rgba(37,211,102,.85), inset 0 0 6px rgba(37,211,102,.12); transition: transform .2s ease,box-shadow .2s ease,border-color .2s ease; }
.whatsapp-float i { color: #25d366; font-size: 1.35rem; }.whatsapp-float b { color: #25d366; font-size: 1.1rem; font-weight: 400; }.whatsapp-float:hover { color: #fff; border-color: #7aff9d; transform: translateY(-3px); box-shadow: 0 0 10px #25d366,0 0 24px rgba(37,211,102,.45); }
.whatsapp-float::after { content: none !important; display: none !important; }
@media (max-width: 30rem) { .whatsapp-float { right: .75rem; bottom: .75rem; padding: .5rem .8rem; font-size: .78rem; }.whatsapp-float i { font-size: 1.2rem; } }

/* Footer dividido: identidad visual y datos de contacto. */
.site-footer { padding: 2.5rem 5% 1.75rem; background: #0b0b0b; border-top: 1px solid rgba(255,215,0,.35); }
.footer-layout { max-width: var(--max-width); margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; align-items: start; }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; }
.footer-brand .logo { display: inline-block; margin: 0 0 1.5rem; font-size: clamp(1.7rem, 3vw, 2.25rem); }
.footer-social { display: flex; gap: .75rem; }
.footer-social a { width: 2.7rem; height: 2.7rem; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--primary-yellow); border-radius: 50%; color: var(--primary-yellow); background: #050505; text-decoration: none; font-size: 1.15rem; box-shadow: 0 0 7px rgba(255,215,0,.85), inset 0 0 7px rgba(255,215,0,.14); transition: transform .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease; }
.footer-social a:hover { color: #fff; border-color: #fff; transform: translateY(-3px); box-shadow: 0 0 10px var(--primary-yellow), 0 0 20px rgba(255,215,0,.5); }
.footer-contact h3 { margin: 0 0 1rem; color: #fff; font-size: clamp(1.15rem, 2vw, 1.45rem); }
.footer-contact-line { display: flex; align-items: center; gap: .75rem; margin-bottom: .75rem; color: #d2d2d2; font-size: clamp(.82rem, 1.5vw, .95rem); }
.footer-contact-line i { width: 1.25rem; color: var(--primary-yellow); text-align: center; flex: 0 0 1.25rem; }
.footer-contact-line a { color: #d2d2d2; text-decoration: none; }
.footer-contact-line a:hover { color: var(--primary-yellow); }
@media (max-width: 40rem) { .footer-layout { grid-template-columns: 1fr; gap: 2rem; } .footer-brand { align-items: center; text-align: center; } .footer-contact h3 { text-align: center; } }
.footer-brand, .footer-contact { min-width: 0; width: 100%; box-sizing: border-box; }
.footer-contact-line { overflow-wrap: anywhere; }

.newsletter-card-wrap { padding: 2rem 5% 0; background: #0b0b0b; }
.newsletter-card { max-width: var(--max-width); margin: 0 auto; padding: 1.35rem 1.6rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; background: #fff; border-radius: .9rem; box-shadow: 0 8px 24px rgba(0,0,0,.28); }
.newsletter-card h2 { margin: 0 0 .35rem; color: #111; font-size: clamp(1rem, 2vw, 1.35rem); }
.newsletter-card p { margin: 0; max-width: 48rem; color: #555; font-size: clamp(.78rem, 1.5vw, .95rem); line-height: 1.45; }
.newsletter-button, .newsletter-submit { border: 1px solid var(--primary-yellow); border-radius: .55rem; padding: .75rem 1.2rem; background: #050505; color: var(--primary-yellow); font-weight: 700; white-space: nowrap; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.newsletter-button:hover, .newsletter-submit:hover { transform: translateY(-2px); box-shadow: 0 0 12px rgba(255,215,0,.55); }
.newsletter-modal { position: fixed; inset: 0; z-index: 1500; display: none; align-items: center; justify-content: center; padding: 1rem; background: rgba(0,0,0,.72); }
.newsletter-modal.is-open { display: flex; }
.newsletter-modal-box { position: relative; width: min(100%, 28rem); padding: 1.7rem; border: 1px solid var(--primary-yellow); border-radius: .9rem; background: #111; box-shadow: 0 0 24px rgba(255,215,0,.22); }
.newsletter-modal-box h2 { margin: 0 0 .35rem; color: #fff; font-size: 1.35rem; }
.newsletter-modal-box > p { margin: 0 0 1.2rem; color: #bbb; font-size: .9rem; }
.newsletter-close { position: absolute; top: .55rem; right: .75rem; border: 0; background: transparent; color: #fff; font-size: 1.7rem; cursor: pointer; }
.newsletter-field { margin-bottom: .85rem; }
.newsletter-field label { display: block; margin-bottom: .3rem; color: var(--primary-yellow); font-size: .85rem; }
.newsletter-field input { width: 100%; padding: .7rem .8rem; border: 1px solid #555; border-radius: .45rem; background: #1d1d1d; color: #fff; box-sizing: border-box; }
.newsletter-field input:focus { outline: 1px solid var(--primary-yellow); border-color: var(--primary-yellow); }
.newsletter-submit { width: 100%; margin-top: .35rem; }
@media (max-width: 40rem) { .newsletter-card { flex-direction: column; align-items: stretch; text-align: center; } .newsletter-button { width: 100%; } }

/* Correcci&oacute;n responsive final para celulares: estos estilos quedan al final para evitar sobrescrituras. */
@media screen and (max-width: 48rem) {
    html, body { max-width: 100%; overflow-x: hidden; }
    .container { width: 100%; max-width: 100%; box-sizing: border-box; padding-left: .75rem; padding-right: .75rem; }
    .products-grid { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: .55rem !important; width: 100%; }
    .products-grid .product-card { width: auto; min-width: 0; max-width: none; padding: .45rem; }
    .products-grid .product-card > a img { width: 100%; height: auto; min-height: 0; aspect-ratio: 1 / .82; object-fit: contain; }
    .products-grid .product-info h3 { font-size: clamp(.68rem, 2.5vw, .78rem); line-height: 1.2; }
    .products-grid .product-info .price { font-size: clamp(.78rem, 3vw, .92rem); }
    .products-grid .product-actions { gap: .25rem; }
    .products-grid .quantity-control { min-width: 4rem; }
    .products-grid .add-product-button { padding-left: .2rem; padding-right: .2rem; font-size: .6rem; }
    .featured-products-grid { display: flex !important; flex-wrap: nowrap !important; overflow-x: auto !important; width: 100%; }
    .featured-products-grid .product-card { flex: 0 0 calc((100% - .55rem) / 2) !important; }
}

/* Barra de b&uacute;squeda siempre integrada al navbar fijo. */
.site-header { position: fixed !important; top: 0 !important; left: 0 !important; right: 0 !important; width: 100% !important; z-index: 1400 !important; transform: translateZ(0); }
.site-header .search-bar-container { position: relative; z-index: 1401; width: 100%; }
.site-header .search-input-group { position: relative; z-index: 1402; }
body { padding-top: 137px !important; }
@media (max-width: 768px) { body { padding-top: 135px !important; } }
@media (max-width: 560px) { body { padding-top: 132px !important; } }

.cart-nav-link { position: relative; display: inline-flex; align-items: center; justify-content: center; color: var(--text-light); text-decoration: none; }
.cart-nav-link:hover { color: var(--primary-yellow); }
.cart-nav-count { position: absolute; top: -.35rem; right: -.45rem; min-width: 1rem; height: 1rem; padding: 0 .18rem; border-radius: 999px; background: var(--primary-yellow); color: #111; font-size: .62rem; font-weight: 800; line-height: 1rem; text-align: center; }
.cart-page { padding-top: 2rem; padding-bottom: 3rem; }
.cart-empty { padding: 4rem 1rem; text-align: center; }.cart-empty i { color: var(--primary-yellow); font-size: 3rem; }.cart-empty h2 { margin: 1rem 0; }
.cart-list { display: grid; gap: .75rem; }.cart-item { display: grid; grid-template-columns: 5rem minmax(0,1fr) auto auto; gap: 1rem; align-items: center; padding: .8rem; border: 1px solid var(--gray-border); border-radius: .65rem; background: #fff; }.cart-item img { width: 5rem; height: 5rem; object-fit: contain; border-radius: .4rem; background: #f5f5f5; }.cart-item-info h2 { margin: .2rem 0; font-size: clamp(.85rem, 1.5vw, 1rem); }.cart-item-info small { color: #888; text-transform: uppercase; }.cart-item-info p { margin: .2rem 0 .45rem; color: #555; font-size: .8rem; }.cart-item-info label { display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; }.cart-item-info input { width: 3.5rem; padding: .35rem; border: 1px solid #ccc; border-radius: .35rem; }.cart-item > strong { white-space: nowrap; }.cart-remove { border: 0; background: transparent; color: #b33; font-size: 1.35rem; cursor: pointer; }.cart-summary { display: flex; align-items: center; justify-content: flex-end; gap: .75rem; margin-top: 1rem; padding: 1rem; border-radius: .65rem; background: #111; color: #fff; }.cart-summary > div { margin-right: auto; }.cart-summary > div span { display: block; color: #bbb; font-size: .8rem; }.cart-summary > div strong { color: var(--primary-yellow); font-size: 1.25rem; }.cart-summary .btn-wa { padding: .65rem .9rem; border: 1px solid #25d366; border-radius: 999px; color: #fff; text-decoration: none; }.product-actions .quantity-input { display: none; }
@media (max-width: 40rem) { .cart-item { grid-template-columns: 4rem minmax(0,1fr) auto; gap: .55rem; }.cart-item img { width: 4rem; height: 4rem; }.cart-item > strong { grid-column: 2; }.cart-remove { grid-column: 3; grid-row: 1; }.cart-summary { flex-wrap: wrap; justify-content: stretch; }.cart-summary > div { width: 100%; }.cart-summary button,.cart-summary a { flex: 1; text-align: center; } }

.social-gallery { margin: 3rem auto 3.5rem; padding-top: 1rem; }
.social-gallery-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.social-eyebrow { color: var(--primary-yellow); font-size: .68rem; font-weight: 800; letter-spacing: .14em; }
.social-gallery h2 { margin: .35rem 0 0; font-size: clamp(1.15rem, 2.3vw, 1.65rem); }
.social-tabs { display: flex; gap: .45rem; }
.social-tab { border: 1px solid #ddd; border-radius: 999px; padding: .5rem .8rem; background: #fff; color: #333; cursor: pointer; font-size: .75rem; }.social-tab.active,.social-tab:hover { border-color: var(--primary-yellow); background: var(--primary-yellow); color: #111; }
.social-panel { display: none; }.social-panel.active { display: block; }
.social-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; }
.social-card { overflow: hidden; padding: .35rem; border: 1px solid #e5e5e5; border-radius: .7rem; background: #fff; box-shadow: 0 5px 18px rgba(0,0,0,.07); }.social-card iframe { display: block; width: 100%; height: 22rem; border: 0; border-radius: .5rem; background: #f5f5f5; }.social-card-link { display: block; padding: .55rem .35rem .25rem; color: #333; font-size: .72rem; text-decoration: none; }.social-card-link:hover { color: var(--primary-yellow); }.social-card-link i { margin-left: .25rem; color: var(--primary-yellow); }.social-empty { color: #777; font-size: .85rem; }
@media (max-width: 48rem) { .social-gallery { margin-top: 2rem; }.social-gallery-heading { align-items: start; flex-direction: column; }.social-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: .55rem; }.social-card iframe { height: 18rem; } }
@media (max-width: 30rem) { .social-grid { grid-template-columns: 1fr; }.social-card iframe { height: 24rem; } }

.has-dropdown { position: relative; }

/* Búsqueda y jerarquía del catálogo */
.product-search-form { align-items: center; padding: .8rem 1rem; }
.product-search-label { display: inline-flex; align-items: center; gap: .45rem; color: var(--dark-bg); font-size: .85rem; font-weight: 800; white-space: nowrap; }
.product-search-label i { color: var(--primary-yellow-dark); }
.product-search-control { display: flex; flex: 1 1 25rem; min-width: 0; gap: .5rem; }
.product-search-control input { flex: 1 1 auto; min-width: 0; height: 2.75rem; padding: .65rem .85rem; border: 1px solid var(--gray-border); border-radius: .5rem; outline: none; color: var(--text-dark); background: #fff; font-size: .9rem; }
.product-search-control input:focus { border-color: var(--primary-yellow-dark); box-shadow: 0 0 0 3px rgba(255,215,0,.2); }
.product-search-control button { height: 2.75rem; padding: 0 1.15rem; border-radius: .5rem; }
.catalog-category-links { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; margin: -4px 0 1.2rem; }
.category-link-group { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem; border: 1px solid #eee; border-radius: .55rem; background: #fff; }
.category-link, .category-sub-link { display: inline-flex; align-items: center; min-height: 2rem; padding: .35rem .65rem; border-radius: .4rem; color: var(--text-dark); font-size: .78rem; font-weight: 700; text-decoration: none; }
.category-link:hover, .category-sub-link:hover, .category-link.active, .category-sub-link.active { background: var(--primary-yellow); color: var(--dark-bg); }
.category-sub-link { color: #666; font-weight: 600; }
@media (max-width: 560px) {
    .product-search-form { align-items: stretch; gap: .55rem; }
    .product-search-label { font-size: .78rem; }
    .product-search-control { flex-basis: 100%; }
    .product-search-control input { font-size: .8rem; }
    .product-search-control button { padding: 0 .8rem; font-size: .78rem; }
    .catalog-category-links { overflow-x: auto; flex-wrap: nowrap; padding-bottom: .25rem; }
    .category-link-group { flex: 0 0 auto; }
}

/* Filtros flotantes del catálogo: el botón no ocupa espacio en el contenido. */
.filters-fab { position: fixed; right: 1.25rem; bottom: 9rem; z-index: 1450; display: inline-flex; align-items: center; gap: .45rem; min-height: 2.9rem; padding: 0 1rem; border: 0; border-radius: 999px; background: var(--dark-bg); color: var(--primary-yellow); box-shadow: 0 8px 22px rgba(0,0,0,.25); cursor: pointer; font-weight: 800; }
.filters-fab:hover { background: var(--primary-yellow); color: var(--dark-bg); transform: translateY(-2px); }
.filters-backdrop { position: fixed; inset: 0; z-index: 1455; visibility: hidden; opacity: 0; background: rgba(0,0,0,.35); transition: opacity .2s ease, visibility .2s ease; }
.filters-backdrop.is-open { visibility: visible; opacity: 1; }
.filters-panel { position: fixed; top: 0; right: 0; bottom: 0; z-index: 1460; width: min(23rem, 92vw); padding: 1.25rem; overflow-y: auto; background: #fff; box-shadow: -8px 0 28px rgba(0,0,0,.2); transform: translateX(105%); transition: transform .25s ease; }
.filters-panel.is-open { transform: translateX(0); }
.filters-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: .9rem; border-bottom: 1px solid #eee; }
.filters-panel-head h2 { margin: 0; font-size: 1.2rem; }
.filters-close { border: 0; background: transparent; color: #555; font-size: 1.7rem; line-height: 1; cursor: pointer; }
.filters-form { display: grid; gap: .65rem; padding-top: 1rem; }
.filters-form label { color: #333; font-size: .8rem; font-weight: 700; }
.filters-form select, .filters-form input[type=number] { width: 100%; min-height: 2.5rem; padding: .55rem .65rem; border: 1px solid var(--gray-border); border-radius: .45rem; background: #fff; color: var(--text-dark); }
.filters-form select:focus, .filters-form input[type=number]:focus { border-color: var(--primary-yellow-dark); outline: 0; box-shadow: 0 0 0 3px rgba(255,215,0,.2); }
.filters-price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; }
.filters-price-grid > div { display: grid; gap: .35rem; }
.filter-check { display: flex !important; align-items: center; gap: .45rem; margin: .35rem 0; }
.filter-check input { width: auto; accent-color: var(--primary-yellow-dark); }
.filters-actions { display: flex; gap: .55rem; margin-top: .65rem; }
.filters-actions > * { flex: 1; text-align: center; }
@media (max-width: 560px) { .filters-fab { right: .75rem; bottom: 8.5rem; min-height: 2.65rem; padding: 0 .85rem; } .filters-panel { width: min(21rem, 92vw); } }

/* En escritorio se oculta el bloque independiente de Categorías para no interferir con Productos. */
@media (min-width: 861px) {
    .site-header .search-bar-container > div:first-child,
    .site-header.category-open .search-bar-container > div:first-child,
    .site-header.category-open .cat-menu { display: none !important; }
    .site-header .search-bar-container { min-height: 0; }
}

/* Menú móvil en forma de acordeón: Productos → categoría → subcategoría. */
@media (max-width: 860px) {
    .site-header .main-menu .category-menu-item { width: 100%; }
    .site-header .main-menu .category-menu-item.is-open > .subcategory-list { display: flex !important; }
    .site-header .main-menu .subcategory-list { position: static !important; width: 100% !important; box-sizing: border-box; flex-direction: column; gap: .45rem; padding: .6rem .5rem .7rem 1rem !important; border: 0; border-left: 2px solid var(--primary-yellow); border-radius: 0; background: #151515; box-shadow: none; }
    .site-header .main-menu .subcategory-branch { width: 100%; }
    .site-header .main-menu .subcategory-option { min-height: 58px !important; width: 100%; font-size: .9rem !important; }
    .site-header .main-menu .category-branch-toggle { top: 14px; right: 8px; touch-action: manipulation; }
    .site-header .main-menu .category-option, .site-header .main-menu .subcategory-option { touch-action: manipulation; }
}
.hero-carousel { touch-action: pan-y; }
.hero-carousel .hero-nav { display: flex !important; position: absolute; top: 50%; z-index: 20; width: 2.25rem; height: 2.25rem; align-items: center; justify-content: center; border: 1px solid rgba(255,215,0,.9); border-radius: 50%; background: rgba(0,0,0,.62); color: var(--primary-yellow); transform: translateY(-50%); cursor: pointer; }
.hero-carousel .hero-nav.prev { left: .65rem; }.hero-carousel .hero-nav.next { right: .65rem; }
@media (max-width: 30rem) { .hero-carousel .hero-nav { width: 2rem; height: 2rem; font-size: .75rem; } .hero-carousel .hero-nav.prev { left: .45rem; }.hero-carousel .hero-nav.next { right: .45rem; } }
.add-product-button:disabled { opacity: .65; cursor: wait; }
.cart-hero { min-height: 13rem; background: linear-gradient(90deg,rgba(0,0,0,.78),rgba(0,0,0,.25)),url('https://images.unsplash.com/photo-1524758631624-e2822e304c36?auto=format&fit=crop&w=1600&q=85') center/cover; color: #fff; }.cart-hero-overlay { min-height: 13rem; display: flex; align-items: end; }.cart-hero-inner { width: min(100%,var(--max-width)); margin: 0 auto; padding: 2rem 5%; }.cart-hero h1 { margin: .6rem 0 .2rem; font-size: clamp(1.7rem,4vw,2.6rem); font-style: italic; }.cart-hero h1 i { color: var(--primary-yellow); margin-right: .4rem; }.cart-hero p { margin: 0; color: #eee; }.cart-hero .breadcrumbs a { color: var(--primary-yellow); text-decoration: none; }
.cart-suggestions { margin: 1.4rem 0 1.1rem; padding: 1rem; border: 1px solid #555; border-radius: .8rem; background: linear-gradient(135deg,#292929,#111); color: #fff; }.cart-suggestions-title { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: .75rem; }.cart-suggestions-title > div > span { color: var(--primary-yellow); font-size: .65rem; font-weight: 800; letter-spacing: .12em; }.cart-suggestions-title h2 { margin: .2rem 0; font-size: clamp(1rem,2vw,1.3rem); }.cart-suggestions-title p { margin: 0; color: #ccc; font-size: .78rem; }.suggestion-arrows { display: flex; gap: .35rem; }.suggestion-arrows button { width: 2rem; height: 2rem; border: 1px solid var(--primary-yellow); border-radius: 50%; background: transparent; color: var(--primary-yellow); cursor: pointer; font-size: 1.3rem; }.suggested-products { display: flex; gap: .65rem; overflow-x: auto; padding-bottom: .35rem; scroll-snap-type: x proximity; scrollbar-width: thin; }.suggested-products .product-card { flex: 0 0 calc((100% - 1.3rem) / 3); scroll-snap-align: start; }.suggested-products .product-info h3 { min-height: 2.4em; }.suggested-products .product-card { padding: .5rem; }.suggested-products .product-stock { display: none; }
.cart-page .cart-list { margin-top: 1rem; }.cart-summary { display: block; max-width: 100%; margin-top: 1rem; padding: 1.1rem; border-radius: .8rem; background: #fff; color: #222; box-shadow: 0 2px 12px rgba(0,0,0,.08); }.cart-summary h2 { margin: 0 0 .8rem; font-size: 1.25rem; }.cart-summary-row,.cart-summary-total { display: flex; justify-content: space-between; padding: .3rem 0; }.cart-summary-total { margin-top: .45rem; padding-top: .7rem; border-top: 1px solid #ddd; font-size: 1.2rem; }.cart-summary-total strong { color: #111; }.free-shipping-note { margin: .8rem 0; padding: .65rem; border: 1px solid #f0d45c; border-radius: .55rem; background: #fff8ce; color: #735f00; font-size: .78rem; text-align: center; }.free-shipping-note i { margin-right: .3rem; }.cart-summary-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: .8rem; }.cart-summary-actions .cart-drawer-whatsapp { margin: 0; background: #18a957; border: 0; color: #fff; text-align: center; }.cart-summary-actions .btn-primary { border: 0; border-radius: 999px; }.cart-trust { display: flex; justify-content: space-around; gap: .5rem; margin-top: 1rem; padding-top: .8rem; border-top: 1px solid #eee; font-size: .68rem; }.cart-trust span { text-align: center; }.cart-trust i { color: #222; margin-right: .2rem; }.payment-title { margin-top: .8rem; text-align: center; font-size: .8rem; }.payment-methods { display: flex; justify-content: center; align-items: center; gap: 1.3rem; margin-top: .65rem; color: #2656c8; font-size: 1.1rem; }.payment-methods b:nth-child(2) { color: #111; }.payment-methods b:nth-child(3) { color: #d13b85; }.payment-methods b:nth-child(4) { color: #496c9e; }.payment-methods .mastercard { color: #e22; letter-spacing: -.35em; }
@media (max-width: 48rem) { .cart-hero,.cart-hero-overlay { min-height: 11rem; }.cart-hero-inner { padding: 1.25rem .85rem; }.cart-suggestions { margin-left: -.05rem; margin-right: -.05rem; }.suggested-products .product-card { flex-basis: calc((100% - .65rem) / 2); }.cart-summary-actions { grid-template-columns: 1fr; }.cart-trust { font-size: .62rem; }.payment-methods { gap: .8rem; font-size: .95rem; } }
@media (max-width: 30rem) { .suggested-products .product-card { flex-basis: 72%; }.cart-trust { flex-wrap: wrap; }.cart-trust span { flex: 1 1 30%; }.payment-methods { gap: .55rem; font-size: .82rem; } }

/* Proporciones de carrito para escritorio. */
@media (min-width: 49rem) {
    .cart-page { max-width: 1120px; padding-left: 2rem; padding-right: 2rem; }
    .cart-hero-inner { max-width: 1120px; padding-left: 2rem; padding-right: 2rem; }
    .cart-page > form { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(20rem, .8fr); gap: 1.25rem; align-items: start; }
    .cart-page > form .cart-list { grid-column: 1; margin-top: 0; }
    .cart-page > form .cart-summary { grid-column: 2; grid-row: 1; margin-top: 0; position: sticky; top: 9.5rem; }
    .cart-item { grid-template-columns: 6rem minmax(0,1fr) auto auto; padding: 1rem; }
    .cart-item img { width: 6rem; height: 6rem; }
    .cart-suggestions { max-width: 100%; }
    .suggested-products .product-card { flex-basis: calc((100% - 1.3rem) / 3); }
}

/* El offcanvas siempre queda por encima del navbar fijo. */
.cart-drawer-overlay { z-index: 1590 !important; }
.cart-drawer { z-index: 1600 !important; }

/* Logo compacto con acabado brillante. */
.logo { letter-spacing: -.045em; text-shadow: 0 0 1px rgba(255,255,255,.85), 0 1px 0 #777, 0 0 10px rgba(255,255,255,.12); }
.logo .logo-bolt { margin: 0 -.075em; color: #ffd700; text-shadow: 0 0 3px #fff, 0 0 8px rgba(255,174,0,.95), 0 0 14px rgba(255,215,0,.55); }
.logo > span:not(.logo-bolt) { color: #ffd700; text-shadow: 0 0 2px #fff, 0 0 8px rgba(255,215,0,.7); }
.logo:hover { text-shadow: 0 0 2px #fff, 0 0 12px rgba(255,255,255,.35); }

/* Carrito flotante y offcanvas. */
.cart-nav-link { display: none !important; }
.product-card { scroll-margin-top: 10rem; }
.cart-float-toggle { position: fixed !important; right: 20px !important; bottom: 88px !important; z-index: 1250 !important; width: 56px; height: 56px; display: flex !important; align-items: center; justify-content: center; border: 1px solid var(--primary-yellow); border-radius: 50%; background: #050505; color: var(--primary-yellow); cursor: pointer; box-shadow: 0 0 8px rgba(255,215,0,.9), inset 0 0 6px rgba(255,215,0,.15); transition: transform .2s ease, box-shadow .2s ease; }
.cart-float-toggle:hover { transform: translateY(-3px); box-shadow: 0 0 12px var(--primary-yellow), 0 0 22px rgba(255,215,0,.4); }
.cart-float-toggle > i { font-size: 1.35rem; }.cart-float-toggle > span { position: absolute; top: -.3rem; right: -.25rem; min-width: 1.1rem; height: 1.1rem; padding: 0 .18rem; border-radius: 999px; background: var(--primary-yellow); color: #111; font-size: .65rem; font-weight: 800; line-height: 1.1rem; text-align: center; }
.cart-drawer-overlay { position: fixed; inset: 0; z-index: 1290; visibility: hidden; opacity: 0; background: rgba(0,0,0,.55); transition: opacity .25s ease, visibility .25s ease; }.cart-drawer-overlay.is-open { visibility: visible; opacity: 1; }
.cart-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 1300; display: flex; width: min(25rem, 92vw); flex-direction: column; padding: 1.25rem; background: #111; color: #fff; box-shadow: -8px 0 30px rgba(0,0,0,.35); transform: translateX(105%); transition: transform .3s ease; }.cart-drawer.is-open { transform: translateX(0); }
.cart-drawer-head { display: flex; align-items: start; justify-content: space-between; padding-bottom: 1rem; border-bottom: 1px solid #333; }.cart-drawer-head span { color: var(--primary-yellow); font-size: .65rem; font-weight: 800; letter-spacing: .14em; }.cart-drawer-head h2 { margin: .25rem 0 0; font-size: 1.35rem; }.cart-drawer-head button { border: 0; background: transparent; color: #fff; font-size: 1.7rem; cursor: pointer; }
.cart-drawer-items { flex: 1; overflow-y: auto; padding: 1rem 0; }.cart-drawer-item { display: flex; align-items: center; gap: .75rem; padding: .65rem 0; border-bottom: 1px solid #292929; }.cart-drawer-item img { width: 3.8rem; height: 3.8rem; object-fit: contain; border-radius: .45rem; background: #f5f5f5; }.cart-drawer-item strong { display: block; font-size: .8rem; line-height: 1.25; }.cart-drawer-item small { display: block; margin-top: .25rem; color: #bbb; font-size: .72rem; }.cart-drawer-total { display: flex; justify-content: space-between; padding: 1rem 0; border-top: 1px solid #444; font-size: 1.05rem; }.cart-drawer-total strong { color: var(--primary-yellow); }.cart-drawer-primary,.cart-drawer-whatsapp { display: block; margin-top: .55rem; padding: .75rem; border-radius: .5rem; text-align: center; font-weight: 700; text-decoration: none; }.cart-drawer-primary { background: var(--primary-yellow); color: #111; }.cart-drawer-whatsapp { border: 1px solid #25d366; color: #fff; }.cart-drawer-whatsapp i { color: #25d366; margin-right: .3rem; }.cart-drawer-empty { margin: auto 0; text-align: center; color: #bbb; }.cart-drawer-empty i { color: var(--primary-yellow); font-size: 2.5rem; }.cart-drawer-empty a { color: var(--primary-yellow); }
@media (max-width: 30rem) { .cart-float-toggle { right: .75rem !important; bottom: 5.1rem !important; width: 3.25rem; height: 3.25rem; } .site-header .cart-nav-link { display: none !important; } }

/* Correcci&oacute;n de la composici&oacute;n del footer en pantallas grandes. */
.site-footer > .container.footer-layout { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; align-items: start; gap: clamp(3rem, 10vw, 10rem); max-width: var(--max-width); margin: 0 auto; }
.site-footer .footer-brand { justify-self: start; width: 100%; }
.site-footer .footer-contact { justify-self: stretch; width: 100%; max-width: 32rem; }
.site-footer .footer-social { margin-top: .25rem; }
.site-footer .footer-contact-line { min-height: 1.4rem; }
@media (max-width: 40rem) {
    .site-footer > .container.footer-layout { display: grid !important; grid-template-columns: 1fr !important; gap: 2rem; }
    .site-footer .footer-brand, .site-footer .footer-contact { justify-self: stretch; max-width: none; }
}

/* Override final para que Categorías conserve su navegación lateral en móvil. */
@media (max-width: 860px) {
    .site-header.category-open .category-cascade-menu { position: relative !important; display: block !important; width: min(18rem, 82vw) !important; max-height: 65vh; overflow: visible !important; padding: .5rem !important; }
    .site-header.category-open .category-cascade-menu .subcategory-list { position: absolute !important; left: calc(100% + 8px) !important; top: -.5rem !important; display: none; width: min(18rem, 82vw) !important; max-height: 65vh; overflow-y: auto; padding: .5rem !important; border: 1px solid #ddd; background: #fff; box-shadow: 8px 8px 20px rgba(0,0,0,.2); }
    .site-header.category-open .category-cascade-menu .category-menu-item.is-open > .subcategory-list { display: flex !important; }
}

/* Último ajuste móvil: las subcategorías usan el mismo panel y separan texto de imagen. */
@media (max-width: 860px) {
    .site-header.category-open .category-cascade-menu.branch-view { width: min(19rem, 92vw) !important; left: .6rem !important; right: .6rem !important; overflow: visible !important; }
    .site-header.category-open .category-cascade-menu.branch-view > .category-menu-item:not(.is-open) { display: none !important; }
    .site-header.category-open .category-cascade-menu.branch-view > .category-menu-item.is-open > .category-option,
    .site-header.category-open .category-cascade-menu.branch-view > .category-menu-item.is-open > .category-branch-toggle { display: none !important; }
    .site-header.category-open .category-cascade-menu.branch-view .subcategory-list,
    .site-header.category-open .category-cascade-menu.branch-view .category-menu-item.is-open > .subcategory-list { position: static !important; left: auto !important; top: auto !important; display: flex !important; flex-direction: column !important; width: 100% !important; max-height: calc(100vh - 10rem) !important; box-sizing: border-box !important; overflow-y: auto !important; padding: .6rem !important; border-radius: .8rem !important; background: #fff !important; }
    .site-header.category-open .category-cascade-menu.branch-view .subcategory-option { position: relative !important; display: flex !important; align-items: center !important; min-height: 4.25rem !important; width: 100% !important; box-sizing: border-box !important; padding: .6rem .7rem .6rem 4.65rem !important; overflow: hidden !important; white-space: normal !important; overflow-wrap: anywhere !important; }
    .site-header.category-open .category-cascade-menu.branch-view .subcategory-option::before { left: .65rem !important; width: 3.35rem !important; height: 3.35rem !important; }
    .site-header.category-open .category-cascade-menu.branch-view .subcategory-option span { position: relative !important; z-index: 1 !important; display: block !important; min-width: 0 !important; margin: 0 !important; }
}

/* Página Nosotros y publicaciones sociales. */
.about-banner { min-height: 250px; }
.about-page { padding-top: 2.5rem; padding-bottom: 4rem; }
.about-intro { max-width: 720px; margin: 0 auto 1.7rem; text-align: center; }
.about-intro h2 { margin: .35rem 0 .5rem; font-size: clamp(1.7rem, 4vw, 2.4rem); }
.about-intro p { margin: 0; color: #666; font-size: 1rem; }
.about-category-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin: 1.4rem 0 2rem; }
.about-tab { min-height: 2.6rem; padding: .55rem 1rem; border: 1px solid var(--gray-border); border-radius: 999px; background: #fff; color: var(--text-dark); font-weight: 700; cursor: pointer; }
.about-tab.active, .about-tab:hover { border-color: var(--primary-yellow); background: var(--primary-yellow); color: #111; }
.about-posts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.about-post-card { overflow: hidden; border: 1px solid var(--gray-border); border-radius: .8rem; background: #fff; box-shadow: var(--shadow-sm); }
.about-post-media { aspect-ratio: 1 / 1; background: #f5f5f5; }
.about-post-media iframe { display: block; width: 100%; height: 100%; border: 0; }
.about-post-body { padding: .9rem 1rem 1rem; }
.about-post-body > span { color: #8a7600; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.about-post-body h3 { margin: .35rem 0 .7rem; font-size: 1rem; }
.about-post-body a { color: #806e00; font-weight: 700; text-decoration: none; }
.about-empty { padding: 4rem 1rem; text-align: center; color: #666; }
.about-empty i { color: #d62976; font-size: 3rem; }
.about-empty h2 { color: var(--text-dark); }
@media (max-width: 800px) { .about-posts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; } .about-post-body { padding: .75rem; } }
@media (max-width: 520px) { .about-page { padding-left: .85rem; padding-right: .85rem; } .about-posts-grid { grid-template-columns: 1fr; } .about-category-tabs { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: .3rem; } .about-tab { flex: 0 0 auto; } }

/* Publicaciones compactas y reproducibles dentro de Nosotros. */
.about-posts-grid { width: min(100%, 980px); margin-left: auto; margin-right: auto; justify-items: center; }
.about-post-card { width: min(100%, 300px); }
.about-post-media { aspect-ratio: 1 / 1.08; overflow: hidden; }
.about-post-media iframe { min-height: 0; }
@media (max-width: 800px) { .about-post-card { width: 100%; } }
@media (max-width: 520px) { .about-posts-grid { width: 100%; } .about-post-card { max-width: 360px; } }

/* Hasta cinco publicaciones por fila cuando el ancho disponible lo permite. */
.about-posts-grid { width: min(100%, 1400px); grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: start; }
.about-post-card { width: 100%; max-width: none; }
.about-page > .about-general-note { display: none; }
.about-page > .about-general-note ~ .about-post-card { display: inline-block; vertical-align: top; width: calc(20% - .95rem); margin: 0 .45rem 1.2rem; }
@media (max-width: 1100px) { .about-posts-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .about-page > .about-general-note ~ .about-post-card { width: calc(25% - .95rem); } }
@media (max-width: 800px) { .about-posts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .about-page > .about-general-note ~ .about-post-card { width: calc(50% - .95rem); } }
@media (max-width: 520px) { .about-posts-grid { grid-template-columns: 1fr; } .about-page > .about-general-note ~ .about-post-card { display: block; width: 100%; max-width: 360px; margin: 0 auto 1rem; } }

/* Más altura para que Instagram muestre completo el contenido y los controles. */
.about-post-media { height: 460px; min-height: 460px; aspect-ratio: auto; }
.about-post-media iframe { height: 100% !important; min-height: 460px; }
@media (max-width: 800px) { .about-post-media { height: 500px; min-height: 500px; } .about-post-media iframe { min-height: 500px; } }
@media (max-width: 520px) { .about-post-media { height: 560px; min-height: 560px; } .about-post-media iframe { min-height: 560px; } }

/* Proporción tipo Instagram: el alto se calcula siempre a partir del ancho. */
.about-post-media { width: 100%; height: clamp(600px, 42vw, 720px) !important; min-height: 600px !important; aspect-ratio: auto !important; overflow: hidden; }
.about-post-media iframe { width: 100% !important; height: 100% !important; min-height: 600px !important; aspect-ratio: auto; }

/* La publicación ocupa toda la tarjeta, sin etiquetas ni enlaces debajo. */
.about-post-card .about-post-body,
.about-general-note { display: none !important; }

/* Estilos solicitados para los embeds de Instagram. */
.about-post-media {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 540px;
    margin: 0 auto;
    box-sizing: border-box;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
}
.about-post-media iframe {
    display: block;
    width: 100% !important;
    max-width: 100%;
    min-width: 0 !important;
    height: 650px !important;
    min-height: 650px !important;
    border: none;
    border-radius: 12px;
    background-color: #ffffff;
}
@media (max-width: 600px) {
    .about-post-media { max-width: 100%; padding: 0; }
    .about-post-media iframe { width: 100% !important; height: 600px !important; min-height: 600px !important; border-radius: 8px; }
}

/* Distribución de varias publicaciones tipo Instagram. */
.about-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 1680px;
    margin: 0 auto;
}
@media (max-width: 1024px) {
    .about-posts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
    .about-posts-grid { grid-template-columns: 1fr; }
}

/* Altura final reducida 15%, conservando el video embebido. */
.about-post-media iframe { height: 553px !important; min-height: 553px !important; }
@media (max-width: 600px) {
    .about-post-media iframe { height: 510px !important; min-height: 510px !important; }
}

/* Ampliación horizontal solicitada. */
.about-post-media { width: calc(100% + 15px) !important; max-width: none !important; margin-left: -7.5px !important; margin-right: -7.5px !important; }

/* 15 px adicionales de ancho. */
.about-post-media { width: calc(100% + 30px) !important; margin-left: -15px !important; margin-right: -15px !important; }

/* 10 px adicionales de ancho. */
.about-post-media { width: calc(100% + 40px) !important; margin-left: -20px !important; margin-right: -20px !important; }

/* Página de ofertas. */
.offers-page { padding-top: 2.5rem; padding-bottom: 4rem; }
.adn-copy{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.25rem;margin:2rem 0}.adn-copy article{padding:1.5rem;border:1px solid var(--gray-border);border-radius:1rem;background:#fff;box-shadow:var(--shadow-sm)}.adn-copy h2{margin:.35rem 0 .7rem}.adn-copy p{line-height:1.7;white-space:normal}.adn-history{grid-column:1/-1}.adn-photo-section{margin:2.5rem 0}.adn-photo-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem}.adn-photo-grid img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:.8rem;box-shadow:var(--shadow-sm)}.about-adn-actions{margin-top:1.5rem}@media(max-width:700px){.adn-copy{grid-template-columns:1fr}.adn-history{grid-column:auto}.adn-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.product-card { position: relative; }
.product-discount-badge { position: absolute; top: .65rem; right: .65rem; z-index: 2; padding: .35rem .55rem; border-radius: 999px; background: var(--primary-yellow); color: #111; font-size: .78rem; font-weight: 900; box-shadow: 0 2px 6px rgba(0,0,0,.18); }
.offers-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; max-width: 1200px; margin: 0 auto; }
.offer-card { overflow: hidden; border: 1px solid var(--gray-border); border-radius: .8rem; background: #fff; box-shadow: var(--shadow-sm); }
.offer-image-wrap { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #f5f5f5; }
.offer-image-wrap img { display: block; width: 100%; height: 100%; object-fit: cover; }
.offer-discount { position: absolute; top: .75rem; right: .75rem; padding: .45rem .65rem; border-radius: 999px; background: var(--primary-yellow); color: #111; font-weight: 900; }
.offer-info { padding: 1rem; }
.offer-info h2 { margin: 0 0 .4rem; font-size: 1.1rem; }
.offer-info p { margin: 0; color: #666; line-height: 1.45; }
.offer-price { margin-top: .8rem; font-size: 1.25rem; font-weight: 900; color: #111; }.offer-price del { margin-left: .45rem; color: #777; font-size: .9rem; font-weight: 600; }.offer-cart-form { margin-top: .8rem; }.offer-cart-form .btn-primary { width: 100%; }
@media (max-width: 900px) { .offers-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .offers-grid { grid-template-columns: 1fr; } }
.offers-toolbar { display: grid; grid-template-columns: minmax(0,1fr) 250px auto; gap: .75rem; max-width: 1200px; margin: 0 auto 1.25rem; }
.offers-search { display: flex; align-items: center; gap: .55rem; min-height: 2.8rem; padding: 0 .85rem; border: 1px solid var(--gray-border); border-radius: .6rem; background: #fff; }
.offers-search i { color: #888; }.offers-search input { width: 100%; border: 0; outline: 0; font-size: 1rem; }.offers-toolbar select { min-height: 2.8rem; padding: .5rem .7rem; border: 1px solid var(--gray-border); border-radius: .6rem; background: #fff; }
.offers-category-tabs { display: flex; flex-wrap: wrap; gap: .6rem; max-width: 1200px; margin: 0 auto 1.5rem; }.offer-tab { padding: .6rem 1rem; border: 1px solid var(--gray-border); border-radius: 999px; background: #fff; color: var(--text-dark); font-weight: 700; text-decoration: none; }.offer-tab.active,.offer-tab:hover { border-color: var(--primary-yellow); background: var(--primary-yellow); color: #111; }
.offers-modal { position: fixed; inset: 0; z-index: 2000; display: none; align-items: center; justify-content: center; padding: 1rem; }.offers-modal.is-open { display: flex; }.offers-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.72); }.offers-modal-card { position: relative; z-index: 1; max-width: min(92vw, 720px); max-height: 90vh; }.offers-modal-card img { display: block; max-width: 100%; max-height: 90vh; border-radius: .8rem; object-fit: contain; }.offers-modal-close { position: absolute; top: -.8rem; right: -.8rem; z-index: 2; width: 2.2rem; height: 2.2rem; border: 0; border-radius: 50%; background: #fff; color: #111; font-size: 1.6rem; line-height: 1; cursor: pointer; }
@media (max-width: 700px) { .offers-toolbar { grid-template-columns: 1fr; }.offers-toolbar .btn-primary { width: 100%; }.offers-category-tabs { overflow-x: auto; flex-wrap: nowrap; padding-bottom: .3rem; }.offer-tab { flex: 0 0 auto; } }

/* Reducción adicional de altura solicitada. */
.about-post-media iframe { height: 528px !important; min-height: 528px !important; }
@media (max-width: 600px) { .about-post-media iframe { height: 485px !important; min-height: 485px !important; } }

/* Aumento final del ancho en 20%, centrado dentro de cada columna. */
.about-post-media { width: 120% !important; max-width: none !important; margin-left: -10% !important; margin-right: -10% !important; }

/* 25 px adicionales de ancho, conservando el centrado. */
.about-post-media { width: calc(120% + 25px) !important; margin-left: calc(-10% - 12.5px) !important; margin-right: calc(-10% - 12.5px) !important; }

/* Corrección: el iframe debe ocupar exactamente el ancho de su columna. */
.about-post-media { width: 100% !important; max-width: 540px !important; margin-left: auto !important; margin-right: auto !important; }
.about-post-media iframe { width: 100% !important; max-width: 100% !important; min-width: 0 !important; }

/* 15 px extra para evitar el desplazamiento horizontal del embed. */
.about-post-media { width: calc(100% + 15px) !important; max-width: none !important; margin-left: -7.5px !important; margin-right: -7.5px !important; }

/* Corrección final: texto de subcategoría separado de su imagen. */
@media (max-width: 860px) {
    .site-header.category-open .category-cascade-menu.branch-view .subcategory-list,
    .site-header.category-open .category-cascade-menu.branch-view .category-menu-item.is-open > .subcategory-list {
        position: static !important;
        left: auto !important;
        top: auto !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        gap: .5rem !important;
        box-sizing: border-box !important;
        overflow-y: auto !important;
        padding: .6rem !important;
    }
    .site-header.category-open .category-cascade-menu.branch-view .subcategory-option {
        position: relative !important;
        display: flex !important;
        align-items: center !important;
        min-height: 4.25rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: .6rem .7rem .6rem 4.65rem !important;
        overflow: hidden !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
    }
    .site-header.category-open .category-cascade-menu.branch-view .subcategory-option::before {
        left: .65rem !important;
        width: 3.35rem !important;
        height: 3.35rem !important;
    }
    .site-header.category-open .category-cascade-menu.branch-view .subcategory-option span {
        position: relative !important;
        z-index: 1 !important;
        display: block !important;
        min-width: 0 !important;
        margin: 0 !important;
    }
}

/* En móvil, las subcategorías reemplazan al panel de categorías en el mismo espacio. */
@media (max-width: 860px) {
    .site-header.category-open .category-cascade-menu.branch-view {
        width: min(19rem, 92vw) !important;
        left: .6rem !important;
        right: .6rem !important;
        overflow: visible !important;
    }
    .site-header.category-open .category-cascade-menu.branch-view > .category-menu-item:not(.is-open) { display: none !important; }
    .site-header.category-open .category-cascade-menu.branch-view > .category-menu-item.is-open > .category-option,
    .site-header.category-open .category-cascade-menu.branch-view > .category-menu-item.is-open > .category-branch-toggle { display: none !important; }
    .site-header.category-open .category-cascade-menu.branch-view .subcategory-list,
    .site-header.category-open .category-cascade-menu.branch-view .category-menu-item.is-open > .subcategory-list {
        position: static !important;
        display: flex !important;
        width: 100% !important;
        max-height: calc(100vh - 10rem) !important;
        box-sizing: border-box !important;
        overflow-y: auto !important;
        padding: .6rem !important;
        border-radius: .8rem !important;
        background: #fff !important;
        box-shadow: 0 8px 24px rgba(0,0,0,.24) !important;
    }
    .site-header.category-open .category-cascade-menu.branch-view .subcategory-branch { width: 100% !important; }
}

/* Posición lateral definitiva en móviles: panel de categorías + panel de subcategorías. */
@media (max-width: 860px) {
    .site-header.category-open .category-cascade-menu { position: fixed !important; top: 8.5rem !important; left: .6rem !important; width: calc(50vw - .9rem) !important; max-height: calc(100vh - 10rem) !important; overflow-y: auto !important; overflow-x: visible !important; }
    .site-header.category-open .category-cascade-menu .subcategory-list { position: fixed !important; top: 8.5rem !important; left: calc(50vw + .3rem) !important; width: calc(50vw - .9rem) !important; max-height: calc(100vh - 10rem) !important; overflow-y: auto !important; overflow-x: hidden !important; display: none !important; }
    .site-header.category-open .category-cascade-menu .category-menu-item.is-open > .subcategory-list { display: flex !important; }
}
