/* ==========================================
   VARIABLES GLOBALES Y RESET
   ========================================== */
:root {
    --bg-black: #0B0B0B;
    --bg-dark-card: #141414;
    --bg-dark-soft: #111111;
    --gold-primary: #D4AF37;
    --gold-light: #F3E5AB;
    --gold-dark: #AA820A;
    --text-light: #FFFFFF;
    --text-muted: #B3B3B3;
    --font-title: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
}

body {
    background-color: var(--bg-black);
    color: var(--text-light);
    font-family: var(--font-body);
}

a {
    text-decoration: none;
    color: inherit;
}

/* ==========================================
   1. BARRA SUPERIOR DE ANUNCIOS (TICKER)
   ========================================== */
.top-announcement-bar {
    background: linear-gradient(90deg, #111, #222, #111);
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--gold-light);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 7px 0;
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
}

.ticker-track {
    display: inline-block;
    animation: ticker 25s linear infinite;
}

.ticker-item {
    display: inline-block;
    margin-right: 30px;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ==========================================
   2. HEADER PRINCIPAL 100% FIJO
   ========================================== */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(11, 11, 11, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.25);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.85);
}

.header-container {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-area {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-img {
    max-height: 65px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.4));
    transition: var(--transition);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-menu a {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-light);
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--gold-primary);
}

.header-right-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.icon-btn {
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    padding: 2px;
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -10px;
    background-color: var(--gold-primary);
    color: #000;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 50%;
    padding: 2px 6px;
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--gold-primary);
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
}

/* ==========================================
   3. HERO SLIDER
   ========================================== */
.hero-slider {
    position: relative;
    width: 100%;
    height: 75vh;
    min-height: 480px;
    background-color: #000;
    overflow: hidden;
    margin-top: 108px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
}

.hero-bg-video,
.hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.45) 100%);
    z-index: 2;
}

.slide-content {
    position: relative;
    width: 100%;
    max-width: 800px;
    padding: 0 30px;
    text-align: left;
    z-index: 3;
}

.slide-tag {
    color: var(--gold-primary);
    font-size: 0.85rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 12px;
}

.slide-title {
    font-family: var(--font-title);
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.15;
    margin-bottom: 18px;
    color: var(--text-light);
}

.slide-desc {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 25px;
    max-width: 550px;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--gold-primary);
    color: var(--gold-primary);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.arrow-left { left: 15px; }
.arrow-right { right: 15px; }

.btn-gold {
    display: inline-block;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    color: #000;
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 13px 28px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-outline-gold {
    display: inline-block;
    background: transparent;
    border: 1px solid var(--gold-primary);
    color: var(--gold-primary);
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 12px 24px;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-outline-gold:hover {
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold-light);
}

/* ==========================================
   4. CATÁLOGO Y PRODUCTOS POR SECCIONES
   ========================================== */
.section-container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 50px 15px;
}

.catalog-section-block {
    margin-bottom: 50px;
    width: 100%;
}

.catalog-section-block:last-child {
    margin-bottom: 0;
}

.catalog-section-header {
    text-align: center;
    margin-bottom: 30px;
}

.catalog-section-title {
    font-family: var(--font-title);
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    color: var(--text-light);
    margin-bottom: 10px;
}

.gold-divider {
    width: 80px;
    height: 2px;
    background: var(--gold-primary);
    margin: 0 auto;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 12px;
    width: 100%;
}

.product-card {
    background-color: var(--bg-dark-card);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 6px;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    position: relative;
}

.product-card:hover {
    border-color: var(--gold-primary);
    transform: translateY(-4px);
}

.product-img-box {
    height: 140px;
    width: 100%;
    background-color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    position: relative;
    cursor: pointer;
}

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

.product-img-box:hover img {
    transform: scale(1.08);
}

.btn-fav-card {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(10, 10, 10, 0.75);
    border: 1px solid rgba(212, 175, 55, 0.35);
    color: #ffffff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.82rem;
    transition: var(--transition);
    z-index: 5;
    backdrop-filter: blur(4px);
}

