/*////////////////////////// BASE STYLES ///////////////////////////*/

body {
    background-color: whitesmoke;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}

img {
    width: 100px;
    margin-bottom: 5px;
}

/*////////////////////////// BASE STYLES ///////////////////////////*/

.image-container {
    background-image: url('/imagenes/camara 3.jpg');
    background-size: cover;
    background-attachment: fixed;
    height: 80vh;
    display: flex;
    align-items: center; /* Centra verticalmente */
    justify-content: center; /* Centra horizontalmente */
    position: relative;
    padding: 20px;
    box-sizing: border-box;
    overflow: hidden;
}

.image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.text-image-container {
    position: relative;
    z-index: 2;
    color: white;
    padding: 30px;
    border-radius: 10px;
    max-width: 90%;
    box-sizing: border-box;
    text-align: center;
}

.text-image-container h1 {
    font-size: 2.5em;
    margin-bottom: 15px;
    font-weight: bold;
}

.text-image-container p {
    font-size: 1.1em;
    margin-bottom: 20px;
    line-height: 1.5;
}

.btn-securetech {
    background-color: #007BFF;
    color: white;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
    display: inline-block;
}

.btn-securetech:hover {
    background-color: #0056b3;
}

/*////////////////////////// MENU ///////////////////////////*/

header {
    background-color: rgb(25, 33, 143);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: auto;
}

.menu {
    display: flex;
    align-items: center;
}

nav {
    display: flex;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: white;
    font-size: 15px;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: 0.4s ease;
    justify-content: center;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
}

.hamburger span {
    background-color: white;
    height: 3px;
    width: 100%;
}

/*////////////////////////// CAROUSEL ///////////////////////////*/

/* Estilo general del carrusel */
#productos-slider {
    position: relative;
    width: 100%;
    max-width: 1200px;  /* Controla el tamaño máximo del carrusel */
    margin: 0 auto;  /* Centra el carrusel en la página */
    border-radius: 10px;  /* Bordes redondeados */
    overflow: hidden;  /* Evita que las imágenes se desborden */
}

/* Estilo de las imágenes dentro del carrusel */
#productos-slider .carousel-item img {
    max-height: 100%;
    object-fit: cover;  /* Hace que las imágenes se ajusten bien a sus contenedores */
    border-radius: 8px;  /* Bordes redondeados en las imágenes */
    transition: transform 0.5s ease-in-out;  /* Suaviza la animación al cambiar de imagen */
}

#productos-slider .carousel-item img:hover {
    transform: scale(1.05);  /* Efecto de zoom al pasar el mouse por encima */
}

/* Estilo de las leyendas del carrusel */
#productos-slider .carousel-caption {
    background-color: rgba(0, 0, 0, 0.5);  /* Fondo oscuro semitransparente */
    color: white;  /* Texto blanco */
    padding: 15px;  /* Espaciado interno */
    border-radius: 8px;  /* Bordes redondeados en la leyenda */
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Hacer que las leyendas sean visibles al pasar el mouse */
#productos-slider .carousel-item:hover .carousel-caption {
    opacity: 1;
}

/* Títulos */
#productos-slider .carousel-caption h5 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Descripción */
#productos-slider .carousel-caption p {
    font-size: 16px;
}

/* Estilo de los controles del carrusel */
.carousel-control-prev, .carousel-control-next {
    background-color: rgba(0, 0, 0, 0.5);  /* Fondo oscuro semitransparente */
    border-radius: 10%;
    padding: 10px;
    font-size: small;
}

/* Iconos de los controles */
.carousel-control-prev-icon, .carousel-control-next-icon {
    background-color: white;
    border-radius: 10%;
}

/* Efectos en los controles al pasar el mouse */
.carousel-control-prev:hover, .carousel-control-next:hover {
    background-color: rgba(0, 0, 0, 0.7);
}


/*////////////////////////// SECTION & MAIN ///////////////////////////*/

