
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600&family=Poppins:wght@500;700;800&family=Montserrat:wght@400;700;900&display=swap');

:root {
    --primary: #0f172a;       /* Azul Navy Premium */
    --primary-light: #1e293b; 
    --accent: #ff7f11;        /* Naranja Vibrante Marca */
    --accent-hover: #e66e00;
    --bg-body: #f1f5f9;       /* Gris muy claro */
    --text-dark: #334155;
    --text-light: #64748b;
    --white: #ffffff;
    --radius: 8px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* ================= 1. AJUSTES GENERALES ================= */
html, body {
    overflow-x: hidden; /* Evita scroll horizontal */
    width: 100%;
}

body { 
    background-color: var(--bg-body); 
    color: var(--text-dark); 
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    /* Ajustado para el nuevo header fijo */
    padding-top: 80px; 
}

h1, h2, h3, h4, .btn, nav a { font-family: 'Montserrat', sans-serif; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ================= 2. HEADER PREMIUM (Final) ================= */
.header-premium {
    background-color: #0a192f;
    padding: 10px 0;
    position: fixed; /* Fijo para que siga al bajar */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    height: 90px; /* Altura controlada */
    display: flex;
    align-items: center;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-container {
    flex-shrink: 0;
    margin-right: 20px;
}

.logo-img-header {
    height: 55px; 
    width: auto;
    display: block;
    object-fit: contain;
}

.search-bar-header {
    flex-grow: 1;
    max-width: 600px;
    display: flex;
    margin: 0 20px;
}

.search-bar-header input {
    width: 100%;
    padding: 12px 15px;
    border: none;
    outline: none;
    border-radius: 4px 0 0 4px;
    font-size: 0.95rem;
}

.search-bar-header button {
    background-color: var(--accent);
    color: white;
    border: none;
    padding: 0 25px;
    font-size: 1.1rem;
    cursor: pointer;
    border-radius: 0 4px 4px 0;
    transition: background 0.3s;
}

.search-bar-header button:hover { background-color: var(--accent-hover); }

.nav-controls {
    display: flex;
    align-items: center;
    gap: 25px;
}

.desktop-menu ul {
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.desktop-menu a {
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
}
.desktop-menu a:hover { color: var(--accent); }

.icons {
    display: flex;
    align-items: center;
    color: white;
    gap: 20px;
}

.cart-icon { position: relative; cursor: pointer; font-size: 1.4rem; }
#cart-count {
    position: absolute; top: -8px; right: -10px;
    background-color: var(--accent); color: white;
    font-size: 0.75rem; font-weight: bold;
    padding: 2px 6px; border-radius: 50%;
}
.menu-toggle { display: none; cursor: pointer; font-size: 1.5rem; color: white; }

/* ================= 3. HERO CARRUSEL ================= */
.hero-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 50px 0; color: white; overflow: hidden; margin-top: 10px;
}
.hero-container { overflow: hidden; position: relative; }
#hero-slides-wrapper { display: flex; width: 100%; transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1); }
.hero-slide { 
    min-width: 100%; flex-shrink: 0; display: flex; 
    align-items: center; justify-content: space-between; padding: 0 40px;
}
.slide-content { flex: 1; max-width: 500px; padding-right: 20px; }
.slide-badge { 
    background: rgba(249,115,22,0.15); color: var(--accent); border: 1px solid var(--accent);
    padding: 5px 10px; border-radius: 4px; font-weight: 700; font-size: 0.75rem; 
    display: inline-block; margin-bottom: 15px;
}
.slide-title { font-size: 3rem; margin-bottom: 15px; line-height: 1.1; font-weight: 800; }
.slide-price { font-size: 2.2rem; color: var(--accent); font-weight: 700; display: block; margin-bottom: 25px; }
.slide-btn { 
    background: var(--accent); color: white; padding: 14px 35px; border-radius: 4px; 
    font-weight: 700; box-shadow: 0 10px 20px rgba(249, 115, 22, 0.3);
}
.slide-image-container img { max-height: 380px; max-width: 100%; filter: drop-shadow(0 20px 30px rgba(0,0,0,0.5)); }

/* ================= 4. CATÁLOGO & PRODUCTOS ================= */
.section-title { text-align: center; margin: 60px 0 40px; font-size: 2.2rem; color: var(--primary); font-weight: 800; }
.category-filters { display: flex; justify-content: center; gap: 10px; margin-bottom: 30px; flex-wrap: wrap; }
.filter-btn { 
    padding: 8px 20px; border-radius: 50px; border: 1px solid #e2e8f0; 
    background: white; cursor: pointer; font-weight: 600; color: var(--text-light); font-size: 0.9rem;
}
.filter-btn.active, .filter-btn:hover { background: var(--primary); color: white; border-color: var(--primary); }

.product-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); 
    gap: 30px; padding-bottom: 60px; 
}

.product-card { 
    background: white; border-radius: var(--radius); 
    box-shadow: var(--shadow); transition: all 0.3s ease; 
    position: relative; display: flex; flex-direction: column; overflow: hidden;
    border: 2px solid transparent; /* Borde invisible base */
}

.product-card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 15px 30px rgba(0,0,0,0.1); 
    border-color: var(--accent); /* Borde naranja al hover */
}

.product-card img { width: 100%; height: 200px; object-fit: contain; padding: 25px; }
.card-body { padding: 15px; flex-grow: 1; display: flex; flex-direction: column; border-top: 1px solid #f1f5f9; }
.brand { font-size: 0.7rem; color: var(--text-light); font-weight: 700; text-transform: uppercase; }
.product-card h3 { font-size: 1rem; color: var(--primary); margin-bottom: 5px; font-weight: 700; line-height: 1.3; }
.price { font-size: 1.2rem; color: var(--text-dark); font-weight: 800; margin-top: auto; }
.btn-add { 
    width: calc(100% - 30px); margin: 0 15px 15px; padding: 10px; 
    background: var(--primary); color: white; border: none; border-radius: 6px; 
    font-weight: 700; cursor: pointer; transition: 0.3s; display: flex; justify-content: center; gap: 8px; font-size: 0.9rem;
}
.btn-add:hover { background: var(--accent); }

/* ================= 5. SIDEBAR & EXTRAS ================= */
.floating-cat-btn { 
    position: fixed; left: 0; top: 140px; background: var(--primary); color: white; 
    padding: 15px 10px; border-radius: 0 8px 8px 0; cursor: pointer; z-index: 990; 
    writing-mode: vertical-rl; font-weight: 700; box-shadow: 4px 0 10px rgba(0,0,0,0.15); font-size: 0.8rem;
}
.category-sidebar { 
    position: fixed; top: 0; left: -320px; width: 300px; height: 100vh; 
    background: white; z-index: 2000; transition: 0.4s ease; display: flex; flex-direction: column; box-shadow: 10px 0 30px rgba(0,0,0,0.2);
}
.category-sidebar.active { left: 0; }
.sidebar-header { background: var(--primary); color: white; padding: 20px; display: flex; justify-content: space-between; align-items: center; }
.sidebar-menu li { padding: 15px 20px; border-bottom: 1px solid #f1f5f9; cursor: pointer; display: flex; justify-content: space-between; font-weight: 600; color: var(--text-dark); }
.sidebar-overlay { position: fixed; top:0; left:0; width:100%; height:100%; background:rgba(15,23,42,0.7); z-index:1500; display:none; }
.sidebar-overlay.active { display: block; }





/* ================= 6. DETALLE PRODUCTO ================= */
/* ======================================================
   NUEVA GALERÍA DE PRODUCTO (Estilo TodoBarato / Amazon)
   Reemplaza en la sección 6 de style.css
   ====================================================== */

/* 1. Estructura General (PC y Móvil) */
.detail-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; /* PC: 50% Imagen - 50% Info */
    gap: 40px; 
    margin-top: 30px; 
    margin-bottom: 60px; 
    align-items: start; 
}

/* El contenedor de la galería siempre es vertical: Foto Grande -> Miniaturas */
.gallery-container { 
    display: flex;
    flex-direction: column;
    gap: 15px; /* Espacio entre la foto grande y las pequeñas */
    position: sticky; 
    top: 110px; /* Se queda quieto al bajar en PC */
}

/* 2. Imagen Principal (El Marco Grande) */
.main-image { 
    width: 100%;
    aspect-ratio: 1 / 1; /* SIEMPRE CUADRADA */
    background: #ffffff; 
    border: 1px solid #e2e8f0; 
    border-radius: 12px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    padding: 10px; 
    overflow: hidden;
    cursor: zoom-in;
}

.main-image img { 
    max-width: 100%; 
    max-height: 100%; 
    object-fit: contain; /* La imagen se ajusta sin cortarse */
    transition: transform 0.3s ease;
}

/* Efecto Zoom suave al pasar el mouse (Solo PC) */
@media (min-width: 901px) {
    .main-image:hover img {
        transform: scale(1.1); 
    }
}

/* 3. La Cuadrícula de Miniaturas (Los "Cuadraditos") */
.thumbnail-list { 
    display: grid; 
    /* Define cuántas fotitos caben por fila. "repeat(auto-fill...)" las acomoda solas */
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)); 
    gap: 10px; 
    width: 100%;
}

