:root {
    --bg-1: #140814;
    --bg-2: #231028;
    --bg-3: #3a1230;

    --card: rgba(255, 255, 255, .10);
    --card-strong: rgba(255, 255, 255, .14);
    --border: rgba(255, 255, 255, .18);

    --text: #fff7fb;
    --muted: rgba(255, 245, 250, .78);

    --pink-1: #ff4fa3;
    --pink-2: #ff78b8;
    --pink-3: #ffb3d6;
    --violet-1: #a855f7;
    --violet-2: #c084fc;

    --ok: #86efac;
    --bad: #fda4af;

    --shadow: 0 20px 50px rgba(0, 0, 0, .28);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 0% 0%, rgba(255, 79, 163, .24), transparent 28%),
        radial-gradient(circle at 100% 0%, rgba(168, 85, 247, .18), transparent 24%),
        radial-gradient(circle at 50% 100%, rgba(255, 120, 184, .14), transparent 26%),
        linear-gradient(135deg, var(--bg-1), var(--bg-2) 45%, var(--bg-3));
    background-attachment: fixed;
}

/* ===== CONTENEDOR ===== */
.shop-wrap {
    width: min(1280px, calc(100% - 24px));
    margin: 0 auto;
    padding: 22px 0 42px;
}

/* ===== TOPBAR ===== */
.shop-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding: 18px 20px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .06));
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
}

.brand-box h1 {
    margin: 0;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: -.02em;
    background: linear-gradient(90deg, #fff, #ffd3e8 45%, #f9b2d2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-box p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 15px;
}

.shop-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.search-form {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.search-form input {
    width: min(330px, 100%);
    height: 44px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .10);
    color: var(--text);
    outline: none;
    backdrop-filter: blur(10px);
    transition: .2s ease;
}

.search-form input::placeholder {
    color: rgba(255, 245, 250, .58);
}

.search-form input:focus {
    border-color: rgba(255, 120, 184, .55);
    box-shadow: 0 0 0 4px rgba(255, 79, 163, .12);
}

.search-form button,
.btn-link {
    height: 44px;
    padding: 0 16px;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 800;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.search-form button,
.btn-link {
    color: white;
    background: linear-gradient(135deg, var(--pink-1), var(--violet-1));
    box-shadow: 0 12px 24px rgba(255, 79, 163, .22);
}

.search-form button:hover,
.btn-link:hover {
    transform: translateY(-2px);
    opacity: .96;
    text-decoration: none;
}

.btn-link.alt {
    color: var(--text);
    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(255, 255, 255, .16);
    box-shadow: none;
}

/* ===== SLIDER ===== */
.slider {
    position: relative;
    overflow: hidden;
    margin-bottom: 28px;
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, .14);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .06)),
        linear-gradient(135deg, rgba(255, 79, 163, .10), rgba(168, 85, 247, .08));
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
}

.slides {
    display: flex;
    transition: transform .55s ease;
    will-change: transform;
}

.slide {
    min-width: 100%;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 20px;
    align-items: center;
    padding: 28px;
}

.slide-copy .tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    margin-bottom: 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    color: white;
    background: linear-gradient(135deg, rgba(255, 79, 163, .85), rgba(168, 85, 247, .85));
    box-shadow: 0 10px 24px rgba(255, 79, 163, .20);
}

.slide-copy h2 {
    margin: 0 0 12px;
    font-size: clamp(30px, 4vw, 54px);
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: -.03em;
}

.slide-copy p {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 16px;
    max-width: 60ch;
}

.slide-price {
    margin-bottom: 18px;
    font-size: clamp(24px, 3vw, 40px);
    font-weight: 900;
    color: #fff;
}

.slide-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.slide-media {
    display: flex;
    justify-content: center;
    align-items: center;
}

.slide-media img {
    width: 100%;
    max-width: 440px;
    height: 330px;
    object-fit: cover;
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .05);
    box-shadow: 0 18px 35px rgba(0, 0, 0, .24);
}

.slider-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 14px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.slider-dots button {
    width: 11px;
    height: 11px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, .35);
    cursor: pointer;
    transition: .2s ease;
}

.slider-dots button.active {
    width: 30px;
    background: linear-gradient(90deg, var(--pink-2), var(--violet-2));
}

/* ===== SECCIÓN ===== */
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 10px;
    flex-wrap: wrap;
    margin: 20px 0 16px;
}

.section-head h3 {
    margin: 0;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -.02em;
}

.section-head p {
    margin: 6px 0 0;
    color: var(--muted);
}

/* ===== GRID PRODUCTOS ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.product-card {
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, .14);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .06));
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 120, 184, .38);
    box-shadow: 0 24px 54px rgba(0, 0, 0, .34);
}

.product-img {
    display: block;
    width: 100%;
    height: 235px;
    object-fit: cover;
    background: rgba(255, 255, 255, .05);
}

.product-body {
    padding: 16px;
}

.product-category {
    display: inline-flex;
    align-items: center;
    padding: 6px 11px;
    margin-bottom: 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, rgba(255, 79, 163, .85), rgba(168, 85, 247, .85));
}

.product-title {
    margin: 0 0 8px;
    font-size: 19px;
    line-height: 1.18;
    font-weight: 800;
    min-height: 46px;
}

.product-code {
    margin: 0 0 10px;
    font-size: 12px;
    color: rgba(255, 245, 250, .62);
}

.product-note {
    margin: 0 0 14px;
    font-size: 14px;
    color: var(--muted);
    min-height: 42px;
}

.product-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.product-price {
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
}

.stock-ok,
.stock-low {
    margin-top: 6px;
    font-size: 13px;
    font-weight: 700;
}

.stock-ok {
    color: var(--ok);
}

.stock-low {
    color: var(--bad);
}

/* ===== VACÍO ===== */
.empty-box {
    padding: 30px 18px;
    text-align: center;
    border-radius: 24px;
    border: 1px dashed rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .05);
    color: var(--muted);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 920px) {
    .slide {
        grid-template-columns: 1fr;
    }

    .slide-media img {
        max-width: 100%;
        height: 260px;
    }
}

@media (max-width: 640px) {
    .shop-wrap {
        width: min(100% - 16px, 1280px);
        padding-top: 16px;
    }

    .shop-topbar {
        padding: 16px;
        border-radius: 22px;
    }

    .slide {
        padding: 18px;
    }

    .slide-copy h2 {
        font-size: 34px;
    }

    .product-img {
        height: 200px;
    }

    .product-title {
        min-height: auto;
    }

    .product-bottom {
        flex-direction: column;
        align-items: stretch;
    }

    .product-bottom .btn-link {
        width: 100%;
    }
}