/* ============================
   VARIABLES & RESET
============================ */
:root {
    --primary: #002b5c;
    --primary-dark: #001a38;
    --accent: #ff6b35;
    --accent-dark: #e05520;
    --text: #1a1a2e;
    --text-light: #6b7280;
    --bg: #0d1b2a;
    --white: #ffffff;
    --border: #e5e7eb;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
    --radius: 14px;
    --radius-sm: 8px;
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

p, span, label, input, select, textarea, button, a, li {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; }

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================
   BUTTONS
============================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,107,53,0.4); }

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.6);
}
.btn-outline:hover { background: rgba(255,255,255,0.15); transform: translateY(-2px); }

.btn-white {
    background: var(--white);
    color: var(--primary);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.2); }

.btn-instagram {
    background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
    color: var(--white);
}
.btn-instagram:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(131,58,180,0.4); }

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    border-radius: var(--radius-sm);
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--text);
}
.btn-social.google:hover { background: #f1f1f1; }

.btn-add-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    font-family: 'Poppins', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 12px;
}
.btn-add-cart:hover { background: var(--accent); transform: translateY(-1px); }

.full-width { width: 100%; justify-content: center; }

/* ============================
   TOP BAR
============================ */
.top-bar {
    background: #38b6e6;
    color: white;
    font-size: 0.82rem;
    padding: 8px 0;
}

.top-bar-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.top-bar-content span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-bar-content i { color: var(--accent); }

/* ============================
   HEADER
============================ */
.header {
    background: #0d1b2a;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0,0,0,0.4);
    transition: var(--transition);
}

.header.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.5); }

.header-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
    padding: 10px 0;
}

/* Logo imagen */
.logo-img-wrap {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 0 transparent);
}

/* Search */
.search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.08);
    border: 1.5px solid rgba(255,255,255,0.15);
    border-radius: 50px;
    padding: 10px 20px;
    transition: var(--transition);
    width: 200%;
    max-width: 480px;
    justify-self: center;
    position: relative;
}
.search-bar:focus-within {
    border-color: #00a8e6;
    background: rgba(255,255,255,0.12);
}

.search-icon { color: rgba(255,255,255,0.5); font-size: 0.95rem; flex-shrink: 0; }

.search-bar input {
    flex: 1;
    border: none;
    background: transparent;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    outline: none;
    color: rgba(255,255,255,0.9);
}
.search-bar input::placeholder { color: rgba(255,255,255,0.45); }

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-self: end;
}

/* User menu wrapper */
.user-menu { position: relative; }

.user-chevron {
    font-size: 0.6rem !important;
    transition: transform 0.25s ease;
    opacity: 0;
    width: 0;
    overflow: hidden;
}
.user-menu.logged-in .user-chevron { opacity: 1; width: auto; }
.user-menu.logged-in.open .user-chevron { transform: rotate(180deg); }

/* User dropdown */
.user-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 260px;
    background: #0f2030;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.55);
    z-index: 9100;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px) scale(0.97);
    transition: opacity 0.22s ease, transform 0.22s ease;
    transform-origin: top right;
}
.user-menu.open .user-dropdown {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0) scale(1);
}