.thumb { 
    width: 100%; 
    aspect-ratio: 1 / 1; /* Fuerza a que sean cuadraditos perfectos */
    border: 2px solid #f1f5f9; 
    border-radius: 8px; 
    padding: 2px; 
    cursor: pointer; 
    object-fit: contain; 
    background: #fff;
    transition: all 0.2s;
}

.thumb:hover { 
    border-color: #cbd5e1; 
    transform: translateY(-2px);
}

/* Miniatura seleccionada (Borde Naranja) */
.thumb.active { 
    border-color: #ff7f11; 
    box-shadow: 0 0 0 2px rgba(255, 127, 17, 0.2); 
}

/* ======================================================
   AJUSTES PARA MÓVIL (Celular)
   ====================================================== */
@media (max-width: 900px) {
    .detail-grid {
        display: flex;
        flex-direction: column; /* Uno debajo del otro */
        gap: 20px;
        margin-top: 15px;
    }

    .gallery-container {
        position: static; /* Ya no es pegajoso en celular */
        width: 100%;
    }

    /* En celular la imagen principal sigue siendo cuadrada y grande */
    .main-image {
        height: auto; 
        aspect-ratio: 1 / 1;
        border: none; /* Quitamos borde para que se vea más limpio */
    }

    /* Ajuste de la cuadrícula para dedos */
    .thumbnail-list {
        grid-template-columns: repeat(5, 1fr); /* 5 fotos por fila en celular */
        gap: 8px;
    }
}

