/*
Theme Name: CHECK IN Premium
Theme URI: https://checkinmayorista.com/
Author: Antigravity
Description: Tema premium personalizado para la renovación de CHECK IN Mayorista.
Version: 1.1.2
Template: twentytwentyfive
*/

/* 
=========================================
SISTEMA DE DISEÑO (DESIGN SYSTEM)
=========================================
*/
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #d9230f;
    --primary-light: #ff3c29;
    --secondary: #0a0a0b;
    --text: #1e293b;
    --text-light: #64748b;
    --bg: #f1f5f9;
    --bg-secondary: #ffffff;
    --glass: rgba(255, 255, 255, 0.7);
    --border: #e2e8f0;
    --radius-lg: 16px;
    --radius-md: 12px;
    --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 40px -15px rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.5;
    font-size: 0.9rem;
}


h1, h2, h3, h4, h5, h6 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 1rem;
    color: var(--secondary);
}

.section-title {
    font-size: 2.2rem;
    position: relative;
    padding-bottom: 12px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

a {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.container {
    max-width: 1440px; /* Expandido de 1200px */
    margin: 0 auto;
    padding: 0 24px;
}

/* 
=========================================
HEADER & NAVEGACIÓN
=========================================
*/
.top-notice-bar {
    background: var(--primary);
    color: white;
    padding: 6px 0;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    z-index: 1001;
    position: relative;
    line-height: 1;
}

.top-notice-bar p {
    margin: 0;
    padding: 0;
}

.main-header {
    background: #ffffff; /* Blanco sólido para resaltar sombra */
    box-shadow: 0 4px 15px rgba(0,0,0,0.06); /* El efecto LifeMiles solicitado */
    border-bottom: 1px solid rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo img {
    height: 45px;
    width: auto;
}

.main-nav ul {
    vertical-align: middle;
    display: flex;
    list-style: none;
    gap: 32px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.main-nav a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
}

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

.btn-agencias {
    background: var(--primary);
    border-radius: 50px;
}

.btn-agencias a {
    color: white !important;
    padding: 8px 18px !important;
    font-weight: 700 !important;
    font-size: 0.8rem !important;
    display: block;
}

.logo-img {
    height: 48px;
    width: auto;
    display: block;
}

/* Hamburguesa / Nav Toggle */
.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger {
    display: block;
    position: relative;
    width: 24px;
    height: 2px;
    background: var(--secondary);
    transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--secondary);
    transition: all 0.3s ease;
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

/* Animación Hamburguesa Activa */
.nav-toggle.active .hamburger { background: transparent; }
.nav-toggle.active .hamburger::before { transform: rotate(45deg); top: 0; }
.nav-toggle.active .hamburger::after { transform: rotate(-45deg); top: 0; }

@media (max-width: 992px) {
    .nav-toggle { display: block; }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: white;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        padding: 80px 30px;
        transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        z-index: 1000;
    }

    .main-nav.active { right: 0; }

    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .main-nav a {
        font-size: 1.1rem;
        display: block;
        width: 100%;
    }

    .btn-agencias {
        width: 100%;
        margin-top: 20px;
    }

    .btn-agencias a {
        text-align: center;
    }
}


/* 
=========================================
HERO SECTION
=========================================
*/
.premium-hero {
    position: relative;
    height: 400px; /* Reducción a 400px solicitado */
    display: flex;
    align-items: center;
    color: white;
    overflow: hidden;
    background-color: #000;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: #1a1a1a;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    pointer-events: none;
    z-index: 1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}

/* Mobile ordering for detail page */
/* Slide Content Overlay */
.slide-link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
}

.slide-content-overlay {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 0 20px;
}

.slide-subtitle {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 10px;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    animation: fadeInUp 0.8s ease forwards;
}

.slide-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 25px;
    color: #fff;
    text-transform: uppercase;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.5);
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.slide-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

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

/* Navigation Buttons */
.hero-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 30;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-nav-btn:hover {
    background: var(--primary-color);
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

.hero-nav-btn.prev { left: 20px; }
.hero-nav-btn.next { right: 20px; }

/* Dots Navigation */
.hero-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 30;
}

.hero-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.6);
}

.hero-dots .dot.active {
    background: #fff;
    width: 30px;
    border-radius: 10px;
}

/* CSS Auto-slider removed for JS robustness */

.hero-content {
    width: 100%;
    z-index: 2;
    pointer-events: none; /* Let clicks pass through to banners */
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.4);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 30px;
    letter-spacing: 0.2em;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--primary-light);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* 
