/* =========================================================
   VARIABLES & PALETA DE COLORES (Logo CarShine)
   ========================================================= */
:root {
    --bg-main: #0a0414;
    --bg-surface: #140b24;
    --bg-card-front: #170c2e;
    --bg-card-back: #210d3f;
    --purple-primary: #7928ca;
    --purple-bright: #9d4edd;
    --purple-glow: rgba(157, 78, 221, 0.45);
    --silver-light: #ffffff;
    --silver-mid: #cfd3dc;
    --silver-dark: #8b92a5;
    --text-primary: #f5f3f9;
    --text-secondary: #a99fc0;
    --border-subtle: rgba(157, 78, 221, 0.28);
    --whatsapp-green: #25d366;
    --whatsapp-dark: #128c7e;
    --red-alert: #ef4444;
    --font: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font);
    line-height: 1.5;
    overflow-x: hidden;
}

.container {
    width: 94%;
    max-width: 1400px;
    margin: 0 auto;
}

.text-center {
    text-align: center;
}

/* =========================================================
   PESTAÑAS DE NAVEGACIÓN
   ========================================================= */
.main-tab-radio {
    display: none !important;
}

.page-view {
    display: none;
}

#tab-nav-inicio:checked ~ .view-inicio { display: block; }
#tab-nav-productos:checked ~ .view-productos { display: block; }
#tab-nav-admin:checked ~ .view-admin { display: block; }
#tab-nav-clientes:checked ~ .view-clientes { display: block; }
#tab-nav-perfil:checked ~ .view-perfil { display: block; }

#tab-nav-inicio:checked ~ .header .btn-nav-inicio,
#tab-nav-productos:checked ~ .header .btn-nav-productos,
#tab-nav-admin:checked ~ .header .user-dropdown-btn,
#tab-nav-clientes:checked ~ .header .user-dropdown-btn,
#tab-nav-perfil:checked ~ .header .user-dropdown-btn {
    color: #ffffff;
    border-bottom: 2px solid var(--purple-bright);
}

/* =========================================================
   HEADER / NAVBAR
   ========================================================= */
.header {
    background: rgba(10, 4, 20, 0.95);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-subtle);
    padding: 0.75rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.nav-left-group {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-grow: 1;
    max-width: 600px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    cursor: pointer;
    white-space: nowrap;
}

.logo-cs {
    font-size: 2.2rem;
    font-weight: 900;
    font-style: italic;
    background: linear-gradient(135deg, var(--silver-light), var(--silver-mid), var(--silver-dark));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-text {
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--silver-light);
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-text span {
    font-size: 0.62rem;
    color: var(--purple-bright);
    letter-spacing: 3px;
    font-weight: 700;
    margin-top: 2px;
}

.nav-search-wrapper {
    position: relative;
    width: 100%;
    max-width: 340px;
}

.nav-search-box {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.nav-search-icon {
    position: absolute;
    left: 0.9rem;
    font-size: 0.85rem;
    opacity: 0.7;
    pointer-events: none;
}

.nav-search-input {
    width: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: #ffffff;
    padding: 0.5rem 1rem 0.5rem 2.4rem;
    border-radius: 50px;
    font-family: inherit;
    font-size: 0.84rem;
    transition: all 0.3s ease;
}

.nav-search-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.75;
}

.nav-search-input:focus {
    outline: none;
    background: var(--bg-card-front);
    border-color: var(--purple-bright);
    box-shadow: 0 0 15px var(--purple-glow);
}

.live-search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    min-width: 320px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.85);
    display: none;
    flex-direction: column;
    z-index: 1100;
    overflow: hidden;
    animation: fadeInDropdown 0.2s ease forwards;
}

.live-search-dropdown.show {
    display: flex;
}

.live-search-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.7rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: background 0.2s ease;
}

.live-search-item:hover {
    background: rgba(157, 78, 221, 0.2);
}

.live-search-item.empty {
    color: var(--text-secondary);
    font-size: 0.82rem;
    padding: 1rem;
    cursor: default;
}

.live-item-thumb {
    width: 36px;
    height: 36px;
    background: var(--bg-main);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.live-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.live-item-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.live-item-info strong {
    font-size: 0.83rem;
    color: #ffffff;
    line-height: 1.2;
}

.live-item-info span {
    font-size: 0.78rem;
    color: var(--purple-bright);
    font-weight: 700;
}

.live-item-arrow {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 700;
}

.live-search-footer {
    padding: 0.65rem 1rem;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--purple-bright);
    background: rgba(157, 78, 221, 0.1);
    cursor: pointer;
    transition: background 0.2s ease;
}

.live-search-footer:hover {
    background: rgba(157, 78, 221, 0.25);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    white-space: nowrap;
}

.nav-tab-btn {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    padding: 0.4rem 0.2rem;
    transition: all 0.3s ease;
    user-select: none;
    text-decoration: none;
}

.nav-tab-btn:hover {
    color: #ffffff;
}

