/* =================================================================================
// H O J A   D E   E S T I L O S  -  I D C v6.5 (Unificada con LK/CW)
// =================================================================================
// Versión: 6.6 (Diseño de header, nav y botones unificado con LK/CW v6.x)
// =================================================================================

/* ============================================== */
/* VARIABLES Y RESET BÁSICO           */
/* ============================================== */
:root {
    /* Paleta de IDC (v5.0) */
    --color-principal: #00abb6;
    --color-secundario: #dfdfdf;
    --color-terciario: #ff5246;
    --color-resaltar: #ff5246;
    --color-fondo: ghostwhite;
    --naranja-etiqueta: #E67E22;

    /* NUEVO: Variables del Header Global (de LK v6.x) */
    --color-cw-brand: #4a4a4a; /* Gris para Custom Wear */
    --color-idc-brand: #00abb6; /* Color de IDC */
    --color-lionkids-brand: #DB5552; /* Rojo para Lion Kids */
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--color-fondo);
}

/* ============================================== */
/* NUEVO: HEADER GLOBAL (Estilo LK/CW v6.x)     */
/* ============================================== */
header {
    background-color: #1A1A1A; /* Fondo negro unificado */
    color: var(--color-secundario);
    padding: 0; 
    display: flex;
    align-items: center;
    justify-content: space-between; 
    height: 70px; 
    width: 100%;
    top: 0;
    z-index: 1000;
}

.botones-locales {
    display: flex;
    height: 100%; 
    align-items: center;
    gap: 0;
}  

.botones-locales a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%; 
    padding: 0 20px;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

.botones-locales img {
    height: 50px; 
    border-radius: 0; 
    box-shadow: none; 
}

/* --- Efectos Hover y Activo de los Logos --- */
.botones-locales a.logo-customwear:hover {
    background-color: var(--color-cw-brand);
}
.botones-locales a.logo-idc:hover,
.botones-locales a.logo-idc.active-logo {
    background-color: var(--color-idc-brand); /* Color de marca IDC */
}
.botones-locales a.logo-lionkids:hover {
    background-color: var(--color-lionkids-brand);
}

/* --- Lógica para Intercambiar Logos en Hover y Activo --- */
.botones-locales a .logo-hover { 
    display: none; 
}
.botones-locales a:hover .logo-default,
.botones-locales a.active-logo .logo-default { 
    display: none; 
}
.botones-locales a:hover .logo-hover,
.botones-locales a.active-logo .logo-hover { 
    display: block; 
}

.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: none; 
    font-size: 24px;
    color: white;
    padding: 0 20px; 
}

/* ================================================================================= */
/* ESTILOS PÁGINA DE INICIO (INDEX.HTML)                                             */
/* ================================================================================= */
.pagina-inicio {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.pagina-inicio .banner {
    padding: 20px 10px;
    text-align: center;
}

.pagina-inicio .banner img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
}

.pagina-inicio .botones {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
    padding: 0 20px;
}

.pagina-inicio .boton {
    background-color: var(--color-principal);
    color: var(--color-secundario);
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 24px;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
    min-width: 200px;
    text-align: center;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
}

.pagina-inicio .boton:hover {
    background-color: var(--color-terciario);
}

.pagina-inicio footer {
    margin-top: auto; /* Empuja el footer hacia abajo */
}

/* ============================================== */
/* NUEVO: BARRA DE NAVEGACIÓN (Estilo LK/CW v6.x) */
/* ============================================== */
nav {
    background-color: var(--color-principal); /* Color de marca IDC */
    width: 100%;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.nav-links {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    padding: 15px 25px; 
    transition: background-color 0.3s ease;
    display: block; 
}

nav a:hover,
nav a.active-link {
    background-color: #1a1a1a; /* Fondo negro al pasar el mouse */
}

/* ============================================== */
/* FOOTER (Sin cambios)                       */
/* ============================================== */
footer {
    width: 100%;
    background-color: var(--color-principal);
    color: black;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
    margin-top: 40px;
}

footer a {
    color: white;
    text-decoration: none;
}
footer a:hover { 
    text-decoration: underline; 
}
.dev-credit { 
    margin-top: 15px;
    font-size: 0.8rem;
    color: #4a4a4a;
}
.dev-credit a { 
    color: white;
    font-weight: bold;
    text-decoration: none;
}

.catalog-container { 
    max-width: 1200px; 
    margin: auto; 
    padding: 0 20px; 
}

/* ============================================== */
/* COMPONENTES DE UI (Banners, Botones)       */
/* ============================================== */
/* Banner Principal */
.banner {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
    padding: 10px;
    margin: 10px 0;
}
.banner img {
    object-fit: contain;
    height: auto;
    border-radius: 35px;
    border: 1px solid var(--color-principal);
}
.banner-img.hidden { 
    display: none; 
}

/* ============================================== */
/* REEMPLAZO: Barra de Búsqueda (Estilo LK/CW)  */
/* ============================================== */
.controls-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 10px;
}
.contenedor-busqueda {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}
.contenedor-busqueda input {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid var(--color-terciario);
    border-radius: 25px 0 0 25px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
}
.contenedor-busqueda input:focus {
    border-color: var(--color-terciario);
}
.contenedor-busqueda button {
    flex-shrink: 0;
    padding: 10px 20px;
    border: 2px solid var(--color-terciario);
    border-left: none;
    background-color: var(--color-terciario);
    color: white;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 16px;
    border-radius: 0 25px 25px 0;
}
.contenedor-busqueda button:hover {
    background-color: var(--color-principal);
}

