@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    line-height: 1.6;
    overflow-x: hidden;
}

.main-container {
    text-align: center;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    border: 2px solid #ddd;
    margin: 0 auto;
}

.slider-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 1s ease-in-out;
}

.slider-image {
    flex: 0 0 100%;
    height: 100%;
    object-fit: cover;
}

.info-container {
    width: 70%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
    padding: 25px 75px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin: 0 auto;
    margin-top: 60px;
}

.info-item {
    max-width: 200px;
    text-align: center;
}

.info-icons {
    width: 35px;
    height: 35px;
    color: #c80d0d;
    font-size: 30px;
}

.info-item h2 {
    margin-bottom: 10px;
    font-size: 1.5em;
}

.info-item p {
    margin: 5px 0;
}

.info-item a {
    margin: 5px 0;
    color: #c80d0d;
    text-decoration: none;
}

.info-item a:hover {
    text-decoration: underline;
}

.info-item .ubicacion {
    font-size: 24px;
    color: #c80d0d;
}

.info-item .ubicacion:hover {
    font-size: 24px;
    color: #ff3434;
}

.videos h3 {
    text-align: center;
    margin-top: 80px;
    margin-bottom: 30px;
}

.contenedorVideos {
    display: flex;
    justify-content: center;
    gap: 30px;            
    margin-bottom: 40px; 
}

.videos {
    margin: 20px;
}

.seccionVideo {
    display: flex;
    flex-direction: column;     
    align-items: center;       
    text-align: center;         
    padding: 20px;              
    width: 250px;               
    border: 1px solid #ddd;
    border-radius: 8px;         
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.8); 
    background-color: #fff; 
}

.seccionVideo img {
    width: 160px; 
    height: 160px;        
    object-fit: cover;        
    border-radius: 50%;
    margin-bottom: 15px; 
    box-shadow: 0 4px 8px #ffc5c5;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.seccionVideo img:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 16px #ff9d9d;
}

.seccionVideo a {
    font-size: 20px;           
    color: #333;        
    text-decoration: underline; 
    margin: 10px 0;
}

.seccionVideo a:hover {
    color: #ff3434;
}

.oculto {
    opacity: 0;
    transform: translateX(80px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Mostrar el contenedorVideos suavemente */
.mostrar {
    opacity: 1;
    transform: translateX(0);
}

.historia-empresa {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 20px;
    flex-wrap: wrap;
}

.imagen-empresa img {
    max-width: 500px;
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.contenido-empresa {
    max-width: 500px;
}

.contenido-empresa h2 {
    font-size: 1.2rem;
    color: #c80d0d;
}

.contenido-empresa h3 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.contenido-empresa p {
    font-size: 1rem;
    line-height: 1.6;
}

.contenido-empresa a {
    text-decoration: none;
    border-radius: 4px;
    background-color: #ff3434;
    color: #fff;
    padding: 10px;
    margin-left: 250px;
}

.contenido-empresa a:hover {
    background-color: #c80d0d;
}

/*Estilos para la sección ubicación*/
.ubicacion-empresa {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 50px;
    background-color: #f4f4f4;
}

.contenido-ubicacion {
    flex: 1;
    padding-right: 20px;
}

.contenido-ubicacion h2 {
    font-size: 1.75rem;
    color: #ff3434;
    margin-bottom: 10px;
}

.contenido-ubicacion h3 {
    font-size: 2.5rem;
    color: #444;
    margin-bottom: 20px;
    font-weight: bold;
}

.contenido-ubicacion p {
    font-size: 1.2rem;
    color: #666;
    line-height: 1.6;
}

.imagen-ubicacion {
    position: relative;
    flex: 1;
    max-width: 500px;
}

.imagen-ubicacion img {
    width: 100%;
    height: auto;
}

.imagen-ubicacion::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.imagen-ubicacion h2, .imagen-ubicacion h3 {
    position: absolute;
    color: white;
    text-align: center;
    width: 100%;
    left: 0;
    z-index: 2;
}

.imagen-ubicacion h2 {
    top: 20%;
    font-size: 1.30rem;
    font-weight: bold;
    color: #ddd;
}

.imagen-ubicacion h3 {
    top: 35%;
    font-size: 2rem;
    font-weight: 600;
}

.imagen-ubicacion a {
    position: absolute;
    bottom: 40px;
    right: 20px; 
    text-decoration: none;
    background-color: #ff3434;
    color: white;
    font-size: 1rem;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    z-index: 2;
}

.imagen-ubicacion a:hover {
    background-color: #c80d0d;
}

@media (max-width: 768px) {

    .slider-container {
        height: 50vh;
    }

    .slider-image {
        width: 100%;
        height: 140%;
        object-fit: contain;
    }

    .info-container {
        width: 90%;
        padding: 20px 30px;
        justify-content: center;
    }

    .info-item {
        max-width: 100%;
    }

    .contenedorVideos {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .seccionVideo {
        width: 90%;
    }

    .historia-empresa {
        flex-direction: column;
        padding: 30px 15px;
    }

    .contenido-empresa {
        max-width: 100%;
        text-align: center;
    }

    .contenido-empresa a {
        margin: 20px auto 0;
        display: inline-block;
    }

    .ubicacion-empresa {
        flex-direction: column;
        padding: 30px 15px;
        text-align: center;
        margin-top: 40px;
    }

    .contenido-ubicacion {
        padding: 0;
    }

    .imagen-ubicacion {
        max-width: 100%;
        margin-top: 20px;
    }

    .imagen-ubicacion h2 {
        font-size: 1rem;
    }

    .imagen-ubicacion h3 {
        font-size: 1.5rem;
    }

    .imagen-ubicacion a {
        bottom: 20px;
        right: 10px;
        font-size: 0.9rem;
        padding: 8px 16px;
    }
}