.nav-btn-whatsapp {
    background: rgba(37, 211, 102, 0.12);
    border: 1px solid var(--whatsapp-green);
    color: #25d366;
    padding: 0.48rem 1rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.3s ease;
}

.nav-btn-whatsapp:hover {
    background: var(--whatsapp-green);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.5);
    transform: translateY(-2px);
}

.btn-open-cart {
    background: linear-gradient(135deg, var(--purple-primary), var(--purple-bright));
    border: none;
    color: #ffffff;
    padding: 0.48rem 1rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px var(--purple-glow);
}

.btn-open-cart:hover {
    transform: translateY(-2px);
}

.cart-badge {
    background: #ffffff;
    color: var(--bg-main);
    font-size: 0.75rem;
    font-weight: 900;
    border-radius: 50px;
    padding: 0.1rem 0.45rem;
}

.nav-btn-account {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-subtle);
    color: #ffffff;
    padding: 0.48rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-btn-account:hover {
    background: rgba(157, 78, 221, 0.25);
    border-color: var(--purple-bright);
}

/* =========================================================
   DROPDOWN MENÚ INTERACTIVO (ADMIN & CLIENTES)
   ========================================================= */
.dropdown-wrapper {
    position: relative;
}

.user-dropdown-btn {
    background: rgba(157, 78, 221, 0.15);
    border: 1px solid var(--purple-bright);
    color: #ffffff;
    padding: 0.45rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    user-select: none;
    transition: all 0.3s ease;
}

.user-dropdown-btn:hover {
    background: var(--purple-primary);
    box-shadow: 0 0 15px var(--purple-glow);
}

.dropdown-menu-list {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    min-width: 230px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
    padding: 0.6rem 0;
    display: none;
    flex-direction: column;
    z-index: 1050;
    animation: fadeInDropdown 0.2s ease forwards;
}

.dropdown-menu-list.show {
    display: flex;
}

@keyframes fadeInDropdown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-user-header {
    padding: 0.6rem 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 0.4rem;
}

.dropdown-user-header strong {
    display: block;
    color: #ffffff;
    font-size: 0.9rem;
}

.dropdown-user-header small {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.dropdown-item {
    padding: 0.65rem 1.2rem;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease;
    border: none;
    background: transparent;
    text-align: left;
    display: block;
    width: 100%;
}

.dropdown-item:hover {
    background: rgba(157, 78, 221, 0.2);
    color: var(--purple-bright);
}

.btn-dd-logout {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 0.4rem;
    color: var(--red-alert) !important;
}

.btn-dd-logout:hover {
    background: rgba(239, 68, 68, 0.15) !important;
}

/* =========================================================
   BOTONES GLOBALES
   ========================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.8rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--purple-primary), var(--purple-bright));
    color: #ffffff;
    box-shadow: 0 4px 18px var(--purple-glow);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(157, 78, 221, 0.6);
    color: #ffffff;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
    color: #ffffff;
}

.btn-block {
    width: 100%;
    display: block;
    margin-top: 1rem;
}

/* =========================================================
   HERO COMPACTO EN INICIO
   ========================================================= */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
    pointer-events: none;
}

.glow-top {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, var(--purple-bright) 0%, rgba(121, 40, 202, 0) 70%);
    top: 0;
    left: -100px;
    opacity: 0.3;
}

.glow-bottom {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, #5b139a 0%, rgba(0, 0, 0, 0) 70%);
    bottom: 0;
    right: -100px;
    opacity: 0.3;
}

.hero-compact {
    position: relative;
    padding: 2.8rem 0 1.2rem;
    text-align: center;
    background: radial-gradient(ellipse at center, #1b0a33 0%, var(--bg-main) 75%);
    border-bottom: 1px solid rgba(157, 78, 221, 0.15);
}

.hero-compact-content {
    position: relative;
    z-index: 2;
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
}

.hero-compact-badge {
    display: inline-block;
    padding: 0.25rem 0.9rem;
    background: rgba(157, 78, 221, 0.15);
    border: 1px solid var(--purple-bright);
    border-radius: 50px;
    color: var(--purple-bright);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 0.6rem;
}

.hero-compact-title {
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: 1px;
    margin-bottom: 0.4rem;
    color: #ffffff;
}

.metallic-text {
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 30%, #a0aec0 70%, #ffffff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-compact-sub {
    font-size: 0.95rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* =========================================================
   CARRUSEL DE COMBOS CON FLIP CARDS 3D (INICIO)
   ========================================================= */
.combos-carousel-section {
    padding: 2.5rem 0 2rem;
    position: relative;
}

.carousel-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-tag-sm {
    display: inline-block;
    color: #f43f5e;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 0.2rem;
}

.carousel-main-title {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 1.5px;
    background: linear-gradient(135deg, var(--silver-light), var(--silver-mid));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.carousel-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.2rem;
}

.carousel-arrows {
    display: flex;
    gap: 0.6rem;
}

.btn-carousel-arrow {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-carousel-arrow:hover {
    background: var(--purple-primary);
    border-color: var(--purple-bright);
    transform: scale(1.08);
}

.combos-carousel-track {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 0.5rem 0.2rem 1.8rem;
}

.combos-carousel-track::-webkit-scrollbar {
    height: 6px;
}

.combos-carousel-track::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
}

.combos-carousel-track::-webkit-scrollbar-thumb {
    background: var(--purple-primary);
    border-radius: 10px;
}

.combo-slide-wrapper {
    flex: 0 0 300px;
    scroll-snap-align: start;
}

.empty-combos-box {
    width: 100%;
    text-align: center;
    padding: 2.5rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    color: var(--text-secondary);
}

/* =========================================================
   SECCIÓN: PUNTOS DE VENTA & DISTRIBUCIÓN
   ========================================================= */
.stores-section {
    padding: 3.5rem 0 2.5rem;
    position: relative;
    border-top: 1px solid rgba(157, 78, 221, 0.12);
}

.stores-section-header {
    text-align: center;
    max-width: 850px;
    margin: 0 auto 2.5rem;
}

.stores-filter-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.5rem;
}

.stores-tab-btn {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 0.5rem 1.1rem;
    border-radius: 50px;
    font-family: inherit;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
}

.stores-tab-btn:hover,
.stores-tab-btn.active {
    background: var(--purple-primary);
    color: #ffffff;
    border-color: var(--purple-bright);
    box-shadow: 0 4px 15px var(--purple-glow);
    transform: translateY(-2px);
}

.stores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.6rem;
    margin-bottom: 2.5rem;
}