=========================================
SEARCH BOX SYSTEM
=========================================
*/
.search-box-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.home-search {
    margin-top: 40px;
}

.archive-search {
    margin: 10px auto 30px !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

/* Common Tabs Stylings */
.search-tabs {
    display: flex;
    justify-content: center;
}

.search-tab {
    padding: 12px 24px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

/* Style 1: Minimalist Glass */
.search-style-minimalist {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.2);
}

.search-style-minimalist .search-tab {
    color: white;
    opacity: 0.7;
}

.search-style-minimalist .search-tab.active {
    opacity: 1;
}

.search-style-minimalist .search-tab.active:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    width: 60%;
    height: 2px;
    background: white;
}

/* Style 2: Solid (Default) */
.search-style-solid .search-tabs {
    background: #f8fafc;
    padding: 10px;
    gap: 10px;
}

.search-style-solid .search-tab {
    background: #e2e8f0;
    color: var(--text-light);
    border-radius: 50px;
    padding: 8px 20px;
}

.search-style-solid .search-tab.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(217,35,15,0.2);
}

/* Style 3: Panoramic */
.search-style-panoramic {
    background: transparent;
    box-shadow: none;
}

.search-style-panoramic .search-tabs {
    margin-bottom: 20px;
}

.search-style-panoramic .search-tab {
    color: white;
    font-size: 1.1rem;
}

.search-style-panoramic .search-tab.active {
    color: var(--primary);
    background: white;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.search-style-panoramic .search-form-inner {
    background: white;
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

/* Style 4: OTA Modern (New) */
.search-style-ota-modern {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.search-style-ota-modern .search-tabs {
    background: transparent !important;
    justify-content: flex-start !important;
    gap: 5px !important;
    margin-bottom: -1px; /* Solapar con el contenedor */
    padding: 0 20px !important;
    position: relative;
    z-index: 2;
}

.search-style-ota-modern .search-tab {
    background: rgba(255,255,255,0.15) !important;
    color: white !important;
    border-radius: 12px 12px 0 0 !important;
    padding: 12px 24px !important;
    font-size: 0.9rem !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    border-bottom: none !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0.8;
}

.search-style-ota-modern .search-tab.active {
    background: white !important;
    color: var(--secondary) !important;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.1);
    opacity: 1;
}

.search-style-ota-modern .search-form-inner {
    background: white !important;
    padding: 40px 30px !important;
    border-radius: 0 20px 20px 20px !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15) !important;
    border: none !important;
}

.search-style-ota-modern .search-grid {
    gap: 15px !important;
}

.search-style-ota-modern .search-field select {
    border: 1px solid #e2e8f0 !important;
    background-color: #f8fafc !important;
    padding: 15px 20px !important;
    font-size: 1rem !important;
}

/* Search Grid */
.search-form-inner {
    padding: 24px 30px;
}

.search-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.search-field {
    flex: 1 1 180px;
    min-width: 0;
}

.search-field select {
    width: 100%;
    padding: 12px 15px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: white;
    font-size: 0.9rem;
    font-weight: 500;
    outline: none;
    transition: all 0.3s;
}

.search-field select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(217,35,15,0.1);
}

.btn-search {
    background: var(--primary);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: var(--radius-md);
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 15px rgba(217, 35, 15, 0.3);
}

.btn-search:hover {
    background: #c11f0d;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(217, 35, 15, 0.4);
}

/* 
=========================================
PROMO CARDS & GRID
=========================================
*/
.featured-promos {
    padding: 40px 0 !important;
}

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

/* Default Grid (used in Home and sections with scroll) */
.promos-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 10px 5px 30px;
    scrollbar-width: none;
}

/* Archive & Explorer Specific Grid (Wrapping) */
.promotions-catalog .promos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Forzamos 4 columnas */
    gap: 30px; /* Mayor espacio en blanco para un look más premium con el nuevo ancho */
    overflow-x: visible;
    flex-wrap: wrap;
    padding: 20px 0;
}

.promotions-catalog .promo-card {
    flex: none;
    width: auto;
    min-width: 0;
}

.promos-grid::-webkit-scrollbar { display: none; }

.promo-card {
    flex: 0 0 calc(25% - 15px);
    min-width: 250px;
    scroll-snap-align: start;
}

/* ==========================================
   PROMOTIONS ARCHIVE & CARDS
   ========================================== */
