/* ========================================================
   CCM PERFUMES ÁRABES - ESTILOS MAESTROS (CSS3 VANILLA)
   Diseño de Lujo Oriental | Modo Oscuro por defecto y Modo Claro
   Sin dependencias de frameworks CSS
   ======================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;800&family=Montserrat:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;1,400&display=swap');

/* --- 1. VARIABLES Y TOKENS DE DISEÑO --- */
:root {
    /* MODO OSCURO (POR DEFECTO) */
    --theme-name: 'dark';
    --bg-primary: #0A0A0A;
    --bg-secondary: #121212;
    --bg-card: #171717;
    --bg-card-hover: #1E1E1E;
    --bg-glass: rgba(14, 14, 14, 0.88);
    --bg-input: #1C1C1C;
    --bg-accent: #231E15;

    /* PALETA DORADA REGIA (Extraída del logo) */
    --gold-primary: #D4AF37;
    --gold-light: #F4E29C;
    --gold-dark: #996515;
    --gold-hover: #E5C378;
    --gold-glow: rgba(212, 175, 55, 0.22);
    --gold-gradient: linear-gradient(135deg, #F5D77F 0%, #D4AF37 50%, #996515 100%);
    --gold-gradient-subtle: linear-gradient(180deg, rgba(212, 175, 55, 0.12) 0%, rgba(212, 175, 55, 0.02) 100%);

    /* TEXTOS Y CONTRASTE */
    --text-primary: #F8F7F4;
    --text-secondary: #BDBBB5;
    --text-muted: #7E7B74;
    --text-gold: #E5C378;

    /* BORDES Y SOMBRAS */
    --border-color: rgba(212, 175, 55, 0.22);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(212, 175, 55, 0.65);
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.6);
    --shadow-luxury: 0 18px 45px -10px rgba(0, 0, 0, 0.85), 0 0 25px rgba(212, 175, 55, 0.15);
    --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.5);

    /* ESTADOS */
    --success: #2ECC71;
    --danger: #E74C3C;
    --warning: #F39C12;
    --info: #3498DB;

    /* TIPOGRAFÍAS */
    --font-heading: 'Cinzel', serif;
    --font-serif: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;

    /* TRANSICIONES Y RADIOS */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-slow: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- MODO CLARO (SOFISTICADO MARFIL / ARENA DORADA) --- */
[data-theme="light"] {
    --theme-name: 'light';
    --bg-primary: #FBF9F5;
    --bg-secondary: #F3EEE4;
    --bg-card: #FFFFFF;
    --bg-card-hover: #F8F5EE;
    --bg-glass: rgba(251, 249, 245, 0.92);
    --bg-input: #FFFFFF;
    --bg-accent: #EFE8DA;

    --gold-primary: #B8860B;
    --gold-light: #D4AF37;
    --gold-dark: #7A5807;
    --gold-hover: #996515;
    --gold-glow: rgba(184, 134, 11, 0.16);
    --gold-gradient: linear-gradient(135deg, #D4AF37 0%, #B8860B 60%, #7A5807 100%);
    --gold-gradient-subtle: linear-gradient(180deg, rgba(184, 134, 11, 0.08) 0%, rgba(184, 134, 11, 0.01) 100%);

    --text-primary: #1C1917;
    --text-secondary: #57534E;
    --text-muted: #8C877D;
    --text-gold: #996515;

    --border-color: rgba(184, 134, 11, 0.25);
    --border-subtle: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(184, 134, 11, 0.6);
    --shadow-sm: 0 4px 12px rgba(90, 75, 50, 0.06);
    --shadow-md: 0 10px 25px rgba(90, 75, 50, 0.1);
    --shadow-luxury: 0 16px 36px -8px rgba(180, 150, 100, 0.22), 0 0 15px rgba(184, 134, 11, 0.08);
    --shadow-card: 0 8px 20px rgba(90, 75, 50, 0.08);
}

/* --- 2. RESET Y BASE --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

ul, ol {
    list-style: none;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    border: none;
    outline: none;
    background: transparent;
}

button {
    cursor: pointer;
}

/* --- 3. TIPOGRAFÍAS DE LUJO --- */
h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: var(--font-heading);
    letter-spacing: 0.06em;
    font-weight: 600;
    line-height: 1.25;
    color: var(--text-primary);
}

