@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Mukta+Mahee:wght@200;300;400;500;600;700;800&display=swap');

/*-----------------------------------------------------*/
/*                    SECCIÓN SERVICIOS                */
/*-----------------------------------------------------*/

/*---------------------------------------------*/
/*                 SECCIÓN AZUL 1
/*---------------------------------------------*/

#domotica .blue-section {
    font-family: 'Inter', sans-serif;
    background-color: #004AAC;
    height: 60vh; /* Ocupa toda la altura de la pantalla */
    padding-top: 250px;
    padding-left: 53px;
    display: flex;
    align-items: normal;
    justify-content: start;
}

#domotica #section1 h1 {
    color: #fff;
    margin: auto;
    margin-bottom: 50px;
    font-size: 30px;
    font-weight: 500;
    text-align: center;
}

@media (max-width: 768px) {
    #domotica .blue-section {
        font-family: 'Inter', sans-serif;
        background-color: #004AAC;
        height: 40vh; /* Ocupa toda la altura de la pantalla */
        padding: 0px;
        padding-top: 160px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    #domotica #section1 h1 {
        color: #fff;
        margin: auto;
        margin-bottom: 50px;
        font-size: 30px;
        font-weight: 500;
    }
}

/*---------------------------------------------*/
/*                 SECCIÓN BLANCA
/*---------------------------------------------*/

#domotica .white-section {
    padding-top: 100px;
    max-width: 1500px;
    margin: auto;
    background-color: #fff;
    color: #004AAC;
    height: fit-content; /* Puedes ajustar esto según el contenido */
}

#domotica .white-section .contenedor {
    padding: 20px; /* Ajusta el espacio alrededor del contenido según sea necesario */
}

#domotica .white-section .contenedor h1 {
    margin-bottom: 50px;
    font-size: 30px;
    font-weight: 700;
    max-width: 756px; /* Limita el ancho del texto para mejorar la legibilidad */
    margin-left: 0px;
}

#domotica .white-section .contenedor .lista li {
    font-size: 25px;
    font-weight: 500;
    margin-bottom: 10px;
}

#domotica .white-section .contenedor .lista {
    margin: auto;
    margin-bottom: 50px;
    max-width: 1300px; /* Limita el ancho del texto para mejorar la legibilidad */
}

/* Estilos para el carrusel de videos */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.carousel {
    display: flex;
    overflow: hidden;
    width: 100%;
    position: relative;
}

.carousel-item {
    min-width: 100%;
    transition: transform 0.5s ease-in-out;
    position: relative; /* Cambiado de absolute a relative */
    display: none; /* Oculta todos los items por defecto */
}

#video1:checked ~ .carousel .carousel-item:nth-child(1) {
    display: block; /* Muestra el primer video cuando está seleccionado */
}

#video2:checked ~ .carousel .carousel-item:nth-child(2) {
    display: block; /* Muestra el segundo video cuando está seleccionado */
}

.carousel input[type="radio"] {
    display: none;
}

video {
    width: 100%;
    height: auto;
}

.controls {
    margin-top: 10px;
    display: flex;
    justify-content: center;
}

.controls label {
    cursor: pointer;
    padding: 10px;
    background-color: #004AAC;
    color: white;
    margin: 0 5px;
    font-size: 1.5rem;
    border-radius: 5px;
}

.controls label:hover {
    background-color: #004AAC;
}

input[type="radio"] {
    display: none;
}

span {
    font-weight: bold;
}

.boton12 {
    background-color: #004AAC; /* Color de fondo del botón (mismo azul) */
    color: white; /* Color del texto en blanco */
    border: none; /* Sin bordes */
    padding: 15px 30px; /* Espaciado interno */
    font-size: 18px; /* Tamaño de la fuente */
    border-radius: 5px; /* Bordes redondeados */
    cursor: pointer; /* Cambia el cursor al pasar por encima */
    transition: background-color 0.3s ease-in-out; /* Transición suave en hover */
    font-family: 'Inter', sans-serif; /* Mismo tipo de letra */
    display: block;
    margin: 30px auto; /* Centrado horizontalmente */
}

.boton12:hover {
    background-color: #004AAC; /* Cambia el color al pasar por encima */
}

a {
    text-decoration: none; /* Elimina el subrayado de los enlaces */
}

.boton12 {
    text-decoration: none; /* Asegúrate de que el botón tampoco esté subrayado */
}

/* Media query para pantallas pequeñas */
@media (max-width: 768px) {
    #domotica .img_IE {
        max-width: 100%;
    }
    #domotica .img_IE img {
        max-width: 100%; /* Ajusta la imagen para que no exceda el tamaño del contenedor */
        height: auto; /* Mantiene la proporción de la imagen */
    }

    #domotica .white-section .contenedor .lista li {
        font-size: 20px;
        font-weight: 400;
        max-width: 465px;
    }

    #domotica .texto-boton {
        flex: none;
        width: 100%;
        padding-right: 0;
    }

    #domotica .contenedor {
        flex-direction: column;
        align-items: center;
    }

    #domotica .contenedor .texto-boton .boton {
        align-self: center;
        margin: 20px 0;
    }
}
