/* ==========================================================================
   1. CAMBIO DE FUENTE GENERAL Y FONDOS
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Aplicamos una tipografía moderna a todo el documento */
body, table, td, th, input, select, textarea {
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
}

body {
    background-color: #f8fafc !important; /* Fondo gris claro moderno en vez del blanco plano */
    color: #334155 !important;
}

/* ==========================================================================
   2. REESTILIZACIÓN DEL HEADER (#TopCompleto y #Menu)
   ========================================================================== */
#TopCompleto {
    background: #ffffff !important;
    border-bottom: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05) !important;
}

/* Tabla del menú principal */
.MenuCuerpo {
    background: #0f172a !important; /* Azul pizarra oscuro industrial */
    border-radius: 8px !important;
    overflow: hidden;
}

/* Ítems del menú */
.MenuBoton, .MenuBotonSelected {
    font-size: 14px !important;
    font-weight: 500 !important;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 12px 20px !important;
    transition: all 0.2s ease;
}

.MenuBoton:hover {
    background-color: #1e293b !important; /* Hover sutil */
    color: #f97316 !important; /* Acento naranja */
}

.MenuBotonSelected {
    background-color: #f97316 !important; /* Naranja para el elemento activo */
    color: #ffffff !important;
}

/* ==========================================================================
   3. SIDEBAR DE CATEGORÍAS (Menú Izquierdo)
   ========================================================================== */
/* Contenedor del menú izquierdo */
.SubMenuContenedor, td[valign="top"] table {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 15px !important;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05) !important;
}

/* Título de Categorías */
.SubMenuTitulo {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    border-bottom: 2px solid #e2e8f0 !important;
    padding-bottom: 8px !important;
    margin-bottom: 10px !important;
}

/* Opciones de categorías */
.SubMenuOpciones, .SubMenuOpcionesSelected {
    display: block !important;
    padding: 8px 12px !important;
    margin-bottom: 4px !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
}

.SubMenuOpciones {
    color: #475569 !important;
    background: transparent !important;
}

.SubMenuOpciones:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    padding-left: 16px !important; /* Efecto sutil de desplazamiento */
}

.SubMenuOpcionesSelected {
    background: #0f172a !important;
    color: #ffffff !important;
    padding-left: 16px !important;
}

/* ==========================================================================
   4. GRILLA Y TARJETAS DE PRODUCTOS
   ========================================================================== */
/* Contenedor de productos individuales (Destacados / Listados) */
.DestacadosContenedor, .ProductoContenedor, td.CeldaProducto {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 20px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-align: center;
}

/* Efecto Hover Moderno en las tarjetas */
.DestacadosContenedor:hover, .ProductoContenedor:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
    border-color: #cbd5e1 !important;
}

/* Ajuste de las imágenes de los productos */
.DestacadosContenedor img, .ProductoContenedor img {
    max-height: 150px !important;
    object-fit: contain !important;
    margin-bottom: 15px !important;
    mix-blend-mode: multiply; /* Limpia bordes blancos imperfectos si los hay */
}

/* Títulos de los productos */
.DestacadosNombre, .ProductoNombre {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    line-height: 1.4 !important;
    margin-top: 10px !important;
}

/* Códigos de producto / Detalles menores */
.DestacadosCodigo, .ProductoCodigo {
    font-size: 12px !important;
    color: #64748b !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ==========================================================================
   5. BOTONES Y DETALLES FINALES
   ========================================================================== */
/* Botón de "Ver más" o "Detalle" */
.BotonVerMas, input[type="button"], input[type="submit"] {
    background: #0f172a !important;
    color: #ffffff !important;
    border: none !important;
    padding: 8px 16px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.BotonVerMas:hover, input[type="button"]:hover, input[type="submit"]:hover {
    background: #1e293b !important;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1) !important;
}

/* Banners o bloques promocionales */
.BannerHome, .PromoBox {
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05) !important;
}

/* Pie de página (Footer) */
#Footer, .PiePagina {
    background: #0f172a !important;
    color: #94a3b8 !important;
    padding: 30px 0 !important;
    border-top: 4px solid #f97316 !important; /* Detalle naranja industrial arriba */
}