.font-serif {
    font-family: var(--font-serif);
}

.text-gold {
    color: var(--gold-primary);
}

.text-gold-gradient {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.tracking-luxury {
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

/* --- 4. LAYOUT Y CONTENEDORES --- */
.container {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.container-narrow {
    max-width: 960px;
}

.section {
    padding-top: 5rem;
    padding-bottom: 5rem;
    position: relative;
}

.section-title-wrap {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-subtitle {
    font-size: 0.8rem;
    color: var(--gold-primary);
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-weight: 600;
    margin-bottom: 0.6rem;
    display: block;
}

.section-title {
    font-size: 2.25rem;
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--gold-gradient);
}

/* --- 5. COMPONENTES: BOTONES --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 1.8rem;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-gold {
    background: var(--gold-gradient);
    color: #0A0A0A;
    font-weight: 700;
    box-shadow: 0 4px 16px var(--gold-glow);
    border: 1px solid var(--gold-light);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
    filter: brightness(1.08);
}

.btn-outline-gold {
    border: 1px solid var(--gold-primary);
    color: var(--gold-primary);
    background: transparent;
}

.btn-outline-gold:hover {
    background: var(--gold-gradient);
    color: #0A0A0A;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--gold-glow);
}

.btn-dark {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-dark:hover {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.55rem 1.1rem;
    font-size: 0.75rem;
}

.btn-block {
    width: 100%;
}

/* --- 6. BARRA SUPERIOR Y NAVEGACIÓN --- */
.top-bar {
    background: #000000;
    color: var(--gold-light);
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.5rem 1rem;
    text-align: center;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

.main-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-glass);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 0;
    gap: 1.5rem;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.brand-logo-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--gold-primary);
    object-fit: cover;
    box-shadow: 0 0 10px var(--gold-glow);
    transition: var(--transition);
}

.brand-logo:hover .brand-logo-img {
    transform: rotate(5deg) scale(1.05);
    box-shadow: 0 0 18px rgba(212, 175, 55, 0.4);
}

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

.brand-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--text-primary);
    line-height: 1.1;
}

.brand-subtitle {
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold-primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-secondary);
    font-weight: 500;
    position: relative;
    padding: 0.4rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--gold-gradient);
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--gold-primary);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* --- NAVEGACIÓN DROPDOWN CATÁLOGO --- */
.nav-item-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nav-item-dropdown .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    cursor: pointer;
}

.nav-item-dropdown .dropdown-chevron {
    font-size: 0.65rem;
    transition: transform 0.3s ease;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(14px);
    min-width: 290px;
    background: rgba(14, 14, 14, 0.98);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.75rem 0;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.85), 0 0 25px rgba(212, 175, 55, 0.15);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    z-index: 1000;
}

[data-theme="light"] .nav-dropdown-menu {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15), 0 0 20px rgba(184, 134, 11, 0.12);
}

.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    right: 0;
    height: 15px;
}

.nav-item-dropdown:hover .nav-dropdown-menu,
.nav-item-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(6px);
}

.nav-item-dropdown:hover .dropdown-chevron {
    transform: rotate(180deg);
}

.dropdown-header-title {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--gold-primary);
    padding: 0.4rem 1.25rem 0.3rem 1.25rem;
    font-weight: 700;
}

.nav-dropdown-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 1.25rem;
    color: var(--text-secondary);
    font-size: 0.82rem;
    transition: var(--transition);
    text-decoration: none;
}

.nav-dropdown-link-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-dropdown-link-left i {
    color: var(--gold-primary);
    width: 16px;
    text-align: center;
    font-size: 0.85rem;
    transition: transform 0.2s ease;
}