.archive-header {
    background: transparent;
    padding: 20px 0 0px; /* Reducido drásticamente */
    text-align: left; /* Alineación a la izquierda para el nuevo flex layout */
}

.archive-header-flex {
    display: grid;
    grid-template-columns: 1fr auto 1fr; /* 3 columnas: [Vista] [Título] [Espacio] */
    align-items: center;
    gap: 20px;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 20px;
    text-align: center;
}

.archive-title {
    font-size: 1.8rem !important;
    font-weight: 800;
    color: #111;
    margin: 0;
    letter-spacing: -0.5px;
    text-transform: uppercase;
    line-height: 1;
    white-space: nowrap;
}

.title-group {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centramos el subtítulo y título */
}

.archive-subtitle {
    margin-bottom: 5px; 
    opacity: 0.7; 
    font-weight: 600; 
    text-transform: uppercase; 
    letter-spacing: 1px;
    font-size: 0.75rem;
}

.archive-title::after {
    display: none;
}

.promotions-catalog {
    padding: 0 0 40px;
    background: transparent;
    margin-top: 0; /* Eliminamos el margen negativo que causaba solapamiento */
}

/* View Selector Tabs */
.view-selector {
    display: flex;
    gap: 8px;
    justify-content: flex-start; /* Forzamos alineación izquierda */
}

/* Espaciador para equilibrar el grid y que el título quede al centro total */
.header-spacer {
    display: block;
}

.view-btn {
    padding: 8px 20px;
    border-radius: 50px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    border: 1px solid #eef2f6;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.view-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 8px 20px rgba(217, 35, 15, 0.2);
}

/* Explorer Layout */
.view-explorer .archive-layout-wrapper {
    display: grid;
    grid-template-columns: 300px 1fr; /* Sidebar un poco más ancho aprovechando el nuevo espacio */
    gap: 40px; /* Mayor separación para evitar sensación de apretado */
    align-items: flex-start;
    min-height: 800px; /* Asegura espacio para sticky sidebar */
}

/* Ajuste de columnas para el grid en modo explorer (4 columnas siempre) */
.view-explorer .promos-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 25px; /* Gap generoso */
}

.archive-sidebar {
    background: #fff;
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid #eef2f6;
    position: sticky;
    top: 120px;
    z-index: 50;
}

/* Sidebar Navigation Elements */
.nav-group {
    margin-bottom: 30px;
}

.nav-group:last-child {
    margin-bottom: 0;
}

.nav-group-title {
    font-size: 0.95rem;
    color: var(--secondary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.nav-group-title i {
    color: var(--primary);
    font-size: 1.1rem;
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    margin: 0 -12px;
    border-radius: 8px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

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

.nav-link .count {
    font-size: 0.75rem;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 20px;
    color: #888;
}

.sidebar-reset {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #e2e8f0;
}

.reset-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-light);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    width: 100%;
    justify-content: center;
}

.reset-link i {
    font-size: 1.1rem;
    color: var(--text-light);
}

.reset-link:hover {
    background: #fffafa;
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 4px 12px rgba(217, 35, 15, 0.1);
}

.reset-link:hover i {
    color: var(--primary);
}

@media (max-width: 1024px) {
    .view-explorer .promos-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .view-explorer .archive-layout-wrapper {
        grid-template-columns: 1fr;
    }
    .promotions-catalog .promos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Related items: Smaller on mobile */
    .related-grid-lg {
        gap: 15px !important;
    }
    .related-card-lg .promo-content {
        padding: 12px !important;
    }
    .related-card-lg .promo-title {
        font-size: 0.75rem !important;
        height: 2.4em !important;
    }
    .related-card-lg .promo-price span {
        font-size: 1rem !important;
    }
}

@media (max-width: 480px) {
    .promotions-catalog .promos-grid {
        grid-template-columns: 1fr;
    }
}

/* Removed redundant archive-search-wrapper styles */

/* Modern Filters UI */
.archive-search-wrapper .search-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    align-items: center;
}

.search-form-inner.archive-inner {
    padding: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    border: none !important;
    margin-top: 10px;
}

.search-form-inner.archive-inner .search-grid {
    gap: 8px;
    padding: 0;
}

.archive-inner .search-field select {
    padding: 10px 12px !important;
    font-size: 0.85rem !important;
    background-color: #fcfcfc !important;
}

.archive-inner .btn-search {
    padding: 10px 30px !important;
    font-size: 0.8rem !important;
}

.archive-search-wrapper select {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #eee;
    background: #f9f9f9;
    font-size: 0.9rem;
    color: #444;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M1 4l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
}

