.bienvenida-section {
    padding: 4rem 2rem;
}

.bienvenida-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.bienvenida-imagen {
    flex: 1 1 40%;
    display: flex;
    justify-content: center;
}

.bienvenida-imagen img {
    max-width: 100%;
    height: auto;
    border-radius: 1rem;
}

.bienvenida-texto {
    flex: 1 1 50%;
}

.bienvenida-texto h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #f97316;
}

.bienvenida-texto p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.btn-naranja {
    display: inline-block;
    background-color: #f97316;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    text-decoration: none;
    transition: background-color 0.3s ease;
    font-weight: 600;
}

.btn-naranja:hover {
    background-color: #ea580c;
}

 /* seccion video */

.video-section {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(to right, #59c95d, #ffffff, #59c95d);
}

.video-title {
    color: #f97316;
    font-size: 3rem;
    margin-top: 0;
    /* margin-bottom: 10px; */
}
/* 
.video-description {
    font-size: 1.2rem;
    color: #000000;
    margin-bottom: 20px;
} */

/* NUEVO: contenedor del video */
.video-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    aspect-ratio: 16 / 9; /* Mantiene proporción */
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* NUEVO: video dentro del contenedor */
.company-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Rellena el contenedor sin deformarse */
}

/* Sección de productos */
#productos {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;  /* Centra horizontalmente todo dentro */
}

/* Título principal */
#productos h2 {
    font-size: 3rem;
    color: #f97316;
    margin-bottom: 2rem;
    text-align: center;
}

/* Contenedor de productos */
.productos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 .5rem;
    box-sizing: border-box;
}

/* Tarjeta simple */
.producto {
    text-align: center;
    padding: 1rem;
    box-sizing: border-box;
    height: 100%; /* asegura que se expanda si es necesario */

    display: flex;
    flex-direction: column;
    justify-content: center; /* centra verticalmente el contenido */

    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;

    box-shadow: 0 0 5px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;

    background-color: #ebf4e6;
}

.producto:hover {
    transform: scale(1.05); /* crece un 5% */
    z-index: 10; /* para que quede encima de otros elementos si se superponen */
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1); /* sombra ligera para darle profundidad */
}

/* .producto:nth-child(1) {
    background-color: #fef6e4; 
}

.producto:nth-child(2) {
    background-color: #e8f0fe; 
}

.producto:nth-child(3) {
    background-color: #f6e7ff; 
} */


.producto .producto-img-wrapper {
    width: 100%;
    height: 300px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    border-radius: 0.5rem;
}

.producto-img-wrapper .producto-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* Título producto */
.producto-nombre {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #f97316;
}

/* Descripción */
.producto-desc {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 1rem;
}

/* Precios */
.producto-precio {
    font-size: 1.2rem;
    color: #333;
    margin: 0.25rem 0;
}

.interes-contacto {
    text-align: center;
    margin-bottom: 2rem;
    margin-top: 2rem;
}

.interes-contacto p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn-contacto {
    background-color: #f97316;
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn-contacto:hover {
    background-color: #d8620f;
}

@media screen and (max-width: 1024px) and (min-width: 769px) {
    .productos {
        grid-template-columns: repeat(2, 1fr);
    }

    .producto:nth-last-child(1):nth-child(odd) {
        grid-column: span 2;
        max-width: 50%;
        margin: 0 auto;
    }
}

/* Responsive: 1 columna en pantallas pequeñas */
@media screen and (max-width: 768px) {
    .productos {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .bienvenida-container {
        flex-direction: column;
    }

    .bienvenida-texto {
        text-align: center;
    }

    .productos {
        grid-template-columns: 1fr; /* apilan los productos */
        gap: 0.01rem; /* reduce el espacio vertical */
    }

    .producto {
        transform: scale(0.85);
        transition: transform 0.3s ease;
    }

    .producto:hover {
        transform: scale(0.90);
        z-index: 10;
        box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    }
}