.nav-dropdown-link:hover {
    color: var(--gold-light);
    background: var(--bg-card);
    padding-left: 1.5rem;
}

.nav-dropdown-link:hover .nav-dropdown-link-left i {
    transform: scale(1.15);
}

.nav-dropdown-divider {
    height: 1px;
    background: var(--border-subtle);
    margin: 0.4rem 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    transition: var(--transition);
    position: relative;
}

.action-btn:hover {
    color: var(--gold-primary);
    border-color: var(--gold-primary);
    box-shadow: 0 0 12px var(--gold-glow);
    transform: translateY(-2px);
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--gold-gradient);
    color: #000;
    font-size: 0.65rem;
    font-weight: 700;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-primary);
}

.mobile-menu-toggle {
    display: none;
}

/* --- 7. HERO SECTION --- */
.hero-oriental {
    position: relative;
    min-height: 82vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(ellipse at center, rgba(35, 28, 15, 0.7) 0%, rgba(10, 10, 10, 0.98) 75%), 
                url('../img/hero_pattern.png');
    background-size: cover;
    background-position: center;
    overflow: hidden;
    padding: 4rem 1.5rem;
}

.hero-oriental::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 45%, rgba(212, 175, 55, 0.12) 0%, transparent 60%);
    pointer-events: none;
}

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

.hero-emblem {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem auto;
    border-radius: 50%;
    border: 3px solid var(--gold-primary);
    box-shadow: 0 0 35px var(--gold-glow);
    animation: pulse-glow 4s infinite ease-in-out;
}

.hero-tag {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.35em;
    color: var(--gold-primary);
    display: inline-block;
    margin-bottom: 1.2rem;
    font-weight: 600;
}

.hero-title {
    font-size: clamp(2.5rem, 5.5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 620px;
    margin: 0 auto 2.5rem auto;
    font-weight: 300;
    line-height: 1.8;
}

.hero-cta-group {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- 8. TARJETAS DE PERFUMES (PRODUCT CARDS) --- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.perfume-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.perfume-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-luxury);
    background: var(--bg-card-hover);
}

.card-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    background: radial-gradient(circle at center, rgba(212, 175, 55, 0.08) 0%, rgba(0, 0, 0, 0.4) 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

[data-theme="light"] .card-img-wrap {
    background: radial-gradient(circle at center, rgba(184, 134, 11, 0.06) 0%, rgba(240, 235, 225, 0.8) 100%);
}

.card-img-wrap img {
    max-height: 90%;
    object-fit: contain;
    transition: var(--transition-slow);
}

.card-img-hover {
    position: absolute;
    inset: 0;
    margin: auto;
    opacity: 0;
}

.perfume-card:hover .card-img-main {
    transform: scale(1.08);
}

.perfume-card:hover .card-img-hover {
    opacity: 1;
    transform: scale(1.08);
}

.card-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    z-index: 3;
}

.badge {
    padding: 0.25rem 0.65rem;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border-radius: var(--radius-sm);
}

.badge-gold {
    background: var(--gold-gradient);
    color: #000;
}

.badge-new {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #FFF;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge-sale {
    background: #E74C3C;
    color: #FFF;
}

.badge-gender {
    background: rgba(0, 0, 0, 0.65);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
    backdrop-filter: blur(4px);
}

.card-details {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-brand {
    font-size: 0.72rem;
    color: var(--gold-primary);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: 0.35rem;
    font-weight: 600;
}

.card-title {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    line-height: 1.3;
}

.card-title a:hover {
    color: var(--gold-primary);
}

.card-specs {
    display: flex;
    gap: 0.8rem;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 0.85rem;
}

.card-pyramid-preview {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1.2rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle);
}

.price-wrap {
    display: flex;
    flex-direction: column;
}

.price-old {
    font-size: 0.75rem;
    text-decoration: line-through;
    color: var(--text-muted);
}

.price-current {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-heading);
}