/* ============================================== */
/* REEMPLAZO: Botones de Filtro (Estilo LK/CW)  */
/* ============================================== */
.boton-filtro {
    padding: 10px 20px;
    font-size: 16px;
    border: 1px solid var(--color-principal); /* Borde con color de marca */
    background-color: var(--color-fondo); /* Fondo claro (estilo "outline" de LK) */
    color: var(--color-principal); /* Texto con color de marca */
    border-radius: 25px;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    transition: all 0.3s;
}

.boton-filtro:hover {
    background-color: var(--color-terciario);
    color: var(--color-secundario);
}
.boton-filtro.active {
    background-color: var(--color-principal) !important;
    color: var(--color-secundario) !important;
    border-color: var(--color-principal) !important;
    font-weight: bold;
}

/* Contenedores de los botones de filtro */
.selector-categoria {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 15px 0;
    flex-wrap: wrap;
}
.selector-subcategoria {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.selector-subcategoria button {
    padding: 8px 16px;
    font-size: 14px;
    border: 1px solid var(--color-principal);
    background-color: white;
    color: var(--color-principal);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: none;
}

.selector-subcategoria button.active {
    background-color: var(--color-principal) !important;
    color: var(--color-secundario) !important;
    border-color: var(--color-principal) !important;
    font-weight: bold;
}

/* ============================================== */
/* REEMPLAZO: Selector Móvil (Estilo LK/CW)     */
/* ============================================== */
.selector-subcategoria-movil {
    display: none; 
    justify-content: center;
    margin: 15px 0;
}
.selector-subcategoria-movil select {
    background-color: var(--color-principal);
    color: var(--color-secundario);
    border-radius: 24px;
    padding: 10px 35px 10px 20px;
    font-size: 16px;
    border: 2px solid var(--color-secundario);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23dfdfdf' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 1em;
    width: 80%;
    max-width: 520px;
    text-align: center;
}

/* Botones flotantes */
#floating-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.floating-btn {
    background-color: var(--color-principal);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background-color 0.3s;
}

.floating-btn:hover {
    background-color: var(--color-terciario);
}

#boton-subir {
    display: none; 
}

#enlace-whatsapp {
    background-color: #25D366;
}

#enlace-whatsapp:hover {
    background-color: #128C7E;
}

/* ============================================== */
/* GRID DE PRODUCTOS (Sin cambios)        */
/* ============================================== */
#productos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.producto { /* Clase unificada */
    background: white; 
    border-radius: 15px; 
    box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.1);
    padding: 15px; 
    text-align: center; 
    transition: transform 0.2s ease-in-out;
    position: relative; 
    overflow: hidden; 
    display: flex; 
    flex-direction: column;
    border: 1px solid var(--color-principal);
}
.producto:hover { 
    transform: translateY(-5px); 
}

.producto img {
    width: 100%; 
    height: 250px; 
    object-fit: contain; 
    border-radius: 10px;
    cursor: pointer; 
    transition: transform 0.3s ease;
}
.producto img:hover { 
    transform: scale(1.05); 
}

.producto h4 { 
    font-size: 18px; 
    margin: 10px 0; 
    min-height: 48px; 
}

/* ESTILOS PARA TALLES DE CALZADO (Sin cambios) */
.producto-talles { 
    display: flex; 
    justify-content: center; 
    gap: 8px; 
    margin: 10px 0; 
    flex-wrap: wrap; 
}
.talle-item {
    background-color: #e0e0e0; 
    padding: 4px 10px; 
    border-radius: 5px;
    font-size: 0.9rem; 
    font-weight: 500; 
    border: 1px solid #ccc; 
    color: #333;
}
.talle-item.agotado { 
    background-color: #f5f5f5; 
    color: #b0b0b0; 
    text-decoration: line-through; 
    cursor: not-allowed; 
}

/* Contenedor de precios unificado (Sin cambios) */
.contenedor-precio {
    background: var(--color-principal); 
    color: white; 
    padding: 12px 15px;
    border-radius: 8px; 
    text-align: left; 
    margin-top: auto;
}
.contenedor-precio .linea-precio { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin: 5px 0; 
    font-size: 16px; 
}
.contenedor-precio .etiqueta-precio { 
    font-weight: 500; 
}
.contenedor-precio .valor-precio { 
    font-weight: 700; 
    font-size: 17px; 
}