.empty-stores-box {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    color: var(--text-secondary);
}

.store-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 18px;
    padding: 1.6rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.store-card:hover {
    transform: translateY(-5px);
    border-color: var(--purple-bright);
    box-shadow: 0 10px 25px rgba(157, 78, 221, 0.25);
}

.store-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 0.9rem;
}

.store-type-badge {
    background: rgba(157, 78, 221, 0.15);
    color: var(--purple-bright);
    border: 1px solid var(--purple-bright);
    padding: 0.15rem 0.55rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 0.35rem;
}

.store-name {
    font-size: 1.2rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
}

.store-verified-pill {
    background: rgba(37, 211, 102, 0.12);
    border: 1px solid var(--whatsapp-green);
    color: #86efac;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 800;
    white-space: nowrap;
}

.store-details-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1.4rem;
}

.store-detail-row {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    font-size: 0.84rem;
}

.store-icon {
    font-size: 1.1rem;
    line-height: 1;
    margin-top: 2px;
}

.store-detail-row small {
    display: block;
    color: var(--text-secondary);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
}

.store-detail-row strong {
    color: #ffffff;
    font-weight: 700;
}

.store-detail-row span {
    color: var(--silver-mid);
}

.store-card-actions {
    display: flex;
    gap: 0.6rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 1rem;
}

.btn-store-action {
    flex: 1;
    text-align: center;
    padding: 0.55rem 0.8rem;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

.btn-store-map {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    color: #ffffff;
}

.btn-store-map:hover {
    background: rgba(157, 78, 221, 0.25);
    border-color: var(--purple-bright);
    color: #ffffff;
}

.btn-store-wa {
    background: rgba(37, 211, 102, 0.12);
    border: 1px solid var(--whatsapp-green);
    color: #25d366;
}

.btn-store-wa:hover {
    background: var(--whatsapp-green);
    color: #ffffff;
    box-shadow: 0 0 12px rgba(37, 211, 102, 0.4);
}

/* Tarjeta B2B Mayorista */
.b2b-distributor-card {
    background: radial-gradient(ellipse at top left, #290e4e 0%, var(--bg-surface) 70%);
    border: 1.5px solid var(--purple-bright);
    border-radius: 20px;
    padding: 2.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    box-shadow: 0 10px 35px rgba(121, 40, 202, 0.25);
}

.b2b-content {
    max-width: 700px;
}

.b2b-badge {
    color: #fbbf24;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 1.5px;
    margin-bottom: 0.4rem;
}

.b2b-content h3 {
    font-size: 1.4rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 0.4rem;
}

.b2b-content p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.45;
}

.b2b-btn {
    white-space: nowrap;
    padding: 0.9rem 1.6rem !important;
}

/* =========================================================
   GESTIÓN DE RUBROS PERSONALIZABLES EN ADMIN
   ========================================================= */
.store-types-manager-box {
    background: var(--bg-card-front);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 1.2rem 1.4rem;
}

.store-types-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1rem;
}

.store-type-admin-chip {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: #ffffff;
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.2s ease;
}

.store-type-admin-chip:hover {
    border-color: var(--purple-bright);
    box-shadow: 0 0 10px var(--purple-glow);
}