.btn-card-cart {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gold-gradient);
    color: #000;
    font-size: 1rem;
    transition: var(--transition);
    border: none;
}

.btn-card-cart:hover {
    transform: scale(1.1) rotate(6deg);
    box-shadow: 0 0 16px var(--gold-glow);
}

/* --- 9. PIRÁMIDE OLFATIVA INTERACTIVA --- */
.olfactory-pyramid {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    margin: 2rem 0;
}

.pyramid-header {
    text-align: center;
    margin-bottom: 1.8rem;
}

.pyramid-level {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.2rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    background: var(--bg-secondary);
    border-left: 4px solid var(--gold-primary);
    transition: var(--transition);
}

.pyramid-level:hover {
    transform: translateX(6px);
    background: var(--bg-card-hover);
    box-shadow: var(--shadow-sm);
}

.level-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gold-gradient-subtle);
    border: 1px solid var(--gold-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-primary);
    flex-shrink: 0;
}

.level-info h4 {
    font-size: 0.95rem;
    color: var(--gold-primary);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.level-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* --- 10. FILTROS Y BUSCADOR --- */
.filters-bar {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 2.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.search-input-wrap {
    position: relative;
    flex: 1;
    min-width: 250px;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.8rem;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.85rem;
    transition: var(--transition);
}

.search-input:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 12px var(--gold-glow);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold-primary);
}

.filter-select {
    padding: 0.75rem 1.2rem;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.82rem;
    cursor: pointer;
    transition: var(--transition);
}

.filter-select:focus {
    border-color: var(--gold-primary);
}

/* --- 11. CARRITO LATERAL (DRAWER) --- */
.cart-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.cart-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 440px;
    height: 100vh;
    background: var(--bg-card);
    border-left: 1px solid var(--border-color);
    z-index: 999;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.8);
}

.cart-drawer.active {
    transform: translateX(0);
}

.cart-drawer-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-drawer-title {
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.cart-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.cart-close-btn:hover {
    color: var(--gold-primary);
    background: var(--bg-secondary);
}

.cart-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding-bottom: 1.2rem;
    margin-bottom: 1.2rem;
    border-bottom: 1px solid var(--border-subtle);
    position: relative;
}

.cart-item-img {
    width: 70px;
    height: 85px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    object-fit: contain;
    padding: 0.3rem;
    border: 1px solid var(--border-subtle);
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
}

.cart-item-brand {
    font-size: 0.68rem;
    color: var(--gold-primary);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.cart-item-name {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.cart-item-price {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 700;
    font-family: var(--font-heading);
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 0.6rem;
}

.qty-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
}

.qty-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 0.8rem;
    transition: var(--transition);
}

.qty-btn:hover {
    color: var(--gold-primary);
}

.qty-number {
    width: 32px;
    text-align: center;
    font-size: 0.82rem;
    font-weight: 600;
}

.cart-item-remove {
    color: var(--text-muted);
    font-size: 0.8rem;
    transition: var(--transition);
    padding: 0.2rem;
}

.cart-item-remove:hover {
    color: var(--danger);
}

.cart-drawer-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.shipping-progress {
    margin-bottom: 1.2rem;
    padding: 0.8rem;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
    font-size: 0.75rem;
}

.shipping-bar {
    height: 4px;
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-top: 0.5rem;
}

.shipping-fill {
    height: 100%;
    background: var(--gold-gradient);
    transition: width 0.4s ease;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.cart-summary-row.total {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-heading);
    padding-top: 0.6rem;
    border-top: 1px solid var(--border-subtle);
    margin-top: 0.6rem;
}

/* --- 12. PÁGINA DE CHECKOUT Y FORMULARIOS --- */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 3rem;
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--gold-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-input, .form-textarea {
    width: 100%;
    padding: 0.85rem 1.1rem;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.88rem;
    transition: var(--transition);
}

.form-input:focus, .form-textarea:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 12px var(--gold-glow);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.payment-options {
    display: grid;
    gap: 1rem;
    margin: 1.5rem 0;
}