.detail-name { font-size: 2.2rem; color: var(--primary); line-height: 1.2; margin-bottom: 10px; font-weight: 800; }
.detail-price { font-size: 2.5rem; color: #2563eb; font-weight: 800; }
.stock-badge { background: #dcfce7; color: #166534; padding: 5px 10px; border-radius: 20px; font-size: 0.9rem; font-weight: 600; }

.action-buttons { display: flex; gap: 15px; margin-top: 25px; }
.btn-add-large, .btn-whatsapp-large { background: var(--primary); color: white; border: none; flex: 1; padding: 15px; border-radius: 8px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 1rem; }
.btn-whatsapp-large { background: #25D366; }

.seller-info-card { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 15px; margin-top: 25px; }
.seller-header { display: flex; gap: 12px; align-items: center; border-bottom: 1px solid #e2e8f0; padding-bottom: 12px; margin-bottom: 12px; }
.seller-logo { width: 40px; height: 40px; background: var(--primary); color: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.seller-features .feature-item { display: flex; gap: 10px; margin-bottom: 10px; align-items: center; font-size: 0.9rem; }
.seller-features i { color: var(--accent); width: 20px; text-align: center; }






/* ================= 7. FOOTER & CARRITO ================= */
footer { background: #0b1120; color: #94a3b8; margin-top: 40px; font-size: 0.9rem; border-top: 4px solid var(--accent); }



.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; padding: 40px 20px; max-width: 1200px; margin: 0 auto; }
.footer-col h4 { color: white; font-size: 1.1rem; margin-bottom: 20px; font-weight: 700; display: inline-block; border-bottom: 2px solid var(--accent); padding-bottom: 5px; }
.footer-links li { margin-bottom: 10px; } .footer-links a:hover { color: var(--accent); }
.social-links-pro { display: flex; gap: 10px; margin-top: 15px; }
.social-btn-pro { width: 35px; height: 35px; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; border-radius: 4px; color: white; }
.copyright { background: #0f172a; text-align: center; padding: 15px; font-size: 0.8rem; border-top: 1px solid rgba(255,255,255,0.05); }

/* Carrito */
.cart-modal { position: fixed; top: 0; right: -100%; width: 350px; height: 100%; background: white; z-index: 2000; transition: right 0.3s ease; display: flex; flex-direction: column; box-shadow: -5px 0 20px rgba(0,0,0,0.2); }
.cart-modal.active { right: 0; }
.cart-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 1500; display: none; }
.cart-overlay.active { display: block; }
.cart-header { padding: 15px; background: var(--primary); color: white; display: flex; justify-content: space-between; align-items: center; }
.close-cart { background: none; border: none; color: white; font-size: 1.3rem; }
.cart-body { flex: 1; padding: 15px; overflow-y: auto; }
.cart-item { display: flex; gap: 10px; margin-bottom: 15px; border-bottom: 1px dashed #ddd; padding-bottom: 10px; }
.cart-item img { width: 60px; height: 60px; object-fit: contain; border: 1px solid #eee; border-radius: 4px; }
.cart-footer { padding: 20px; border-top: 1px solid #eee; background: #f8fafc; }
.btn-checkout { width: 100%; padding: 14px; background: #25D366; color: white; border: none; border-radius: 8px; font-weight: 700; font-size: 1rem; cursor: pointer; }






/* ======================================================
   CORRECCIONES MÓVILES (Celulares y Tablets)
   Pegar/Reemplazar al final de style.css
   ====================================================== */

@media (max-width: 900px) {
    
    /* 1. HEADER */
    header, .header-premium {
        height: auto; 
        padding: 10px 0;
    }
    
    /* Ajuste del logo para que no se vea ni muy chico ni muy grande */
    .logo-img-header { 
        height: 35px; 
    }

    .desktop-menu { display: none; } /* Ocultar menú de escritorio */
    .search-bar-header { display: none; } /* Ocultar barra búsqueda */
    .menu-toggle { display: block; font-size: 1.5rem; color: white; }
    
    /* Iconos del header (carrito y menú) más juntos */
    .nav-controls { gap: 15px; margin-right: 10px; }

    /* 2. BANNER PRINCIPAL (Robot + Texto) */
    .main-banner {
        padding: 40px 0;
        text-align: center; /* Centrar todo */
    }

    .banner-grid {
        grid-template-columns: 1fr; /* Una sola columna */
        gap: 20px;
    }

    .banner-image {
        order: 1; /* Imagen primero (arriba) */
        display: flex;
        justify-content: center;
    }

    .robot-main {
        max-width: 180px; /* Robot más pequeño para que quepa */
        margin: 0 auto;
    }

    .banner-text {
        order: 2; /* Texto abajo */
        padding: 0 15px;
    }

    /* Aquí arreglamos el texto gigante */
    .banner-text h1 {
        font-size: 2rem; /* Tamaño mucho más manejable */
        line-height: 1.2;
    }
    
    .banner-text p {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    /* 3. RULETA DE PRODUCTOS (Slider) */
    .ruleta-section {
        padding: 20px 0;
        min-height: auto; /* Quitar altura forzada */
    }

    .hero-slide {
        flex-direction: column-reverse; /* Texto abajo, Imagen arriba */
        padding: 20px 10px;
        text-align: center;
        gap: 20px;
    }

    .slide-content {
        max-width: 100%;
        padding: 0;
    }

    .slide-title {
        font-size: 1.8rem; /* Título del producto ajustado */
    }

    .slide-price {
        font-size: 1.5rem;
    }

    /* Controlar el tamaño de la imagen del producto (el Hub gigante) */
    .slide-image-container {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .slide-image-container img {
        max-height: 200px; /* Altura máxima controlada */
        max-width: 80%;    /* Que no se salga del ancho */
        object-fit: contain;
    }

    /* Flechas de la ruleta */
    .ruleta-prev { left: 5px; }
    .ruleta-next { right: 5px; }

    /* 4. CATÁLOGO Y GENERALES */
    .product-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 productos por fila */
        gap: 10px;
        padding: 0 10px;
    }

    /* Si la pantalla es MUY pequeña (iPhone SE, etc), poner 1 producto */
    @media (max-width: 380px) {
        .product-grid { grid-template-columns: 1fr; }
    }

    .section-title {
        font-size: 1.8rem;
        margin: 40px 0 20px;
    }
    
    /* Ajustes del Footer */
    .footer-grid {
        grid-template-columns: 1fr; /* Todo en una columna */
        text-align: center;
    }
    
    .social-links-pro {
        justify-content: center;
    }

    /* Botón flotante de categorías */
    .floating-cat-btn {
        top: auto;
        bottom: 20px; /* Abajo a la izquierda */
        left: 20px;
        writing-mode: horizontal-tb; /* Texto horizontal */
        border-radius: 50px;
        padding: 10px 20px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    }
}







@media (max-width: 380px) {
    .product-grid { grid-template-columns: 1fr; }
}

/* =======================================================
   SOLUCIÓN NUCLEAR: DESBLOQUEO DE SCROLL
   ======================================================= */
html, body {
    height: auto !important;
    min-height: 100vh !important;
    overflow-y: scroll !important;
}

.sidebar-overlay, .cart-overlay {
    display: none;
}

.sidebar-overlay.active, .cart-overlay.active {
    display: block !important;
}




















/* ======================================================
   NUEVA ESTRUCTURA: BANNER + RULETA
   ====================================================== */

/* --- 2. BANNER PRINCIPAL ESTÁTICO --- */
.main-banner {
    background: radial-gradient(circle at 30% 50%, #1e293b 0%, #0a192f 100%); /* Fondo azul oscuro elegante */
    padding: 60px 0;
    position: relative;
    overflow: hidden;
    margin-top: 10px; /* Separación del header */
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.banner-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Mitad imagen, mitad texto */
    align-items: center;
    gap: 40px;
}

/* Imagen del Robot Principal */
.robot-main {
    width: 100%;
    max-width: 450px; /* Ajusta según tu imagen */
    filter: drop-shadow(0 0 30px rgba(255, 127, 17, 0.3)); /* Resplandor naranja detrás del robot */
    animation: float 6s ease-in-out infinite; /* Flota suavemente */
}

/* Texto del Banner */
.banner-text h1 {
    font-size: 3.5rem;
    color: white;
    line-height: 1.1;
    font-weight: 900;
    margin-bottom: 20px;
}

.highlight-text {
    color: transparent;
    -webkit-text-stroke: 2px white; /* Efecto contorno moderno */
}

.banner-text p {
    color: #94a3b8;
    font-size: 1.2rem;
    max-width: 400px;
    margin-bottom: 30px;
}

.btn-explore {
    background: linear-gradient(90deg, #ff7f11, #e66e00);
    color: white;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: bold;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(255, 127, 17, 0.4);
    transition: transform 0.3s;
}

.btn-explore:hover {
    transform: scale(1.05);
}

/* --- 3. RULETA DE PRODUCTOS (Slider) --- */
.ruleta-section {
    background-color: #0f172a; /* Fondo oscuro continuo */
    padding: 40px 0;
    position: relative;
}

/* Ajustes para las diapositivas de la ruleta */
.hero-slide {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 60px; /* Espacio interno */
}

.slide-content {
    text-align: left;
}

.slide-badge {
    background-color: transparent;
    border: 1px solid #ff7f11;
    color: #ff7f11;
}

.slide-title {
    font-size: 2.5rem; /* Título del producto un poco más pequeño que el banner principal */
}

/* Flechas de navegación de la ruleta */
.ruleta-prev, .ruleta-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    font-size: 1.2rem;
}

.ruleta-prev { left: 20px; }
.ruleta-next { right: 20px; }

.ruleta-prev:hover, .ruleta-next:hover {
    background: #ff7f11;
}

/* Responsive para celulares */
@media (max-width: 768px) {
    .banner-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .banner-image {
        order: 1; /* Imagen primero */
    }
    .banner-text {
        order: 2; /* Texto después */
    }
    .robot-main {
        max-width: 250px;
    }
    .banner-text h1 {
        font-size: 2.5rem;
    }
}







/* ======================================================
   CORRECCIÓN DEFINITIVA: RULETA MÓVIL (V3)
   Pegar al final de style.css (Reemplaza correcciones anteriores de ruleta)
   ====================================================== */

/* 1. ESTILOS BASE (Para que se vea bien en PC y Celular) */
.ruleta-section {
    position: relative;
    background-color: #0f172a; /* Asegura fondo oscuro */
    overflow: hidden; /* Evita que nada se salga */
}

/* Forzar color BLANCO en el título */
.ruleta-section .hero-slide .slide-content h2.slide-title {
    color: #ffffff !important; 
    text-shadow: 0 2px 4px rgba(0,0,0,0.9) !important; /* Sombra negra fuerte */
    font-weight: 800;
    margin: 10px 0;
    line-height: 1.2;
}

/* Forzar color NARANJA en el precio */
.ruleta-section .hero-slide .slide-content .slide-price {
    color: #ff7f11 !important;
    font-weight: 700;
    font-size: 1.6rem;
    display: block;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* 2. AJUSTES ESPECÍFICOS PARA CELULAR */
@media (max-width: 900px) {
    
    .ruleta-section {
        padding: 30px 0 50px 0; /* Más espacio abajo */
    }

    .hero-slide {
        flex-direction: column-reverse !important; /* Imagen arriba, Texto abajo */
        justify-content: flex-end;
        align-items: center;
        text-align: center;
        padding: 0 20px;
        width: 100%;
    }

    /* Contenedor del texto: Asegura que no se salga */
    .slide-content {
        width: 100%;
        max-width: 300px; /* Limita el ancho para que no toque los bordes */
        margin: 0 auto;
        z-index: 10;
        position: relative;
    }

    /* Título más pequeño para que quepa "Largo Alcance" */
    .ruleta-section .hero-slide .slide-content h2.slide-title {
        font-size: 1.5rem !important; /* Tamaño ideal para móvil */
        white-space: normal; /* Permite que el texto baje a otra línea */
    }

    /* Imagen del producto: Controlada */
    .slide-image-container {
        margin-bottom: 20px;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .slide-image-container img {
        height: 180px !important; /* Altura fija para que no sea gigante */
        width: auto;
        object-fit: contain;
        filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
    }

    /* Flechas de navegación: Posicionadas para no estorbar */
    .ruleta-prev, .ruleta-next {
        top: 40% !important; /* Subirlas un poco a la altura de la imagen */
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(5px);
        border: 1px solid rgba(255,255,255,0.2);
    }
}
















/* ======================================================
   CORRECCIÓN FINAL: PÁGINA DETALLE EN CELULAR
   Pegar al final de style.css
   ====================================================== */

@media (max-width: 900px) {

    /* 1. Reordenar la Estructura (Columna Vertical) */
    .detail-grid {
        display: flex;
        flex-direction: column; /* Pone la foto arriba y el texto abajo */
        gap: 15px;
        margin-top: 15px;
        margin-bottom: 40px;
    }

    /* 2. Ajustar la Imagen Principal */
    .gallery-container {
        width: 100%;
        position: static; /* Quita el efecto pegajoso en celular */
    }

    .main-image {
        height: 280px !important; /* Altura ideal para ver el producto bien */
        border: none; /* Quitar borde para look más limpio */
        background: transparent;
    }

    .main-image img {
        filter: drop-shadow(0 5px 15px rgba(0,0,0,0.1));
    }

    .thumbnail-list {
        justify-content: center; /* Centrar las fotitos pequeñas */
        margin-bottom: 20px;
    }

    /* 3. Domar los Textos Gigantes */
    .product-info-col {
        padding: 0 10px; /* Un poco de aire a los lados */
        text-align: center; /* Centrar textos para look de app */
    }

    .detail-brand {
        font-size: 0.9rem;
        color: #94a3b8;
        display: block;
        margin-bottom: 5px;
    }

    h1#detail-name {
        font-size: 1.8rem !important; /* Título mucho más pequeño y legible */
        line-height: 1.2;
        margin-bottom: 15px;
    }

    .detail-price {
        font-size: 2.2rem !important; /* Precio grande pero no gigante */
        justify-content: center;
        display: flex;
        width: 100%;
    }

    /* Contenedor de precio y stock centrado */
    .product-info-col > div[style*="display:flex"] {
        justify-content: center;
    }

    /* 4. Botones de Acción (Grandes y fáciles de tocar) */
    .action-buttons {
        flex-direction: column; /* Uno debajo del otro */
        gap: 12px;
        margin-top: 20px;
    }

    .btn-add-large, .btn-whatsapp-large {
        width: 100%; /* Ancho completo */
        padding: 15px;
        font-size: 1.1rem;
        justify-content: center;
    }

    /* 5. Tarjeta del Vendedor */
    .seller-info-card {
        text-align: left; /* Volver a alinear a la izquierda la info técnica */
        margin-top: 30px;
        font-size: 0.9rem;
    }
}









/* ======================================================
   NUEVO ESTILO: CLEAN TECH & PROFESSIONAL (Fondo Claro)
   Pegar al final de style.css
   ====================================================== */

/* 1. FONDO GENERAL: LIMPIO Y LUMINOSO */
body {
    background-color: #f8f9fc; /* Gris azulado muy pálido, casi blanco */
    background-image: none; /* Quitamos texturas raras */
    color: #334155; /* Texto gris oscuro (no negro puro) para lectura cómoda */
}

/* Quitamos la sombra interna antigua */
body::after { display: none; }

/* 2. HEADER: SÓLIDO Y CORPORATIVO */
.header-premium {
    background: #0f172a !important; /* Azul Navy Sólido (Tu marca) */
    backdrop-filter: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
    border-bottom: none;
}







/* ======================================================
   DISEÑO FINAL: BANNER CENTRADO (SIMETRÍA TOTAL)
   Reemplaza el bloque .main-banner en style.css
   ====================================================== */

.main-banner {
    position: relative;
    width: 100%;
    min-height: 650px;

    /* Tu imagen de fondo */
    background-image: url('TECNOLOGÍA MODERNA 2.png'); 
    background-size: cover; 
    background-position: center center;
    background-repeat: no-repeat;
    
    /* FLEXBOX PARA CENTRAR TODO PERFECTAMENTE */
    display: flex;
    justify-content: center; /* Centrado Horizontal */
    align-items: center; /* Centrado Vertical */
    text-align: center; /* Texto Centrado */
    margin-top: 0;
    padding: 60px 0; /* Espacio arriba y abajo */
}

/* Capa oscura inteligente (Más oscura en el centro para leer el texto) */
.main-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Degradado Radial: Oscuro en el centro, semitransparente en los bordes */
    background: radial-gradient(circle, rgba(2, 6, 23, 0.85) 0%, rgba(2, 6, 23, 0.6) 100%);
    z-index: 1;
}

.banner-content-centered {
    position: relative;
    z-index: 2;
    max-width: 900px; /* Ancho controlado para que no se desparrame */
    margin: 0 auto;
    padding: 0 20px;
    color: white;
}

/* Título Impactante */
.banner-content-centered h1 {
    font-size: 4rem; /* Letra grande */
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 25px;
    /* Sombra negra fuerte para separar el texto del fondo */
    text-shadow: 0 5px 20px rgba(0,0,0,0.9);
}

.highlight-text { color: #ff7f11; }

/* Descripción */
.banner-elegant-desc {
    font-size: 1.3rem;
    line-height: 1.6;
    color: #e2e8f0;
    margin-bottom: 40px;
    font-weight: 500;
    margin-left: auto;
    margin-right: auto;
    max-width: 700px; /* Texto compacto para lectura fácil */
}

/* Insignias Centradas */
.center-badges {
    display: flex;
    justify-content: center; /* Forzar centro */
    gap: 20px;
    margin-bottom: 45px;
    flex-wrap: wrap;
}

.badge-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px); /* Efecto vidrio */
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
}

/* Ajuste para Celulares */
@media (max-width: 900px) {
    .main-banner { min-height: 500px; }
    .banner-content-centered h1 { font-size: 2.5rem; }
    .center-badges { gap: 10px; }
    .banner-elegant-desc { font-size: 1.1rem; }
}















/* 4. RULETA DE OFERTAS: FONDO BLANCO */
.ruleta-section {
    background-color: #ffffff; /* Fondo blanco para diferenciarlo del banner */
    border-bottom: 1px solid #e2e8f0;
}

/* Invertir colores de texto en la ruleta para fondo blanco */
.ruleta-section .hero-slide .slide-content h2.slide-title {
    color: #0f172a !important; /* Título Azul Oscuro */
    text-shadow: none !important;
}

.ruleta-section .hero-slide .slide-content .slide-price {
    color: #ff7f11 !important; /* Precio Naranja */
    text-shadow: none;
}






/* 5. TÍTULOS DE SECCIÓN (CATÁLOGO) */
.section-title {
    color: #0f172a !important; /* Títulos en Azul Oscuro */
    font-weight: 800;
    text-transform: none; /* Más amigable en minúsculas */
    letter-spacing: -0.5px;
}
.section-title::after {
    background: #ff7f11; /* La línea naranja se mantiene */
}

/* 6. TARJETAS DE PRODUCTO: ESTILO AMAZON/MERCADOLIBRE */
.product-card {
    background: #ffffff; /* Tarjeta blanca pura */
    border: 1px solid #e2e8f0; /* Borde gris muy suave */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); /* Sombra muy sutil */
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important; /* Sombra suave al flotar */
    border-color: #cbd5e1;
}

/* CORRECCIÓN DE COLORES DE TEXTO EN TARJETAS */
.product-card h3 { 
    color: #0f172a !important; /* Nombre del producto oscuro */
    font-weight: 700;
}
.product-card .brand { 
    color: #64748b !important; /* Marca en gris medio */
}
.product-card .price { 
    color: #ff7f11 !important; /* Precio en Naranja */
    font-weight: 800;
    text-shadow: none;
}

/* 7. BOTONES: MÁS LIMPIOS */
.btn-explore, .btn-checkout, .search-bar-header button, .btn-add {
    box-shadow: 0 4px 6px rgba(249, 115, 22, 0.2); /* Sombra naranja suave */
}

/* Botón de agregar al carrito (en la tarjeta) */
.btn-add {
    background-color: #0f172a; /* Azul oscuro */
    color: white;
}
.btn-add:hover {
    background-color: #ff7f11 !important; /* Naranja al pasar el mouse */
    color: white;
}

/* 8. FOOTER */
footer {
    background: #0f172a; /* Azul oscuro corporativo */
    border-top: none;
}
.newsletter-strip {
    background: #1e293b; /* Un tono más claro para separar */
}





/* ======================================================
   MEJORA DE TEXTO Y CONFIANZA (SEO BANNER)
   Pegar al final de style.css
   ====================================================== */

/* 1. Descripción del Negocio (Tipografía Profesional) */
.business-desc {
    font-size: 1.15rem; /* Letra un poco más grande para leer fácil */
    line-height: 1.6;
    color: #475569; /* Gris azulado serio */
    margin-bottom: 25px !important;
    max-width: 500px;
}

/* Resaltar palabras clave en negrita dentro del párrafo */
.business-desc strong {
    color: #0f172a; /* Azul oscuro corporativo */
    font-weight: 700;
}

/* 2. Barra de Confianza (Iconos) */
.trust-badges {
    display: flex;
    gap: 20px; /* Separación entre íconos */
    margin-bottom: 30px;
    flex-wrap: wrap; /* Si no cabe en celular, baja a otra línea */
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    padding: 8px 15px;
    border-radius: 50px; /* Forma de píldora */
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.05); /* Sombra muy sutil */
    border: 1px solid rgba(255,255,255,0.5);
    transition: transform 0.3s;
}

.badge-item:hover {
    transform: translateY(-3px); /* Pequeño salto al pasar el mouse */
    box-shadow: 0 6px 15px rgba(255, 127, 17, 0.15); /* Sombra naranja suave */
}

.badge-item i {
    color: #ff7f11; /* Icono Naranja */
    font-size: 1.1rem;
}

.badge-item span {
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
}

/* 3. Ajuste para Celulares */
@media (max-width: 900px) {
    .business-desc {
        font-size: 1rem; /* Texto un poco más chico en móvil */
        padding: 0 10px;
        text-align: center;
        margin: 0 auto 20px auto;
    }
    
    .trust-badges {
        justify-content: center; /* Centrar íconos */
        gap: 10px;
    }
    
    .badge-item {
        font-size: 0.8rem; /* Letra más pequeña */
        padding: 6px 12px;
    }
}





.whatsapp-cta {
  background: linear-gradient(135deg, #0f172a, #020617);
  padding: 50px 20px;
}

.whatsapp-cta-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.whatsapp-cta-text {
  max-width: 650px;
}

.whatsapp-cta-text h3 {
  font-size: 1.9rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 10px;
}

.whatsapp-cta-text p {
  font-size: 1rem;
  line-height: 1.6;
  color: #cbd5f5;
  margin-bottom: 12px;
}

.whatsapp-cta-trust {
  font-size: 0.9rem;
  color: #94a3b8;
}

.whatsapp-cta-btn {
  background: linear-gradient(135deg, #25d366, #16a34a);
  color: #ffffff;
  padding: 16px 28px;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(37, 211, 102, 0.45);
}

/* 📱 Mobile */
@media (max-width: 768px) {
  .whatsapp-cta-container {
    flex-direction: column;
    text-align: center;
  }

  .whatsapp-cta-btn {
    width: 100%;
    justify-content: center;
  }
}










/* ======================================================
   SOLUCIÓN "ESPACIOS VACÍOS" (Pegar al final del CSS)
   ====================================================== */

/* 1. TEXTURA DE FONDO (Para llenar los costados) */
body {
    /* Mantenemos el color base claro */
    background-color: #f8f9fc;
    /* Agregamos un patrón de puntos muy sutil (estilo Tech) */
    background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
    background-size: 30px 30px; /* Tamaño de la cuadrícula de puntos */
    /* Esto hace que los costados tengan "algo" sin distraer */
}

/* Asegurar que las secciones tengan fondo propio para que el texto se lea bien */
.catalog, .product-detail, .footer-grid {
    position: relative;
    z-index: 1;
}

/* 2. CINTA DE BENEFICIOS (MARQUEE) */
.marquee-container {
    background: #0f172a; /* Fondo Azul Oscuro */
    color: white;
    padding: 12px 0;
    overflow: hidden; /* Ocultar lo que se sale */
    white-space: nowrap;
    position: relative;
    border-bottom: 4px solid #ff7f11; /* Línea naranja elegante */
    z-index: 5;
}

.marquee-content {
    display: inline-block;
    animation: marquee 25s linear infinite; /* Animación continua */
}

.marquee-content span {
    display: inline-block;
    padding-left: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.marquee-content i {
    color: #ff7f11; /* Iconos naranjas */
    margin-right: 8px;
}

/* Animación del movimiento */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Ajuste para que el catálogo tenga un fondo sólido y tape los puntos de atrás */
#catalogo {
    background-color: rgba(248, 249, 252, 0.9); /* Casi opaco */
    backdrop-filter: blur(5px);
    padding-top: 40px;
    border-radius: 20px;
    margin-top: 20px;
    margin-bottom: 40px;
}














/* ======================================================
   WIDGETS LATERALES (SOLO PC > 1400px)
   Pegar al final de style.css
   ====================================================== */

/* Por defecto están ocultos (para móviles y tablets) */
.desktop-side-widget {
    display: none;
}

/* Solo se muestran en pantallas anchas */
@media (min-width: 1450px) {
    .desktop-side-widget {
        display: block;
        position: fixed;
        top: 50%;
        transform: translateY(-50%); /* Centrados verticalmente */
        z-index: 90; /* Detrás del menú y carritos */
        width: 120px;
    }

    /* --- IZQUIERDA: BARRA DE BENEFICIOS --- */
    .left-widget {
        left: 20px;
        background: white;
        border-radius: 15px;
        box-shadow: 0 5px 20px rgba(15, 23, 42, 0.08);
        padding: 20px 10px;
        text-align: center;
        border: 1px solid #f1f5f9;
    }

    .widget-title {
        font-size: 0.8rem;
        font-weight: 800;
        color: #ff7f11;
        text-transform: uppercase;
        margin-bottom: 15px;
        letter-spacing: 1px;
    }

    .widget-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 20px;
        color: #64748b;
        transition: 0.3s;
    }

    .widget-item:last-child { margin-bottom: 0; }

    .widget-item i {
        font-size: 1.5rem;
        margin-bottom: 5px;
        color: #0f172a;
    }

    .widget-item span {
        font-size: 0.7rem;
        font-weight: 600;
        line-height: 1.2;
    }

    .widget-item:hover {
        transform: scale(1.1);
        color: #ff7f11;
    }
    .widget-item:hover i { color: #ff7f11; }


    /* --- DERECHA: PROMO / AYUDA --- */
    .right-widget {
        right: 20px;
        width: 160px; /* Un poco más ancho */
        text-align: center;
    }

    .widget-promo-card {
        background: linear-gradient(145deg, #0f172a, #1e293b);
        color: white;
        padding: 20px 15px;
        border-radius: 15px;
        box-shadow: 0 10px 30px rgba(15, 23, 42, 0.2);
        position: relative;
        margin-bottom: 10px;
    }

    .promo-tag {
        background: #ff7f11;
        color: white;
        font-size: 0.7rem;
        font-weight: 800;
        padding: 3px 8px;
        border-radius: 4px;
        position: absolute;
        top: -10px;
        left: 50%;
        transform: translateX(-50%);
    }

    .widget-promo-card p {
        font-size: 0.9rem;
        margin-bottom: 15px;
        line-height: 1.4;
        margin-top: 5px;
    }

    .btn-side-wa {
        display: block;
        background: #25D366;
        color: white;
        text-decoration: none;
        padding: 8px;
        border-radius: 8px;
        font-size: 0.85rem;
        font-weight: 700;
        transition: 0.3s;
    }
    .btn-side-wa:hover { background: #1ebc57; transform: translateY(-2px); }

    /* Robot decorativo asomándose */
    .side-robot-decor {
        width: 100px;
        margin-top: 10px;
        filter: drop-shadow(0 5px 10px rgba(0,0,0,0.2));
        animation: float 6s ease-in-out infinite reverse; /* Flota al revés del principal */
    }
}













/* ======================================================
   CORRECCIÓN URGENTE: FLECHAS CARRUSEL VISIBLES
   Pegar al final de style.css
   ====================================================== */

/* 1. Estilo Base Reforzado (Para que se vean SÍ o SÍ) */
.ruleta-prev, .ruleta-next {
    background-color: #ff7f11 !important; /* Naranja fuerte */
    color: white !important; /* Flecha blanca */
    border: 2px solid white !important; /* Borde blanco para resaltar */
    opacity: 1 !important; /* Opacidad total */
    width: 50px !important; /* Un poco más grandes */
    height: 50px !important;
    border-radius: 50%;
    z-index: 100 !important; /* ENCIMA DE LOS WIDGETS */
    box-shadow: 0 5px 15px rgba(255, 127, 17, 0.4);
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.ruleta-prev:hover, .ruleta-next:hover {
    background-color: #e66e00 !important; /* Naranja más oscuro al pasar el mouse */
    transform: translateY(-50%) scale(1.1); /* Efecto pop */
}

/* 2. Posición en PC (Evitar choque con Widgets Laterales) */
@media (min-width: 1450px) {
    .ruleta-prev {
        left: 220px !important; /* Mover más a la derecha para no tocar el widget de beneficios */
    }
    .ruleta-next {
        right: 220px !important; /* Mover más a la izquierda para no tocar el widget de ayuda */
    }
}

/* 3. Posición en Laptops Normales (Sin widgets laterales visibles) */
@media (min-width: 901px) and (max-width: 1449px) {
    .ruleta-prev { left: 20px !important; }
    .ruleta-next { right: 20px !important; }
}

/* 4. Posición en Celular (Como estaba antes) */
@media (max-width: 900px) {
    .ruleta-prev { left: 10px !important; width: 35px !important; height: 35px !important; }
    .ruleta-next { right: 10px !important; width: 35px !important; height: 35px !important; }
}







/* ======================================================
   ESTILOS DE PRECIOS Y OFERTAS (Tipo Amazon)
   Pegar al final de style.css
   ====================================================== */

/* Contenedor de precios */
.price-block {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

/* Precio Antiguo (Tachado) */
.old-price {
    font-size: 0.9rem;
    color: #64748b; /* Gris medio */
    text-decoration: line-through;
    font-weight: 500;
}

/* Precio Nuevo (Naranja Fuerte) */
.current-price {
    font-size: 1.3rem !important;
    color: #ff7f11 !important; /* Naranja Marca */
    font-weight: 800;
}

/* Etiqueta de Porcentaje */
.discount-tag {
    display: inline-block;
    color: #16a34a; /* Verde éxito o Naranja si prefieres */
    font-size: 0.8rem;
    font-weight: 700;
    width: fit-content;
}

/* Etiqueta Flotante Roja "OFERTA" */
.promo-badge-card {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ef4444; /* Rojo intenso */
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 4px;
    z-index: 5;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Ajuste Móvil */
@media (max-width: 900px) {
    .current-price { font-size: 1.2rem !important; }
    .old-price { font-size: 0.85rem; }
}










/* ======================================================
   ESTILOS FICHA TÉCNICA (NUEVO)
   Pegar al final de style.css
   ====================================================== */
.tech-specs-container {
    background-color: #f1f5f9;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    border-left: 4px solid #0f172a;
}

.specs-title {
    color: #0f172a;
    margin-bottom: 15px;
    font-size: 1.1rem;
    border-bottom: 1px solid #cbd5e1;
    padding-bottom: 10px;
}

.specs-list li {
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: #334155;
    display: flex;
    flex-direction: column; /* En celular se ve mejor uno arriba de otro */
}

.specs-list strong {
    color: #0f172a;
    font-weight: 700;
}

.specs-list i {
    color: #ff7f11;
    margin-right: 5px;
    width: 20px;
    text-align: center;
}

/* Ajuste para PC: poner etiqueta y valor en la misma línea */
@media (min-width: 768px) {
    .specs-list li {
        flex-direction: row;
        align-items: center;
    }
    .specs-list strong {
        width: 160px; /* Ancho fijo para alinear */
        flex-shrink: 0;
    }
}






/* ======================================================
   ESTILOS PARA PRODUCTOS AGOTADOS
   Pegar al final de style.css
   ====================================================== */

/* Etiqueta roja de Agotado */
.stock-badge.out {
    background-color: #fee2e2; /* Fondo rojo claro */
    color: #ef4444; /* Texto rojo */
    border: 1px solid #ef4444;
}

/* Botón deshabilitado (Gris) */
.btn-disabled {
    background-color: #94a3b8 !important; /* Gris */
    color: #ffffff;
    cursor: not-allowed !important; /* Muestra prohibido al pasar mouse */
    pointer-events: none; /* Evita que se pueda dar clic */
    box-shadow: none !important;
    transform: none !important;
}

/* Opacar la imagen en el catálogo si está agotado */
.product-card.out-stock img {
    opacity: 0.6;
    filter: grayscale(100%); /* Opcional: poner en blanco y negro */
}





/* BARRA DE ENVÍO GRATIS */
.shipping-goal {
    padding: 15px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}
.shipping-text {
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: #334155;
    font-weight: 600;
}
.progress-bar-bg {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}
.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff7f11, #e66e00);
    width: 0%;
    transition: width 0.5s ease;
}
.shipping-success {
    color: #16a34a; /* Verde */
    font-weight: 800;
}







.badge-tag {
    position: absolute;
    top: 10px;
    right: 10px; /* A la derecha para no chocar con OFERTA */
    padding: 4px 8px;
    border-radius: 4px;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    z-index: 5;
    text-transform: uppercase;
}
.badge-new { background-color: #3b82f6; } /* Azul */
.badge-best { background-color: #eab308; color: black; } /* Dorado */






/* ======================================================
   WIDGET ENVÍO GRATIS (HEADER) - Estilo Cápsula
   Pegar al final de style.css
   ====================================================== */

.shipping-widget-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-right: 15px;
    background: rgba(255, 255, 255, 0.1); /* Fondo semitransparente */
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    min-width: 140px;
    transition: 0.3s;
}

.shipping-widget-header:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Fila de texto e icono */
.shipping-info-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 5px;
    font-size: 0.75rem;
    color: #e2e8f0; /* Texto claro */
    white-space: nowrap;
    
}

.shipping-info-row i {
    color: #ff7f11; /* Camioncito naranja */
}

/* Barra de progreso pequeña */
.header-progress-bg {
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    overflow: hidden;
}

.header-progress-fill {
    height: 100%;
    background: #ff7f11; /* Naranja Marca */
    width: 0%;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px rgba(255, 127, 17, 0.6); /* Brillo neón */
}

/* Texto de éxito (cuando llega a la meta) */
.shipping-success-text {
    color: #4ade80 !important; /* Verde brillante */
    font-weight: 800;
}

/* --- AJUSTES PARA CELULAR --- */
@media (max-width: 900px) {
    .shipping-widget-header {
        margin-right: 10px;
        padding: 5px 10px;
        min-width: 110px; /* Más compacto */
    }
    
    .shipping-info-row {
        font-size: 0.65rem; /* Texto más pequeño */
    }
    
    /* En pantallas MUY pequeñas (iPhone SE), ocultamos el texto largo */
    @media (max-width: 360px) {
        .shipping-widget-header { display: none; } /* Opcional: ocultar si no cabe */
    }
}





/* ======================================================
   PAQUETE 2: FAVORITOS E HISTORIAL
   Pegar al final de style.css
   ====================================================== */

/* 1. Icono Header */
.wishlist-icon {
    position: relative; cursor: pointer; font-size: 1.4rem; color: white; margin-right: 5px;
}
#wishlist-count {
    position: absolute; top: -8px; right: -8px;
    background-color: #e11d48; /* Rojo */
    color: white; font-size: 0.7rem; font-weight: bold;
    padding: 2px 5px; border-radius: 50%;
}

/* 2. Botón Corazón en Tarjeta de Producto */
.btn-wishlist-card {
    position: absolute;
    top: 10px;
    right: 10px; /* Esquina superior derecha */
    background: white;
    width: 35px; height: 35px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    z-index: 20;
    transition: 0.3s;
    font-size: 1.1rem;
    color: #94a3b8; /* Gris apagado inicial */
}

.btn-wishlist-card:hover { transform: scale(1.1); }

/* Estado Activo (Like dado) */
.btn-wishlist-card.liked {
    color: #e11d48; /* Rojo */
    background: #ffe4e6;
}
.btn-wishlist-card.liked i { font-weight: 900; } /* Corazón sólido */

/* Mover la etiqueta "NUEVO/TOP" a la izquierda para no chocar con el corazón */
.badge-tag {
    right: auto !important;
    left: 12px !important;
    top: 35px !important; /* Debajo de la etiqueta OFERTA */
}

/* 3. Estilos del Historial (Carrusel Horizontal Simple) */
#history-grid {
    display: flex;
    gap: 15px;
    overflow-x: auto; /* Scroll lateral en celular */
    scroll-behavior: smooth;
}
#history-grid::-webkit-scrollbar { height: 6px; }
#history-grid::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }

.history-card {
    min-width: 140px;
    width: 140px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    background: white;
    transition: 0.3s;
}
.history-card:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.history-card img { width: 100%; height: 80px; object-fit: contain; margin-bottom: 5px; }
.history-card h5 { font-size: 0.8rem; margin-bottom: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history-price { color: #ff7f11; font-weight: 700; font-size: 0.9rem; }






/* Separación entre Corazón y Carrito */
.wishlist-icon {
    margin-right: 15px !important; /* Espacio a la derecha del corazón */
    display: flex;
    align-items: center;
}

/* Alineación de la zona de iconos */
.icons {
    display: flex;
    align-items: center;
    gap: 5px; /* Espacio extra seguro */
}




/* ======================================================
   PAQUETE 3: VISTA RÁPIDA Y SCROLL
   Pegar al final de style.css
   ====================================================== */

/* 1. Modal Vista Rápida */
.quickview-modal {
    position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.9);
    background: white; width: 90%; max-width: 800px;
    border-radius: 12px; z-index: 2000;
    opacity: 0; visibility: hidden; transition: 0.3s;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    overflow: hidden;
}
.quickview-modal.active { transform: translate(-50%, -50%) scale(1); opacity: 1; visibility: visible; }

.quickview-content { display: grid; grid-template-columns: 1fr 1fr; }

.qv-image-container { 
    background: #f8fafc; padding: 20px; display: flex; align-items: center; justify-content: center; 
}
.qv-image-container img { max-width: 100%; max-height: 300px; object-fit: contain; }

.qv-info-container { padding: 30px; display: flex; flex-direction: column; justify-content: center; }

.close-quickview {
    position: absolute; top: 10px; right: 10px;
    background: none; border: none; font-size: 1.5rem; cursor: pointer; color: #64748b; z-index: 10;
}

/* Botón "Ojito" en la tarjeta */
.btn-quickview-card {
    position: absolute; top: 50px; right: 10px; /* Debajo del corazón */
    background: white; width: 35px; height: 35px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); cursor: pointer; z-index: 20;
    transition: 0.3s; color: #334155;
    opacity: 0; transform: translateX(10px); /* Oculto por defecto */
}
.product-card:hover .btn-quickview-card { opacity: 1; transform: translateX(0); } /* Aparece al pasar el mouse */
.btn-quickview-card:hover { background: #334155; color: white; }

/* 2. Botón Volver Arriba */
#btn-scroll-top {
    position: fixed; bottom: 20px; right: 20px;
    background: #ff7f11; color: white; border: none;
    width: 45px; height: 45px; border-radius: 50%;
    font-size: 1.2rem; cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 127, 17, 0.4);
    opacity: 0; visibility: hidden; transition: 0.3s; z-index: 999;
}
#btn-scroll-top.visible { opacity: 1; visibility: visible; bottom: 30px; }

/* 3. Animación de Entrada (Scroll Reveal) */
.reveal {
    opacity: 0; transform: translateY(30px); transition: all 0.6s ease-out;
}
.reveal.active { opacity: 1; transform: translateY(0); }

/* Ajuste Móvil Vista Rápida */
@media (max-width: 768px) {
    .quickview-content { grid-template-columns: 1fr; }
    .qv-image-container { height: 200px; }
    .qv-info-container { padding: 20px; }
    .btn-quickview-card { opacity: 1; transform: none; } /* En celular siempre visible */
}






/* ======================================================
   PAQUETE 4: BREADCRUMBS, SHARE Y FAQ
   Pegar al final de style.css
   ====================================================== */

/* 1. Breadcrumbs (Migas de Pan) */
.breadcrumbs-container {
    font-size: 0.9rem; color: #64748b; margin-bottom: 10px;
}
.breadcrumbs-container a {
    color: #64748b; text-decoration: none; transition: 0.2s;
}
.breadcrumbs-container a:hover { color: #ff7f11; }
.breadcrumbs-container .separator { margin: 0 8px; color: #cbd5e1; }
.breadcrumbs-container .current { color: #334155; font-weight: 600; }

/* 2. Botones de Compartir */
.share-buttons { display: flex; gap: 10px; }
.btn-share {
    width: 40px; height: 40px; border-radius: 50%; border: none;
    color: white; font-size: 1.1rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: 0.3s;
}
.btn-share:hover { transform: translateY(-3px); }
.btn-share.wa { background: #25D366; }
.btn-share.fb { background: #1877F2; }
.btn-share.cp { background: #475569; }

/* 3. Acordeón FAQ (Sin JS, puro CSS moderno) */
.faq-item {
    border: 1px solid #e2e8f0; border-radius: 8px; margin-bottom: 10px; overflow: hidden;
}
.faq-item summary {
    background: #f8fafc; padding: 12px 15px; cursor: pointer;
    font-weight: 600; font-size: 0.95rem; list-style: none; /* Quita el triángulo default */
    display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::after {
    content: '+'; font-size: 1.2rem; color: #94a3b8;
}
.faq-item[open] summary::after { content: '-'; } /* Cambia a menos cuando abre */
.faq-item p {
    padding: 15px; font-size: 0.9rem; color: #475569; line-height: 1.5; border-top: 1px solid #e2e8f0;
}




/* ======================================================
   PAQUETE 5: BUSCADOR PREDICTIVO (LIVE SEARCH)
   Pegar al final de style.css
   ====================================================== */

/* Aseguramos que el padre sea relativo para posicionar la lista */
.search-bar-header {
    position: relative;
    /* Asegura que el z-index sea alto para flotar sobre el contenido */
    z-index: 500; 
}

/* La lista flotante */
.live-search-list {
    position: absolute;
    top: 45px; /* Justo debajo del input */
    left: 0;
    width: 100%;
    background: white;
    border-radius: 0 0 12px 12px; /* Redondeado solo abajo */
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    list-style: none;
    padding: 0;
    margin: 0;
    display: none; /* Oculto por defecto */
    max-height: 400px;
    overflow-y: auto; /* Scroll si hay muchos resultados */
    border: 1px solid #e2e8f0;
    border-top: none;
}

.live-search-list.active {
    display: block;
    animation: slideDown 0.2s ease-out;
}

/* Items de la lista */
.live-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: 0.2s;
    text-decoration: none; /* Para links */
    color: inherit;
}

.live-item:last-child { border-bottom: none; }
.live-item:hover { background-color: #f8fafc; padding-left: 20px; }

/* Imagen pequeña */
.live-item img {
    width: 40px; height: 40px; object-fit: contain;
    margin-right: 15px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}

/* Info del producto */
.live-item-info { flex: 1; }
.live-item-info h4 { font-size: 0.85rem; margin: 0; color: #334155; }
.live-item-info span { font-size: 0.8rem; color: #ff7f11; font-weight: 700; }

/* Animación suave */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}




/* ======================================================
   PAQUETE 6: MODO OSCURO (DARK MODE) 🌙
   Pegar al final de style.css
   ====================================================== */

/* Botón del Header */
.theme-toggle {
    font-size: 1.2rem;
    color: white;
    margin-left: 15px;
    cursor: pointer;
    transition: transform 0.3s ease;
}
.theme-toggle:hover { transform: rotate(15deg) scale(1.1); }

/* --- ESTILOS OSCUROS --- */
body.dark-mode {
    background-color: #0f172a; /* Azul noche muy oscuro */
    color: #f1f5f9; /* Texto casi blanco */
}

/* Tarjetas de Producto */
body.dark-mode .product-card {
    background-color: #1e293b; /* Gris azulado oscuro */
    border-color: #334155;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}
body.dark-mode .product-card h3 { color: #e2e8f0; }
body.dark-mode .brand { color: #94a3b8; }
body.dark-mode .btn-add {
    background-color: #334155; 
    color: #e2e8f0;
}
body.dark-mode .btn-add:hover { background-color: #ff7f11; color: white; }

/* Modales (Carrito, Wishlist, QuickView) */
body.dark-mode .cart-modal, 
body.dark-mode .category-sidebar,
body.dark-mode .quickview-modal {
    background-color: #1e293b;
    color: #f1f5f9;
}
body.dark-mode .cart-item { border-bottom-color: #334155; }
body.dark-mode .cart-item h4 { color: #f1f5f9; }
body.dark-mode .total { color: #f1f5f9; border-top-color: #334155; }
body.dark-mode .live-search-list { background-color: #1e293b; border-color: #334155; }
body.dark-mode .live-item { border-bottom-color: #334155; color: #f1f5f9; }
body.dark-mode .live-item:hover { background-color: #334155; }
body.dark-mode .live-item-info h4 { color: #f1f5f9; }

/* Página de Detalle */
body.dark-mode .product-info-col h1 { color: #f1f5f9; }
body.dark-mode .detail-brand { color: #94a3b8; }
body.dark-mode .seller-info-card { background: #0f172a; border-color: #334155; }
body.dark-mode .seller-header h4 { color: #f1f5f9; }
body.dark-mode .faq-item summary { background: #1e293b; color: #f1f5f9; }
body.dark-mode .faq-item p { background: #0f172a; color: #cbd5e1; border-color: #334155; }
body.dark-mode .breadcrumbs-container .current { color: #e2e8f0; }

/* Widgets Laterales (Beneficios) */
body.dark-mode .desktop-side-widget {
    background: #1e293b; border-color: #334155;
}
body.dark-mode .widget-title { color: #f1f5f9; border-bottom-color: #334155; }
body.dark-mode .widget-item span { color: #cbd5e1; }



/* ======================================================
   CORRECCIÓN URGENTE: TEXTO TARJETAS EN MODO OSCURO
   Pegar al final de style.css
   ====================================================== */

/* 1. Título del Producto (Nombre) */
body.dark-mode .product-card h3 {
    color: #f8fafc !important; /* Blanco Brillante */
}

/* 2. Marca del Producto */
body.dark-mode .product-card .brand {
    color: #cbd5e1 !important; /* Gris Claro */
}

/* 3. Asegurar que el enlace no oscurezca el texto */
body.dark-mode .product-card a {
    color: inherit !important;
    text-decoration: none;
}

/* 4. Precio Normal (Si no es oferta) */
body.dark-mode .current-price {
    color: #f8fafc; /* Blanco para resaltar */
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

/* 5. Títulos de los Modales y Secciones */
body.dark-mode .section-title,
body.dark-mode .cart-header h3,
body.dark-mode .sidebar-header h3 {
    color: #f1f5f9 !important;
}






/* ======================================================
   EFECTO HOVER EN TARJETAS DE PRODUCTO
   Pegar al final de style.css
   ====================================================== */

/* 1. Asegurar que la tarjeta tenga un borde base transparente y una transición suave */
.product-card {
    /* Crea un borde invisible inicial para evitar que la tarjeta "salte" */
    border: 2px solid transparent; 
    /* Suaviza el cambio de color y el movimiento */
    transition: all 0.3s ease;
}

/* 2. Definir el estilo cuando el mouse está encima (:hover) */
.product-card:hover {
    /* Cambia el color del borde al naranja de tu marca */
    border-color: #ff7f11 !important; 
    
    /* OPCIONAL: Añade un ligero efecto de elevación y sombra para más realismo */
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 127, 17, 0.15);
}

/* --- AJUSTE PARA MODO OSCURO --- */
/* Asegura que el efecto se vea bien también en modo noche */
body.dark-mode .product-card:hover {
    border-color: #ff7f11 !important;
    box-shadow: 0 10px 20px rgba(255, 127, 17, 0.25); /* Sombra naranja más visible en oscuro */
}


/* ======================================================
   ESTILOS COMPARADOR DE PRODUCTOS
   Pegar al final de style.css
   ====================================================== */

/* Barra Flotante Inferior */
.compare-bar {
    position: fixed; bottom: -60px; left: 50%; transform: translateX(-50%);
    background: #1e293b; color: white; padding: 10px 20px;
    border-radius: 50px; display: flex; align-items: center; gap: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3); z-index: 1000;
    transition: bottom 0.3s ease;
}
.compare-bar.active { bottom: 30px; }
.compare-bar button {
    background: #ff7f11; border: none; color: white; padding: 5px 15px;
    border-radius: 20px; cursor: pointer; font-weight: 600;
}
.compare-bar .btn-clear { background: #ef4444; padding: 5px 10px; }

/* Tabla Comparativa */
.compare-table-wrapper { overflow-x: auto; }
#compare-table { width: 100%; border-collapse: collapse; min-width: 600px; }
#compare-table th, #compare-table td {
    border: 1px solid #e2e8f0; padding: 15px; text-align: center; vertical-align: middle;
}
#compare-table th { background: #f8fafc; color: #64748b; font-weight: 600; text-align: left; width: 150px; }
#compare-table img { width: 80px; height: 80px; object-fit: contain; }
#compare-table h4 { font-size: 0.9rem; margin: 10px 0; color: #334155; }

/* Botón Comparar en la Tarjeta (Icono Balanza) */
.btn-compare-card {
    position: absolute; top: 90px; right: 10px; /* Debajo del ojito */
    background: white; width: 35px; height: 35px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); cursor: pointer; z-index: 20;
    transition: 0.3s; color: #334155; opacity: 0; transform: translateX(10px);
}
.product-card:hover .btn-compare-card { opacity: 1; transform: translateX(0); }
.btn-compare-card:hover, .btn-compare-card.active { background: #334155; color: white; }

/* Ajuste Modo Oscuro */
body.dark-mode #compare-table th { background: #1e293b; color: #cbd5e1; border-color: #334155; }
body.dark-mode #compare-table td { border-color: #334155; color: #f1f5f9; }
body.dark-mode #compare-table h4 { color: #f1f5f9; }




/* ======================================================
   PAQUETE 7: FILTROS AVANZADOS Y NOTIFICACIÓN
   Pegar al final de style.css
   ====================================================== */

/* 1. Estilos del Sidebar de Filtros */
.sidebar-content { padding: 20px; overflow-y: auto; height: calc(100% - 60px); }

.filter-group { 
    margin-bottom: 25px; 
    border-bottom: 1px solid rgba(255,255,255,0.1); 
    padding-bottom: 15px; 
}
.filter-group:last-child { border-bottom: none; }
.filter-group h4 { 
    color: #ff7f11; margin-bottom: 12px; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.5px;
}

/* Inputs de Precio */
.price-inputs { display: flex; gap: 10px; align-items: center; }
.price-inputs input { 
    width: 100%; padding: 8px 10px; border-radius: 6px; 
    border: 1px solid rgba(255,255,255,0.2); 
    background: rgba(255,255,255,0.05); color: white; font-size: 0.9rem;
}
.price-inputs input:focus { outline: none; border-color: #ff7f11; background: rgba(255,255,255,0.1); }
.price-inputs span { color: white; }

/* Lista de Marcas */
.brand-list { display: flex; flex-direction: column; gap: 8px; max-height: 200px; overflow-y: auto; }
.brand-list label { 
    display: flex; align-items: center; gap: 8px; color: #cbd5e1; 
    cursor: pointer; font-size: 0.9rem; transition: 0.2s;
}
.brand-list label:hover { color: white; }
.brand-list input[type="checkbox"] { accent-color: #ff7f11; transform: scale(1.1); }

/* 2. Notificación Carrito (Toast Amigable) */
.cart-toast {
    position: fixed; bottom: 20px; left: 20px; 
    background: white; padding: 15px 20px; border-radius: 12px; 
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    display: flex; align-items: center; gap: 15px; z-index: 2000;
    transform: translateY(200%); /* Oculto abajo */
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55); /* Efecto rebote */
    border-left: 5px solid #ff7f11; max-width: 90%; width: 350px;
}
.cart-toast.visible { transform: translateY(0); }

.toast-content { display: flex; align-items: center; gap: 12px; flex-grow: 1; }
.toast-content i { font-size: 1.8rem; color: #ff7f11; }
.toast-content strong { display: block; font-size: 0.95rem; color: #1e293b; margin-bottom: 2px; }
.toast-content p { font-size: 0.85rem; color: #64748b; margin: 0; line-height: 1.2; }

.cart-toast button {
    background: #1e293b; color: white; border: none; padding: 8px 12px; 
    border-radius: 6px; cursor: pointer; font-size: 0.8rem; font-weight: 600; white-space: nowrap;
}
.cart-toast .close-toast { 
    background: none; color: #94a3b8; padding: 5px; font-size: 1.2rem;
}
.cart-toast .close-toast:hover { color: #ef4444; background: none; }

/* Ajuste Modo Oscuro */
body.dark-mode .cart-toast { background: #1e293b; border: 1px solid #334155; border-left: 5px solid #ff7f11; }
body.dark-mode .toast-content strong { color: #f1f5f9; }
body.dark-mode .toast-content p { color: #cbd5e1; }
body.dark-mode .cart-toast button { background: #ff7f11; }







/* ======================================================
   PAQUETE: HISTORIA Y VALORES (ESTILO PREMIUM)
   ====================================================== */

.about-section {
    padding: 80px 0;
    /* Fondo sutil de cuadrícula técnica para dar toque ingenieril */
    background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
    background-size: 30px 30px;
}

/* --- BLOQUE HISTORIA --- */
.about-story {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.subtitle-badge {
    background: #fff7ed; color: #ff7f11; font-weight: 800; font-size: 0.8rem;
    padding: 6px 12px; border-radius: 30px; letter-spacing: 1px; display: inline-block; margin-bottom: 15px;
}

.story-content h2 { font-size: 2.8rem; line-height: 1.1; margin-bottom: 25px; color: #1e293b; }
.story-content p { font-size: 1rem; color: #64748b; line-height: 1.8; margin-bottom: 20px; }
.story-intro { font-size: 1.2rem; color: #334155; font-weight: 500; }

.founder-signature {
    display: flex; align-items: center; gap: 15px; margin-top: 30px;
    padding-top: 20px; border-top: 1px solid #e2e8f0;
}
.signature-avatar { width: 50px; height: 50px; border-radius: 50%; }
.founder-signature strong { display: block; color: #1e293b; font-size: 1rem; }
.founder-signature span { font-size: 0.85rem; color: #ff7f11; font-weight: 600; }

/* Visual de la derecha */
.story-visual { position: relative; }
.story-visual img { 
    width: 100%; border-radius: 20px; 
    box-shadow: 20px 20px 0px #ff7f11; /* Efecto de marco desplazado */
    transform: rotate(2deg); transition: 0.3s;
}
.story-visual:hover img { transform: rotate(0deg); box-shadow: 10px 10px 0px #1e293b; }

.visual-card {
    position: absolute; bottom: -20px; left: -20px;
    background: white; padding: 15px 25px; border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15); display: flex; align-items: center; gap: 10px;
    font-weight: 700; color: #1e293b; z-index: 2;
}
.visual-card i { color: #ff7f11; font-size: 1.5rem; }


/* --- BLOQUE POR QUÉ ELEGIRNOS --- */
.why-choose-us-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px;
}

.benefit-card {
    background: white; padding: 35px 25px; border-radius: 16px;
    border: 1px solid #f1f5f9; text-align: center; transition: 0.3s;
    position: relative; overflow: hidden;
}
.benefit-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.08); border-color: #ffedd5; }

.benefit-icon {
    width: 70px; height: 70px; margin: 0 auto 20px;
    background: #f8fafc; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; color: #64748b; transition: 0.3s;
}
.benefit-card:hover .benefit-icon { background: #ff7f11; color: white; transform: rotateY(180deg); }

.benefit-card h3 { font-size: 1.25rem; margin-bottom: 15px; color: #1e293b; }
.benefit-card p { font-size: 0.95rem; color: #64748b; line-height: 1.6; }

/* Tarjeta destacada del medio */
.benefit-card.highlight { border-top: 4px solid #ff7f11; }


/* --- AJUSTES MODO OSCURO --- */
body.dark-mode .about-section { background-image: radial-gradient(#334155 1px, transparent 1px); }
body.dark-mode .story-content h2, body.dark-mode .founder-signature strong, body.dark-mode .benefit-card h3 { color: #f1f5f9; }
body.dark-mode .story-intro { color: #cbd5e1; }
body.dark-mode .visual-card { background: #1e293b; color: #f1f5f9; }
body.dark-mode .benefit-card { background: #1e293b; border-color: #334155; }
body.dark-mode .benefit-icon { background: #0f172a; }






/* ======================================================
   PAQUETE 8: CONFIANZA Y POLÍTICAS
   Pegar al final de style.css
   ====================================================== */

/* 1. Barra de Sellos de Confianza */
.trust-badges-bar {
    background: #f8fafc; border-top: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0;
    padding: 30px 0; margin-bottom: 60px;
}
.trust-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px;
}
.trust-item {
    display: flex; align-items: center; gap: 15px; justify-content: center;
}
.trust-item i {
    font-size: 2rem; color: #ff7f11;
}
.trust-item div { display: flex; flex-direction: column; }
.trust-item strong { font-size: 0.95rem; color: #1e293b; }
.trust-item span { font-size: 0.8rem; color: #64748b; }

/* 2. Sección de Políticas */
.policies-section { margin-bottom: 80px; }
.policies-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px;
}

.policy-card {
    background: white; border: 1px solid #e2e8f0; border-radius: 12px;
    padding: 30px; position: relative; transition: 0.3s;
}
.policy-card:hover { 
    border-color: #ff7f11; box-shadow: 0 10px 30px rgba(0,0,0,0.05); 
}

.policy-icon {
    width: 50px; height: 50px; background: #fff7ed; color: #ff7f11;
    border-radius: 10px; display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; margin-bottom: 20px;
}

.policy-card h3 { font-size: 1.1rem; margin-bottom: 15px; color: #1e293b; }
.policy-card p { font-size: 0.9rem; color: #64748b; line-height: 1.6; margin-bottom: 15px; }

.policy-note {
    display: block; font-size: 0.8rem; color: #94a3b8; font-style: italic; margin-top: 10px;
}

.policy-list { list-style: none; padding: 0; }
.policy-list li {
    font-size: 0.85rem; color: #475569; margin-bottom: 8px; display: flex; gap: 10px; align-items: center;
}
.policy-list li i.fa-check { color: #16a34a; }
.policy-list li i.fa-xmark { color: #ef4444; }

/* Ajustes Modo Oscuro */
body.dark-mode .trust-badges-bar { background: #0f172a; border-color: #334155; }
body.dark-mode .trust-item strong, body.dark-mode .policy-card h3 { color: #f1f5f9; }
body.dark-mode .trust-item span, body.dark-mode .policy-card p, body.dark-mode .policy-list li { color: #cbd5e1; }
body.dark-mode .policy-card { background: #1e293b; border-color: #334155; }
body.dark-mode .policy-icon { background: #334155; }










/* ======================================================
   CORRECCIÓN: SIDEBAR SIEMPRE OSCURO (MODO DÍA Y NOCHE)
   Pegar al final de style.css
   ====================================================== */

/* 1. Contenedor Principal (Siempre Fondo Oscuro) */
.category-sidebar {
    background-color: #111827 !important; /* Color casi negro (Dark Slate) */
    color: #f3f4f6 !important; /* Texto blanco suave */
    border-right: 1px solid #374151; /* Borde sutil para separar */
}

/* 2. Encabezado "Filtros" y Botón Cerrar */
.sidebar-header h3 {
    color: #f9fafb !important; /* Blanco puro */
}
.sidebar-header button {
    color: #f9fafb !important; /* X blanca */
}

/* 3. Títulos de Secciones (Categorías, Precio, Marcas) */
.filter-group h4 {
    color: #ff7f11 !important; /* Naranja corporativo para resaltar */
    font-weight: 700 !important;
}

/* 4. Lista de Categorías (Todo, Conectividad...) */
.sidebar-menu li {
    color: #e5e7eb !important; /* Gris muy claro */
    border-bottom: 1px solid rgba(255,255,255,0.1); /* Separadores sutiles */
}
.sidebar-menu li:hover {
    color: #ff7f11 !important; /* Naranja al pasar el mouse */
    padding-left: 10px; /* Pequeño movimiento */
    background: rgba(255,255,255,0.05);
}

/* 5. Inputs de Precio (Cajas de texto) */
.price-inputs input {
    background-color: #1f2937 !important; /* Gris oscuro */
    color: white !important;
    border: 1px solid #4b5563 !important;
}
.price-inputs span {
    color: white !important;
}

/* 6. Lista de Marcas (Checkboxes) */
.brand-list label {
    color: #d1d5db !important; /* Gris claro */
}
.brand-list label:hover {
    color: white !important;
}

/* 7. Asegurar que el fondo del cuerpo no afecte */
body:not(.dark-mode) .category-sidebar {
    background-color: #111827 !important;
}

