/* --- ESTILOS PÁGINA MARCAS --- */

.brands-page {
    font-family: 'Inter', sans-serif;
    background: #f9fafb;
    padding-top: 100px;
    /* Espacio header */
}

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

/* Header */
.brands-header {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-bottom: 1px solid #eee;
}

.brands-header h1 {
    font-size: 2.5rem;
    color: #0d47a1;
    margin-bottom: 10px;
}

.brands-header p {
    color: #666;
    font-size: 1.1rem;
}

/* Sección 1: Marcas Activas */
.active-brands-section {
    padding: 60px 0;
}

.active-brands-section h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #333;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 30px;
}

.brand-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 180px;
}

.brand-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    border-color: #0d47a1;
}

.bc-logo {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    width: 100%;
}

.bc-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    /* Efecto elegante b/n */
    transition: filter 0.3s;
    opacity: 0.8;
}

.brand-card:hover .bc-logo img {
    filter: grayscale(0%);
    /* Color al hover */
    opacity: 1;
}

.bc-name {
    color: #333;
    font-weight: 600;
    font-size: 0.95rem;
}

/* Sección 2: Catálogos */
.catalogs-section {
    background: white;
    padding: 80px 0;
    border-top: 1px solid #eee;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: #0d47a1;
    margin-bottom: 15px;
}

.divider {
    width: 60px;
    height: 4px;
    background: #0d47a1;
    margin: 0 auto 50px;
}

.catalogs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 40px;
}

.catalog-item {
    text-align: center;
}

.catalog-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s;
}

.catalog-link:hover {
    opacity: 0.9;
}

.cat-image-box {
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    background: #fff;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.cat-image-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.cat-title {
    display: block;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
    font-size: 1rem;
}

.btn-download {
    display: inline-block;
    color: #0d47a1;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 5px;
}

.catalog-link:hover .btn-download {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .catalogs-grid {
        grid-template-columns: 1fr;
    }
}