.payment-method-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 1.2rem;
    background: var(--bg-card);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.payment-method-card:hover, .payment-method-card.selected {
    border-color: var(--gold-primary);
    background: var(--bg-card-hover);
    box-shadow: 0 0 15px var(--gold-glow);
}

.payment-radio {
    accent-color: var(--gold-primary);
    width: 18px;
    height: 18px;
}

/* --- 13. NOTIFICACIONES TOAST --- */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.toast {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--gold-primary);
    border-left: 5px solid var(--gold-primary);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-luxury);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    animation: toast-slide-in 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.toast-error {
    border-color: var(--danger);
    border-left-color: var(--danger);
}

@keyframes toast-slide-in {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* --- 14. FOOTER --- */
.site-footer {
    background: #050505;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding-top: 4.5rem;
    padding-bottom: 2rem;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3.5rem;
}

.footer-col h4 {
    color: var(--gold-light);
    font-size: 0.95rem;
    margin-bottom: 1.4rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.footer-links li {
    margin-bottom: 0.7rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.82rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--gold-primary);
    padding-left: 4px;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* --- 15. ANIMACIONES --- */
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 25px rgba(212, 175, 55, 0.2); }
    50% { box-shadow: 0 0 45px rgba(212, 175, 55, 0.45); }
}

.account-tabs {
    display: flex;
    gap: 1rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
}

.account-orders-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    align-items: start;
}

.account-tab-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 1rem 1.5rem;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.account-tab-btn:hover {
    color: var(--gold-light);
}

.account-tab-btn.active {
    color: var(--gold-primary);
}

.account-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gold-gradient);
    border-radius: 3px 3px 0 0;
}

.account-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

/* Cronología Visual de Seguimiento (5 Fases) */
.tracking-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2.2rem;
    margin-top: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.tracking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-subtle);
}

.tracking-timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: 2rem 0;
}

.tracking-timeline::before {
    content: '';
    position: absolute;
    top: 26px;
    left: 40px;
    right: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    z-index: 1;
}

.tracking-step {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    padding: 0 0.5rem;
}

.tracking-icon-box {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.tracking-step.completed .tracking-icon-box {
    background: var(--gold-gradient);
    border-color: var(--gold-light);
    color: #000;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.tracking-step.current .tracking-icon-box {
    background: var(--bg-card);
    border-color: var(--gold-primary);
    color: var(--gold-primary);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
    animation: pulse-glow 2s infinite ease-in-out;
}

.tracking-step-title {
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: var(--text-primary);
}

.tracking-step.completed .tracking-step-title,
.tracking-step.current .tracking-step-title {
    color: var(--gold-light);
}

.tracking-step-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
    max-width: 170px;
}

@media (max-width: 768px) {
    .tracking-timeline {
        flex-direction: column;
        gap: 1.8rem;
    }
    .tracking-timeline::before {
        top: 26px;
        bottom: 26px;
        left: 26px;
        width: 4px;
        height: auto;
        right: auto;
    }
    .tracking-step {
        flex-direction: row;
        text-align: left;
        gap: 1.2rem;
        padding: 0;
    }
    .tracking-icon-box {
        margin-bottom: 0;
        flex-shrink: 0;
    }
    .tracking-step-desc {
        max-width: 100%;
    }
}

/* --- 15-C. BANNER DE CONSENTIMIENTO DE COOKIES --- */
.cookie-banner {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    max-width: 680px;
    margin: 0 auto;
    z-index: 10001;
    background: rgba(14, 14, 14, 0.96);
    backdrop-filter: blur(16px);
    border: 1px solid var(--gold-primary);
    border-radius: var(--radius-md);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.8), 0 0 25px rgba(212, 175, 55, 0.25);
    padding: 1.6rem 2rem;
    animation: cookie-slide-up 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    transition: transform 0.4s ease, opacity 0.4s ease;
}