.btn-fav-card:hover,
.btn-fav-card.active {
    background: rgba(212, 175, 55, 0.25);
    border-color: var(--gold-primary);
    color: #ff4d4d;
    transform: scale(1.15);
}

.product-details {
    padding: 10px 6px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-brand {
    font-size: 0.6rem;
    color: var(--gold-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.product-name {
    font-family: var(--font-title);
    font-size: 0.82rem;
    margin-bottom: 4px;
    color: var(--text-light);
    line-height: 1.15;
}

.product-price {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gold-light);
    margin-bottom: 8px;
}

.btn-add-cart {
    width: 100%;
    padding: 6px 4px;
    background: transparent;
    border: 1px solid var(--gold-primary);
    color: var(--gold-primary);
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-add-cart:hover {
    background: var(--gold-primary);
    color: #000;
}

/* ==========================================
   5. LIGHTBOX / MODAL DE VISTA AGRANDADA DE FOTO
   ========================================== */
.lightbox-card {
    max-width: 580px;
    text-align: center;
}

.lightbox-img-preview-box {
    width: 100%;
    max-width: 320px;
    height: 320px;
    margin: 0 auto 18px auto;
    border-radius: 10px;
    border: 1px solid var(--gold-primary);
    overflow: hidden;
    background: #111;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
}

.lightbox-img-preview-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lightbox-price-display {
    font-family: var(--font-title);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gold-primary);
    margin-bottom: 20px;
}

/* ==========================================
   6. ESTRUCTURA Y ESTILOS DE FORMULARIOS DE LUJO
   ========================================== */
.form-group-gold {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left !important;
    width: 100% !important;
    margin-bottom: 18px !important;
}

.form-group-gold label {
    display: block !important;
    font-size: 0.8rem !important;
    color: var(--gold-light) !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    margin-bottom: 8px !important;
    font-weight: 600 !important;
}

.form-group-gold input[type="text"],
.form-group-gold input[type="password"],
.form-group-gold input[type="number"],
.form-group-gold input[type="tel"],
.form-group-gold select,
.form-group-gold textarea {
    width: 100% !important;
    background: #111111 !important;
    border: 1px solid rgba(212, 175, 55, 0.4) !important;
    color: #FFFFFF !important;
    padding: 12px 15px !important;
    border-radius: 6px !important;
    font-family: var(--font-body) !important;
    font-size: 0.92rem !important;
    box-sizing: border-box !important;
}

.form-group-gold input:focus,
.form-group-gold select:focus,
.form-group-gold textarea:focus {
    outline: none !important;
    border-color: var(--gold-primary) !important;
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.4) !important;
}

.file-input-gold {
    width: 100% !important;
    background: #181818 !important;
    border: 1px dashed rgba(212, 175, 55, 0.5) !important;
    color: var(--gold-light) !important;
    padding: 10px 12px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    font-size: 0.85rem !important;
}

.file-input-gold::-webkit-file-upload-button {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    color: #000;
    border: none;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.75rem;
    cursor: pointer;
    margin-right: 10px;
    transition: var(--transition);
}

.file-input-gold::-webkit-file-upload-button:hover {
    background: var(--gold-light);
}

.phone-input-wrapper {
    display: flex !important;
    width: 100% !important;
    gap: 10px !important;
    align-items: center !important;
}

.select-gold-phone {
    flex: 0 0 200px !important;
    background: #111111 !important;
    border: 1px solid rgba(212, 175, 55, 0.4) !important;
    color: #FFFFFF !important;
    padding: 12px 10px !important;
    border-radius: 6px !important;
    font-size: 0.88rem !important;
    cursor: pointer !important;
}

.select-gold-full {
    width: 100% !important;
    background: #111111 !important;
    border: 1px solid rgba(212, 175, 55, 0.4) !important;
    color: #FFFFFF !important;
    padding: 12px 15px !important;
    border-radius: 6px !important;
    font-size: 0.92rem !important;
    cursor: pointer !important;
}

.checkout-form {
    width: 100%;
    margin-top: 15px;
}

/* Paso 1: Selección de Cantidad */
.qty-img-preview-box {
    width: 100%;
    max-width: 220px;
    height: 220px;
    margin: 0 auto 15px auto;
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    overflow: hidden;
    background: #111;
}

.qty-img-preview-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.qty-unit-price {
    color: var(--gold-light);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.qty-selector-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.qty-input-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-btn {
    background: rgba(212, 175, 55, 0.2);
    border: 1px solid var(--gold-primary);
    color: var(--gold-primary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
}

.qty-input-controls input {
    width: 60px;
    text-align: center;
    background: #111;
    border: 1px solid var(--gold-primary);
    color: #fff;
    padding: 8px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1.05rem;
}

.qty-subtotal-display {
    font-family: var(--font-title);
    font-size: 1.2rem;
    color: var(--gold-primary);
    margin-top: 5px;
}

/* Paso 2: Carrito */
#cart-items-list-container,
#summary-items-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 40vh;
    overflow-y: auto;
    margin-bottom: 20px;
}

.cart-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(20, 20, 20, 0.85);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 8px;
    padding: 10px 14px;
    gap: 12px;
}

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

.cart-item-thumb {
    width: 45px;
    height: 45px;
    object-fit: cover;
    border-radius: 4px;
}

.cart-grand-total-box {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.12) 0%, rgba(20, 20, 20, 0.8) 100%);
    border: 1px solid var(--gold-primary);
    padding: 15px 20px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    margin: 15px 0;
}