.chip-actions {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.btn-chip-edit,
.btn-chip-del {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 0.75rem;
    padding: 2px 4px;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.btn-chip-edit:hover {
    background: rgba(157, 78, 221, 0.3);
}

.btn-chip-del {
    color: var(--red-alert);
    font-weight: 900;
}

.btn-chip-del:hover {
    background: rgba(239, 68, 68, 0.2);
}

/* =========================================================
   IMÁGENES NÍTIDAS
   ========================================================= */
.combo-full-img,
.product-real-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    transition: transform 0.35s ease;
    display: block;
    padding: 6px;
    image-rendering: auto;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    outline: 1px solid transparent;
    will-change: transform;
}

.flip-card-inner:hover .combo-full-img,
.flip-card-inner:hover .product-real-img {
    transform: scale(1.04);
}

.combo-image-box {
    background: radial-gradient(circle at center, #1b0a33 0%, #0a0414 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =========================================================
   FEATURES (INICIO)
   ========================================================= */
.features {
    padding: 2.5rem 0 5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-surface);
    padding: 2.2rem 1.8rem;
    border-radius: 16px;
    border: 1px solid var(--border-subtle);
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--purple-bright);
    box-shadow: 0 10px 25px rgba(157, 78, 221, 0.2);
}

.feature-icon {
    font-size: 2.2rem;
    margin-bottom: 0.9rem;
}

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: #ffffff;
}

.feature-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* =========================================================
   PRODUCTOS & COMBOS: SIDEBAR PERFECTAMENTE ALINEADO
   ========================================================= */
.catalog-section-unified {
    position: relative;
    padding: 2.5rem 0 6rem;
}

.catalog-layout-grid {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.catalog-sidebar-area {
    width: 275px;
    min-width: 275px;
    position: sticky;
    top: 90px;
    z-index: 10;
}

.sidebar-dropdown-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.sidebar-header {
    padding: 1.1rem 1.3rem;
    background: rgba(157, 78, 221, 0.14);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s ease;
}

.sidebar-header:hover {
    background: rgba(157, 78, 221, 0.22);
}

.sidebar-title-group {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.sidebar-title-group h3 {
    font-size: 1.05rem;
    color: #ffffff;
    font-weight: 800;
    letter-spacing: 1px;
}

.sidebar-chevron {
    font-size: 0.85rem;
    color: var(--purple-bright);
}

.sidebar-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.sidebar-body.open {
    max-height: 900px;
    padding: 0.6rem;
}

.sidebar-cat-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.7rem 0.9rem;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.86rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
}

.sidebar-cat-btn:hover {
    background: rgba(157, 78, 221, 0.15);
    color: #ffffff;
}

.sidebar-cat-btn.active {
    background: var(--purple-primary);
    color: #ffffff;
    font-weight: 800;
    box-shadow: 0 4px 12px var(--purple-glow);
}

.sidebar-cat-btn .cat-count {
    background: rgba(0, 0, 0, 0.35);
    padding: 0.12rem 0.5rem;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
}

.catalog-main-area {
    flex-grow: 1;
    min-width: 0;
}

.catalog-header-centered {
    text-align: center;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 2.4rem;
    font-weight: 900;
    letter-spacing: 2px;
    background: linear-gradient(135deg, var(--silver-light), var(--silver-mid));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.catalog-subtitle {
    color: var(--text-secondary);
    margin-top: 0.6rem;
    font-size: 0.95rem;
}

.catalog-subtitle strong {
    color: var(--purple-bright);
}

.section-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--purple-primary), var(--purple-bright));
    margin: 1.2rem auto 0.5rem;
    border-radius: 2px;
}

.catalog-center-search-wrapper {
    width: 100%;
    max-width: 620px;
    margin: 1.2rem auto 0.5rem;
}

.catalog-center-search-box {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.center-search-icon {
    position: absolute;
    left: 1.2rem;
    font-size: 1.1rem;
    opacity: 0.8;
    pointer-events: none;
}

.catalog-center-input {
    width: 100%;
    background: var(--bg-surface);
    border: 1.5px solid var(--border-subtle);
    color: #ffffff;
    padding: 0.85rem 2.8rem 0.85rem 3rem;
    border-radius: 50px;
    font-family: inherit;
    font-size: 0.92rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.catalog-center-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.8;
}

.catalog-center-input:focus {
    outline: none;
    background: var(--bg-card-front);
    border-color: var(--purple-bright);
    box-shadow: 0 0 25px var(--purple-glow);
}

.btn-clear-search {
    position: absolute;
    right: 1.2rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.btn-clear-search:hover {
    color: #ffffff;
}

.cards-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.4rem;
}

.empty-catalog-box {
    text-align: center;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    padding: 3.5rem 2rem;
    border-radius: 16px;
    grid-column: 1 / -1;
}

.empty-catalog-box p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 1.2rem;
}

/* =========================================================
   ARMADOR INTERACTIVO DE COMBOS EN ADMIN
   ========================================================= */
.combo-builder-box {
    background: rgba(10, 4, 20, 0.85);
    border: 1.5px solid var(--purple-bright);
    border-radius: 16px;
    padding: 1.4rem;
    box-shadow: 0 0 20px rgba(157, 78, 221, 0.25);
    margin-top: 0.4rem;
}