[data-theme="light"] .cookie-banner {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.2), 0 0 25px rgba(184, 134, 11, 0.15);
}

@keyframes cookie-slide-up {
    from { transform: translateY(120%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.cookie-banner-content {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.cookie-banner-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 1px solid var(--gold-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-primary);
    font-size: 1.4rem;
    flex-shrink: 0;
}

.cookie-banner-text h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--text-primary);
}

.cookie-banner-text p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.cookie-banner-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    align-items: center;
}

@media (max-width: 640px) {
    .cookie-banner {
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
        padding: 1.25rem;
    }
    .cookie-banner-content {
        flex-direction: column;
        gap: 1rem;
    }
}



/* --- 17. PANEL DE ADMINISTRACIÓN RESPONSIVE --- */
.admin-layout {
    display: flex;
    min-height: 100vh;
    position: relative;
    background: var(--bg-primary);
}

.admin-sidebar {
    width: 260px;
    background: #000000;
    border-right: 1px solid var(--border-color);
    padding: 2rem 1.25rem;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    z-index: 1050;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-main {
    flex: 1;
    padding: 2.5rem;
    background: var(--bg-primary);
    overflow-y: auto;
    min-width: 0;
}

.admin-mobile-topbar {
    display: none;
    background: #000000;
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 1.25rem;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 999;
}

.btn-admin-menu-toggle {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--gold-primary);
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-admin-menu-toggle:hover {
    border-color: var(--gold-primary);
    box-shadow: 0 0 10px var(--gold-glow);
}

.admin-sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.admin-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.admin-sidebar-close {
    display: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    cursor: pointer;
    margin-left: auto;
}

/* Envoltorio responsivo universal para tablas */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}

.table-responsive table {
    width: 100%;
    min-width: 650px;
    border-collapse: collapse;
}

/* --- 18. DRAWER DE NAVEGACIÓN MÓVIL (STOREFRONT) --- */
.mobile-menu-toggle {
    display: none;
}

.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 320px;
    max-width: 85vw;
    background: var(--bg-surface);
    border-right: 1px solid var(--border-color);
    box-shadow: 10px 0 35px rgba(0, 0, 0, 0.7);
    z-index: 1001;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

[data-theme="dark"] .mobile-nav-drawer {
    background: #0E0E0E;
    border-right: 1px solid rgba(212, 175, 55, 0.2);
}

[data-theme="light"] .mobile-nav-drawer {
    background: #FFFFFF;
    border-right: 1px solid rgba(184, 134, 11, 0.2);
}

.mobile-nav-drawer.active {
    transform: translateX(0);
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.mobile-nav-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    transition: var(--transition);
}

.mobile-nav-close:hover {
    color: var(--gold-primary);
    border-color: var(--gold-primary);
}

.mobile-nav-search {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-subtle);
    position: relative;
    display: flex;
    align-items: center;
}

.mobile-search-icon {
    position: absolute;
    left: 2rem;
    color: var(--gold-primary);
    font-size: 0.85rem;
}

.mobile-search-input {
    width: 100%;
    padding: 0.65rem 2.5rem 0.65rem 2.2rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-primary);
    transition: var(--transition);
}

.mobile-search-input:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 10px var(--gold-glow);
}

.mobile-search-submit {
    position: absolute;
    right: 1.6rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 0.4rem;
}

.mobile-search-submit:hover {
    color: var(--gold-primary);
}

.mobile-nav-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.25rem;
    -webkit-overflow-scrolling: touch;
}

.mobile-nav-group-title {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--gold-primary);
    margin: 1.25rem 0 0.5rem 0.5rem;
    font-weight: 700;
}

.mobile-nav-group-title:first-child {
    margin-top: 0.25rem;
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 0.85rem;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.88rem;
    transition: var(--transition);
}

.mobile-nav-link i {
    width: 20px;
    text-align: center;
    font-size: 0.95rem;
}