.cart-grand-total-box strong {
    color: var(--gold-primary);
    font-size: 1.3rem;
}

.summary-info-card {
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 8px;
    padding: 15px;
    text-align: left;
    margin-bottom: 15px;
    font-size: 0.9rem;
    line-height: 1.6;
}

.modal-actions-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* ==========================================
   7. SECCIÓN SOBRE NOSOTROS, MODALES Y CMS
   ========================================== */
.bg-dark-soft {
    background-color: var(--bg-dark-soft);
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    width: 100%;
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.gold-subtitle {
    color: var(--gold-primary);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.section-title-left {
    font-family: var(--font-title);
    font-size: clamp(1.8rem, 3.5vw, 2.2rem);
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.2;
}

.split-text p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.7;
}

.about-img-frame {
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 15px;
    border-radius: 8px;
    background-color: var(--bg-black);
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-img {
    max-width: 100%;
    max-height: 220px;
    object-fit: contain;
}

/* Modales */
.story-modal-backdrop,
.fullscreen-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(5, 5, 5, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.story-modal-backdrop.active,
.fullscreen-modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.story-modal-card {
    background: linear-gradient(145deg, #141414 0%, #080808 100%);
    border: 1px solid var(--gold-primary);
    box-shadow: 0 0 50px rgba(212, 175, 55, 0.35);
    width: 92%;
    max-width: 820px;
    max-height: 85vh;
    border-radius: 12px;
    padding: 55px 25px 30px 25px;
    position: relative;
    overflow-y: auto;
}

.story-modal-close,
.fullscreen-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.5);
    color: var(--gold-primary);
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 1000;
    line-height: 1;
}

.story-modal-close:hover,
.fullscreen-modal-close:hover {
    background: var(--gold-primary);
    color: #000;
    transform: scale(1.1);
}

.story-header {
    text-align: center;
    margin-bottom: 25px;
    margin-top: 5px;
}

.story-title {
    font-family: var(--font-title);
    font-size: 2.2rem;
    color: var(--text-light);
    margin-top: 5px;
    margin-bottom: 15px;
}

.story-body {
    color: #E6E6E6;
    font-size: 1.02rem;
    line-height: 1.9;
    text-align: justify;
    font-weight: 300;
}

.story-body p {
    margin-bottom: 22px;
}

.story-body p::first-letter {
    font-family: var(--font-title);
    font-size: 2.2rem;
    color: var(--gold-primary);
    font-weight: 700;
    float: left;
    line-height: 1;
    margin-right: 10px;
    margin-top: 2px;
}

.story-body strong {
    color: var(--gold-light);
    font-weight: 600;
}

.contact-modal-card {
    max-width: 600px;
    text-align: center;
}

.contact-executive-info {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08) 0%, rgba(20, 20, 20, 0.6) 100%);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 10px;
    padding: 18px 15px;
    margin: 15px 0 22px 0;
}