.udd-header {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 18px 16px;
    background: rgba(56,182,230,0.07);
    border-bottom: 1px solid rgba(255,255,255,0.07);
}
.udd-avatar { font-size: 2.2rem; color: #38b6e6; line-height: 1; flex-shrink: 0; }
.udd-name { font-size: 0.92rem; font-weight: 700; color: #fff; }
.udd-email { font-size: 0.74rem; color: rgba(255,255,255,0.42); margin-top: 2px; }

.udd-items { padding: 6px 0; }
.udd-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 18px;
    font-size: 0.87rem;
    font-weight: 400;
    color: rgba(255,255,255,0.72);
    border-bottom: 1px solid rgba(255,255,255,0.04);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.udd-item:last-child { border-bottom: none; }
.udd-item:hover { background: rgba(56,182,230,0.09); color: #fff; }
.udd-item i { width: 16px; text-align: center; color: #38b6e6; font-size: 0.9rem; }

.udd-logout {
    width: 100%;
    padding: 13px 18px;
    background: none;
    border: none;
    border-top: 1px solid rgba(255,255,255,0.07);
    color: #e74c3c;
    font-family: 'Poppins', sans-serif;
    font-size: 0.87rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.15s;
}
.udd-logout:hover { background: rgba(231,76,60,0.08); }

.action-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    background: rgba(255,255,255,0.08);
    border: 1.5px solid rgba(255,255,255,0.15);
    border-radius: 50px;
    cursor: pointer;
    color: rgba(255,255,255,0.9);
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    white-space: nowrap;
    max-width: 220px;
}

#loginBtn #userLabel {
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
}
.action-btn:hover {
    background: #00a8e6;
    border-color: #00a8e6;
    color: white;
}
.action-btn i { font-size: 1.1rem; }

.cart-btn { position: relative; }
.cart-count {
    background: var(--accent);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
    padding: 8px;
}

/* ============================
   NAVIGATION
============================ */
.main-nav {
    background: #38b6e6;
    position: sticky;
    top: 81px;
    z-index: 999;
}

.nav-list {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    gap: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 13px 18px;
    color: #0d1b2a;
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}
.nav-link:hover {
    background: rgba(0,0,0,0.1);
    border-bottom-color: #0d1b2a;
}
.nav-link.active {
    color: #0d1b2a;
    border-bottom-color: #0d1b2a;
    background: rgba(0,0,0,0.08);
}

/* Nav dropdown */
.nav-item-has-dropdown { position: relative; }
.nav-dropdown-toggle { gap: 6px; cursor: pointer; }
.nav-chevron { font-size: 0.68rem; transition: transform 0.2s; margin-left: 3px; }
.nav-item-has-dropdown:hover .nav-chevron,
.nav-item-has-dropdown.open .nav-chevron { transform: rotate(180deg); }
.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border-radius: 0 0 14px 14px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.18);
    min-width: 240px;
    z-index: 1001;
    display: none;
    flex-direction: column;
    overflow: hidden;
    padding: 4px 0;
}
.nav-item-has-dropdown:hover .nav-dropdown-menu,
.nav-item-has-dropdown.open .nav-dropdown-menu { display: flex; }
.nav-dropdown-menu li { list-style: none; }
.nav-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    color: #0d1b2a;
    font-size: 0.84rem;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}
.nav-dropdown-menu a:hover { background: #f0f9fd; color: #38b6e6; }
.nav-dropdown-menu a i { color: #38b6e6; width: 16px; text-align: center; font-size: 0.8rem; flex-shrink: 0; }
.nav-link-mayorista {
    border-radius: 20px;
    margin: 5px 8px !important;
    padding: 7px 18px !important;
    border: 1.5px solid rgba(13,27,42,0.45) !important;
    font-weight: 700;
}
.nav-link-mayorista:hover { background: rgba(13,27,42,0.1) !important; border-color: rgba(13,27,42,0.7) !important; }
.nav-link-mayorista.active { background: rgba(13,27,42,0.12) !important; }

/* ============================
   HERO SLIDER
============================ */
.hero-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    background: #000;
}
.slider-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}
.slide {
    flex-shrink: 0;
    width: 100%;
}
.slide img {
    width: 100%;
    display: block;
    object-fit: cover;
    max-height: 38vh;
}

.hero-text { color: var(--white); }

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.2);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
}

.highlight { color: var(--accent); }

.hero-text p {
    font-size: 1.05rem;
    opacity: 0.85;
    margin-bottom: 30px;
    line-height: 1.7;
}

.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-visual {
    display: flex;
    justify-content: center;
}

.hero-img-circle {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.9);
    font-size: 5rem;
    border: 3px solid rgba(255,255,255,0.2);
    animation: float 4s ease-in-out infinite;
}

.hero-img-circle.purple { background: rgba(123,47,247,0.3); }
.hero-img-circle.green { background: rgba(29,185,84,0.3); }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Slider Controls */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: none;
    color: #fff;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    font-size: 1.05rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 10;
}
.slider-btn:hover     { background: rgba(0, 0, 0, 0.62); }
.slider-btn--prev     { left: 16px; }
.slider-btn--next     { right: 16px; }

.slider-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 7px;
    z-index: 10;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.25s;
}
.slider-dot.active { background: #fff; width: 26px; border-radius: 4px; }

/* ============================
   SECTIONS
============================ */
.section { padding: 48px 0; }

.section-header {
    text-align: center;
    margin-bottom: 50px;
}
.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}
.section-header p {
    color: var(--text-light);
    font-size: 1rem;
}

/* ============================
   CATEGORY IMAGES ROW
============================ */
.cat-imgs-section {
    background: rgba(255,255,255,0.02);
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 18px 0;
}