/* Cintas de estado del producto (Sin cambios) */
.producto.producto-nuevo::before, .producto.producto-reingreso::before {
    position: absolute; 
    z-index: 10; 
    color: white; 
    text-align: center;
    font-weight: 600; 
    font-size: 14px; 
    text-transform: uppercase;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); 
    width: 160px; 
    line-height: 32px;
    transform: rotate(45deg); 
    top: 22px; 
    right: -42px;
}
.producto.producto-nuevo::before { 
    content: "NUEVO"; 
    background-color: var(--color-terciario); 
}
.producto.producto-reingreso::before { 
    content: "REINGRESO"; 
    background-color: var(--color-principal); 
}

/* Mensajes de carga o error (Sin cambios) */
.loading, .error, .no-products {
    text-align: center; 
    font-size: 1.2rem; 
    padding: 40px 20px;
    color: #555; 
    grid-column: 1 / -1;
}
.error { 
    color: var(--color-resaltar); 
    font-weight: 600; 
}

/* Modal para ampliar imagen (Sin cambios) */
#modal-imagen {
    display: none; 
    position: fixed; 
    z-index: 9999; 
    left: 0; 
    top: 0;
    width: 100vw; 
    height: 100vh; 
    background-color: rgba(0, 0, 0, 0.85);
    align-items: center; 
    justify-content: center;
}
#modal-imagen img { 
    max-width: 90%; 
    max-height: 90%; 
    border-radius: 12px; 
}

/* ============================================== */
/* ESTILOS DE PAGINACIÓN (Sin cambios)        */
/* ============================================== */

.contenedor-paginacion { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    padding: 20px; 
    margin-top: 20px; 
    gap: 8px; 
    flex-wrap: wrap; 
}
.boton-pagina {
    background-color: white; 
    color: var(--color-principal); 
    border: 2px solid var(--color-principal);
    border-radius: 8px; 
    padding: 8px 14px; 
    min-width: 45px; 
    text-align: center;
    font-size: 1rem; 
    font-weight: 600; 
    cursor: pointer; 
    transition: all 0.3s ease;
}
.boton-pagina:hover { 
    background-color: var(--color-principal); 
    color: white; 
}
.boton-pagina.active { 
    background-color: var(--color-principal); 
    color: white; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.2); 
}
.boton-pagina.flecha { 
    padding: 8px 12px; 
}
.paginacion-elipsis { 
    padding: 8px 0; 
    font-weight: 600; 
    color: #888; 
}
.boton-pagina:disabled { 
    background-color: #f0f0f0; 
    border-color: #ddd; 
    color: #ccc; 
    cursor: not-allowed; 
}

/* ============================================== */
/* DISEÑO ADAPTABLE (Media Queries)         */
/* ============================================== */
@media (max-width: 992px) {
    #products {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    header {
        height: 60px; /* Header más chico */
    }
    .botones-locales {
        justify-content: flex-start; 
        flex-shrink: 1; 
        min-width: 0; 
        overflow: hidden;
    }
    .botones-locales a { 
        padding: 0 8px; 
    }
    .botones-locales img { 
        height: 35px; 
    } /* Logos más chicos */

    .menu-toggle {
        display: block; /* Muestra la hamburguesa */
        flex-shrink: 0; 
        padding: 0 15px;
    }
    nav {
        background-color: transparent; /* El fondo lo pone .nav-links */
    }
    .nav-links {
        display: none; /* Oculta el menú por defecto */
        flex-direction: column;
        background-color: var(--color-principal); /* Fondo de marca IDC */
        position: absolute;
        top: 60px; /* Coincide con la altura del header */
        left: 0;
        width: 100%;
        padding: 1rem 0;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        z-index: 999;
    }
    .nav-links li { 
        text-align: center; 
    }
    .nav-links li a { 
        padding: 1rem;
        display: block;
    }
    .nav-links.active { 
        display: flex; 
    } /* Muestra el menú al hacer clic */

    .banner img {
        width: 100%;
        height: auto;
        border-radius: 15px;
    }

    .controls-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    .catalog-container { 
        padding: 0 15px;
    }
    
    #productos { 
        grid-template-columns: repeat(2, 1fr); 
    }
    
    /* Lógica de visibilidad de subcategorías (Sin cambios) */
    .selector-subcategoria { 
        display: none; 
    }
    .selector-subcategoria-movil { 
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 15px 0;
        gap: 10px;
    }
    .pagina-inicio .botones {
        flex-direction: column;
        align-items: center;
        margin: auto auto;
    }
    .pagina-inicio header {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    #productos { 
        grid-template-columns: 1fr; 
    }
    .floating-btn { /* Botones flotantes */
        width: 45px;
        height: 45px;
        font-size: 22px;
    }
}