.combo-builder-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 0.8rem;
    margin-bottom: 1rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.combo-builder-header strong {
    display: block;
    color: #ffffff;
    font-size: 0.95rem;
}

.combo-builder-header small {
    display: block;
    color: var(--text-secondary);
    font-size: 0.78rem;
    margin-top: 0.2rem;
}

.combo-search-filter-box {
    position: relative;
    margin-bottom: 1rem;
    width: 100%;
    display: flex;
    align-items: center;
}

.combo-search-icon {
    position: absolute;
    left: 1.2rem;
    font-size: 1rem;
    opacity: 0.75;
    pointer-events: none;
    z-index: 2;
}

.combo-search-input {
    width: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: #ffffff;
    padding: 0.75rem 2.6rem 0.75rem 3rem !important;
    border-radius: 50px;
    font-family: inherit;
    font-size: 0.88rem;
    transition: all 0.25s ease;
    box-sizing: border-box;
}

.combo-search-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.8;
}

.combo-search-input:focus {
    outline: none;
    border-color: var(--purple-bright);
    box-shadow: 0 0 15px var(--purple-glow);
}

.combo-checklist-scroll {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.8rem;
    max-height: 280px;
    overflow-y: auto;
    padding-right: 0.4rem;
}

.combo-check-item {
    background: var(--bg-card-front);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 0.6rem 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
}

.combo-check-item:hover {
    border-color: var(--purple-bright);
    background: rgba(157, 78, 221, 0.15);
}

.combo-check-item.checked {
    background: rgba(121, 40, 202, 0.3);
    border-color: var(--purple-bright);
    box-shadow: 0 0 10px var(--purple-glow);
}

.combo-check-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--purple-bright);
    cursor: pointer;
    flex-shrink: 0;
}

.combo-item-thumb {
    width: 38px;
    height: 38px;
    background: var(--bg-main);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.combo-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.combo-check-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.combo-check-info strong {
    font-size: 0.85rem;
    color: #ffffff;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.combo-check-cat {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.combo-check-price {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--purple-bright);
    flex-shrink: 0;
}

.combo-summary-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-subtle);
    margin-top: 1rem;
    padding-top: 0.9rem;
    flex-wrap: wrap;
    gap: 0.8rem;
    font-size: 0.9rem;
}

.combo-summary-bar strong {
    color: var(--whatsapp-green);
    font-size: 1.15rem;
}

.combo-calc-hint {
    color: var(--text-secondary);
    font-size: 0.78rem;
}

.badge-combo-table {
    display: inline-block;
    margin-left: 0.4rem;
    background: linear-gradient(135deg, #e11d48, #9333ea);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
}

/* =========================================================
   3D FLIP CARD
   ========================================================= */
.flip-trigger {
    display: none !important;
}

.flip-card-box {
    perspective: 1200px;
    height: 410px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: transform 0.65s cubic-bezier(0.4, 0.2, 0.2, 1);
    display: block;
    user-select: none;
    -webkit-font-smoothing: subpixel-antialiased;
}

.flip-trigger:checked + .flip-card-inner {
    transform: rotateY(180deg);
}

.card-face {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 14px;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    transform: translate3d(0, 0, 0);
}

.card-face-front {
    background: var(--bg-card-front);
    display: flex;
    flex-direction: column;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

.flip-card-inner:hover .card-face-front {
    border-color: var(--purple-bright);
}

.product-out-of-stock:hover .card-face-front {
    border-color: var(--red-alert) !important;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.45) !important;
}

.badge-type {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(121, 40, 202, 0.88);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 3;
}

.badge-combo {
    background: linear-gradient(135deg, #e11d48, #9333ea);
}

.card-image-box {
    height: 225px;
    background: radial-gradient(circle at center, #1e0d38 0%, #0d031c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-subtle);
    overflow: hidden;
    position: relative;
    padding: 0;
}

.out-of-stock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 4, 20, 0.75);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 5;
}

.product-out-of-stock:hover .out-of-stock-overlay {
    opacity: 1;
}

.out-of-stock-overlay span {
    background: var(--red-alert);
    color: #ffffff;
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-weight: 900;
    font-size: 0.78rem;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.6);
}

.no-stock-tag {
    color: var(--red-alert);
    font-size: 0.76rem;
    font-weight: 700;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid var(--red-alert);
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
}

.bottle-mockup {
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--silver-mid);
    opacity: 0.8;
    font-size: 0.9rem;
    text-align: center;
    padding: 0 0.8rem;
}

.card-info-front {
    padding: 1rem 1.1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.card-info-front h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.25;
}

.price-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0.5rem 0 0.2rem;
}

.product-price {
    font-size: 1.18rem;
    font-weight: 900;
    color: var(--silver-light);
}

