/* =========================================
   1. VARIABLES Y ESTILOS BASE
   ========================================= */
:root {
    /* CORRECCIÓN AQUÍ: Cambiamos el gris claro (#d3d3d3) por un Azul Oscuro fuerte */
    --primary-blue: #003366; 
    --primary-orange: #ff6600; 
    --accent-yellow: #ffcc00;
    --bg-cream: #fff9e6;
    --light-gray: #f8f9fa;
}

/* Escala del sitio (90%) */
html {
    font-size: 80%; 
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--light-gray);
    color: #333;
    padding-top: 72px; 
}

/* =========================================
   2. UTILIDADES DE COLOR
   ========================================= */
.text-blue { color: var(--primary-blue) !important; }
.text-orange { color: var(--primary-orange) !important; }
.bg-blue { background-color: var(--primary-blue) !important; }
.bg-light-yellow { background-color: #fff9e6 !important; }

/* Tipografía */
.tracking-wider { letter-spacing: 1.5px; }
.leading-relaxed { line-height: 1.6; }
.transition { transition: all 0.3s ease; }

/* Hover Effects Footer */
.hover-white:hover {
    color: white !important;
    transform: translateX(5px);
    display: inline-block;
}

/* =========================================
   3. BOTONES
   ========================================= */
.btn-blue {
    background-color: var(--primary-blue);
    color: white;
    border: none;
    transition: all 0.2s ease;
}
.btn-blue:hover {
    background-color: #002244; /* Un azul aún más oscuro para el hover */
    color: white;
    transform: translateY(-2px);
}

.btn-white {
    background-color: white;
    color: #333;
    transition: all 0.2s;
}
.btn-white:hover {
    background-color: #f0f0f0;
}

.btn-outline-blue {
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    background-color: transparent;
    transition: all 0.2s ease;
}
.btn-outline-blue:hover {
    background-color: var(--primary-blue);
    color: white;
}

/* Efectos Hover Generales */
.hover-scale { transition: transform 0.3s ease; }
.hover-scale:hover { transform: scale(1.05); }

/* Vidrio borroso */
.backdrop-blur {
    backdrop-filter: blur(5px);
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
}
.backdrop-blur:hover {
    background-color: white;
    color: var(--primary-blue) !important;
}

/* =========================================
   4. NAVEGACIÓN Y LOGO
   ========================================= */
.logo-nav {
    height: 65px; /* Tamaño ajustado para que se vea grande y bien */
    width: auto;
    object-fit: contain;
}

/* Links Navbar - Letras oscuras para fondo blanco */
.nav-link {
    font-size: 0.95rem; 
    color: #333 !important; /* Gris Oscuro */
    font-weight: 700;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-orange) !important; /* Naranja al pasar el mouse */
}

.nav-link::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: var(--primary-orange);
    transition: width 0.3s;
    position: absolute;
    bottom: 5px;
}
.nav-link:hover::after {
    width: 100%;
}

/* =========================================
   5. TARJETAS DE PRODUCTO
   ========================================= */
.product-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05) !important;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08) !important;
    border-color: transparent !important;
}

/* =========================================
   6. SWIPER (CARRUSEL)
   ========================================= */
.swiper {
    width: 100%;
    padding-bottom: 40px;
}
.swiper-pagination-bullet-active {
    background-color: var(--primary-blue) !important;
}

.swiper-button-next, .swiper-button-prev {
    background-color: white;
    width: 40px; height: 40px;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    color: var(--primary-blue) !important;
    transition: all 0.3s ease;
}
.swiper-button-next:after, .swiper-button-prev:after {
    font-size: 1.2rem;
    font-weight: bold;
}
.swiper-button-next:hover, .swiper-button-prev:hover {
    background-color: var(--primary-blue);
    color: white !important;
    transform: scale(1.1);
}

/* =========================================
   7. OTROS COMPONENTES
   ========================================= */
.sticky-sidebar {
    position: -webkit-sticky;
    position: sticky;
    top: 90px; 
    z-index: 10;
}
.gallery-thumb {
    width: 60px; height: 60px; object-fit: cover;
    cursor: pointer; transition: all 0.2s; opacity: 0.7;
}
.gallery-thumb:hover, .gallery-thumb.active {
    opacity: 1; border: 2px solid var(--primary-orange);
}
.btn-option {
    border: 1px solid #ddd; background: #fff; padding: 8px 15px;
    border-radius: 8px; transition: all 0.2s; min-width: 120px; text-align: left;
}
.btn-option.active {
    border-color: var(--primary-orange); background: #fff8e1; color: #d63031;
}
.offcanvas-footer { box-shadow: 0 -4px 10px rgba(0,0,0,0.05); }

/* =========================================
   8. BARRA DE BÚSQUEDA ANIMADA (VISIBLE)
   ========================================= */
.search-expand-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end; 
}

/* Input */
.search-input-expand {
    width: 0;
    opacity: 0;
    border: 1px solid #ccc; 
    outline: none; 
    background: #fff; /* Fondo Blanco */
    color: #333 !important; /* Texto Negro */
    padding: 0;
    height: 42px; 
    border-radius: 50px; 
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); 
}

.search-input-expand::placeholder {
    color: #999;
}

/* Icono Lupa */
.search-trigger-icon {
    z-index: 2;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #333 !important; /* Lupa Negra */
}

/* Estado Expandido */
.search-expand-container:hover .search-input-expand,
.search-input-expand:focus,
.search-input-expand:not(:placeholder-shown) { 
    width: 600px; 
    opacity: 1;
    padding-left: 20px;
    padding-right: 45px; 
    cursor: text;
    background: #fff;
    border-color: var(--primary-orange); 
}

.search-expand-container:hover .search-trigger-icon,
.search-input-expand:focus + .search-trigger-icon {
    position: absolute;
    right: 5px;
    color: var(--primary-orange) !important;
}

/* Caja de Resultados */
#live-results {
    background-color: #ffffff !important;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 8px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2) !important;
    border: 1px solid #e0e0e0;
    z-index: 2000 !important;
}

#live-results .list-group-item {
    background-color: #ffffff;
    color: #333;
    border: none;
    border-bottom: 1px solid #f0f0f0;
}

#live-results .list-group-item:hover {
    background-color: #f8f9fa;
}

/* =========================================
   9. SECCIÓN NOSOTROS (Animaciones)
   ========================================= */
.icon-box {
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}
.card:hover .icon-box {
    transform: scale(1.1) rotate(5deg);
}

.timeline-content {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
}

.hover-scale {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.hover-scale:hover {
    transform: translateY(-5px);
}

/* =========================================
   10. ESTILOS DE PAGO (NEQUI)
   ========================================= */
.btn-outline-nequi {
    color: #200020; 
    border: 1px solid #da0081; 
    background-color: transparent;
    transition: all 0.2s;
}

.btn-check:checked + .btn-outline-nequi {
    background-color: #200020;
    color: white;
    border-color: #200020;
    box-shadow: 0 4px 10px rgba(218, 0, 129, 0.3);
}

.btn-outline-nequi:hover {
    background-color: #fceef6; 
    color: #da0081;
}

.alert-nequi {
    background-color: #200020;
    color: white;
    border: none;
    background-image: linear-gradient(135deg, #200020 0%, #3a003a 100%);
}