﻿/* ==========================================================
   CSS UNIFICADO: COMPONENTE PRODUCTS
   ========================================================== */

/* Estilos de Sección Compartidos */
.features-section, .catalog-section {
    background-color: #ffffff;
    width: 100%;
}

/* El contenedor maestro alineado con todo el sitio */
.products-container {
    margin: 0 auto;
    text-align: center;
}

/* Títulos Principales */
.section-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #05111a;
    margin-bottom: 40px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

    .section-title .highlight {
        color: #C89B3C;
    }

/* ==========================================================
   ESTILOS BLOQUE 1: ¿POR QUÉ ELEGIR?
   ========================================================== */
.features-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.01);
}

.feature-icon {
    font-size: 2.2rem;
    color: #28a745;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 800;
    color: #05111a;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.4;
    margin: 0;
}

/* ==========================================================
   ESTILOS BLOQUE 2: NUESTROS PRODUCTOS (VITRINA)
   ========================================================== */
.catalog-section {
    padding-top: 20px;
}

.products-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-direction: row; /* Coloca imagen a la izq y texto a la der */
    align-items: center;
    justify-content: flex-start;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

/* Caja de la Imagen (Izquierda) */
.product-img-box {
    width: 38%;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

    .product-img-box img {
        max-height: 100%;
        max-width: 100%;
        object-fit: contain;
    }

/* Contenedor del Texto (Derecha) */
.product-info-content {
    width: 62%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding-left: 5px;
}

    /* Título del producto */
    .product-info-content h3 {
        font-size: 1.05rem;
        font-weight: 800;
        color: #05111a;
        margin-top: 0;
        margin-bottom: 6px;
        line-height: 1.2;
    }

/* Lista con viñetas */
.product-specs {
    list-style: none;
    padding: 0 0 0 14px;
    margin: 0 0 10px 0;
}

    .product-specs li {
        font-size: 0.88rem;
        color: #475569;
        margin-bottom: 3px;
        font-weight: 500;
        position: relative;
        line-height: 1.2;
    }

        .product-specs li::before {
            content: "✓";
            position: absolute;
            left: -14px;
            color: #28a745;
            font-weight: 900;
            font-size: 0.75rem;
        }

/* Botón Ver Más */
.btn-product-more {
    background-color: #05111a;
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.66rem;
    padding: 5px 12px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease;
    display: inline-block;
}

    .btn-product-more:hover {
        background-color: #C89B3C;
    }

/* ==========================================================
   RESPONSIVE GRID (ADAPTACIÓN TABLETA Y ESCRITORIO)
   ========================================================== */
@media (min-width: 768px) {
    .features-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .products-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (min-width: 992px) {
    .features-section, .catalog-section {
        padding: 5px 0;
    }

    .section-title {
        font-size: 2.2rem;
        margin-bottom: 50px;
    }

    /* 4 Columnas para las características ("¿Por qué elegir?") */
    .features-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }

    /* 3 Columnas perfectamente distribuidas para los productos */
    .products-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}