.btn-add-cart {
    background: rgba(157, 78, 221, 0.15);
    border: 1px solid var(--purple-bright);
    color: #ffffff;
    padding: 0.38rem 0.8rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-add-cart:hover {
    background: var(--purple-bright);
    box-shadow: 0 0 12px var(--purple-glow);
}

.click-hint {
    font-size: 0.68rem;
    color: var(--text-secondary);
    display: inline-block;
}

.card-face-back {
    background: var(--bg-card-back);
    transform: rotateY(180deg);
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-color: var(--purple-bright);
    box-shadow: 0 10px 30px rgba(121, 40, 202, 0.35);
}

.back-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffffff;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 0.35rem;
}

.back-desc {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.35;
    margin: 0.35rem 0;
}

.specs-box {
    background: rgba(10, 4, 20, 0.7);
    padding: 0.5rem 0.7rem;
    border-radius: 6px;
    font-size: 0.72rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    color: var(--silver-mid);
}

.btn-card-cart {
    background: linear-gradient(135deg, var(--whatsapp-green), var(--whatsapp-dark));
    color: #ffffff;
    border: none;
    width: 100%;
    padding: 0.55rem 0.9rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.btn-card-cart:hover {
    transform: scale(1.02);
}

.out-stock-label {
    text-align: center;
    color: var(--red-alert);
    font-weight: 700;
    font-size: 0.8rem;
}

/* =========================================================
   PANEL ADMIN
   ========================================================= */
.admin-panel-section,
.perfil-section {
    padding: 3rem 0 6rem;
}

.admin-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.admin-top-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.admin-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 1.8rem;
    margin-bottom: 2rem;
}

.admin-card h3 {
    font-size: 1.25rem;
    color: var(--silver-light);
    margin-bottom: 0.4rem;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 0.6rem;
}

.hint-order-text {
    display: block;
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-top: 0.2rem;
}

.inline-add-cat-form {
    display: flex;
    gap: 0.6rem;
    align-items: center;
}

.input-inline-cat {
    background: var(--bg-card-front);
    border: 1px solid var(--border-subtle);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.88rem;
    min-width: 240px;
}

.input-inline-cat:focus {
    outline: none;
    border-color: var(--purple-bright);
    box-shadow: 0 0 10px var(--purple-glow);
}

.btn-sm-pad {
    padding: 0.5rem 1.1rem !important;
}

.row-order-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.btn-pos-arrow {
    background: var(--bg-card-front);
    border: 1px solid var(--border-subtle);
    color: var(--silver-light);
    width: 28px;
    height: 22px;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-pos-arrow:hover:not(:disabled) {
    background: var(--purple-primary);
    border-color: var(--purple-bright);
    color: #ffffff;
}

.btn-pos-arrow:disabled {
    opacity: 0.25;
    cursor: not-allowed;
}

.admin-accordion-card {
    padding: 0;
    overflow: hidden;
}

.accordion-header {
    padding: 1.4rem 1.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: rgba(157, 78, 221, 0.08);
    transition: background 0.2s ease;
}

.accordion-header:hover {
    background: rgba(157, 78, 221, 0.16);
}

.accordion-header h3 {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    font-size: 1.15rem;
    color: var(--silver-light);
}

.accordion-chevron {
    font-size: 1.1rem;
    color: var(--purple-bright);
    transition: transform 0.3s ease;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
    padding: 0 1.8rem;
}

.accordion-content.open {
    max-height: 1400px;
    padding: 1.8rem;
    border-top: 1px solid var(--border-subtle);
}

.inventory-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 1rem;
    margin-bottom: 1.2rem;
}

.inventory-card-header h3 {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

.inventory-quick-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.badge-alert-stock {
    background: rgba(239, 68, 68, 0.15);
    color: var(--red-alert);
    border: 1px solid var(--red-alert);
    padding: 0.25rem 0.7rem;
    border-radius: 50px;
    font-weight: 700;
}

.badge-ok-stock {
    background: rgba(52, 211, 153, 0.12);
    color: #34d399;
    border: 1px solid #34d399;
    padding: 0.25rem 0.7rem;
    border-radius: 50px;
    font-weight: 700;
}

.admin-cat-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
}