.executive-name {
    font-family: var(--font-title);
    font-size: 1.35rem;
    color: var(--text-light);
    margin-bottom: 4px;
}

.executive-role {
    font-size: 0.8rem;
    color: var(--gold-primary);
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-weight: 600;
    margin-bottom: 10px;
}

.executive-quote {
    font-family: var(--font-title);
    font-style: italic;
    font-size: 0.98rem;
    color: var(--gold-light);
}

.contact-buttons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 100%;
}

.btn-social-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, #F3E5AB 0%, #D4AF37 50%, #AA820A 100%);
    color: #000;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 12px 16px;
    border-radius: 30px;
    text-decoration: none;
    width: 100%;
}

.btn-social-icon {
    height: 30px;
    width: auto;
}

.fav-items-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 55vh;
    overflow-y: auto;
    margin-top: 15px;
}

.fav-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(20, 20, 20, 0.85);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 8px;
    padding: 10px 14px;
    gap: 12px;
}

.fav-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.fav-item-thumb {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 4px;
}

.btn-fav-move-cart {
    background: var(--gold-primary);
    color: #000;
    font-weight: 700;
    border: none;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    cursor: pointer;
}

.btn-fav-remove {
    background: transparent;
    border: 1px solid #ff4d4d;
    color: #ff4d4d;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    cursor: pointer;
}

/* Login y CMS Editor Dashboard */
.login-card {
    background: #141414;
    border: 1px solid var(--gold-primary);
    padding: 35px 25px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    position: relative;
    text-align: center;
}