h1 {
    text-align: center;
}

h2 {
    font-size: 5px;
    text-align: center;
    justify-content: center;
}

h3 {
    text-align: center;
}

p {
    justify-content: center;
    text-align: center;
}

.square-container {
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 300px;
    margin-bottom: 20px;
}

.square-container {
    background: #ffffff;
    border: 2px solid #007bff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 600px;
    transition: transform 0.3s;
}

.square-container:hover {
    transform: scale(1.05);
}

/* informacion de la empresa */
main {
    padding: 20px;
    background: #f4f4f4;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    max-width: 900px;
    margin: auto;
    border-radius: 8px;
}

section {
    margin-bottom: 30px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    background: white;
    transition: transform 0.2s;
}

section:hover {
    transform: scale(1.02);
}

h2 {
    color: #0056b3;
    font-size: 24px;
    text-align: left;
}

.informacion {
    font-size: 18px;
    text-align: justify;
    line-height: 1.6;
    color: #333;
}

.juarez {
    display: block;
    margin: 15px auto;
    width: 80%;
    height: auto;
    border-radius: 8px;
}

.servicios {
    max-width: 900px;
    margin: auto;
    padding: 20px;
}

.contenedor {
    display: flex;
    align-items: center;
    background: #f9f9f9;
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}

.contenedor:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    background: #e9f5ff;
}

.imagen {
    width: 100px;
    height: auto;
    margin-right: 20px;
    border-radius: 8px;
    transition: transform 0.3s;
}

.imagen:hover {
    transform: scale(1.05);
}

.informacion {
    flex-grow: 1;
}

h1 {
    color: #007BFF;
    text-align: center;
    margin-bottom: 20px;
    font-size: 28px;
}

h2 {
    color: #0056b3;
    margin: 0 0 10px;
    font-size: 22px;
}

/*////////////////////////// FOOTER ///////////////////////////*/

footer {
    background-color: #222;
    color: #fff;
    padding: 20px 0;
    text-align: center;
    font-family: Arial, sans-serif;
}

footer a {
    color: #1e90ff;
    text-decoration: none;
    margin: 0 10px;
}

footer a:hover {
    color: #fff;
}

footer p {
    margin: 10px 0;
}

footer div a i {
    margin-right: 5px;
}

/*////////////////////////// RESPONSIVE DESIGN ///////////////////////////*/

/* Estilos para pantallas grandes */
@media (min-width: 768px) {
    .hamburger {
        display: none; /* Oculta el ícono de hamburguesa */
    }

    nav {
        position: static;
        display: flex;
        justify-content: flex-end;
        background: none;
        height: auto;
        width: auto;
        flex-direction: row;
    }

    nav a {
        padding: 0 20px;
    }
}

/* Responsividad en pantallas pequeñas */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    header {
        flex-direction: column;
        align-items: flex-start;
    }

    .menu {
        width: 100%;
        justify-content: space-between;
    }

    .hamburger {
        display: flex;
    }

    nav {
        position: fixed;
        top: 0;
        left: -250px;
        background-color: rgb(25, 33, 143);
        height: 100%;
        width: 250px;
        flex-direction: column;
        padding-top: 60px;
        transition: transform 0.3s ease;
        z-index: 9999; /* Asegura que el menú esté por encima del contenido */
    }

    nav.active {
        left: 0; /* Cuando el menú es activo, se desliza hacia la vista */
    }

    nav a {
        padding: 10px 20px;
        border-bottom: 1px solid #fff;
        text-align: left;
    }

    .text-image-container {
        padding: 20px;
        max-width: 100%;
        z-index: 1; /* Asegura que el contenido esté debajo del menú */
    }

    .square-container {
        width: 100%;
        padding: 15px;
    }

    .contenedor {
        flex-direction: column;
        align-items: flex-start;
    }

    .imagen {
        width: 80px;
        margin-bottom: 10px;
    }

    footer {
        font-size: 14px;
    }
}