.admin-tab-chip {
    background: var(--bg-card-front);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 0.4rem 0.85rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.admin-tab-chip:hover,
.admin-tab-chip.active {
    background: var(--purple-primary);
    color: #ffffff;
    border-color: var(--purple-bright);
}

.admin-tab-chip.chip-warning {
    border-color: rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}

.admin-tab-chip.chip-warning.active,
.admin-tab-chip.chip-warning:hover {
    background: var(--red-alert);
    color: #ffffff;
}

.row-out-of-stock {
    background: rgba(239, 68, 68, 0.08);
}

.tag-row-danger {
    display: inline-block;
    margin-left: 0.5rem;
    background: var(--red-alert);
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    text-transform: uppercase;
}

.stock-num.stock-zero {
    color: var(--red-alert);
    font-weight: 900;
}

.clients-stats-row {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.stat-box {
    background: var(--bg-card-front);
    border: 1px solid var(--border-subtle);
    padding: 1.2rem 1.8rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 200px;
}

.stat-num {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--purple-bright);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.client-pass-tag {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: monospace;
    color: var(--silver-mid);
}

.btn-orders-badge {
    background: rgba(157, 78, 221, 0.18);
    border: 1px solid var(--purple-bright);
    color: #ffffff;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.25s ease;
}

.btn-orders-badge:hover {
    background: var(--purple-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--purple-glow);
}

.btn-orders-badge span {
    color: var(--purple-bright);
    font-size: 1rem;
    line-height: 1;
}

.btn-orders-badge:hover span {
    color: #ffffff;
}

/* =========================================================
   MODAL DE PEDIDOS (ADMIN) & CONTROL DE ESTADOS
   ========================================================= */
.orders-modal-box {
    max-width: 720px !important;
    width: 95% !important;
}

.orders-modal-sub {
    font-size: 0.78rem;
    color: var(--text-secondary);
    display: block;
    margin-top: 0.2rem;
}

.orders-modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    max-height: 65vh;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.empty-orders-view {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
}

.empty-orders-view p {
    margin-top: 0.8rem;
    font-size: 0.95rem;
}

.admin-order-card {
    background: var(--bg-card-front);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 1.2rem;
    transition: border-color 0.25s ease;
}

.admin-order-card.status-pendiente {
    border-left: 4px solid #fbbf24;
}

.admin-order-card.status-concretado {
    border-left: 4px solid var(--whatsapp-green);
}

.admin-order-card.status-cancelado {
    border-left: 4px solid var(--red-alert);
}

.admin-order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 0.8rem;
    margin-bottom: 0.8rem;
}

.order-code {
    font-size: 1rem;
    color: #ffffff;
    display: block;
}

.order-date {
    font-size: 0.76rem;
    color: var(--text-secondary);
}

.order-status-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.order-status-control label {
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.select-order-status {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: #ffffff;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
}

.select-order-status.pendiente {
    border-color: #fbbf24;
    color: #fef08a;
}

.select-order-status.concretado {
    border-color: var(--whatsapp-green);
    color: #86efac;
}

.select-order-status.cancelado {
    border-color: var(--red-alert);
    color: #fca5a5;
}

.admin-order-items-table-wrapper {
    overflow-x: auto;
    margin-bottom: 0.8rem;
}

.admin-order-items-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}

.admin-order-items-table th,
.admin-order-items-table td {
    padding: 0.5rem 0.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.admin-order-items-table th {
    color: var(--text-secondary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.72rem;
}

.admin-order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.6rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.95rem;
}

.order-total-amount {
    color: var(--whatsapp-green);
    font-size: 1.2rem;
    font-weight: 900;
}

.badge-status-client {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 800;
    margin-left: 0.5rem;
}

.badge-status-client.status-pendiente {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
    border: 1px solid #fbbf24;
}

.badge-status-client.status-concretado {
    background: rgba(37, 211, 102, 0.15);
    color: var(--whatsapp-green);
    border: 1px solid var(--whatsapp-green);
}

.badge-status-client.status-cancelado {
    background: rgba(239, 68, 68, 0.15);
    color: var(--red-alert);
    border: 1px solid var(--red-alert);
}

.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 0.8rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
    background: var(--bg-card-front);
    border: 1px solid var(--border-subtle);
    color: #ffffff;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--purple-bright);
    box-shadow: 0 0 10px var(--purple-glow);
}

.admin-form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.admin-table-wrapper {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.5rem;
    text-align: left;
}

.admin-table th,
.admin-table td {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.88rem;
}

.admin-table th {
    color: var(--text-secondary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 1px;
}

.admin-thumb {
    width: 45px;
    height: 45px;
    background: var(--bg-main);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.admin-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.badge-cat-sm {
    background: rgba(157, 78, 221, 0.2);
    border: 1px solid var(--purple-bright);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
}

.admin-stock-controls {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-stock-adj {
    background: var(--bg-main);
    border: 1px solid var(--border-subtle);
    color: #ffffff;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
}

.stock-num {
    font-weight: 800;
    min-width: 25px;
    text-align: center;
}

.btn-action-edit {
    background: transparent;
    border: 1px solid var(--purple-bright);
    color: #ffffff;
    padding: 0.35rem 0.7rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 600;
    margin-right: 0.4rem;
}

.btn-action-del {
    background: transparent;
    border: 1px solid var(--red-alert);
    color: var(--red-alert);
    padding: 0.35rem 0.7rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 600;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.user-orders-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 400px;
    overflow-y: auto;
}

.user-order-card {
    background: var(--bg-card-front);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 1rem;
}

.order-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 0.6rem;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.order-items-list {
    list-style: none;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.6rem;
}

.order-total {
    text-align: right;
    font-size: 0.9rem;
}

.order-total strong {
    color: var(--whatsapp-green);
    font-size: 1.05rem;
}

/* =========================================================
   MODAL DE CARRITO & AUTH
   ========================================================= */
.floating-cart-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: linear-gradient(135deg, var(--purple-primary), var(--purple-bright));
    color: #ffffff;
    padding: 0.9rem 1.3rem;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: 0 10px 30px rgba(121, 40, 202, 0.5);
    cursor: pointer;
    z-index: 990;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: transform 0.3s ease;
}

.floating-cart-btn:hover {
    transform: translateY(-4px) scale(1.05);
}

.cart-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.cart-modal.active {
    display: flex;
}

.cart-modal-backdrop {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(5, 2, 10, 0.85);
    backdrop-filter: blur(8px);
}

.cart-modal-content {
    position: relative;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    width: 90%;
    max-width: 520px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    z-index: 2001;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    overflow: hidden;
}

.auth-modal-box {
    max-width: 440px;
}

.auth-body {
    padding: 1.8rem;
}

.auth-switch-text {
    margin-top: 1.2rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.auth-switch-text a {
    color: var(--purple-bright);
    font-weight: 700;
    text-decoration: none;
}

.cart-header {
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h2 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
}

.btn-close-cart {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.4rem;
    cursor: pointer;
}

.cart-items-container {
    padding: 1.5rem;
    overflow-y: auto;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-empty-text {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 2rem 0;
}

.cart-item-card {
    background: var(--bg-card-front);
    border: 1px solid var(--border-subtle);
    padding: 0.8rem 1rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.cart-item-info h4 {
    font-size: 0.9rem;
    color: #ffffff;
    font-weight: 700;
}

.cart-item-price {
    font-size: 0.78rem;
    color: var(--purple-bright);
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-item-controls button {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: #ffffff;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
}

.cart-item-qty {
    font-weight: 700;
    font-size: 0.9rem;
    min-width: 20px;
    text-align: center;
}

.cart-item-subtotal {
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--silver-light);
}

.cart-footer {
    padding: 1.2rem 1.5rem;
    border-top: 1px solid var(--border-subtle);
    background: #0d061a;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.cart-total-row strong {
    color: var(--purple-bright);
    font-size: 1.3rem;
}

.cart-actions-row {
    display: flex;
    gap: 0.8rem;
}

.btn-clear-cart {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.85rem;
}

.btn-checkout-whatsapp {
    flex-grow: 1;
    background: linear-gradient(135deg, var(--whatsapp-green), var(--whatsapp-dark));
    color: #ffffff;
    border: none;
    padding: 0.75rem 1.2rem;
    border-radius: 10px;
    font-weight: 800;
    font-size: 0.9rem;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.btn-checkout-whatsapp:hover {
    transform: scale(1.02);
}

/* Toast */
.cart-toast {
    position: fixed;
    top: 25px;
    right: 25px;
    background: var(--purple-primary);
    color: #ffffff;
    padding: 0.8rem 1.4rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    z-index: 3000;
    animation: toastSlide 0.3s ease forwards;
}

.cart-toast.hide {
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

@keyframes toastSlide {
    from { opacity: 0; transform: translateY(-15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
    background: #05020a;
    padding-top: 3.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    padding-bottom: 2.5rem;
}

.footer-brand {
    max-width: 380px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 0.8rem;
}

.footer-contact h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.8rem;
}

.whatsapp-card {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    background: rgba(37, 211, 102, 0.08);
    border: 1px solid rgba(37, 211, 102, 0.4);
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.whatsapp-card:hover {
    background: rgba(37, 211, 102, 0.18);
    border-color: var(--whatsapp-green);
    transform: translateY(-2px);
}

.whatsapp-icon {
    font-size: 1.6rem;
}

.whatsapp-card span {
    display: block;
    font-size: 0.72rem;
    color: var(--text-secondary);
}

.whatsapp-card strong {
    font-size: 1rem;
    color: #ffffff;
}

.footer-bottom {
    background: #030107;
    padding: 1.2rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.footer-bottom p {
    font-size: 0.75rem;
    color: #635b75;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1200px) {
    .cards-grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .catalog-layout-grid {
        flex-direction: column;
    }
    .catalog-sidebar-area {
        width: 100%;
        position: static;
        top: 0;
    }
    .cards-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    .nav-left-group {
        width: 100%;
        justify-content: space-between;
    }
    .nav-search-wrapper {
        max-width: 240px;
    }
    .nav-menu {
        width: 100%;
        justify-content: space-around;
        gap: 0.6rem;
        flex-wrap: wrap;
    }
    .hero-compact-title {
        font-size: 1.8rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .admin-form-grid {
        grid-template-columns: 1fr;
    }
    .profile-grid {
        grid-template-columns: 1fr;
    }
    .inventory-card-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .inline-add-cat-form {
        width: 100%;
    }
    .input-inline-cat {
        width: 100%;
    }
    .b2b-distributor-card {
        flex-direction: column;
        text-align: center;
    }
    .b2b-btn {
        width: 100%;
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 580px) {
    .cards-grid-4 {
        grid-template-columns: 1fr;
    }
    .combo-checklist-scroll {
        grid-template-columns: 1fr;
    }
    .admin-order-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .order-status-control {
        width: 100%;
        justify-content: space-between;
    }
    .stores-grid {
        grid-template-columns: 1fr;
    }
}