.mobile-nav-link:hover, .mobile-nav-link.active {
    background: var(--bg-card);
    color: var(--gold-primary);
    border-left: 3px solid var(--gold-primary);
    transform: translateX(4px);
}

.badge-mini-gold {
    background: var(--gold-gradient);
    color: #000;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 10px;
    margin-left: auto;
    text-transform: uppercase;
}

.mobile-nav-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mobile-nav-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.mobile-nav-help {
    font-size: 0.72rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.product-detail-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3.5rem;
    align-items: start;
}

.order-detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.admin-two-cols {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2.5rem;
    align-items: start;
}

.settings-grid-row {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 1rem;
}

/* --- 18-B. PÁGINA DE CONTACTO Y LOCALIZACIÓN --- */
.contact-layout {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
    align-items: start;
    margin-bottom: 3.5rem;
}

.contact-form-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-info-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    transition: var(--transition);
}

.contact-info-item:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-luxury);
}

.contact-icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 1px solid var(--gold-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-primary);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-map-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-top: 3rem;
}

.contact-map-header {
    padding: 1.25rem 2rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    background: var(--bg-secondary);
}

.contact-map-iframe {
    width: 100%;
    height: 420px;
    border: 0;
    display: block;
}

/* --- 19. REGLAS RESPONSIVE MEDIA QUERIES GENERALES --- */
@media (max-width: 992px) {
    .contact-layout {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
    }
    .order-detail-grid {
        grid-template-columns: 1fr !important;
    }
    .account-orders-layout {
        grid-template-columns: 1fr !important;
    }
    .admin-two-cols {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    .checkout-layout {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .nav-links {
        display: none !important;
    }
    .mobile-menu-toggle {
        display: flex !important;
    }
    .product-detail-layout {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
    }
    .admin-layout {
        flex-direction: column !important;
    }
    .admin-mobile-topbar {
        display: flex !important;
    }
    .admin-sidebar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        transform: translateX(-100%) !important;
        box-shadow: 0 0 35px rgba(0, 0, 0, 0.85) !important;
    }
    .admin-sidebar.active {
        transform: translateX(0) !important;
    }
    .admin-sidebar-close {
        display: flex !important;
    }
    .admin-main {
        padding: 1.5rem 1rem !important;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem !important;
    }
    .hero-desc {
        font-size: 0.95rem !important;
    }
    .hero-cta-group {
        flex-direction: column !important;
        width: 100% !important;
        max-width: 320px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    .hero-cta-group .btn {
        width: 100% !important;
    }
    .stat-card-grid {
        grid-template-columns: 1fr 1fr !important;
    }
    .pyramid-level {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }
}

@media (max-width: 640px) {
    .section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    .hero-oriental {
        padding: 4rem 1rem !important;
    }
    .hero-title {
        font-size: 1.85rem !important;
    }
    .footer-grid {
        grid-template-columns: 1fr !important;
    }
    .form-row {
        grid-template-columns: 1fr !important;
    }
    .cart-drawer {
        max-width: 100% !important;
    }
    .footer-bottom {
        flex-direction: column !important;
        gap: 1rem !important;
        text-align: center !important;
    }
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
        gap: 1.25rem !important;
    }
    .stat-card-grid {
        grid-template-columns: 1fr !important;
    }
    .top-bar {
        font-size: 0.65rem !important;
        letter-spacing: 0.08em !important;
        padding: 0.4rem 0.5rem !important;
    }
    .brand-title {
        font-size: 1.1rem !important;
    }
    .brand-logo-img {
        width: 40px !important;
        height: 40px !important;
    }
    .header-actions {
        gap: 0.5rem !important;
    }
    .action-btn {
        width: 36px !important;
        height: 36px !important;
        font-size: 0.85rem !important;
    }
    .settings-grid-row {
        grid-template-columns: 1fr !important;
    }
    .settings-card {
        padding: 1.25rem !important;
    }
    .contact-form-box {
        padding: 1.5rem !important;
    }
    .contact-map-iframe {
        height: 320px !important;
    }
}
