 *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

      :root {
    --color-primary:  #6c5ce7;
    --color-nino:     #4dabf7;
    --color-nina:     #f783ac;
    --color-wa:       #25D366;
    --color-bg:       #f4f6fb;
    --color-card:     #fff;
    --color-text:     #2d3436;
    --color-muted:    #636e72;
    --font-script:    'Fredoka', sans-serif;
    --radius-card:    16px;
    --radius-pill:    999px;
    --shadow-card:    0 2px 16px rgba(0,0,0,.08);
    --shadow-modal:   0 8px 48px rgba(0,0,0,.22);
    --header-h:       60px;
    --filter-h:       56px;
}

        body {
            font-family: 'Poppins', sans-serif;
            background: var(--color-bg);
            color: var(--color-text);
            min-height: 100dvh;
        }

        /* ══ HEADER ══ */
     .site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    height: var(--header-h);
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    display: flex;
    align-items: center;
    justify-content: center;  /* ← cambiado de space-between */
    padding: 0 1rem;
    position: relative;       /* ← agregado */
}
        .site-header .logo img {
    height: 44px;      /* ← ajusta este número a tu gusto */
    width: auto;
    object-fit: contain;
}
        .site-header .nav-links {
            display: none;
            gap: 1.5rem;
            list-style: none;
        }
        .site-header .nav-links a {
            font-size: .85rem;
            font-weight: 500;
            color: var(--color-text);
            text-decoration: none;
            transition: color .2s;
        }
        .site-header .nav-links a:hover { color: var(--color-primary); }
       .hamburger {
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--color-text);
    cursor: pointer;
    padding: .25rem .5rem;
    position: absolute;   /* ← agregado */
    right: 1rem;           /* ← agregado */
}
        @media (min-width: 768px) {
    .site-header .nav-links {
        display: flex;
        position: absolute;
        right: 1rem;
    }
    .hamburger { display: none; }
}

        /* ══ DRAWER MÓVIL ══ */
        .drawer-overlay {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,.45);
            z-index: 300;
        }
        .drawer-overlay.open { display: block; }
        .drawer {
            position: fixed;
            top: 0; right: 0;
            width: min(80vw, 280px);
            height: 100dvh;
            background: #fff;
            z-index: 301;
            transform: translateX(100%);
            transition: transform .3s ease;
            padding: 1.5rem 1.25rem;
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }
        .drawer.open { transform: translateX(0); }
        .drawer-close {
            align-self: flex-end;
            background: none;
            border: none;
            font-size: 1.6rem;
            cursor: pointer;
            color: var(--color-muted);
        }
        .drawer nav ul {
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: .75rem;
        }
        .drawer nav a {
            font-size: 1rem;
            font-weight: 500;
            color: var(--color-text);
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: .6rem;
        }

        /* ══ CARRUSEL ══ */
        .carousel-wrap {
            position: relative;
            overflow: hidden;
            max-height: 220px;
        }
        @media (min-width: 768px) { .carousel-wrap { max-height: 360px; } }
        .carousel-wrap img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: none;
        }
        .carousel-wrap img.active { display: block; }

        /* ══ FILTROS ══ */
        .filter-bar {
            position: sticky;
            top: var(--header-h);
            z-index: 150;
            background: #fff;
            border-bottom: 1px solid #eee;
            padding: .6rem 1rem;
            display: flex;
            flex-direction: column;
            gap: .5rem;
        }
        @media (min-width: 768px) {
            .filter-bar { flex-direction: row; align-items: center; padding: .6rem 1.5rem; }
        }

        /* Fila 1: búsqueda código */
        .filter-search {
            display: flex;
            align-items: center;
            gap: .4rem;
            background: #f4f6fb;
            border: 2px solid #e0e0e0;
            border-radius: var(--radius-pill);
            padding: .3rem .75rem;
            flex: 1;
            max-width: 100%;
            transition: border-color .2s;
        }
        .filter-search:focus-within { border-color: var(--color-primary); }
        .filter-search i { color: #aaa; font-size: .85rem; }
        .filter-search input {
            border: none;
            background: transparent;
            font-family: 'Poppins', sans-serif;
            font-size: .82rem;
            color: var(--color-text);
            outline: none;
            width: 100%;
        }
        @media (min-width: 768px) { .filter-search { max-width: 220px; } }

        /* Fila 2 móvil: chips + select */
        .filter-row2 {
            display: flex;
            align-items: center;
            gap: .4rem;
            flex-wrap: wrap;
        }

        .chip {
            display: inline-flex;
            align-items: center;
            gap: .3rem;
            padding: .28rem .75rem;
            border-radius: var(--radius-pill);
            border: 2px solid #e0e0e0;
            background: #fafafa;
            font-family: 'Poppins', sans-serif;
            font-size: .78rem;
            font-weight: 500;
            cursor: pointer;
            transition: all .2s;
            color: #555;
            white-space: nowrap;
        }
        .chip:hover { border-color: var(--color-primary); color: var(--color-primary); }
        .chip.active { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
        .chip[data-gender="niño"].active { background: var(--color-nino); border-color: var(--color-nino); }
        .chip[data-gender="niña"].active { background: var(--color-nina); border-color: var(--color-nina); }

        .tipo-select {
            padding: .28rem .65rem;
            border-radius: var(--radius-pill);
            border: 2px solid #e0e0e0;
            font-family: 'Poppins', sans-serif;
            font-size: .78rem;
            color: #555;
            background: #fafafa;
            outline: none;
            cursor: pointer;
            transition: border-color .2s;
            max-width: 160px;
        }
        .tipo-select:focus { border-color: var(--color-primary); }

        .btn-clear {
            display: none;
            align-items: center;
            gap: .25rem;
            padding: .28rem .65rem;
            border-radius: var(--radius-pill);
            border: 2px solid #ff6b6b;
            background: transparent;
            color: #ff6b6b;
            font-family: 'Poppins', sans-serif;
            font-size: .75rem;
            font-weight: 600;
            cursor: pointer;
            transition: all .2s;
            white-space: nowrap;
        }
        .btn-clear.show { display: inline-flex; }
        .btn-clear:hover { background: #ff6b6b; color: #fff; }

        .results-count {
            margin-left: auto;
            font-size: .75rem;
            color: #aaa;
            white-space: nowrap;
        }

        /* ══ SECCIÓN TÍTULO ══ */
        .section-title {
            text-align: center;
            font-size: 1.1rem;
            font-weight: 700;
            padding: 1.25rem 1rem .75rem;
            letter-spacing: .04em;
            color: var(--color-text);
        }
        @media (min-width: 768px) { .section-title { font-size: 1.4rem; } }

        /* ══ GALERÍA ══ */
        .gallery {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: .75rem;
            padding: 0 .75rem 2rem;
        }
        @media (min-width: 560px)  { .gallery { grid-template-columns: repeat(3, 1fr); } }
        @media (min-width: 900px)  { .gallery { grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: 0 1.25rem 2rem; } }
        @media (min-width: 1200px) { .gallery { grid-template-columns: repeat(5, 1fr); } }

        /* ══ CARD PRODUCTO ══ */
        .product-card {
            background: var(--color-card);
            border-radius: var(--radius-card);
            box-shadow: var(--shadow-card);
            overflow: hidden;
            cursor: pointer;
            transition: transform .2s, box-shadow .2s;
            display: flex;
            flex-direction: column;
        }
        .product-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 24px rgba(0,0,0,.13);
        }
        .product-card:active { transform: scale(.97); }

        .card-img-wrap {
            position: relative;
            aspect-ratio: 3/4;
            overflow: hidden;
            background: #f0f0f0;
        }
        .card-img-wrap img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform .35s;
        }
        .product-card:hover .card-img-wrap img { transform: scale(1.04); }

        .card-gender-badge {
            position: absolute;
            top: .5rem;
            left: .5rem;
            font-size: .65rem;
            font-weight: 700;
            padding: .2rem .5rem;
            border-radius: var(--radius-pill);
            color: #fff;
        }
        .badge-nino { background: transparent; }
         .badge-nina { background: transparent; }

        .card-stock-dot {
            position: absolute;
            top: .5rem;
            right: .5rem;
            width: 10px; height: 10px;
            border-radius: 50%;
            border: 2px solid #fff;
        }
        .dot-high   { background: #51cf66; }
        .dot-medium { background: #fcc419; }
        .dot-low    { background: #ff6b6b; }

        .card-body {
            padding: .6rem .75rem .75rem;
            display: flex;
            flex-direction: column;
            gap: .25rem;
            flex: 1;
        }
        .card-type {
            font-size: .65rem;
            font-weight: 600;
            color: #aaa;
            text-transform: uppercase;
            letter-spacing: .04em;
        }
  .card-name {
    font-size: .85rem;
    font-weight: 600;
    font-family: var(--font-script);
    text-transform: uppercase;
    letter-spacing: .02em;
    color: #4a4a4a;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
        .card-code {
            font-size: .68rem;
            color: #bbb;
            font-family: monospace;
        }
        .card-price {
            font-size: .9rem;
            font-weight: 700;
            color: var(--color-primary);
            margin-top: auto;
        }
        .card-price-dozen {
            font-size: .72rem;
            color: #51cf66;
            font-weight: 600;
        }

        /* ══ ESTADO VACÍO ══ */
        .empty-state {
            grid-column: 1 / -1;
            text-align: center;
            padding: 4rem 1rem;
            color: #bbb;
        }
        .empty-state i { font-size: 3rem; display: block; margin-bottom: .75rem; }
        .empty-state h3 { font-size: 1.1rem; color: #999; margin-bottom: .4rem; }
        .empty-state p { font-size: .85rem; }

        /* ══ MODAL PRODUCTO (mobile-first) ══ */
        .modal-backdrop {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,.55);
            z-index: 400;
            align-items: flex-end;      /* bottom-sheet en móvil */
            justify-content: center;
        }
        .modal-backdrop.open { display: flex; }

        .modal-sheet {
            background: #fff;
            width: 100%;
            max-height: 92dvh;
            border-radius: 20px 20px 0 0;
            overflow-y: auto;
            overscroll-behavior: contain;
            animation: slideUp .28s ease;
            position: relative;
        }
        @keyframes slideUp {
            from { transform: translateY(60px); opacity: 0; }
            to   { transform: translateY(0);    opacity: 1; }
        }

        /* En tablet/desktop: ventana centrada */
        @media (min-width: 640px) {
            .modal-backdrop { align-items: center; }
            .modal-sheet {
                max-width: 680px;
                max-height: 88dvh;
                border-radius: 20px;
                animation: fadeScale .25s ease;
            }
        }
        @keyframes fadeScale {
            from { transform: scale(.95); opacity: 0; }
            to   { transform: scale(1);   opacity: 1; }
        }

        /* Drag handle (solo visual en móvil) */
        .modal-handle {
            width: 40px; height: 5px;
            background: #e0e0e0;
            border-radius: 3px;
            margin: .75rem auto .25rem;
        }
        @media (min-width: 640px) { .modal-handle { display: none; } }

        .modal-close-btn {
            position: absolute;
            top: .75rem; right: .75rem;
            background: #f4f6fb;
            border: none;
            width: 32px; height: 32px;
            border-radius: 50%;
            font-size: 1rem;
            cursor: pointer;
            color: var(--color-muted);
            display: flex; align-items: center; justify-content: center;
            transition: background .2s;
            z-index: 1;
        }
        .modal-close-btn:hover { background: #e0e0e0; }

        .modal-img {
            width: 100%;
            max-height: 280px;
            object-fit: contain;
            background: #f8f9fa;
            padding: 1rem;
        }
        @media (min-width: 640px) {
            .modal-body-layout {
                display: grid;
                grid-template-columns: 1fr 1.4fr;
                align-items: start;
            }
            .modal-img { max-height: 340px; }
        }

        .modal-info {
            padding: 1rem 1.25rem 1.5rem;
        }
        .modal-badges {
            display: flex;
            gap: .4rem;
            flex-wrap: wrap;
            margin-bottom: .6rem;
        }
        .modal-badge {
            font-size: .68rem;
            font-weight: 700;
            padding: .2rem .6rem;
            border-radius: var(--radius-pill);
            color: #fff;
        }
        .modal-badge.type { background: #868e96; }
        .modal-badge.gender-nino { background: transparent; }
        .modal-badge.gender-nina { background: transparent; }

   .modal-name {
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    font-family: 'Fredoka', sans-serif !important;
    text-transform: uppercase !important;
    letter-spacing: .02em !important;
    color: #4a4a4a !important;
    line-height: 1.3;
    margin-bottom: .3rem;
}
@media (min-width: 640px) { .modal-name { font-size: 1.45rem !important; } }
@media (min-width: 640px) { .modal-name { font-size: 1.45rem; } }   .modal-name {
    font-size: 1.2rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    letter-spacing: .02em;
    line-height: 1.3;
    margin-bottom: .3rem;
}
@media (min-width: 640px) { .modal-name { font-size: 1.4rem; } }
        @media (min-width: 640px) { .modal-name { font-size: 1.4rem; } }

        .modal-code {
            font-size: .75rem;
            color: #aaa;
            font-family: monospace;
            margin-bottom: .75rem;
        }
        .modal-desc {
            font-size: .84rem;
            color: var(--color-muted);
            line-height: 1.7;
            margin-bottom: 1rem;
        }
        .modal-prices {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: .6rem;
            margin-bottom: .85rem;
        }
        .price-box {
            background: #f8f9fa;
            border-radius: 12px;
            padding: .6rem .75rem;
            text-align: center;
        }
        .price-box small { font-size: .68rem; color: #aaa; display: block; }
        .price-box strong { font-size: 1.15rem; font-weight: 700; }
        .price-box.unit strong  { color: var(--color-primary); }
        .price-box.dozen strong { color: #51cf66; }

        .modal-stock {
            font-size: .8rem;
            color: var(--color-muted);
            margin-bottom: 1rem;
            display: flex;
            align-items: center;
            gap: .4rem;
        }
        .stock-dot {
            width: 9px; height: 9px;
            border-radius: 50%;
            flex-shrink: 0;
        }

        .btn-wa {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: .5rem;
            background: var(--color-wa);
            color: #fff;
            border: none;
            border-radius: var(--radius-pill);
            padding: .75rem 1.25rem;
            font-family: 'Poppins', sans-serif;
            font-size: .9rem;
            font-weight: 600;
            text-decoration: none;
            cursor: pointer;
            width: 100%;
            transition: background .2s;
        }
        .btn-wa:hover { background: #1ebe57; }

        /* ══ MODALES INFO (Quiénes Somos / Contacto) ══ */
        .info-modal-backdrop {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,.5);
            z-index: 500;
            align-items: flex-end;
            justify-content: center;
        }
        .info-modal-backdrop.open { display: flex; }
        @media (min-width: 640px) {
            .info-modal-backdrop { align-items: center; }
        }
        .info-modal-sheet {
            background: #fff;
            width: 100%;
            max-width: 520px;
            max-height: 88dvh;
            border-radius: 20px 20px 0 0;
            overflow-y: auto;
            padding: 1.5rem 1.25rem 2rem;
            position: relative;
            animation: slideUp .28s ease;
        }
        @media (min-width: 640px) {
            .info-modal-sheet { border-radius: 20px; }
        }
        .info-modal-close {
            position: absolute;
            top: .75rem; right: .75rem;
            background: #f4f6fb;
            border: none;
            width: 32px; height: 32px;
            border-radius: 50%;
            font-size: 1rem;
            cursor: pointer;
            color: var(--color-muted);
            display: flex; align-items: center; justify-content: center;
        }
        .info-modal-sheet h2 {
            font-size: 1.1rem;
            margin-bottom: 1rem;
            padding-right: 2rem;
        }
        .info-modal-sheet p {
            font-size: .85rem;
            line-height: 1.7;
            color: var(--color-muted);
            margin-bottom: .75rem;
        }
        .contact-row {
            display: flex;
            align-items: center;
            gap: .75rem;
            padding: .6rem 0;
            border-bottom: 1px solid #f0f0f0;
            font-size: .85rem;
        }
        .contact-row i { width: 20px; text-align: center; font-size: 1rem; }
        .contact-row a { color: inherit; text-decoration: none; font-weight: 500; }
        .social-row {
            display: flex;
            gap: 1rem;
            margin-top: 1rem;
        }
        .social-row a {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 38px; height: 38px;
            border-radius: 50%;
            background: #f0f0f0;
            color: #555;
            font-size: 1.1rem;
            text-decoration: none;
            transition: background .2s, color .2s, transform .2s;
        }
        .social-row a:hover { transform: scale(1.12); }
        .social-row a.fb:hover   { background: #1877f2; color: #fff; }
        .social-row a.ig:hover   { background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); color: #fff; }
        .social-row a.tt:hover   { background: #010101; color: #fff; }

        /* ══ SPINNER ══ */
        .spinner-overlay {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(255,255,255,.6);
            z-index: 999;
            align-items: center;
            justify-content: center;
        }
        .spinner-overlay.show { display: flex; }
        .spinner {
            width: 44px; height: 44px;
            border: 4px solid #e9ecef;
            border-top-color: var(--color-primary);
            border-radius: 50%;
            animation: spin .7s linear infinite;
        }
        @keyframes spin { to { transform: rotate(360deg); } }

        /* ══ FOOTER ══ */
        .site-footer {
            background: #2d3436;
            color: #dfe6e9;
            text-align: center;
            padding: 1.5rem 1rem;
            font-size: .8rem;
        }
        .site-footer .social-row { justify-content: center; }
        .site-footer .social-row a {
            background: rgba(255,255,255,.12);
            color: #dfe6e9;
        }
        .site-footer .social-row a:hover { background: rgba(255,255,255,.25); color: #fff; }

        /* ══ WhatsApp flotante ══ */
        .wa-float {
            position: fixed;
            bottom: 1.25rem;
            right: 1.25rem;
            z-index: 250;
            width: 52px; height: 52px;
            border-radius: 50%;
            background: var(--color-wa);
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.6rem;
            box-shadow: 0 4px 16px rgba(37,211,102,.45);
            transition: transform .2s, box-shadow .2s;
            text-decoration: none;
        }
        .wa-float:hover {
            transform: scale(1.1);
            box-shadow: 0 6px 24px rgba(37,211,102,.55);
        }

        .wa-vendedoras-label {
    font-size: .78rem;
    font-weight: 600;
    color: var(--color-muted);
    margin-bottom: .5rem;
    display: flex;
    align-items: center;
    gap: .35rem;
}
.wa-vendedoras-label i { color: var(--color-wa); }

.wa-vendedoras-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem;
}

.wa-vendedoras-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .6rem;
}

.btn-wa-vendedora-img {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.btn-wa-vendedora-img:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0,0,0,.15);
}
.btn-wa-vendedora-img img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* Imagen título catálogo */
.section-title img {
    width: clamp(250px, 30vw, 400px); /* mín 150px, crece con la pantalla, máx 400px */
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Imágenes dentro de los chips */
.chip img {
    height: 22px;
    width: auto;
    object-fit: contain;
    display: block;
}

.tipo-dropdown {
    position: relative;
}
.tipo-btn {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .28rem .65rem;
    border-radius: var(--radius-pill);
    border: 2px solid #e0e0e0;
    font-family: 'Poppins', sans-serif;
    font-size: .78rem;
    color: #555;
    background: #fafafa;
    cursor: pointer;
    transition: border-color .2s;
    white-space: nowrap;
}
.tipo-btn:focus { outline: none; border-color: var(--color-primary); }
.tipo-btn img {
    height: 22px;
    width: auto;
    object-fit: contain;
}
.tipo-btn .fa-chevron-down {
    font-size: .65rem;
    transition: transform .2s;
}
.tipo-dropdown.open .fa-chevron-down {
    transform: rotate(180deg);
}
.tipo-lista {
    display: none;
    position: absolute;
    top: calc(100% + .35rem);
    left: 0;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,.12);
    list-style: none;
    min-width: 180px;
    max-height: 260px;
    overflow-y: auto;
    z-index: 200;
    padding: .35rem 0;
}
.tipo-dropdown.open .tipo-lista { display: block; }
.tipo-lista li {
    padding: .45rem 1rem;
    font-size: .8rem;
    cursor: pointer;
    transition: background .15s;
    color: #555;
}
.tipo-lista li:hover { background: #f4f6fb; color: var(--color-primary); }
.tipo-lista li.active {
    background: #f0edff;
    color: var(--color-primary);
    font-weight: 600;
}

.card-gender-badge img {
    height: 18px;
    width: auto;
    object-fit: contain;
    display: block;
}

.card-gender-badge {
    position: absolute;
    top: .5rem;
    left: .5rem;
    background: transparent;
    padding: 0;
}

.modal-badge.gender-nino,
.modal-badge.gender-nina {
    background: transparent;
    padding: 0;
}

.chip-offer {
    background: #fff3f3;
    border-color: #ffb3b3;
    color: #e03131;
}
.chip-offer:hover { border-color: #e03131; color: #e03131; }
.chip-offer.active {
    background: #e03131;
    border-color: #e03131;
    color: #fff;
}
.chip-offer i { color: inherit; }

.card-offer-badge {
    position: absolute;
    top: .5rem;
    right: .5rem;
    background: #e03131;
    color: #fff;
    font-size: .62rem;
    font-weight: 700;
    padding: .2rem .5rem;
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    gap: .25rem;
    box-shadow: 0 2px 6px rgba(224,49,49,.4);
}
.card-offer-badge ~ .card-stock-dot {
    top: 2.1rem;
}