.editor-dashboard-card {
    background: #0d0d0d;
    border: 1px solid var(--gold-primary);
    width: 96vw;
    height: 94vh;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.editor-top-bar {
    background: #141414;
    padding: 12px 18px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.editor-body-layout {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.editor-tabs {
    width: 200px;
    background: #111;
    border-right: 1px solid rgba(212, 175, 55, 0.2);
    display: flex;
    flex-direction: column;
}

.editor-tab-btn {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: var(--text-muted);
    padding: 12px 15px;
    text-align: left;
    font-size: 0.82rem;
    cursor: pointer;
}

.editor-tab-btn.active {
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold-primary);
    font-weight: 600;
}

.editor-content-area {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.tab-pane { display: none; }
.tab-pane.active { display: block; }

.btn-gold-small {
    background: var(--gold-primary);
    color: #000;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 6px 12px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
}

.btn-outline-gold-small {
    background: transparent;
    border: 1px solid var(--gold-primary);
    color: var(--gold-primary);
    font-size: 0.75rem;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
}

.story-modal-close-static {
    background: transparent;
    border: none;
    color: var(--gold-primary);
    font-size: 1.8rem;
    cursor: pointer;
    margin-left: 8px;
}

.editor-hint {
    font-size: 0.8rem;
    color: var(--gold-light);
    margin-bottom: 12px;
}

.editor-divider {
    border: 0;
    height: 1px;
    background: rgba(212, 175, 55, 0.3);
    margin: 20px 0;
}

.editor-section-card {
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.editor-section-card h4 {
    color: var(--gold-primary);
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.editor-preview-box {
    margin-top: 10px;
    padding: 12px;
    background: rgba(15, 15, 15, 0.9);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.editor-preview-title {
    font-size: 0.75rem;
    color: var(--gold-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.editor-img-thumb {
    max-height: 80px;
    max-width: 180px;
    object-fit: contain;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 4px;
    background: #000;
}

.editor-products-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
    max-height: 380px;
    overflow-y: auto;
}

.editor-prod-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #141414;
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 6px;
    padding: 10px 14px;
    gap: 12px;
}

.editor-prod-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.editor-prod-thumb {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.editor-prod-title {
    font-size: 0.88rem;
    color: var(--text-light);
    font-weight: 600;
}

.editor-prod-sub {
    font-size: 0.75rem;
    color: var(--gold-primary);
}

.editor-prod-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* OVERLAY DE CARGA DE GITHUB API */
.editor-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 5, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.editor-loading-box {
    background: #141414;
    border: 1px solid var(--gold-primary);
    border-radius: 12px;
    padding: 35px 25px;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.35);
}

.spinner-gold {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(212, 175, 55, 0.2);
    border-top: 4px solid var(--gold-primary);
    border-radius: 50%;
    animation: spinGold 1s linear infinite;
}

@keyframes spinGold {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.editor-loading-title {
    font-family: var(--font-title);
    color: var(--gold-primary);
    font-size: 1.35rem;
}

.editor-loading-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ==========================================
   8. FOOTER CON BOTÓN DISCRETO "MI CUENTA"
   ========================================== */
footer {
    background-color: #050505;
    border-top: 1px solid rgba(212, 175, 55, 0.15);
    padding: 25px 20px;
    color: var(--text-muted);
}

.footer-container {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

footer p {
    font-size: 0.8rem;
}

.footer-admin-btn {
    background: transparent;
    border: none;
    color: #383838;
    font-size: 0.72rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-body);
    padding: 2px 6px;
    letter-spacing: 0.5px;
}

.footer-admin-btn:hover {
    color: #555555;
}

/* ==========================================
   9. MEDIA QUERIES RESPONSIVAS
   ========================================== */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 10px;
    }
}

@media (max-width: 900px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 65px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 65px);
        background-color: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 25px;
        transition: left 0.4s ease;
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu a {
        font-size: 1.1rem;
    }

    .hero-slider {
        height: 60vh;
        min-height: 400px;
        margin-top: 85px;
    }

    .split-layout {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }

    .contact-buttons-grid {
        grid-template-columns: 1fr;
    }

    .editor-body-layout {
        flex-direction: column;
    }

    .editor-tabs {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
        white-space: nowrap;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 8px 12px;
    }

    .logo-img {
        max-height: 42px;
    }

    .header-right-actions {
        gap: 10px;
    }

    .icon-btn {
        font-size: 1.1rem;
    }

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

    .section-container {
        padding: 30px 6px;
    }

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

    .product-img-box {
        height: 105px;
    }

    .product-details {
        padding: 5px 2px;
    }

    .product-brand {
        font-size: 0.52rem;
    }

    .product-name {
        font-size: 0.72rem;
    }

    .product-price {
        font-size: 0.72rem;
    }

    .btn-add-cart {
        padding: 4px 2px;
        font-size: 0.55rem;
    }

    .story-modal-card {
        padding: 55px 15px 20px 15px;
    }

    .gold-subtitle {
        font-size: 0.7rem;
        letter-spacing: 1.5px;
        padding: 0 15px;
    }

    .story-title {
        font-size: 1.7rem;
    }

    .story-body {
        font-size: 0.88rem;
        line-height: 1.75;
        text-align: left;
    }

    .story-body p::first-letter {
        font-size: 1.8rem;
    }

    .phone-input-wrapper {
        flex-direction: column !important;
    }

    .select-gold-phone {
        width: 100% !important;
        flex: 1 1 auto !important;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .lightbox-img-preview-box {
        max-width: 240px;
        height: 240px;
    }
}

/* Botón WhatsApp Flotante */
.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: #FFF;
    padding: 10px 16px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    z-index: 999;
}