.archive-search-wrapper select:hover {
    border-color: var(--primary);
    background-color: #fff;
}

.archive-search-wrapper .btn-search {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.archive-search-wrapper .btn-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* ==========================================
   PREMIUM ARCHIVE HEADER
   ========================================== */
.archive-header {
    background: #fff;
    padding: 60px 0 40px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    margin-bottom: 40px;
}

.archive-header-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 30px;
}

.header-center {
    text-align: center;
}

.archive-title-premium {
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: 2px;
    margin: 0;
    color: var(--secondary);
    text-transform: uppercase;
}

.title-accent {
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* View Selector Pills */
.view-selector-premium {
    display: inline-flex;
    background: #f1f5f9;
    padding: 5px;
    border-radius: 50px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.03);
}

.view-pill {
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-light);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.view-pill i {
    font-size: 18px;
    margin-top: -2px;
}

.view-pill:hover {
    color: var(--secondary);
}

.view-pill.active {
    background: white;
    color: var(--primary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

@media (max-width: 992px) {
    .archive-header {
        padding: 40px 0 20px;
        margin-bottom: 20px;
    }
    .archive-header-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        text-align: center;
    }
    .header-left, .header-center, .header-right {
        order: 2;
        display: flex;
        justify-content: center;
    }
    .header-center {
        order: 1;
    }
    .archive-title-premium {
        font-size: 1.6rem;
    }
    .view-selector-premium {
        margin: 10px 0;
    }
    
    /* Search Grid Spacing Fix */
    .search-form-inner {
        padding: 15px !important;
    }
    .search-grid {
        gap: 10px !important;
    }
    .search-field {
        flex: 1 1 auto !important;
        width: 100%;
    }
    .search-field select {
        padding: 12px 15px !important;
        font-size: 1rem !important;
        height: auto !important;
    }

    /* Explorer Mode Fix: Prevent sidebar overlap */
    .archive-layout-wrapper {
        display: flex !important;
        flex-direction: column !important;
    }
    .archive-sidebar {
        position: static !important;
        width: 100% !important;
        margin-bottom: 20px !important;
        z-index: 10;
    }
    .archive-content-main {
        width: 100% !important;
    }
}


/* Premium Promo Card */
.promo-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
}

.promo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.promo-image {
    position: relative;
    overflow: hidden;
    width: 100%;
}

/* Ratio adjustments */
.promo-card.ratio-4-3 .promo-image { aspect-ratio: 4/3; }
.promo-card.ratio-1-1 .promo-image { aspect-ratio: 1/1; }
.promo-card.ratio-16-9 .promo-image { aspect-ratio: 16/9; }
.promo-card.ratio-4-5 .promo-image { aspect-ratio: 4/5; }

.promo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.promo-card:hover .promo-image img {
    transform: scale(1.08);
}

.promo-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary);
    color: #fff;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.promo-content {
    padding: 20px !important;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.promo-title {
    font-size: 0.82rem !important;
    font-weight: 800;
    color: #222;
    margin-bottom: 15px !important;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.6em !important;
    text-decoration: none;
}

