/* ========================================
   COMPONENTES DE TARJETAS Y CAJAS
   ======================================== */

/* Info Box - FONDO CLARO = LETRAS OSCURAS */
.info-box {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    margin-bottom: 25px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(102, 126, 234, 0.1);
    position: relative;
    overflow: hidden;
}

.info-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.info-box:hover::before {
    transform: scaleX(1);
}

.info-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.25);
    border-color: #667eea;
}

/* Títulos en info-box - FONDO CLARO = TEXTO OSCURO */
.info-box h3,
.info-box h4,
.info-box h5,
.info-box h6 {
    color: #2c3e50;
    font-weight: 700;
}

.info-box p {
    color: #555555;
    line-height: 1.8;
}

.info-box .text-muted {
    color: #6c757d !important;
}

/* Product Card - FONDO CLARO = TEXTO OSCURO */
.product-card {
    transition: transform 0.3s, box-shadow 0.3s;
    border-radius: 15px;
    overflow: hidden;
    background: white;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2) !important;
}

.product-card .card-title {
    color: #2c3e50;
    font-weight: 700;
}

.product-card .card-text {
    color: #555555;
}

.product-card .card-price {
    color: #667eea;
    font-weight: 700;
}

/* Section Title - CONTRASTE AUTOMÁTICO */
.section-title {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 25px;
    color: #667eea;
    font-weight: 700;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

/* Badge Custom - FONDO OSCURO = LETRAS CLARAS */
.badge-custom {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
}

/* Icon Wrapper - FONDO OSCURO = ÍCONO CLARO */
.icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    margin-right: 15px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    flex-shrink: 0;
}

.icon-wrapper i {
    color: #ffffff;
}

/*-------------------------------------------------------------------
   MEJORAS RESPONSIVE PARA CARDS
---------------------------------------------------------------------*/

/* Tablets */
@media (max-width: 991px) {
    .product-card {
        margin-bottom: 20px;
    }

    .product-card .card-img-top {
        height: 250px !important;
    }

    .info-box {
        padding: 20px;
        margin-bottom: 20px;
    }

    .icon-wrapper {
        width: 45px;
        height: 45px;
        margin-right: 12px;
    }
}

/* Móviles */
@media (max-width: 767px) {
    .product-card {
        margin-bottom: 15px;
    }

    .product-card .card-img-top {
        height: 220px !important;
    }

    .product-card .card-title {
        font-size: 1.1rem;
    }

    .product-card .card-body {
        padding: 1rem;
    }

    .info-box {
        padding: 15px;
        margin-bottom: 15px;
        border-radius: 15px;
    }

    .info-box h3 { font-size: 1.3rem; }
    .info-box h4 { font-size: 1.2rem; }
    .info-box h5 { font-size: 1.1rem; }

    .icon-wrapper {
        width: 40px;
        height: 40px;
        margin-right: 10px;
    }

    .badge-custom {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}

/* Móviles pequeños */
@media (max-width: 576px) {
    .product-card .card-img-top {
        height: 200px !important;
    }

    .product-card .card-title {
        font-size: 1rem;
    }

    .product-card .btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .info-box {
        padding: 12px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-title::after {
        width: 40px;
        height: 3px;
    }
}
