/* CSS para la tarjeta de producto - Diseño horizontal 2x2 */

/* Sección contenedor de la tarjeta */
.product-card-section {
    /* padding: 80px 0; */
    background: #f8f9fa;
}

/* Contenedor principal - Grid 2x2 */
.container-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Contenedor principal de cada tarjeta - DISEÑO ORIGINAL */
.product-container {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
    height: 400px;
    background: #fff;
    border-radius: 19px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

/* Contenedor de imagen - DISEÑO ORIGINAL (izquierda) */
.product-container .imgBx {
    background-position: center;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50%;
    height: 100%;
    background: white;
    transition: 0.3s linear;
    border-radius: 15px 0 0 15px;
    background-size: cover;
    background-repeat: no-repeat;
}

.product-container .imgBx::before {
    position: absolute;
    top: 0;
    left: 24px;
    color: #000;
    opacity: 0.2;
    font-size: 5em;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
}

.product-container .imgBx img {
    position: relative;
    width: 400px;
    max-width: 101%;
}



/* Contenedor de detalles - DISEÑO ORIGINAL (derecha) */
.product-container .details {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50%;
    height: 100%;
    box-sizing: border-box;
    padding: 30px 25px;
}

.product-container .details .content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-container .details h2 {
    margin: 0 0 15px 0;
    padding: 0;
    font-size: 32px;
    line-height: 1.1em;
    color: rgb(40 70 190);
    font-family: 'Lobster', cursive;
}

.product-container .details h2 span {
    font-size: 0.45em;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #999;
    display: block;
    margin-top: 8px;
}

.product-container .details p {
    color: rgb(40 70 190);
    font-size: 20px;
    margin-bottom: 20px;
    font-family: 'Baloo 2', cursive;
    line-height: 1.5;
    text-align: justify;
    flex-grow: 1;
    font-weight: bold;
}

/* Precio */
.product-container .details h3 {
    margin: 10px 0;
    padding: 0;
    font-size: 2.2em;
    color: #212121;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

/* Botón */
.product-container .details .btn {
    background: linear-gradient(135deg, #b60b0b 0%, #fb1f1d 45.72%, #b60b0b 100%);
    color: #fff;
    border: none;
    padding: 12px 20px;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    align-self: flex-start;
}

.product-container .details .btn:hover {
    background: linear-gradient(135deg, #a00909 0%, #e01b19 45.72%, #a00909 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(182, 11, 11, 0.3);
}

/* Colores del producto */
.product-colors {
    margin: 15px 0;
}

.product-colors span {
    width: 22px;
    height: 22px;
    margin-right: 10px;
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    display: inline-block;
    transition: all 0.3s ease-in-out;
}

.black {
    background: #000;
}

.red {
    background: #d5212e;
}

.orange {
    background: #f18557;
}

.product-colors .active:after {
    content: "";
    width: 30px;
    height: 30px;
    border: 2px solid #000;
    position: absolute;
    border-radius: 50%;
    box-sizing: border-box;
    left: -4px;
    top: -4px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        grid-template-columns: 1fr;
        gap: 30px;
        max-width: 700px;
    }
    
    .product-container {
        height: 350px;
    }
    
    .product-container .imgBx img {
        width: 300px;
        left: -20px;
    }
    
    .product-container .details h2 {
        font-size: 1.6em;
    }
}

@media (max-width: 768px) {
    .product-container {
        flex-direction: column;
        height: auto;
    }
    
    .product-container .imgBx,
    .product-container .details {
        width: 100%;
    }
    
    .product-container .imgBx {
        height: 250px;
        border-radius: 15px 15px 0 0;
    }
    
    .product-container .details {
        height: auto;
        padding: 25px;
    }
    
    .product-container .imgBx img {
        width: 250px;
        left: 0;
    }
    
    .product-container .details p {
        margin-left: 0;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
        gap: 20px;
    }
    
    .product-container .imgBx {
        height: 200px;
    }
    
    .product-container .imgBx img {
        width: 200px;
    }
    
    .product-container .details {
        padding: 20px;
    }
    
    .product-container .details h2 {
        font-size: 1.4em;
    }
    
    .product-container .details h3 {
        font-size: 1.8em;
    }
    
    .product-container .details p {
        font-size: 12px;
    }
}

/* Animación de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-container {
    animation: fadeInUp 0.6s ease forwards;
}

.product-container:nth-child(1) {
    animation-delay: 0.1s;
}

.product-container:nth-child(2) {
    animation-delay: 0.2s;
}

.product-container:nth-child(3) {
    animation-delay: 0.3s;
}

.product-container:nth-child(4) {
    animation-delay: 0.4s;
}