.promo-meta {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.promo-price {
    font-size: 0.8rem;
    color: #666;
    font-weight: 500;
}

.promo-price span {
    display: block;
    font-size: 1.25rem;
    color: var(--primary);
    font-weight: 900;
}

.btn-view-detail {
    background: #f8f8f8;
    color: #333;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    transition: all 0.2s ease;
    border: 1px solid #eee;
}

.promo-card:hover .btn-view-detail {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Empty State */
.no-promos {
    text-align: center;
    padding: 80px 20px;
    grid-column: 1 / -1;
    background: #fff;
    border-radius: 12px;
    border: 2px dashed #eee;
}

.no-promos i {
    font-size: 50px;
    color: #ccc;
    margin-bottom: 20px;
}

.no-promos h3 {
    color: #666;
    margin-bottom: 15px;
}

/* Pagination Refinement */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 50px;
}

.pagination .page-numbers {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ==========================================
   NEWS MARQUEE BAR
   ========================================== */
.checkin-news-marquee {
    background: #000; /* Fondo negro solicitado */
    color: white !important;
    height: 34px; /* Aumentado ligeramente para aire */
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.marquee-content-wrapper {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.marquee-items {
    display: flex;
    white-space: nowrap;
    animation: marqueeMove 30s linear infinite;
    align-items: center;
    flex-shrink: 0;
}

.marquee-items:hover {
    animation-play-state: paused;
}

.marquee-item {
    display: inline-flex;
    align-items: center;
    padding: 0 40px;
    height: 32px;
}

.news-text {
    font-size: 12px; /* 12px exacto solicitado */
    font-weight: 500;
    margin-right: 12px;
    line-height: 1; /* Para ayudar a cuadrar verticalmente */
}

.news-action-btn {
    background: #fff;
    color: #000;
    padding: 3px 12px;
    border-radius: 15px;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 800;
    transition: all 0.3s ease;
    text-decoration: none;
    line-height: 1;
    display: inline-block;
}

.news-action-btn:hover {
    background: #e62419;
    color: #fff;
    transform: scale(1.05);
}

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

/* ==========================================
   GENERIC PREMIUM BUTTONS
   ========================================== */
.btn-checkin {
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background: transparent;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.btn-outline-white {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline-white:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}
/* ==========================================
   NEWS VERTICAL CARDS (HOME)
   ========================================== */
.news-vertical-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.news-vertical-card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-decoration: none !important;
    height: 100%;
}

.news-vertical-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: var(--primary);
}

.news-card-image {
    height: 220px;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.news-vertical-card:hover .news-card-image {
    transform: scale(1.05);
}

.news-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-card-category {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: 12px;
}

.news-card-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--secondary);
    line-height: 1.3;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.news-vertical-card:hover .news-card-title {
    color: var(--primary);
}

.news-card-excerpt {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-more {
    margin-top: auto;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s ease;
}

.news-vertical-card:hover .news-card-more {
    color: var(--primary);
    gap: 10px;
}

@media (max-width: 992px) {
    .news-vertical-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .news-vertical-grid {
        grid-template-columns: 1fr;
    }
}

/* 
=========================================
NEWS HORIZONTAL BAR (New)
=========================================
*/
.news-horizontal-bar {
    background: #ffffff;
    padding: 60px 0;
    border-bottom: 1px solid var(--border);
}

.news-flex {
    display: flex;
    gap: 40px;
    align-items: center;
    overflow-x: auto;
    scrollbar-width: none;
}

.news-flex::-webkit-scrollbar { display: none; }

.news-item {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 0 0 auto;
    padding-right: 40px;
    border-right: 1px solid var(--border);
}

.news-item:last-child { border-right: none; }

.news-item-thumb {
    width: 150px;
    height: 150px;
    border-radius: 16px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.news-item-info {
    max-width: 300px;
}

.news-item-category {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: 8px;
}

.news-item-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.25;
    color: var(--secondary);
    margin-bottom: 12px;
}

.news-item-link {
    font-size: 0.85rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    opacity: 0.9;
    margin-top: 5px;
    display: inline-block;
}

.news-item-link:hover { opacity: 1; }

/* 
=========================================
WHATSAPP & FOOTER
=========================================
*/


.main-footer {
    background: var(--secondary);
    color: white;
    padding: 80px 0 30px;
    margin-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
}

.footer-info p {
    line-height: 1.7;
    opacity: 0.8;
}

.footer-links h4, 
.footer-contact h4 {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.footer-links h4::after,
.footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
}

.footer-links ul li {
    margin-bottom: 12px;
    transition: transform 0.3s;
}

.footer-links ul li:hover {
    transform: translateX(5px);
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: white;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    opacity: 0.8;
    font-size: 0.95rem;
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    opacity: 0.6;
}

/* Responsive */
@media (max-width: 992px) {
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
    .promo-card { flex: 0 0 85%; }
    .hero-title { font-size: 2.5rem; }
    .news-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .footer-bottom { flex-direction: column; gap: 20px; text-align: center; }
    .search-grid { flex-direction: column; gap: 15px; }
    .btn-search { width: 100%; }
    .search-field { width: 100%; }

}

/* 
=========================================
BLOG SYSTEM (Premium)
=========================================
*/
.blog-hero {
    padding: 60px 0 30px;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.blog-hero .hero-title {
    color: var(--secondary) !important;
    font-size: 2.22rem;
    margin-top: 10px;
}

.blog-hero .hero-subtitle {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}


.post-header {
    background: var(--secondary);
    padding: 120px 0 80px;
    color: white;
}

.post-meta {
    display: flex;
    gap: 20px;
    opacity: 0.7;
    font-size: 0.9rem;
    align-items: center;
}

.post-title {
    font-size: 3.5rem;
    margin: 20px 0;
    line-height: 1.1;
    color: white;
    font-weight: 800;
}

.post-category-tag {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.post-content-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 0;
}

.post-featured-image {
    margin-bottom: 60px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-hover);
}

.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.entry-content {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text);
}

.entry-content p {
    margin-bottom: 25px;
}

.post-nav {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
}

.post-nav a {
    text-decoration: none;
    color: var(--secondary);
    font-weight: 700;
}

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

/* Archive Blog Styles */
.blog-archive-grid {
    display: grid;
    grid-template-columns: 2.4fr 1fr;
    gap: 40px;
}


.home-post-card {
    margin-bottom: 50px;
    overflow: hidden;
    display: flex;
    gap: 40px;
    align-items: stretch;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: transform 0.3s ease;
    background: white;
    height: 320px;
}

.home-post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.post-card-thumb {
    flex: 0 0 320px;
    background-size: cover;
    background-position: center;
}

.post-card-info {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.post-card-date {
    font-size: 0.8rem;
    color: var(--text-light);
    text-transform: uppercase;
    font-weight: 700;
    display: block;
    margin-bottom: 12px;
}

.post-card-title {
    font-size: 1.3rem;
    margin: 0 0 10px;
    line-height: 1.2;
}


.post-card-excerpt {
    color: var(--text-light);
    margin-bottom: 25px;
    font-size: 1rem;
    line-height: 1.6;
}

.post-card-more {
    color: var(--primary);
    font-weight: 800;
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Sidebar Styles */
.sidebar-box {
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    margin-bottom: 40px;
}

.sidebar-title {
    font-size: 1.1rem;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

.sidebar-help-cta {
    background: var(--secondary);
    color: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    text-align: center;
}

.sidebar-help-cta h4 {
    color: white;
    margin-bottom: 20px;
}

.cat-list {
    list-style: none;
    padding: 0;
}

.cat-list li {
    margin-bottom: 15px;
    border-bottom: 1px solid #f1f1f1;
    padding-bottom: 10px;
    display: flex;
    justify-content: space-between;
}

.cat-list a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
}

.cat-list a:hover {
    color: var(--primary);
}

/* 
=========================================
MODERN BLOG GRID & EDITORIAL
=========================================
*/

/* 1. Archive/Home Layout */
.blog-posts-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-featured-card {
    grid-column: span 3;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    margin-bottom: 40px;
    transition: transform 0.3s ease;
}

.blog-featured-card:hover {
    transform: translateY(-8px);
}

.featured-thumb-link {
    display: block;
    height: 320px;
    overflow: hidden;
}


.featured-thumb-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-featured-card:hover .featured-thumb-link img {
    transform: scale(1.05);
}

.featured-content {
    padding: 30px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}


.blog-standard-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-standard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.standard-thumb {
    height: 220px;
    overflow: hidden;
}

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

.standard-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta-inline {
    display: flex;
    gap: 15px;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-bottom: 12px;
    text-transform: uppercase;
    font-weight: 700;
}

.blog-title {
    font-size: 1.25rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

.blog-title a { color: var(--secondary); text-decoration: none; }
.blog-title a:hover { color: var(--primary); }

/* 2. Single Post Editorial */
.editorial-container {
    max-width: 800px !important;
    margin: 0 auto;
}

.editorial-header {
    text-align: center;
    padding: 40px 0 30px;
}


.editorial-title {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
    color: var(--secondary);
}


.editorial-body {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #444;
    font-family: 'Inter', sans-serif;
}


.editorial-body p { margin-bottom: 30px; }

.editorial-media {
    margin: 50px 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
}

.editorial-media img { width: 100%; display: block; }

/* 3. Related Content */
.related-promos-section {
    background: #f8fafc;
    padding: 80px 0;
    margin-top: 80px;
    border-top: 1px solid #e2e8f0;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 40px;
}

@media (max-width: 1200px) {
    .blog-posts-container { grid-template-columns: repeat(2, 1fr); }
    .blog-featured-card { grid-template-columns: 1fr; }
    .featured-thumb-link { height: 350px; }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .blog-posts-container { grid-template-columns: 1fr; }
    .blog-featured-card { grid-column: span 1; }
    .editorial-title { font-size: 2.2rem; }
    .related-grid { grid-template-columns: 1fr; }
}


/* 
=========================================
SINGLE PROMOTION REFINEMENT
=========================================
*/
.promo-detail-header {
    background: transparent; /* Unificado con el fondo de la página */
    padding: 20px 0 0; /* Sin espacio inferior */
    border-bottom: none; /* Eliminamos la división visual */
}

.promo-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px; /* Reducido */
}

.promo-detail-header .promo-title {
    font-size: 1.5rem !important; /* Más compacto y controlado */
    margin: 0;
    line-height: 1.1;
    font-weight: 800;
    color: var(--secondary);
}


.header-actions {
    display: flex;
    gap: 12px; /* Reducido */
    flex-shrink: 0;
}

.btn-download, .btn-quote {
    padding: 10px 20px; /* Más compacto */
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-download {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(217, 35, 15, 0.2);
}

.btn-quote {
    background: var(--secondary);
    color: white;
}

.btn-download:hover, .btn-quote:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.promo-main-container {
    padding: 0 0 25px; /* Eliminado el padding superior para "pegar" con el título */
}

.promo-layout-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px; /* Reducido para mayor compresión */
    margin-top: 15px; /* Pequeño margen controlado para la imagen */
}

.promo-featured-img-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    margin-bottom: 25px;
}

.promo-featured-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Related Promos LG */
.related-promos-section {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.related-title {
    font-size: 1.4rem;
    margin-bottom: 30px;
    color: var(--secondary);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.related-grid-lg {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columnas más grandes */
    gap: 25px;
}

/* Sidebar Refinement */
.sticky-sidebar-card {
    background: white;
    padding: 25px; /* Más compacto de 35px a 25px */
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    position: sticky;
    top: 90px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.price-box {
    margin-bottom: 20px; /* Reducido de 25px */
    text-align: center;
}

.price-label {
    font-size: 0.75rem; /* Más compacto */
    color: var(--text-light);
    text-transform: uppercase;
    font-weight: 700;
    display: block;
    margin-bottom: 3px;
}

.price-value {
    font-size: 2.5rem; /* Reducido de 3rem */
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
    letter-spacing: -1px;
}

.price-suffix {
    font-size: 0.75rem;
    color: var(--text-light);
}

.promo-quick-description {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8fafc;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    line-height: 1.6;
    color: #444;
}

.sidebar-info-footer {
    border-top: 1px solid var(--border);
    padding-top: 25px;
}

.info-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
}

.info-row i {
    color: var(--primary);
    font-size: 20px;
    margin-top: 2px;
}

.row-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-light);
    letter-spacing: 0.5px;
}

.row-value {
    font-size: 0.95rem;
    font-weight: 600;
}

.sidebar-tax-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 5px;
}

.sidebar-badge {
    background: #f1f5f9;
    color: var(--secondary);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    border: 1px solid #e2e8f0;
}

.sidebar-extra-actions {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.action-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    transition: all 0.3s;
}

.outline-btn {
    border: 1px solid var(--border);
    color: var(--text);
}

.outline-btn:hover {
    background: #f8fafc;
    border-color: var(--secondary);
    color: var(--secondary);
}

@media (max-width: 992px) {
    .promo-layout-grid {
        display: flex;
        flex-direction: column;
    }
    .promo-sidebar {
        order: -1;
        margin-bottom: 30px;
    }
    .sticky-sidebar-card {
        position: relative;
        top: 0;
    }
    .promo-header-inner {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .related-grid-lg {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .related-grid-lg {
        grid-template-columns: 1fr;
    }
    .price-value {
        font-size: 2.5rem;
    }
}

/* 
=========================================
QUOTE MODAL STYLES
=========================================
*/
.quote-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.85); /* Slate oscuro con transparencia */
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.quote-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.quote-modal-content {
    background: white;
    width: 90%;
    max-width: 650px;
    border-radius: 20px;
    padding: 45px;
    position: relative;
    transform: translateY(30px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
}

.quote-modal-overlay.active .quote-modal-content {
    transform: translateY(0);
}

.quote-modal-close {
    position: absolute;
    top: 25px;
    right: 25px;
    background: #f1f5f9;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: all 0.3s;
}

.quote-modal-close:hover {
    background: var(--primary);
    color: white;
    transform: rotate(90deg);
}

.quote-modal-header {
    text-align: center;
    margin-bottom: 35px;
}

.quote-modal-header h2 {
    font-size: 1.8rem;
    color: var(--secondary);
    margin-bottom: 10px;
    font-weight: 800;
}

.quote-modal-header p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.quote-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.quote-form .form-group {
    margin-bottom: 20px;
}

.quote-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #475569;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quote-form input, 
.quote-form textarea {
    width: 100%;
    padding: 12px 18px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    font-size: 1rem;
    transition: all 0.3s;
    outline: none;
}

.quote-form input:focus, 
.quote-form textarea:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(217, 35, 15, 0.08);
}

.btn-submit-quote {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s;
    margin-top: 10px;
    box-shadow: 0 10px 25px rgba(217, 35, 15, 0.3);
}

.btn-submit-quote:hover {
    background: #c11f0d;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(217, 35, 15, 0.4);
}

.btn-submit-quote:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.form-response {
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    display: none;
}

.form-response.success {
    display: block;
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.form-response.error {
    display: block;
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

@media (max-width: 640px) {
    .quote-modal-content {
        padding: 30px 20px;
    }
    .quote-form .form-row {
        grid-template-columns: 1fr;
    }
}

/* 
=========================================
PERFORMANCE & UX OPTIMIZATION
=========================================
*/

/* 1. Global Top Progress Bar (NProgress Style) */
#checkin-top-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 5px;
    background: #ff0000 !important;
    z-index: 2147483647 !important;
    box-shadow: 0 0 20px #ff0000;
    transition: width 0.3s ease, opacity 0.4s ease;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

#checkin-top-progress.active {
    opacity: 1 !important;
    visibility: visible !important;
}

#checkin-top-progress.done {
    width: 100% !important;
    opacity: 0;
}

/* 2. Skeleton Loader Effect */
.skeleton-loading {
    position: relative;
    overflow: hidden;
    pointer-events: none;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.skeleton-loading::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: skeleton-pulse 1.5s infinite;
    z-index: 10;
}

@keyframes skeleton-pulse {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* 3. Smooth Content Fade In */
.ajax-fade-in {
    animation: contentFadeIn 0.5s ease backwards;
}

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

/* 4. AJAX Target area blur */
#ajax-target-content.is-loading {
    filter: blur(2px);
    transition: filter 0.3s ease;
}

/* 
=========================================
PROMOTION UI REFINEMENTS
=========================================
*/
.btn-back-archive {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 25px;
    background: #f1f5f9;
    padding: 8px 16px;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.btn-back-archive:hover {
    background: white;
    color: var(--primary);
    border-color: var(--primary);
    transform: translateX(-5px);
    box-shadow: 0 4px 12px rgba(217, 35, 15, 0.1);
}

.btn-back-archive i {
    font-size: 16px;
    margin-top: -1px;
}

@media (max-width: 768px) {
    .promo-detail-header .promo-title {
        font-size: 1.25rem !important;
        line-height: 1.2 !important;
    }
    .related-promos-section {
        margin-top: 30px !important;
    }
    .related-promos-section .related-title {
        font-size: 1.1rem !important;
        margin-bottom: 20px !important;
    }
    
    /* Force 2 columns for related promos on mobile to make them smaller */
    .related-grid-lg {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
    
    .related-card-lg .promo-title {
        font-size: 0.7rem !important;
        height: 2.2em !important;
        margin-bottom: 8px !important;
    }
    
    .related-card-lg .promo-content {
        padding: 10px !important;
    }
    
    .related-card-lg .btn-view-detail {
        display: none !important; /* Hide button on tiny cards to save space */
    }
    
    .related-card-lg .promo-price span {
        font-size: 0.9rem !important;
    }
}

@media (max-width: 480px) {
    .promo-detail-header .promo-title {
        font-size: 1.1rem !important;
    }
    .promo-main-container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    .editorial-body-wrapper {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}

/* 
=========================================
FOOTER COMPLIANCE BADGES
=========================================
*/
.footer-compliance {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.compliance-badges {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
}

.compliance-img {
    height: 55px !important;
    max-height: 55px !important;
    width: auto !important;
    object-fit: contain;
    background: transparent;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.compliance-img:hover {
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .compliance-badges {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .compliance-img {
        height: 45px !important;
        max-height: 45px !important;
    }
}

/* 
=========================================
FOOTER WIDGETS STYLING
=========================================
*/
.footer-widget-title {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 25px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    opacity: 0.7;
    font-size: 0.9rem;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-links ul li a:hover {
    opacity: 0.8;
}

.footer-contact-item {
    margin-bottom: 15px; 
    display: flex; 
    align-items: flex-start; 
    gap: 10px; 
    opacity: 0.8;
}

.footer-contact-item i {
    color: var(--primary); 
    margin-top: 4px;
}

.footer-contact-item p {
    font-size: 0.9rem; 
    margin: 0;
}
