﻿/* ==========================================================
   FONDO GENERAL DE LA SECCIÓN DE PRODUCTOS
   ========================================================== */
.main-sections-wrapper {
    width: 100%;
    position: relative;
    background: url('../img/products/fondo-producto.png') no-repeat center top / cover;
    background-color: #f2f7f4;
    padding: 40px 0 50px 0;
}

    .main-sections-wrapper::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.40);
        z-index: 1;
    }

    .main-sections-wrapper .container,
    .main-sections-wrapper .container-xl,
    .main-sections-wrapper .section-header,
    .main-sections-wrapper .products-grid {
        position: relative;
        z-index: 2;
    }

/* Encabezados */
.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 900;
    color: #0b2238;
    margin-bottom: 5px;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

    .section-title .highlight {
        color: #d49e29;
    }

.section-subtitle {
    font-size: 1.05rem;
    color: #334155;
    font-weight: 500;
    margin: 0;
}

/* ==========================================================
   GRID DE PRODUCTOS (4 TARJETAS)
   ========================================================== */
.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

/* Base de Tarjeta */
.product-card {
    border-radius: 20px;
    padding: 15px;
    display: flex;
    flex-direction: row;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    position: relative;
}

    .product-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.13);
    }

    /* DEGRADADOS DE LAS TARJETAS */
    .product-card.card-cafe {
        background: linear-gradient(135deg, #ffffff 0%, #fbf3e6 60%, #f5e4cb 100%);
    }

    .product-card.card-shampoo {
        background: linear-gradient(135deg, #ffffff 0%, #eef8f2 60%, #d8f0e1 100%);
    }

    .product-card.card-jabon {
        background: linear-gradient(135deg, #ffffff 0%, #f4fbf0 60%, #e1f5d6 100%);
    }

    /* NUEVA TARJETA INVERCASH DE CAPITALIZACIÓN */
    .product-card.card-invercash {
        background: linear-gradient(135deg, #ffffff 0%, #eef2ff 50%, #e0e7ff 100%);
        border: 1px solid rgba(13, 44, 97, 0.15);
    }

/* Estructura Interna */
.product-img-box {
    width: 38%;
    height: 130px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

    .product-img-box img {
        max-height: 100%;
        max-width: 100%;
        object-fit: contain;
        filter: drop-shadow(0 6px 12px rgba(0,0,0,0.12));
        border-radius: 10px;
    }

.product-info-content {
    width: 62%;
    padding-left: 10px;
    text-align: left;
}

/* Títulos de Tarjetas */
.card-cafe .product-info-content h3 {
    color: #3a1507;
    font-size: 1.15rem;
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 6px;
    line-height: 1.2;
}

.card-shampoo .product-info-content h3 {
    color: #0d5c22;
    font-size: 1.15rem;
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 6px;
    line-height: 1.2;
}

.card-jabon .product-info-content h3 {
    color: #125e24;
    font-size: 1.15rem;
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 6px;
    line-height: 1.2;
}

.card-invercash .product-info-content h3 {
    color: #0A2C61;
    font-size: 1.15rem;
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 4px;
    line-height: 1.2;
}

/* Badge InverCash */
.badge-invercash {
    display: inline-block;
    background: linear-gradient(135deg, #d89a00 0%, #b88000 100%);
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Viñetas */
.product-specs {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .product-specs li {
        font-size: 0.82rem;
        color: #2c3e50;
        margin-bottom: 4px;
        font-weight: 600;
        position: relative;
        padding-left: 18px;
        line-height: 1.25;
    }

        .product-specs li::before {
            content: "\f00c";
            font-family: "Font Awesome 5 Free", "Font Awesome 6 Free";
            font-weight: 900;
            position: absolute;
            left: 0;
            top: 1px;
            color: #16a34a;
            font-size: 0.75rem;
        }

/* Ícono dorado para la tarjeta InverCash */
.specs-gold li::before {
    color: #d89a00 !important;
}

/* ==========================================================
   RESPONSIVO (MÓVIL, TABLET Y ESCRITORIO)
   ========================================================== */

/* ESCRITORIO (Grid 2x2 armónico) */
@media (min-width: 992px) {
    .main-sections-wrapper {
        background-size: 100% 100%;
        padding: 60px 0 80px 0;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .product-img-box {
        width: 38%;
        height: 150px;
    }

    .product-info-content {
        width: 62%;
        padding-left: 15px;
    }

    .card-cafe .product-info-content h3,
    .card-shampoo .product-info-content h3,
    .card-jabon .product-info-content h3,
    .card-invercash .product-info-content h3 {
        font-size: 1.25rem;
    }

    .product-specs li {
        font-size: 0.88rem;
        margin-bottom: 6px;
    }
}

/* TABLETS (2 Columnas) */
@media (min-width: 768px) and (max-width: 991px) {
    .main-sections-wrapper {
        background-size: 100% 100%;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* MÓVILES */
@media (max-width: 767px) {
    .main-sections-wrapper {
        background-size: cover;
        background-position: center center;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    .product-card {
        padding: 12px 10px;
    }

    .product-img-box {
        width: 35%;
        height: 110px;
    }

    .product-info-content {
        width: 65%;
        padding-left: 8px;
    }

    .product-specs li {
        font-size: 0.78rem;
        padding-left: 15px;
    }

    /* ESTILOS DE LA BOLSA EXCLUSIVOS PARA MÓVIL */
    .product-card.card-invercash {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 12px;
       /* width: 100%;*/
    }

    .card-invercash .product-img-box {
        width: 80% !important; /* Controla el tamaño en móvil */
        height: auto !important;
        margin: 0 auto;
    }

        .card-invercash .product-img-box img {
            width: 100% !important;
            max-width: 100% !important;
            height: auto !important;
            max-height: none !important;
            object-fit: contain;
            display: block;
            margin: 0 auto;
            border-radius: 12px;
        }
}