.cat-imgs-track {
    display: flex;
    align-items: stretch;
    gap: 10px;
    justify-content: center;
    padding: 0 20px;
    max-width: 1280px;
    margin: 0 auto;
}

.cat-img-card {
    flex: 1;
    min-width: 100px;
    max-width: 170px;
    aspect-ratio: 1;
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: block;
}
.cat-img-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.35);
}

.cat-img-card img,
.cat-img-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cat-img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: rgba(255,255,255,0.75);
}

.cat-img-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 8px 8px;
    background: linear-gradient(to top, rgba(0,0,0,0.72), transparent);
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
    line-height: 1.25;
}

/* ============================
   CAROUSEL
============================ */
/* ============================
   SEARCH DROPDOWN
============================ */
.search-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: #0f2030;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.55);
    z-index: 9999;
    overflow: hidden;
    display: none;
    min-width: 340px;
}
.search-dropdown.open { display: block; }

.search-result {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    cursor: pointer;
    transition: background 0.15s;
    text-decoration: none;
    color: inherit;
}
.search-result:last-child { border-bottom: none; }
.search-result:hover, .search-result.sr-active { background: rgba(56,182,230,0.1); }

.sr-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
}
.sr-info { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sr-name {
    font-size: 0.87rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sr-name mark {
    background: rgba(56,182,230,0.25);
    color: #38b6e6;
    border-radius: 3px;
    padding: 0 2px;
    font-style: normal;
}
.sr-cat { font-size: 0.74rem; color: rgba(255,255,255,0.42); }
.sr-price { font-size: 0.88rem; font-weight: 700; color: #38b6e6; white-space: nowrap; }
.search-no-results {
    padding: 20px 16px;
    font-size: 0.84rem;
    color: rgba(255,255,255,0.4);
    text-align: center;
}
.search-no-results strong { color: rgba(255,255,255,0.7); }

/* ============================
   CAROUSEL
============================ */
.carousel-section { overflow: hidden; padding-bottom: 40px; }

.section-banner {
    position: relative;
    padding: 24px 30px;
    border-radius: 16px;
    margin-bottom: 28px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.section-banner--fire {
    background: linear-gradient(120deg, rgba(255,100,20,0.14) 0%, rgba(255,60,20,0.06) 60%, transparent 100%);
    border: 1px solid rgba(255,100,20,0.22);
    box-shadow: inset 0 0 40px rgba(255,100,20,0.05);
}
.section-banner--new {
    background: linear-gradient(120deg, rgba(56,182,230,0.13) 0%, rgba(155,89,182,0.07) 60%, transparent 100%);
    border: 1px solid rgba(56,182,230,0.2);
    box-shadow: inset 0 0 40px rgba(56,182,230,0.05);
}
.sb-deco {
    position: absolute;
    right: 60px; top: 50%;
    transform: translateY(-50%) rotate(-12deg);
    font-size: 7rem;
    opacity: 0.045;
    line-height: 1;
    pointer-events: none;
    color: #fff;
}
.sb-deco--2 {
    right: 130px;
    font-size: 4rem;
    opacity: 0.028;
    transform: translateY(-65%) rotate(15deg);
}
.sb-content { position: relative; z-index: 1; }
.sb-eyebrow {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    margin-bottom: 6px;
}
.section-banner--fire .sb-eyebrow { color: #ff6b1e; }
.section-banner--new  .sb-eyebrow { color: #38b6e6; }
.sb-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
    line-height: 1.1;
    margin: 0;
}
.section-banner--fire .sb-title i { color: #ff6b1e; }
.section-banner--new  .sb-title i { color: #38b6e6; }
.sb-highlight {
    background: linear-gradient(90deg, #ff6b1e, #ffa040);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.sb-highlight--new {
    background: linear-gradient(90deg, #38b6e6, #9b59b6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.sb-line {
    width: 50px; height: 3px;
    border-radius: 2px; margin-top: 10px;
}
.section-banner--fire .sb-line { background: linear-gradient(90deg, #ff6b1e, transparent); }
.section-banner--new  .sb-line { background: linear-gradient(90deg, #38b6e6, transparent); }
.sb-btn {
    position: relative; z-index: 1;
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 22px; border-radius: 50px;
    font-size: 0.82rem; font-weight: 600;
    text-decoration: none; transition: all 0.2s;
    flex-shrink: 0; white-space: nowrap;
}
.section-banner--fire .sb-btn { background: rgba(255,107,30,0.14); color: #ff8040; border: 1px solid rgba(255,107,30,0.28); }
.section-banner--fire .sb-btn:hover { background: rgba(255,107,30,0.26); border-color: rgba(255,107,30,0.5); }
.section-banner--new  .sb-btn { background: rgba(56,182,230,0.12); color: #38b6e6; border: 1px solid rgba(56,182,230,0.28); }
.section-banner--new  .sb-btn:hover { background: rgba(56,182,230,0.24); border-color: rgba(56,182,230,0.5); }
.section-banner--sale {
    background: linear-gradient(120deg, rgba(39,174,96,0.13) 0%, rgba(46,204,113,0.06) 60%, transparent 100%);
    border: 1px solid rgba(39,174,96,0.22);
    box-shadow: inset 0 0 40px rgba(39,174,96,0.05);
}
.section-banner--sale .sb-eyebrow { color: #27ae60; }
.section-banner--sale .sb-title i { color: #27ae60; }
.section-banner--sale .sb-line { background: linear-gradient(90deg, #27ae60, transparent); }
.section-banner--sale .sb-btn { background: rgba(39,174,96,0.12); color: #2ecc71; border: 1px solid rgba(39,174,96,0.28); }
.section-banner--sale .sb-btn:hover { background: rgba(39,174,96,0.24); border-color: rgba(39,174,96,0.5); }
.sb-highlight--sale {
    background: linear-gradient(90deg, #27ae60, #2ecc71);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
@media (max-width: 600px) {
    .sb-title { font-size: 1.2rem; }
    .sb-deco  { display: none; }
    .section-banner { padding: 16px 18px; }
    .sb-btn { padding: 8px 14px; font-size: 0.76rem; }
}

.carousel-outer {
    overflow: hidden;
    padding: 10px 0;
    width: 75%;
    margin: 0 auto;
    border-radius: 16px;
}

.carousel-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: scrollLeft 100s linear infinite;
    padding: 0 20px;
}

.carousel-track:hover { animation-play-state: paused; }

.carousel-track-slow { animation-duration: 130s; }

@keyframes scrollLeft {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Cards dentro del carousel */
.carousel-track .product-card,
.carousel-track .product-card-cat {
    width: 260px;
    flex-shrink: 0;
}

/* ============================
   PRODUCTS (legacy)
============================ */

.see-all {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}
.see-all:hover { gap: 12px; }

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.product-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0,168,230,0.3);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.product-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    z-index: 2;
}

.product-badge.hot { background: var(--accent); color: white; }
.product-badge.sale { background: #e74c3c; color: white; }
.product-badge.new { background: #27ae60; color: white; }

.product-img {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.85);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.product-card:hover .product-img { transform: scale(1.03); }

.product-img[style*="cursor: pointer"]::after {
    content: 'Ver detalle';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-align: center;
    padding: 8px 0;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}
.product-img[style*="cursor: pointer"]:hover::after { opacity: 1; }

.product-info h3[style*="cursor: pointer"]:hover { color: var(--accent); text-decoration: underline; }

.product-info {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-info h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 6px 0 10px;
    color: #fff;
    line-height: 1.4;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.price-old {
    font-size: 0.85rem;
    color: #e74c3c;
    text-decoration: line-through;
}

.price-new {
    font-size: 1.4rem;
    font-weight: 700;
    color: #00a8e6;
    display: inline-block;
    border: 1px solid rgba(0,168,230,0.5);
    border-radius: 6px;
    padding: 2px 8px;
    box-shadow: 0 0 8px rgba(0,168,230,0.3);
}

.product-stars { display: none; }

.btn-add-cart { margin-top: auto; }

/* ============================
   HOT SALE BANNER
============================ */
/* Banners promocionales de secciones */
.promo-banner-wrap {
    width: 100%;
    overflow: hidden;
    line-height: 0;
}
.promo-banner-wrap img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.hot-sale-banner {
    background: linear-gradient(135deg, var(--accent) 0%, #e05520 50%, #c0392b 100%);
    padding: 60px 0;
}

.banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.banner-text { color: var(--white); }

.banner-text h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.banner-text p {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 24px;
}

.countdown {
    display: flex;
    align-items: center;
    gap: 8px;
}

.time-box {
    background: rgba(0,0,0,0.25);
    border-radius: var(--radius-sm);
    padding: 12px 18px;
    text-align: center;
    min-width: 70px;
}

.time-box span {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: white;
    line-height: 1;
}

.time-box label {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.time-sep {
    font-size: 2rem;
    font-weight: 700;
    color: rgba(255,255,255,0.6);
}

/* ============================
   BENEFITS
============================ */
.benefits-section {
    background: var(--bg);
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 60px 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    background: rgba(255,255,255,0.07);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.07);
}

.benefit-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 28px;
    background: rgba(255,255,255,0.02);
    border-right: 1px solid rgba(255,255,255,0.07);
    transition: var(--transition);
}

.benefit-card:last-child { border-right: none; }

.benefit-card:hover {
    background: rgba(255,255,255,0.06);
    transform: none;
    box-shadow: none;
    border-color: rgba(255,255,255,0.07);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent), #e05520);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    color: white;
    font-size: 1.4rem;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(255,107,53,0.35);
}

.benefit-card:hover .benefit-icon {
    transform: scale(1.1) rotate(4deg);
    background: linear-gradient(135deg, #38b6e6, #0066cc);
    box-shadow: 0 6px 20px rgba(56,182,230,0.4);
}

.benefit-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff;
}

.benefit-card p {
    font-size: 0.83rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.65;
}

/* ============================
   INSTAGRAM
============================ */
.instagram-section { background: var(--bg); }

.section-header h2 { color: #fff; }

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin-bottom: 30px;
}

.insta-card {
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    display: block;
    cursor: pointer;
    transition: var(--transition);
    overflow: hidden;
    position: relative;
    background: rgba(255,255,255,0.05);
}

.insta-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.insta-card::after {
    content: '\f16d';
    font-family: 'Font Awesome 6 Brands';
    position: absolute;
    inset: 0;
    background: rgba(131,58,180,0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    opacity: 0;
    transition: var(--transition);
}

.insta-card:hover::after { opacity: 1; }
.insta-card:hover img { transform: scale(1.08); }
.insta-card:hover { box-shadow: 0 6px 24px rgba(131,58,180,0.4); }

.insta-cta { text-align: center; }

/* ============================
   NEWSLETTER
============================ */
.newsletter-section {
    background: linear-gradient(135deg, var(--primary) 0%, #0066cc 100%);
    padding: 70px 0;
}

.newsletter-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.newsletter-text h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}

.newsletter-text p { color: rgba(255,255,255,0.8); }

.newsletter-form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.newsletter-form input {
    padding: 14px 24px;
    border-radius: 50px;
    border: none;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    outline: none;
    min-width: 300px;
}

/* ============================
   FOOTER
============================ */
.footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.75);
    padding: 70px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 50px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.footer-col p {
    font-size: 0.88rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.8);
    transition: var(--transition);
    font-size: 0.9rem;
}
.social-links a:hover { background: var(--accent); color: white; transform: translateY(-3px); }

.footer-col h4 {
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 18px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.65);
    transition: var(--transition);
}
.footer-col ul li a:hover { color: var(--accent); padding-left: 4px; }

.contact-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    margin-bottom: 10px;
}
.contact-list li i { color: var(--accent); width: 16px; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p { font-size: 0.85rem; color: rgba(255,255,255,0.5); }

.payment-methods {
    display: flex;
    gap: 12px;
    font-size: 1.8rem;
    color: rgba(255,255,255,0.5);
}

/* ============================
   MODAL
============================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(4px);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal {
    background: var(--white);
    border-radius: 20px;
    width: 100%;
    max-width: 420px;
    padding: 36px;
    position: relative;
    transform: translateY(20px) scale(0.97);
    transition: var(--transition);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.active .modal {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--bg);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-light);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-close:hover { background: #fee2e2; color: #ef4444; }

.modal-tabs {
    display: flex;
    background: var(--bg);
    border-radius: var(--radius-sm);
    padding: 4px;
    margin-bottom: 28px;
}

.modal-tab {
    flex: 1;
    padding: 10px;
    border: none;
    background: transparent;
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-light);
}

.modal-tab.active {
    background: var(--white);
    color: var(--primary);
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

.modal-logo {
    text-align: center;
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.modal h3 {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 24px;
    font-weight: 400;
}

.modal-form { display: none; }
.modal-form.active { display: block; }

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
    color: var(--text);
}

.form-group input:focus { border-color: var(--primary); }

.input-password { position: relative; }
.input-password input { padding-right: 48px; }

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    font-size: 0.95rem;
}

.forgot-pass {
    display: block;
    text-align: right;
    font-size: 0.82rem;
    color: var(--accent);
    margin-bottom: 18px;
    margin-top: -8px;
}

.modal-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: var(--text-light);
    font-size: 0.85rem;
}

.modal-divider::before, .modal-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ============================
   TOAST
============================ */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary);
    color: white;
    padding: 14px 24px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 9999;
    transform: translateY(100px);
    opacity: 0;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
    max-width: 300px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.success { background: #27ae60; }
.toast.error { background: #e74c3c; }

/* ============================
   USER PANEL
============================ */
.upanel-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(3px);
    z-index: 9200;
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s ease;
}
.upanel-overlay.show { opacity: 1; pointer-events: all; }

.upanel {
    position: fixed;
    top: 0; right: 0;
    width: 420px; max-width: 100vw;
    height: 100vh;
    background: #0d1b2a;
    border-left: 1px solid rgba(255,255,255,0.08);
    z-index: 9201;
    display: flex; flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
    box-shadow: -8px 0 40px rgba(0,0,0,0.5);
}
.upanel.open { transform: translateX(0); }

.upanel-header {
    display: flex; align-items: center; gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
}
.upanel-back, .upanel-close {
    width: 34px; height: 34px; border-radius: 50%;
    background: rgba(255,255,255,0.07); border: none;
    color: rgba(255,255,255,0.7); font-size: 0.9rem;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: all 0.2s; flex-shrink: 0;
}
.upanel-back:hover, .upanel-close:hover { background: rgba(255,255,255,0.15); color: #fff; }
.upanel-back { display: none; }
.upanel-title { flex: 1; font-size: 1rem; font-weight: 700; color: #fff; }

.upanel-body { flex: 1; overflow-y: auto; padding: 20px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.1) transparent; }

/* Mis compras */
.upanel-order {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 14px; padding: 16px; margin-bottom: 12px;
}
.upanel-order-header {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px;
}
.upanel-order-num { font-size: 0.85rem; font-weight: 700; color: #fff; }
.upanel-order-date { font-size: 0.75rem; color: rgba(255,255,255,0.4); }
.upanel-order-status {
    font-size: 0.72rem; font-weight: 600; padding: 3px 10px; border-radius: 20px;
}
.status-enviado { background: rgba(56,182,230,0.15); color: #38b6e6; }
.status-entregado { background: rgba(39,174,96,0.15); color: #27ae60; }
.status-proceso { background: rgba(255,165,0,0.15); color: orange; }
.upanel-order-items { font-size: 0.8rem; color: rgba(255,255,255,0.55); margin-bottom: 8px; line-height: 1.7; }
.upanel-order-total { font-size: 0.9rem; font-weight: 700; color: #38b6e6; }

/* Mi perfil */
.upanel-field { margin-bottom: 16px; }
.upanel-field label { display: block; font-size: 0.75rem; font-weight: 600; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.upanel-field input {
    width: 100%; background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1); border-radius: 10px;
    padding: 11px 14px; color: #fff;
    font-family: 'Poppins', sans-serif; font-size: 0.88rem; outline: none;
    transition: border-color 0.2s;
}
.upanel-field input:focus { border-color: #38b6e6; }
.upanel-save-btn {
    width: 100%; padding: 13px; background: #38b6e6; color: #fff; border: none;
    border-radius: 12px; font-family: 'Poppins', sans-serif; font-size: 0.95rem;
    font-weight: 700; cursor: pointer; margin-top: 4px; transition: background 0.2s;
}
.upanel-save-btn:hover { background: #2a9ecf; }

/* Direcciones */
.upanel-address {
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07);
    border-radius: 14px; padding: 14px 16px; margin-bottom: 10px;
    display: flex; gap: 12px; align-items: flex-start;
}
.upanel-address i { color: #38b6e6; margin-top: 2px; flex-shrink: 0; }
.upanel-address-info h5 { font-size: 0.85rem; font-weight: 600; color: #fff; margin-bottom: 3px; }
.upanel-address-info p { font-size: 0.78rem; color: rgba(255,255,255,0.45); line-height: 1.5; }
.upanel-add-btn {
    width: 100%; padding: 12px; background: rgba(56,182,230,0.1);
    border: 1px dashed rgba(56,182,230,0.35); border-radius: 12px;
    color: #38b6e6; font-family: 'Poppins', sans-serif; font-size: 0.88rem;
    font-weight: 600; cursor: pointer; margin-top: 4px; transition: all 0.2s;
}
.upanel-add-btn:hover { background: rgba(56,182,230,0.18); }

/* Favoritos */
.upanel-fav-list { display: flex; flex-direction: column; gap: 10px; }
.upanel-fav-card {
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07);
    border-radius: 14px; overflow: hidden; cursor: pointer; transition: border-color 0.2s;
    display: flex; align-items: center; gap: 0;
}
.upanel-fav-card:hover { border-color: rgba(56,182,230,0.4); }
.upanel-fav-img {
    width: 70px; min-width: 70px; height: 70px; display: flex; align-items: center;
    justify-content: center; color: rgba(255,255,255,0.85); font-size: 1.4rem; flex-shrink: 0;
    overflow: hidden;
}
.upanel-fav-img img { width: 100%; height: 100%; object-fit: contain; }
.upanel-fav-info { padding: 12px 10px; flex: 1; }
.upanel-fav-info h5 { font-size: 0.85rem; font-weight: 600; color: #fff; margin-bottom: 4px; line-height: 1.3; }
.upanel-fav-info span { font-size: 0.82rem; font-weight: 700; color: #38b6e6; }
.upanel-fav-remove {
    background: none; border: none; color: #e74c3c; cursor: pointer;
    padding: 12px; font-size: 1rem; transition: color 0.2s, transform 0.15s; flex-shrink: 0;
}
.upanel-fav-remove:hover { color: #c0392b; transform: scale(1.2); }

/* Notificaciones */
.upanel-notif {
    display: flex; gap: 12px; padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.upanel-notif:last-child { border-bottom: none; }
.upanel-notif-icon {
    width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; font-size: 1rem;
}
.upanel-notif-body h5 { font-size: 0.84rem; font-weight: 600; color: #fff; margin-bottom: 3px; }
.upanel-notif-body p { font-size: 0.76rem; color: rgba(255,255,255,0.45); line-height: 1.5; }
.upanel-notif-body time { font-size: 0.7rem; color: rgba(255,255,255,0.3); }
.upanel-notif.unread .upanel-notif-icon { background: rgba(56,182,230,0.15); color: #38b6e6; }
.upanel-notif.read .upanel-notif-icon { background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.4); }

/* Empty state */
.upanel-empty { text-align: center; padding: 50px 20px; color: rgba(255,255,255,0.3); }
.upanel-empty i { font-size: 2.5rem; margin-bottom: 14px; display: block; }
.upanel-empty p { font-size: 0.88rem; }

/* ============================
   FLOATING BUTTONS
============================ */
.floating-btns {
    position: fixed;
    bottom: 28px;
    right: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9998;
    transition: opacity 0.25s ease, transform 0.25s ease;
}
body.cart-open .floating-btns {
    opacity: 0;
    pointer-events: none;
    transform: translateX(20px);
}

.float-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 4px 16px rgba(0,0,0,0.35);
    transition: var(--transition);
}

.float-btn:hover { transform: scale(1.12); box-shadow: 0 6px 24px rgba(0,0,0,0.4); }

.float-whatsapp { background: #25d366; }
.float-whatsapp:hover { background: #1ebe5d; }

.float-instagram { background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045); }

/* ============================
   RESPONSIVE
============================ */
@media (max-width: 1024px) {
    .categories-grid { grid-template-columns: repeat(4, 1fr); }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
    .benefits-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .top-bar-content span:nth-child(2) { display: none; }

    /* ── Header mobile: fila 1 = login|logo|carrito  /  fila 2 = hamburger|buscador ── */
    .header-content {
        display: grid;
        grid-template-areas:
            "usericon  logo  cart"
            "hamburger search search";
        grid-template-columns: auto 1fr auto;
        grid-template-rows: auto auto;
        padding: 8px 16px 10px;
        gap: 6px 10px;
        align-items: center;
    }

    /* Fila 1 centro: logo */
    .logo-img-wrap {
        grid-area: logo;
        display: flex;
        justify-content: center;
        align-items: center;
        line-height: 0;
        padding: 0;
        margin: 0;
    }
    .logo-img { height: 44px; display: block; }

    /* Fila 2 izquierda: hamburguesa */
    .mobile-menu-btn {
        grid-area: hamburger;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Fila 2 centro+derecha: barra de búsqueda */
    .search-bar {
        grid-area: search;
        display: flex;
        width: 100%;
        max-width: 100%;
        justify-self: stretch;
    }

    /* header-actions desaparece como caja; sus hijos se posicionan en el grid */
    .header-actions {
        display: contents;
    }
    .action-btn span { display: none; }

    /* Fila 1 izquierda: menú usuario */
    .user-menu {
        grid-area: usericon;
        align-self: center;
        justify-self: start;
    }

    /* Botón usuario: solo ícono circular */
    #loginBtn {
        padding: 8px;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        justify-content: center;
        gap: 0;
    }
    #loginBtn .user-chevron { display: none; }

    /* Fila 1 derecha: carrito */
    .cart-btn {
        grid-area: cart;
        padding: 8px 10px;
        align-self: center;
    }

    /* Nav mobile: oculto por defecto, vertical al abrir */
    .main-nav {
        display: none;
        position: fixed;
        width: 100%;
        z-index: 998;
        overflow-y: auto;
        /* top se setea dinámicamente por JS */
    }
    .main-nav.open { display: block; }
    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }
    .nav-link {
        padding: 15px 24px;
        border-bottom: 1px solid rgba(255,255,255,0.07);
        font-size: 0.95rem;
    }
    .nav-link:hover {
        background: rgba(0,0,0,0.12);
        color: #fff;
        border-bottom-color: rgba(255,255,255,0.07);
    }
    .nav-link.active {
        background: rgba(0,0,0,0.22);
        color: #fff;
        font-weight: 700;
        border-left: 4px solid #fff;
        padding-left: 20px;
        border-bottom-color: rgba(255,255,255,0.07);
    }
    .nav-item-has-dropdown .nav-dropdown-menu {
        position: static;
        box-shadow: none;
        border-radius: 0;
        background: rgba(0,0,0,0.18);
        display: none;
        padding: 0;
    }
    .nav-item-has-dropdown.open .nav-dropdown-menu { display: flex; }
    .nav-dropdown-menu a { color: rgba(255,255,255,0.88); padding: 12px 36px; font-size: 0.88rem; border-bottom: 1px solid rgba(255,255,255,0.05); }
    .nav-dropdown-menu a:hover { background: rgba(0,0,0,0.12); color: #fff; }
    .nav-dropdown-menu a i { color: rgba(255,255,255,0.5); }
    .nav-link-mayorista { margin: 0 !important; border-radius: 0 !important; padding: 15px 24px !important; border: none !important; border-bottom: 1px solid rgba(255,255,255,0.07) !important; background: rgba(56,182,230,0.08) !important; font-weight: 700; }

    /* Dropdown de usuario: centrado en pantalla */
    .user-dropdown {
        position: fixed;
        top: 120px;
        left: 50%;
        right: auto;
        transform: translateX(-50%) translateY(-8px) scale(0.97);
        transform-origin: top center;
        width: calc(100vw - 32px);
        max-width: 320px;
    }
    .user-menu.open .user-dropdown {
        transform: translateX(-50%) translateY(0) scale(1);
    }

    .section { padding: 30px 0; }
    .carousel-section { padding-bottom: 20px; }
    .carousel-outer { width: 100%; border-radius: 0; }
    .carousel-track .product-card,
    .carousel-track .product-card-cat { width: 200px; }

    .cat-imgs-track {
        overflow-x: auto;
        flex-wrap: nowrap;
        justify-content: flex-start;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: 0 16px;
        gap: 8px;
    }
    .cat-imgs-track::-webkit-scrollbar { display: none; }
    .cat-img-card {
        flex-shrink: 0;
        flex: none;
        width: 120px;
        max-width: 120px;
    }

    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .hero-visual { display: none; }
    .hero-text h1 { font-size: 2rem; }
    .hero-slide { padding: 50px 0; }
    .hero-btns { justify-content: center; }

    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .instagram-grid { grid-template-columns: repeat(3, 1fr); }
    .benefits-grid { grid-template-columns: repeat(2, 1fr); }

    .banner-content { flex-direction: column; text-align: center; }

    .newsletter-content { flex-direction: column; text-align: center; }
    .newsletter-form { justify-content: center; }
    .newsletter-form input { min-width: 260px; width: 100%; }

    .footer-grid { grid-template-columns: 1fr; gap: 20px; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .products-grid { grid-template-columns: 1fr; }
    .benefits-grid { grid-template-columns: 1fr; }
    .instagram-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-text h1 { font-size: 1.7rem; }
    .banner-text h2 { font-size: 1.6rem; }
    .countdown { flex-wrap: wrap; justify-content: center; }
}
