/* ============================================================================
   KEEPER CLUB — TIENDA OFICIAL & FIDELIZACIÓN (PRODUCCIÓN LISTA PARA DESPLEGAR)
   ============================================================================ */

:root {
    --bg-main: #F4F7FB;
    --bg-card: #FFFFFF;
    --bg-dark: #070D19;
    --bg-navy: #0B1528;
    --bg-navy-light: #132342;

    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #94A3B8;

    --brand-primary: #06B6D4;
    --brand-primary-hover: #0891B2;
    --brand-light: #ECFEFF;
    --brand-glow: rgba(6, 182, 212, 0.35);

    --whatsapp-green: #25D366;
    --whatsapp-dark: #16A34A;
    --whatsapp-glow: rgba(37, 211, 102, 0.32);

    --points-gold: #F59E0B;
    --points-bg: #FFFBEB;
    --points-border: #FDE68A;

    --success-green: #10B981;
    --success-bg: #ECFDF5;

    --border-color: #E2E8F0;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;

    --shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 14px 34px rgba(15, 23, 42, 0.09);
    --shadow-lg: 0 24px 56px rgba(7, 13, 25, 0.18);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.page-shell {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ============================================================================
   1. BARRA SUPERIOR Y HEADER PRINCIPAL DE LA TIENDA
   ============================================================================ */
.top-promo-bar {
    background: #060C18;
    color: #E2E8F0;
    font-size: 12px;
    font-weight: 600;
    padding: 8px 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-promo-inner {
    max-width: 1360px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.top-promo-items {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.top-promo-items span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.top-promo-items i {
    color: var(--brand-primary);
}

.quick-view-select {
    background: rgba(255, 255, 255, 0.08);
    color: #F8FAFC;
    border: 1px solid rgba(255, 255, 255, 0.16);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 600;
    outline: none;
    cursor: pointer;
}

.quick-view-select option {
    background: #0B1528;
    color: #FFFFFF;
}

.store-header {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 500;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

.header-container {
    max-width: 1360px;
    margin: 0 auto;
    padding: 14px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    text-decoration: none;
    color: var(--bg-navy);
}

.brand-logo img {
    height: 52px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.logo-shield {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #0B1528 0%, #1E3A6D 100%);
    color: #FFFFFF;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    position: relative;
    box-shadow: 0 6px 16px rgba(11, 21, 40, 0.22);
    border: 1.5px solid rgba(6, 182, 212, 0.5);
}

.logo-shield::after {
    content: '';
    position: absolute;
    bottom: -3px;
    right: -3px;
    width: 11px;
    height: 11px;
    background: var(--brand-primary);
    border-radius: 50%;
    border: 2px solid #FFFFFF;
}

.logo-text-wrap {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: 0.6px;
    line-height: 1;
    color: var(--bg-navy);
}

.logo-subtext {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.4px;
    color: var(--brand-primary);
    text-transform: uppercase;
    margin-top: 2px;
}

.search-box {
    flex: 1;
    max-width: 480px;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 11px 42px 11px 18px;
    border-radius: 99px;
    border: 1.5px solid var(--border-color);
    background: #F8FAFC;
    font-size: 14px;
    color: var(--text-primary);
    outline: none;
    transition: all 0.25s ease;
}

.search-box input:focus {
    background: #FFFFFF;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.1);
}

.search-box i {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 15px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.points-header-pill {
    background: #F8FAFC;
    border: 1.5px solid #CBD5E1;
    color: var(--bg-navy);
    padding: 7px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.points-header-pill:hover {
    border-color: var(--brand-primary);
    background: #ECFEFF;
    color: #0891B2;
}

.points-header-pill i {
    color: var(--brand-primary);
}

.icon-action-btn {
    background: #FFFFFF;
    border: 1.5px solid var(--border-color);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 16px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.icon-action-btn:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
    background: var(--brand-light);
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--brand-primary);
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 800;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px var(--brand-glow);
}

.store-subnav {
    background: #FFFFFF;
    border-bottom: 1px solid var(--border-color);
}

.subnav-container {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    align-items: center;
    gap: 32px;
    overflow-x: auto;
}

.subnav-link {
    padding: 13px 0;
    font-size: 12.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: var(--text-secondary);
    text-decoration: none;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.subnav-link:hover,
.subnav-link.active {
    color: var(--text-primary);
    border-bottom-color: var(--brand-primary);
}

.content-max {
    max-width: 1360px;
    width: 100%;
    margin: 0 auto;
    padding: 28px;
}

/* ============================================================================
   2. HERO BANNER FOTOGRÁFICO DE CAMPAÃ‘A (VISTA 1)
   ============================================================================ */
.hero-campaign {
    border-radius: var(--radius-lg);
    min-height: 460px;
    background: #060B16;
    color: #FFFFFF;
    padding: 58px 64px 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-bg-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1.03);
    transition: opacity 0.75s ease, transform 5.5s ease-out;
    z-index: 0;
    pointer-events: none;
}

.hero-bg-slide.active {
    opacity: 1;
    transform: scale(1);
}

.hero-bg-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(6, 11, 22, 0.94) 0%, rgba(6, 11, 22, 0.72) 48%, rgba(6, 11, 22, 0.16) 100%);
}

.hero-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(11, 21, 40, 0.65);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #FFFFFF;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 4;
    transition: all 0.2s ease;
}

.hero-carousel-arrow:hover {
    background: #06B6D4;
    border-color: #67E8F9;
    transform: translateY(-50%) scale(1.08);
}

.hero-carousel-arrow.prev { left: 16px; }
.hero-carousel-arrow.next { right: 16px; }

.hero-carousel-controls {
    position: absolute;
    bottom: 20px;
    right: 28px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 4;
}

.hero-carousel-dot {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 28px;
    padding: 0 11px;
    border-radius: 99px;
    background: rgba(11, 21, 40, 0.65);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #CBD5E1;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.22s ease;
}

.hero-carousel-dot:hover {
    border-color: #06B6D4;
    color: #FFFFFF;
}

.hero-carousel-dot.active {
    background: #06B6D4;
    border-color: #67E8F9;
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(6, 182, 212, 0.45);
}

.hero-content {
    max-width: 560px;
    position: relative;
    z-index: 2;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(6, 182, 212, 0.22);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(6, 182, 212, 0.55);
    color: #67E8F9;
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 6px 14px;
    border-radius: 99px;
    margin-bottom: 18px;
}

.hero-title {
    font-size: 50px;
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -1px;
    margin-bottom: 18px;
    text-transform: uppercase;
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 16px;
    color: #E2E8F0;
    line-height: 1.6;
    margin-bottom: 28px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-specs-row {
    display: flex;
    gap: 28px;
    margin-top: 32px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    flex-wrap: wrap;
}

.hero-spec-item {
    display: flex;
    flex-direction: column;
}

.hero-spec-val {
    font-size: 18px;
    font-weight: 800;
    color: #FFFFFF;
}

.hero-spec-lbl {
    font-size: 12px;
    color: #CBD5E1;
}

/* ============================================================================
   3. TARJETAS DE PRODUCTO CON FOTOGRAFÍA REAL DE ESTUDIO
   ============================================================================ */
.trust-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin: 26px 0 38px;
}

.trust-item {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--shadow-sm);
}

.trust-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--brand-light);
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 22px;
}

.section-title {
    font-size: 22px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--text-primary);
}

.link-more {
    font-size: 14px;
    font-weight: 800;
    color: var(--brand-primary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.products-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.products-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.product-card {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.28s ease;
    cursor: pointer;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(6, 182, 212, 0.45);
}

.product-card-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 3;
    background: rgba(11, 21, 40, 0.9);
    backdrop-filter: blur(6px);
    color: #FFFFFF;
    font-size: 10.5px;
    font-weight: 800;
    padding: 5px 10px;
    border-radius: 6px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.product-card-badge.sale {
    background: var(--brand-primary);
}

.product-thumb {
    height: 245px;
    width: 100%;
    background: #F1F5F9;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.product-card:hover .product-thumb img {
    transform: scale(1.06);
}

.product-card-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-category-label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.product-name {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 6px;
    line-height: 1.3;
}

.product-price {
    font-size: 19px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.product-points-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 800;
    color: #B45309;
    background: var(--points-bg);
    border: 1px solid var(--points-border);
    padding: 5px 11px;
    border-radius: 99px;
    width: fit-content;
    margin-top: auto;
}

.product-points-badge i {
    color: var(--points-gold);
}

/* Banner Secundario de Equipamiento */
.promo-split-banner {
    margin: 42px 0 20px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #0B1528;
    color: #FFFFFF;
    box-shadow: var(--shadow-md);
}

.promo-split-text {
    padding: 44px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.promo-split-img {
    min-height: 320px;
    background: url('../../assets/images/sports_gear_bg.jpg') center/cover no-repeat;
}

/* ============================================================================
   4. BOTONES E INPUTS
   ============================================================================ */
.btn-primary {
    background: linear-gradient(135deg, #06B6D4 0%, #0891B2 100%);
    color: #FFFFFF;
    border: none;
    min-height: 48px;
    padding: 13px 28px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    transition: all 0.25s ease;
    box-shadow: 0 8px 22px var(--brand-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px var(--brand-glow);
}

.btn-outline {
    background: #FFFFFF;
    color: var(--text-primary);
    border: 1.5px solid #CBD5E1;
    min-height: 48px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-outline:hover {
    border-color: var(--bg-navy);
    background: #F8FAFC;
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #16A34A 100%);
    color: #FFFFFF;
    border: none;
    min-height: 48px;
    padding: 13px 26px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.25s ease;
    box-shadow: 0 8px 22px var(--whatsapp-glow);
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px var(--whatsapp-glow);
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-primary);
    background: #FFFFFF;
    outline: none;
    transition: all 0.2s;
}

.form-control:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.12);
}

/* ============================================================================
   5. VISTA 2: LOGIN CON FOTOGRAFÍA DEPORTIVA REAL
   ============================================================================ */
.auth-split-layout {
    max-width: 1120px;
    margin: 34px auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template-columns: 48% 52%;
    min-height: 650px;
    background: #FFFFFF;
    border: 1px solid var(--border-color);
}

.auth-hero-side {
    background:
        linear-gradient(165deg, rgba(6, 13, 26, 0.55) 0%, rgba(6, 13, 26, 0.92) 100%),
        url('../../assets/images/sports_gear_bg.jpg') center/cover no-repeat;
    color: #FFFFFF;
    padding: 46px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.auth-form-side {
    padding: 52px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.auth-box {
    width: 100%;
    max-width: 390px;
}

/* ============================================================================
   6. VISTAS 3, 9, 10, 11, 12: MI CUENTA Y KEEPER POINTS
   ============================================================================ */
.account-shell {
    max-width: 1360px;
    width: 100%;
    margin: 26px auto;
    padding: 0 28px;
}

.account-layout {
    display: grid;
    grid-template-columns: 270px 1fr;
    min-height: 690px;
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.account-sidebar {
    background: linear-gradient(180deg, #0B1629 0%, #060D1A 100%);
    color: #FFFFFF;
    padding: 28px 20px;
    display: flex;
    flex-direction: column;
}

.account-sidebar-logo {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 0 10px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    margin-bottom: 20px;
    cursor: pointer;
}

.account-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.account-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-radius: var(--radius-sm);
    color: #CBD5E1;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.account-nav-item i {
    width: 18px;
    text-align: center;
}

.account-nav-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
}

.account-nav-item.active {
    background: linear-gradient(90deg, var(--brand-primary) 0%, #FF7700 100%);
    color: #FFFFFF;
    box-shadow: 0 6px 16px rgba(6, 182, 212, 0.3);
}

.account-main {
    background: #F8FAFC;
    padding: 34px 40px;
}

.account-page-title {
    font-size: 25px;
    font-weight: 800;
    margin-bottom: 22px;
    color: var(--text-primary);
}

.points-summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.summary-card {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px 26px;
    box-shadow: var(--shadow-sm);
}

.points-big-display {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 8px;
}

.points-big-number {
    font-size: 46px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    letter-spacing: -1px;
}

.points-big-unit {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
}

.level-card-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.hex-badge {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #1E293B 0%, #090F1B 100%);
    color: #FFFFFF;
    clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0% 50%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    flex-shrink: 0;
}

.progress-track {
    width: 100%;
    height: 11px;
    background: #E2E8F0;
    border-radius: 99px;
    overflow: hidden;
    margin-top: 12px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--brand-primary) 0%, #FFA000 100%);
    border-radius: 99px;
    transition: width 0.5s ease;
}

.quick-actions-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 12px;
}

.quick-action-card {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.quick-action-card:hover {
    border-color: var(--brand-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* ============================================================================
   7. DETALLE DE PRODUCTO, CATÁLOGO, CARRITO Y CHECKOUT WHATSAPP
   ============================================================================ */
.catalog-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 28px;
}

.catalog-sidebar {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 22px;
    height: fit-content;
    box-shadow: var(--shadow-sm);
}

.filter-heading {
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.category-filter-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.category-filter-item {
    padding: 10px 14px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
}

.category-filter-item:hover {
    background: #F1F5F9;
    color: var(--text-primary);
}

.category-filter-item.active {
    background: #F1F5F9;
    color: var(--text-primary);
    font-weight: 800;
    border-left: 3.5px solid var(--brand-primary);
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 44px;
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 38px;
    box-shadow: var(--shadow-sm);
}

.gallery-main {
    background: #F1F5F9;
    border-radius: var(--radius-md);
    height: 440px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border: 1px solid var(--border-color);
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.gallery-thumbs {
    display: flex;
    gap: 12px;
}

.thumb-item {
    width: 82px;
    height: 82px;
    border-radius: 12px;
    border: 2.5px solid var(--border-color);
    background: #F8FAFC;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-item.active,
.thumb-item:hover {
    border-color: var(--brand-primary);
}

.size-pills {
    display: flex;
    gap: 10px;
    margin-top: 8px;
    margin-bottom: 22px;
}

.size-pill {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    border: 1.5px solid var(--border-color);
    background: #FFFFFF;
    font-size: 14.5px;
    font-weight: 800;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.size-pill.active {
    background: var(--bg-navy);
    color: #FFFFFF;
    border-color: var(--bg-navy);
    box-shadow: 0 6px 14px rgba(11, 21, 40, 0.25);
}

.qty-control {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    background: #FFFFFF;
}

.qty-btn {
    width: 38px;
    height: 38px;
    background: #F8FAFC;
    border: none;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.qty-val {
    width: 42px;
    text-align: center;
    font-size: 14.5px;
    font-weight: 800;
}

.cart-box {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 36px 40px;
    max-width: 880px;
    margin: 0 auto;
    box-shadow: var(--shadow-sm);
}

.cart-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 34px;
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 38px;
    box-shadow: var(--shadow-sm);
}

.whatsapp-direct-module {
    background: linear-gradient(145deg, #061A14 0%, #0C2E22 100%);
    color: #FFFFFF;
    border: 1px solid rgba(37, 211, 102, 0.45);
    border-radius: var(--radius-md);
    padding: 20px 22px;
    margin-bottom: 20px;
    box-shadow: 0 12px 28px rgba(16, 185, 129, 0.16);
}

.wa-step-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #D1FAE5;
    padding: 6px 0;
}

.wa-step-pill i {
    color: #34D399;
}

/* ============================================================================
   8. FOOTER Y COMPONENTES DE SISTEMA
   ============================================================================ */
.site-footer {
    background: #070D19;
    color: #94A3B8;
    padding: 52px 28px 36px;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
    max-width: 1360px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 36px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-col h4 {
    color: #FFFFFF;
    font-size: 13.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 14px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 9px;
    font-size: 13.5px;
}

.footer-links li {
    cursor: pointer;
    transition: color 0.2s;
}

.footer-links li:hover {
    color: #FFFFFF;
}

.footer-bottom {
    max-width: 1360px;
    margin: 22px auto 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12.5px;
    flex-wrap: wrap;
    gap: 12px;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}

.kpi-card {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: #FFFFFF;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.data-table th,
.data-table td {
    padding: 13px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    font-size: 13.5px;
}

.data-table th {
    background: #F8FAFC;
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 99px;
    font-size: 11.5px;
    font-weight: 700;
}

.status-pill.pendiente {
    background: #FEF3C7;
    color: #92400E;
}

.status-pill.pagado {
    background: #DCFCE7;
    color: #166534;
}

.toast-notification {
    position: fixed;
    top: 24px;
    right: 24px;
    background: #0B1528;
    color: #FFFFFF;
    border: 1px solid rgba(6, 182, 212, 0.5);
    padding: 14px 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    z-index: 10500;
    opacity: 0;
    transform: translateY(-15px);
    pointer-events: none;
    transition: all 0.3s ease;
}

.toast-notification.show {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================================
   RESPONSIVE DESIGN SYSTEM & MODERN BREAKPOINTS (MOBILE FIRST ADAPTATION)
   ============================================================================ */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 22px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: #FFFFFF;
}

.table-responsive .data-table {
    border: none;
    border-radius: 0;
    min-width: 620px;
    margin: 0;
}

.cart-item-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cart-item-info img {
    width: 82px;
    height: 82px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mobile-only {
    display: none !important;
}

/* TABLETS Y LAPTOPS (<= 1024px) */
@media (max-width: 1024px) {
    .content-max {
        padding: 24px 20px;
    }
    .header-container {
        padding: 14px 20px;
        gap: 16px;
    }
    .products-grid-4 {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
    .products-grid-3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
    .trust-strip {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }
    .catalog-layout {
        grid-template-columns: 220px 1fr;
        gap: 20px;
    }
    .account-layout {
        grid-template-columns: 240px 1fr;
    }
    .checkout-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
    .product-detail-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
        padding: 28px;
    }
    .kpi-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
}

/* SMARTPHONES GRANDES Y TABLETS VERTICALES (<= 768px) */
@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
    .mobile-only {
        display: flex !important;
    }

    /* BARRA SUPERIOR PROMO */
    .top-promo-bar {
        padding: 8px 14px;
    }
    .top-promo-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
        font-size: 11px;
    }
    .top-promo-items {
        gap: 10px;
    }
    .quick-view-select {
        font-size: 11px;
        padding: 4px 6px;
        max-width: 145px;
    }

    /* HEADER TIENDA */
    .header-container {
        padding: 10px 14px;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: space-between;
    }
    .brand-logo {
        order: 1;
        gap: 8px;
    }
    .brand-logo img {
        height: 40px;
    }
    .logo-shield {
        width: 36px;
        height: 36px;
        font-size: 17px;
        border-radius: 9px;
    }
    .logo-text {
        font-size: 17px;
    }
    .logo-subtext {
        font-size: 8.5px;
        letter-spacing: 1px;
    }
    .header-actions {
        order: 2;
        margin-left: auto;
        gap: 7px;
    }
    .points-header-pill {
        padding: 6px 11px;
        font-size: 12px;
        gap: 5px;
    }
    .icon-action-btn {
        width: 38px;
        height: 38px;
        font-size: 14.5px;
    }
    .cart-badge {
        width: 18px;
        height: 18px;
        font-size: 10.5px;
        top: -3px;
        right: -3px;
    }
    .search-box {
        order: 3;
        width: 100%;
        max-width: 100%;
        margin-top: 2px;
    }
    .search-box input {
        padding: 10px 38px 10px 16px;
        font-size: 13.5px;
    }
    .search-box i {
        right: 14px;
        font-size: 14px;
    }

    /* SUBNAV */
    .subnav-container {
        padding: 0 14px;
        gap: 18px;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .subnav-container::-webkit-scrollbar {
        display: none;
    }
    .subnav-link {
        padding: 11px 2px;
        font-size: 12px;
        flex-shrink: 0;
    }

    /* CONTENEDOR GENERAL */
    .content-max {
        padding: 16px 12px;
    }

    /* HERO BANNER */
    .hero-campaign {
        padding: 28px 18px 62px;
        min-height: auto;
        border-radius: 16px;
    }
    .hero-bg-slide {
        background-position: 70% center;
    }
    .hero-carousel-arrow {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    .hero-carousel-arrow.prev { left: 8px; }
    .hero-carousel-arrow.next { right: 8px; }
    .hero-carousel-controls {
        left: 18px;
        right: auto;
        bottom: 14px;
        gap: 6px;
    }
    .hero-carousel-dot {
        height: 24px;
        padding: 0 9px;
        font-size: 10px;
    }
    .hero-content {
        max-width: 100%;
    }
    .hero-eyebrow {
        font-size: 10px;
        padding: 4px 10px;
        margin-bottom: 12px;
    }
    .hero-title {
        font-size: 26px;
        letter-spacing: -0.5px;
        line-height: 1.15;
        margin-bottom: 12px;
    }
    .hero-subtitle {
        font-size: 13.5px;
        line-height: 1.45;
        margin-bottom: 20px;
    }
    .hero-specs-row {
        gap: 16px;
        margin-top: 18px;
        padding-top: 14px;
    }
    .hero-spec-val {
        font-size: 15px;
    }
    .hero-spec-lbl {
        font-size: 11px;
    }

    /* GRILLAS DE PRODUCTOS (2 COLUMNAS EN SMARTPHONES) */
    .products-grid-4,
    .products-grid-3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .product-thumb {
        height: 155px;
    }
    .product-card-body {
        padding: 10px 10px 12px;
    }
    .product-category-label {
        font-size: 10px;
        margin-bottom: 2px;
    }
    .product-name {
        font-size: 13px;
        line-height: 1.25;
        min-height: 32px;
        margin-bottom: 4px;
    }
    .product-price {
        font-size: 15px;
        margin-bottom: 6px;
    }
    .product-points-badge {
        font-size: 10px;
        padding: 3px 6px;
        gap: 4px;
    }
    .product-card-badge {
        top: 8px;
        left: 8px;
        font-size: 9px;
        padding: 3px 6px;
        border-radius: 4px;
    }

    /* STRIP DE CONFIANZA */
    .trust-strip {
        grid-template-columns: 1fr;
        gap: 10px;
        margin: 20px 0 28px;
    }
    .trust-item {
        padding: 12px 14px;
        gap: 12px;
    }
    .trust-icon {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    /* BANNER DIVIDIDO */
    .promo-split-banner {
        grid-template-columns: 1fr;
        margin: 24px 0 16px;
        border-radius: 16px;
    }
    .promo-split-text {
        padding: 24px 18px;
    }
    .promo-split-text h2 {
        font-size: 22px !important;
    }
    .promo-split-img {
        min-height: 190px;
    }

    /* CATÁLOGO / TIENDA */
    .catalog-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .catalog-sidebar {
        padding: 14px;
        border-radius: 14px;
    }
    .category-filter-list {
        flex-direction: row;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 8px;
        padding-bottom: 4px;
    }
    .category-filter-list::-webkit-scrollbar {
        display: none;
    }
    .category-filter-item {
        padding: 7px 12px;
        font-size: 12.5px;
        border-radius: 8px;
        flex-shrink: 0;
        border-left: none;
        background: #F1F5F9;
    }
    .category-filter-item.active {
        background: var(--brand-primary);
        color: #FFFFFF;
        font-weight: 800;
        border-left: none;
    }
    .category-filter-item i {
        display: none;
    }

    /* DETALLE DE PRODUCTO */
    .product-detail-grid {
        grid-template-columns: 1fr;
        padding: 16px;
        gap: 20px;
        border-radius: 16px;
    }
    .gallery-main {
        height: 280px;
        border-radius: 12px;
        margin-bottom: 12px;
    }
    .gallery-thumbs {
        gap: 8px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 4px;
    }
    .gallery-thumbs::-webkit-scrollbar {
        display: none;
    }
    .thumb-item {
        width: 60px;
        height: 60px;
        border-radius: 10px;
        flex-shrink: 0;
    }
    .size-pills {
        gap: 8px;
        margin-bottom: 18px;
    }
    .size-pill {
        width: 44px;
        height: 44px;
        font-size: 13.5px;
    }

    /* CARRITO DE COMPRAS */
    .cart-box {
        padding: 18px 14px;
        border-radius: 16px;
    }
    .cart-item-row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 14px 0;
    }
    .cart-item-info {
        gap: 12px;
    }
    .cart-item-info img {
        width: 68px;
        height: 68px;
        border-radius: 10px;
    }
    .cart-item-actions {
        width: 100%;
        justify-content: space-between;
        padding-top: 10px;
        border-top: 1px dashed var(--border-color);
    }

    /* CHECKOUT WHATSAPP */
    .checkout-grid {
        grid-template-columns: 1fr;
        padding: 18px 14px;
        gap: 22px;
        border-radius: 16px;
    }
    .whatsapp-direct-module {
        padding: 16px 14px;
        border-radius: 12px;
    }

    /* MI CUENTA / FIDELIZACIÓN */
    .account-shell {
        padding: 0 10px;
        margin: 14px auto;
    }
    .account-layout {
        grid-template-columns: 1fr;
        min-height: auto;
        border-radius: 16px;
    }
    .account-sidebar {
        padding: 12px 14px;
        flex-direction: column;
        gap: 8px;
    }
    .account-sidebar-logo {
        padding: 0 0 10px;
        margin-bottom: 4px;
    }
    .account-nav {
        flex-direction: row;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 8px;
        width: 100%;
        padding-bottom: 4px;
    }
    .account-nav::-webkit-scrollbar {
        display: none;
    }
    .account-nav-item {
        padding: 8px 12px;
        font-size: 12.5px;
        flex-shrink: 0;
        border-radius: 8px;
    }
    .account-nav-item:last-child {
        margin-top: 0;
    }
    .account-main {
        padding: 18px 14px;
    }
    .points-summary-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .summary-card {
        padding: 18px 16px;
        border-radius: 14px;
    }
    .points-big-number {
        font-size: 36px;
    }
    .points-big-unit {
        font-size: 18px;
    }
    .quick-actions-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    /* INICIAR SESIÓN (VISTA 2) */
    .auth-split-layout {
        grid-template-columns: 1fr;
        min-height: auto;
        margin: 14px auto;
        border-radius: 16px;
    }
    .auth-hero-side {
        padding: 24px 18px;
        min-height: 140px;
        text-align: center;
        justify-content: center;
        align-items: center;
    }
    .auth-hero-side p {
        display: none;
    }
    .auth-form-side {
        padding: 28px 18px;
    }
    .auth-box {
        max-width: 100%;
    }

    /* BACKOFFICE ASLAN */
    .kpi-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .kpi-card {
        padding: 14px;
    }
    .kpi-card div:nth-child(2) {
        font-size: 22px;
    }

    /* FOOTER */
    .site-footer {
        padding: 34px 18px 24px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        padding-bottom: 24px;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* SMARTPHONES PEQUEÃ‘OS (<= 380px) */
@media (max-width: 380px) {
    .products-grid-4,
    .products-grid-3 {
        grid-template-columns: 1fr;
    }
    .product-thumb {
        height: 190px;
    }
    .kpi-grid {
        grid-template-columns: 1fr;
    }
    .header-actions .points-header-pill {
        padding: 5px 8px;
        font-size: 11px;
    }
    .logo-text {
        font-size: 15px;
    }
    .logo-shield {
        width: 32px;
        height: 32px;
        font-size: 15px;
    }
    .hero-title {
        font-size: 23px;
    }
}

/* ============================================================================
   MODAL DE SEGURIDAD PARA ACCESO ADMIN ASLAN (OCULTO Y CON CONTRASEÃ‘A)
   ============================================================================ */
.admin-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 10, 20, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeInModal 0.25s ease forwards;
}

.admin-modal-overlay.active {
    display: flex;
}

@keyframes fadeInModal {
    from { opacity: 0; }
    to { opacity: 1; }
}

.admin-modal-box {
    background: #0B1528;
    border: 1px solid rgba(6, 182, 212, 0.4);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(6, 182, 212, 0.15);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 420px;
    padding: 36px 32px;
    color: #FFFFFF;
    text-align: center;
    position: relative;
    animation: slideUpModal 0.25s ease forwards;
}

@keyframes slideUpModal {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.admin-modal-close {
    position: absolute;
    top: 16px;
    right: 18px;
    background: transparent;
    border: none;
    color: #94A3B8;
    font-size: 18px;
    cursor: pointer;
    transition: color 0.2s;
}

.admin-modal-close:hover {
    color: #FFFFFF;
}

.admin-modal-shield {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2) 0%, rgba(6, 182, 212, 0.05) 100%);
    border: 1px solid var(--brand-primary);
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin: 0 auto 18px;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.25);
}

.admin-modal-box h3 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.admin-modal-box p {
    font-size: 13.5px;
    color: #94A3B8;
    line-height: 1.5;
    margin-bottom: 22px;
}

.admin-pass-wrap {
    position: relative;
    margin-bottom: 20px;
}

.admin-pass-wrap input {
    width: 100%;
    padding: 13px 44px 13px 16px;
    border-radius: 10px;
    border: 1.5px solid rgba(255, 255, 255, 0.16);
    background: #060C18;
    color: #FFFFFF;
    font-size: 15px;
    outline: none;
    transition: all 0.2s;
}

.admin-pass-wrap input:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.2);
}

.admin-pass-wrap i {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94A3B8;
    cursor: pointer;
}

.admin-modal-error {
    color: #EF4444;
    font-size: 12.5px;
    font-weight: 700;
    margin-top: -12px;
    margin-bottom: 16px;
    display: none;
}

.admin-modal-error.show {
    display: block;
}

/* ============================================================================
   ESTUDIO PROFESIONAL PARA AGREGAR NUEVO MODELO (SOLO ADMIN ÚNICO)
   ============================================================================ */
.catalog-admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    background: linear-gradient(135deg, #0B1325 0%, #16233B 100%);
    border: 1.5px solid rgba(6, 182, 212, 0.45);
    border-radius: 16px;
    padding: 20px 26px;
    margin-bottom: 22px;
    color: #FFFFFF;
    box-shadow: 0 12px 30px rgba(11, 19, 37, 0.14);
}

.btn-add-model-pro {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #06B6D4 0%, #0891B2 100%);
    color: #FFFFFF;
    border: none;
    border-radius: 12px;
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.4px;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(6, 182, 212, 0.38);
    transition: all 0.22s ease;
}

.btn-add-model-pro:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(6, 182, 212, 0.52);
}

.model-studio-overlay {
    position: fixed;
    inset: 0;
    background: rgba(6, 12, 24, 0.82);
    backdrop-filter: blur(8px);
    z-index: 9500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
    animation: fadeInStudio 0.22s ease-out;
}

@keyframes fadeInStudio {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}

.model-studio-modal {
    width: 100%;
    max-width: 1120px;
    max-height: 92vh;
    background: #FFFFFF;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.48);
    border: 1px solid rgba(6, 182, 212, 0.35);
    display: flex;
    flex-direction: column;
}

.model-studio-header {
    background: linear-gradient(135deg, #0B1325 0%, #152238 100%);
    color: #FFFFFF;
    padding: 20px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.model-studio-close {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #FFFFFF;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.18s;
}

.model-studio-close:hover {
    background: #EF4444;
    border-color: #EF4444;
}

.model-studio-body {
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    gap: 24px;
    padding: 26px 28px;
    overflow-y: auto;
    background: #F8FAFC;
}

.model-step-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

.model-step-card:last-child {
    margin-bottom: 0;
}

.model-step-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #F1F5F9;
}

.model-step-num {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: var(--brand-primary);
    color: #FFFFFF;
    font-size: 12.5px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.model-step-title {
    font-size: 14.5px;
    font-weight: 800;
    color: var(--text-primary);
}

.photo-upload-zone {
    border: 2px dashed #CBD5E1;
    border-radius: 12px;
    padding: 16px;
    background: #F8FAFC;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
    transition: border-color 0.2s;
}

.photo-upload-zone:hover {
    border-color: var(--brand-primary);
}

.studio-thumb-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.studio-thumb-item {
    border: 2px solid #E2E8F0;
    border-radius: 10px;
    padding: 4px;
    background: #FFFFFF;
    cursor: pointer;
    text-align: center;
    transition: all 0.18s;
}

.studio-thumb-item.active {
    border-color: var(--brand-primary);
    background: #ECFEFF;
    box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.18);
}

.studio-thumb-item img {
    width: 100%;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
    margin-bottom: 4px;
}

.studio-thumb-item span {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--text-secondary);
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.model-live-preview-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #FFFFFF;
    border: 1.5px solid #E2E8F0;
    border-radius: 16px;
    padding: 20px;
    position: sticky;
    top: 0;
    height: fit-content;
}

.model-studio-footer {
    background: #FFFFFF;
    border-top: 1px solid #E2E8F0;
    padding: 16px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

@media (max-width: 920px) {
    .model-studio-body {
        grid-template-columns: 1fr;
        padding: 18px;
    }
    .studio-thumb-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .model-studio-header,
    .model-studio-footer {
        padding: 16px 18px;
    }
}




/* ============================================================================
   ETIQUETAS DE UBICACIÓN Y SALIDA (TIENDA VS ALMACÉN) & SERVICIOS / EVENTOS
   ============================================================================ */
.origin-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.origin-badge.tienda {
    background: #ECFEFF;
    color: #0891B2;
    border: 1px solid #67E8F9;
}

.origin-badge.almacen {
    background: #EEF2FF;
    color: #4338CA;
    border: 1px solid #A5B4FC;
}

.origin-badge.ambos {
    background: #F0FDFA;
    color: #0F766E;
    border: 1px solid #99F6E4;
}

.delivery-estimate-banner {
    background: #ECFEFF;
    border: 1.5px solid #67E8F9;
    border-radius: 12px;
    padding: 13px 16px;
    margin-bottom: 18px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #0E7490;
}

.schedule-banner-card {
    background: linear-gradient(135deg, #0B1528 0%, #132A4A 100%);
    border: 1.5px solid rgba(6, 182, 212, 0.5);
    border-radius: 18px;
    padding: 26px 30px;
    color: #FFFFFF;
    margin-bottom: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    box-shadow: 0 16px 40px rgba(6, 182, 212, 0.14);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
    margin-bottom: 32px;
}

.service-pro-card {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    box-shadow: var(--shadow-sm);
    transition: all 0.22s ease;
}

.service-pro-card:hover {
    transform: translateY(-4px);
    border-color: var(--brand-primary);
    box-shadow: 0 16px 34px rgba(6, 182, 212, 0.14);
}

/* ============================================================================
   PANEL ADMIN — LAYOUT CON BARRA LATERAL
   ============================================================================ */
.admin-wrap { max-width: 1400px; }
.admin-shell { display: grid; grid-template-columns: 250px 1fr; gap: 22px; align-items: start; }

.admin-sidebar {
    position: sticky; top: 92px;
    background: #0B1528; color: #E2E8F0;
    border-radius: 16px; padding: 18px 14px;
    display: flex; flex-direction: column; gap: 6px;
    box-shadow: 0 10px 28px rgba(11, 21, 40, 0.18);
}
.admin-side-brand { display: flex; align-items: center; gap: 10px; padding: 4px 6px 14px; border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: 6px; }
.admin-side-logo { background: #fff; border-radius: 10px; padding: 4px 6px; display: flex; flex-shrink: 0; }
.admin-side-logo img { height: 34px; width: auto; object-fit: contain; }
.admin-side-title { font-size: 13px; font-weight: 800; letter-spacing: 0.8px; color: #fff; }
.admin-side-sub { font-size: 11px; color: #94A3B8; margin-top: 1px; }

.admin-nav { display: flex; flex-direction: column; gap: 4px; }
.admin-nav-label { font-size: 10px; font-weight: 800; letter-spacing: 1.2px; color: #64748B; padding: 12px 10px 4px; }
.admin-nav-item {
    display: flex; align-items: center; gap: 11px; width: 100%;
    background: transparent; border: none; color: #CBD5E1; cursor: pointer;
    padding: 11px 12px; border-radius: 10px; font-family: inherit; font-size: 13.5px; font-weight: 600; text-align: left;
    transition: background 0.15s, color 0.15s;
}
.admin-nav-item i { width: 18px; text-align: center; font-size: 15px; color: #67E8F9; }
.admin-nav-item span { flex: 1; }
.admin-nav-item:hover { background: rgba(255,255,255,0.07); color: #fff; }
.admin-nav-item.active { background: linear-gradient(135deg, #06B6D4, #0891B2); color: #fff; box-shadow: 0 6px 16px rgba(6,182,212,0.3); }
.admin-nav-item.active i { color: #fff; }
.admin-badge { font-style: normal; font-size: 11px; font-weight: 800; background: #EF4444; color: #fff; border-radius: 99px; padding: 2px 8px; }
.admin-badge.soft { background: rgba(255,255,255,0.14); color: #E2E8F0; }
.admin-logout {
    margin-top: 14px; display: flex; align-items: center; gap: 10px; justify-content: center;
    background: rgba(239,68,68,0.12); color: #FCA5A5; border: 1px solid rgba(239,68,68,0.35);
    border-radius: 10px; padding: 10px; font-family: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
}
.admin-logout:hover { background: rgba(239,68,68,0.22); }

.admin-main { min-width: 0; }
.admin-topbar {
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px;
    background: #fff; border: 1px solid var(--border-color); border-radius: 16px; padding: 18px 22px; margin-bottom: 16px;
}
.admin-page-title { font-size: 22px; font-weight: 800; color: var(--bg-navy); margin: 0; }
.admin-page-sub { font-size: 12.5px; color: var(--text-muted); margin: 4px 0 0; }
.admin-user-chip { display: flex; align-items: center; gap: 10px; background: #F1F5F9; border-radius: 12px; padding: 8px 14px 8px 8px; }
.admin-user-avatar { width: 36px; height: 36px; border-radius: 10px; background: #06B6D4; color: #fff; display: flex; align-items: center; justify-content: center; }
.admin-user-name { font-size: 13px; font-weight: 800; color: var(--bg-navy); }
.admin-user-mail { font-size: 11.5px; color: var(--text-muted); }

.admin-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.admin-kpi { background: #fff; border: 1px solid var(--border-color); border-radius: 14px; padding: 16px; display: flex; align-items: center; gap: 13px; }
.admin-kpi-icon { width: 44px; height: 44px; border-radius: 12px; background: #ECFEFF; color: #0891B2; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.admin-kpi-label { font-size: 11.5px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.4px; }
.admin-kpi-value { font-size: 22px; font-weight: 800; color: var(--bg-navy); margin-top: 2px; }
.admin-kpi-value small { font-size: 12px; font-weight: 700; color: var(--text-muted); }

.btn-danger-soft {
    display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 12px;
    background: #FEF2F2; color: #DC2626; border: 1px solid #FECACA; border-radius: 10px;
    font-family: inherit; font-size: 11.5px; font-weight: 700; cursor: pointer;
}
.btn-danger-soft:hover { background: #FEE2E2; }

@media (max-width: 960px) {
    .admin-shell { grid-template-columns: 1fr; }
    .admin-sidebar { position: static; padding: 12px; }
    .admin-nav { flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 4px; }
    .admin-nav-label { display: none; }
    .admin-nav-item { width: auto; white-space: nowrap; }
    .admin-logout { margin-top: 8px; }
    .admin-kpis { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================================
   VENDEDORES, PERMISOS Y PUNTOS EN PANEL ADMIN
   ============================================================================ */
.admin-refresh-btn {
    display: inline-flex; align-items: center; gap: 7px;
    background: #F1F5F9; color: var(--bg-navy); border: 1px solid var(--border-color);
    border-radius: 10px; padding: 9px 14px; font-family: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer;
}
.admin-refresh-btn:hover { background: #E2E8F0; }

.admin-owner-card {
    background: linear-gradient(135deg, #0B1528 0%, #162238 100%);
    color: #FFFFFF; border: 1px solid rgba(6, 182, 212, 0.45);
}
.admin-owner-pill {
    background: rgba(16, 185, 129, 0.18); border: 1px solid #34D399; color: #6EE7B7;
    padding: 6px 14px; border-radius: 99px; font-size: 11.5px; font-weight: 800;
}
.owner-abilities {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 8px;
}
.owner-abilities span {
    display: flex; align-items: center; gap: 8px;
    background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 11px; border-radius: 10px; font-size: 12.5px; font-weight: 600; color: #E2E8F0;
}
.owner-abilities span i { color: #67E8F9; width: 16px; text-align: center; }

.mini-label { font-size: 12px; font-weight: 700; display: block; margin-bottom: 4px; color: var(--text-primary); }

.seller-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 16px; }
.seller-card {
    background: #FFFFFF; border: 1px solid var(--border-color); border-radius: 16px;
    padding: 18px; display: flex; flex-direction: column; gap: 14px;
    box-shadow: 0 4px 16px rgba(11, 21, 40, 0.04);
}
.seller-card.suspended { opacity: 0.85; border-color: #FDE68A; }
.seller-head { display: flex; align-items: center; gap: 12px; }
.seller-avatar {
    width: 44px; height: 44px; border-radius: 12px; background: var(--bg-navy); color: #FFFFFF;
    display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 800; flex-shrink: 0;
}
.seller-id { flex: 1; min-width: 0; }
.seller-name { font-size: 16px; font-weight: 800; color: var(--bg-navy); }
.seller-mail { font-size: 12px; color: var(--text-muted); word-break: break-all; }

.seller-meta {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px;
    background: #F8FAFC; border: 1px solid var(--border-color); border-radius: 12px; padding: 10px 12px;
}
.seller-meta div { display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; }
.seller-meta span { font-size: 10.5px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; }

.seller-perms-title { font-size: 12px; font-weight: 800; color: var(--bg-navy); display: flex; align-items: center; gap: 7px; }
.seller-perms-title i { color: var(--brand-primary); }

.perm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; }
.perm-item {
    display: flex; align-items: flex-start; gap: 9px; padding: 9px 10px;
    border: 1px solid var(--border-color); border-radius: 10px; background: #FFFFFF;
    cursor: pointer; transition: border-color 0.15s, background 0.15s;
}
.perm-item:hover { border-color: var(--brand-primary); background: #F0FDFA; }
.perm-item input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--brand-primary); flex-shrink: 0; cursor: pointer; }
.perm-ico { color: var(--brand-primary); font-size: 14px; margin-top: 1px; width: 16px; text-align: center; flex-shrink: 0; }
.perm-txt { display: flex; flex-direction: column; gap: 2px; }
.perm-txt strong { font-size: 12.5px; color: var(--bg-navy); line-height: 1.2; }
.perm-txt small { font-size: 11px; color: var(--text-muted); line-height: 1.3; }

.seller-actions {
    display: flex; gap: 8px; flex-wrap: wrap; padding-top: 10px;
    border-top: 1px solid var(--border-color); margin-top: auto;
}

/* ============================================================================
   MODELOS COMPACTOS EXPANDIBLES + CUADRITOS DE COLOR
   ============================================================================ */
.color-cuadritos-row {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}
.color-cuadrito {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    border: 1.5px solid rgba(15, 23, 42, 0.22);
    display: inline-block;
    flex-shrink: 0;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.28);
}
.color-cuadrito-lg {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    border: 2px solid #CBD5E1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.14s, border-color 0.14s, box-shadow 0.14s;
    position: relative;
    padding: 0;
}
.color-cuadrito-lg:hover {
    transform: translateY(-1px);
    border-color: var(--brand-primary);
}
.color-cuadrito-lg.active {
    border-color: var(--bg-navy);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.38);
    transform: scale(1.06);
}
.color-cuadrito-lg i {
    font-size: 13px;
    color: #FFFFFF;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.model-list-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.model-row-card {
    background: #FFFFFF;
    border: 1.5px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.18s, box-shadow 0.18s;
}
.model-row-card.open {
    border-color: var(--brand-primary);
    box-shadow: 0 10px 26px rgba(6, 182, 212, 0.12);
}
.model-row-summary {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    cursor: pointer;
    user-select: none;
}
.model-row-summary:hover {
    background: #F8FAFC;
}
.model-row-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 220px;
    flex: 1.4;
}
.model-row-thumb {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}
.model-row-right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.model-expand-box {
    border-top: 1px solid var(--border-color);
    background: #F8FAFC;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.model-expand-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.model-sub-panel {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 13px 15px;
}
@media (max-width: 760px) {
    .model-expand-top { grid-template-columns: 1fr; }
    .model-row-summary { padding: 14px; }
    .model-expand-box { padding: 14px; }
}
