* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
} /* globales -> * = todo */

body {
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    background-color: #f4f4f4;
    color: #333;
    margin: 0;
    padding: 0;
}

h1, h2, h3 {
    color: #222;
    font-weight: bold;
}


p {
    margin-bottom: 1em;
}

/* estilos header*/

header {
    background-image: url(./imgs/pared.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    width: 100%;
    color: #fff;
    text-align: center;
}






/* inicio */

#inicio {
    padding: 2em;
    /* Un gris más claro */
    text-align: center;
    border-bottom: 3px solid #ccc;
    border-left: 5px solid #f7ff03;
    border-right: 5px solid #f7ff03;
    background-image: url('./imgs/pare.jpg') ; 
}

@media (max-width: 768px) {
    #inicio {
        background-image: url(./imgs/pared.png);
        background-size: cover;
        
        
    }
}

#incio-nav {
    background-color: #c6c4c400;

}

#inicio h2 {
    color: #0056b3;
    font-family: 'Oswald', sans-serif; /* Diferente tipografía */
    margin-bottom: 1em;
    background-color: rgba(255, 255, 255, 0.5);
}

#inicio p {
    font-size: 1.1em;
    line-height: 1.7;
    color: #444;
}

/* sobre nosotros */

#sobre-nosotros {
    padding: 2em;
    background-color: #e6f7ff; /* Azul claro */
    border-left: 5px solid #007BFF;
    border-right: 5px solid #007BFF;
     /* Barra decorativa */
}

#sobre-nosotros h2 {
    color: #004085;
    font-family: 'Oswald', sans-serif;
    margin-bottom: 0.5em;
    
}

#sobre-nosotros p {
    font-size: 1.05em;
    color: #333;
    text-align: justify;
}


#div-dig { background-color: rgba(255, 255, 255, 0.5);}

/* Servicios */

#servicios {
    padding: 2em;
    background: linear-gradient(135deg, #f0f0f0, #d3e0ea);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-left: 5px solid #007BFF;
    border-right: 5px solid #007BFF;
}

#servicios h2 {
    color: #004085;
    font-family: 'Oswald', sans-serif;
    
    margin-bottom: 1em;
}

#servicios p {
    color: #444;
    font-size: 1.15em;
    margin-top: 1em;
    line-height: 1.6;
}

/*OFICINA*/
#oficina p {
    color: #444;
    font-size: 1.15em;
    margin-top: 1em;
    line-height: 1.6;
    padding: 2em;
    background: linear-gradient(135deg, #f0f0f0, #d3e0ea);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-left: 5px solid #007BFF;}



/* Footer */

footer {
    background-color: #333;
    color: #fff;
    padding: 1em 0;
    text-align: center;
    font-size: 0.9em; }

    /*NAV*/


#nav-boot {
    font-size: 0.9rem; /* Reduce el tamaño del texto */
     /* Reduce el espacio interno */
    background: linear-gradient(180deg, rgba(116, 44, 44, 0.8) 0%, rgba(240, 248, 255, 0.6)); /* Color de fondo opcional */
    border-left: 5px solid #ff0000;
    border-right: 5px solid #ff0000;
    }

#nav-boot ul {
    display: flex;
    justify-content: space-between; /* Espacio entre los elementos */
    list-style-type: none;
}

#nav-ul li {
    margin: 0 5px;
    /* Espaciado entre los elementos */
}

#nav-boot a {
    text-decoration: none;
    color: #333333;
    padding: 0px 45px;
    transition: color 0.3s;
    font-weight: bold;
}



ul { 
    margin-bottom: 0;
}

.p-header { 
            font-family: "Oswald", serif;
            font-optical-sizing: auto;
            font-weight: 200;
            font-style: normal;
            color:rgb(0, 0, 0);
            font-weight: bold;
            padding: 1em ;}

nav ul li a {
                color: #0f0ffe;
                text-decoration: none;
            }

.nav-item li ul {padding-left: 10px;}
        
.navbar-toggler:hover {
    background-color: #e3e8ed00;
}

.navbar-toggler { 
    
        color: rgba(255, 0, 0, 0);
        border: none ;
        display: flex;
        justify-content: left;
        align-items: center;
        width: 100%}

.navbar-expand-lg  {
    padding: 10px;
    
}

#navbarNav {padding: 10px;}

@media (max-width: 768px) {
    #nav-boot a  { 
        padding: 0px;
        
    }
}

@media (max-width: 768px) {
    .navbar-nav{
        padding: 5px;
        font-size: 25px;
    }
}

@media (max-width: 768px) {
    .navbar-nav a:hover{
        background-color: rgba(255, 0, 0, 0.506);
    }
}
            

/* Estilos de formularios */



label {
    font-weight: bold;
    display: block;
    margin-bottom: 0.5em;
}

input[type="email"],
input[type="text"]
 {
    width: 33%;
    padding: 0.5em;
    margin-bottom: 1em;
    border: 1px solid #ccc;
    border-radius: 4px;
}

textarea { 
    width: 50%;
    height: 150px;
}

button {
    background-color: #007BFF;
    color: white;
    padding: 0.7em 1.5em;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: block; /* Hace que el botón esté en una nueva línea */
}

button:hover {
    background-color: #0056b3;
    
}

#form-sec { background: linear-gradient(to right, #f0f0f0, #d3d3d3);
             padding: 1.5em;
             font-weight: bold;
             color: #004085;
    }

#form{ padding-top: 2em;
        }

        @media (max-width: 768px) {
            input[type="text"],
            input[type="email"],
            textarea {
                width: 100%;
            }
        }
        
        @media (max-width: 480px) {
            #form-sec {
                padding: 1em;
            }
        
            button {
                width: 100%;
            }
        }
        
        @media (max-width: 768px) {
            #nav-ul { display: none;}
        }

        @media (max-width: 768px) {
            nav ul {
              flex-direction: column;
              display: none; /* Se oculta por defecto en pantallas pequeñas */
              width: 100%;
              background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(173, 216, 230, 0.7) 100%);
              font-family: "Oswald", serif;
              font-optical-sizing: auto;
              font-weight: 200 bold;
              font-style: normal;
              
          
            }}

        /*GRID*/

        #img-grid{ 
            height: 300px;
        }

        #productos {
            padding: 2em;
            background-color: #eaeaea;
            border-left: 5px solid #f7ff03;
            border-right: 5px solid #f7ff03;
        }
        
        #productos h2 {
            
            color: #004085;
            font-family: 'Oswald', sans-serif;
            font-weight: bold;
        }
        
        .productos-container {
            display: flex;
            flex-wrap: wrap;
            gap: 1.5em;
            justify-content: space-around;
        }
        
        .card {
            background-color: #fff;
            border: 1px solid #ccc;
            border-radius: 8px;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
            padding: 1em;
            width: calc(33% - 1em);
            text-align: center;
        }
        
        .card img {
            max-width: 100%;
            height: auto;
            border-radius: 4px;
        }
        
        @media (max-width: 768px) {
            .card {
                width: calc(48% - 1em);
                
            }
        }
        
        @media (max-width: 480px) {
            .card {
                width: 100%;
            }
        }

        /* OFICINA */

        #oficina { 
            border-left: 5px solid #03ff03;
            border-right: 5px solid #03ff03;;
            padding: 2em;
        }

        #oficina h2 { 
            color: #004085;
            font-family: 'Oswald', sans-serif;
        }

        #img-ofi{
            height: 300px;
        }

        .carousel-inner{height: 450px;}

        @media (max-width: 768px) {
            .carousel-inner{
                height: 190px;
                width: 100px}
                #img-ofi{ 
                    width: 100%;
                    height: 191px;
                    object-fit: fill;
                    
                }
            }

        

        
        /*Personal*/


        #personal {
            border-left: 5px solid #039603;
            border-right: 5px solid #039603;;
            padding: 2em;
        }

       
         #personal h2{
            color: #004085;
            font-family: 'Oswald', sans-serif;
        }

         #equipo {
            color: #444;
            font-size: 1.15em;
            margin-top: 1em;
            line-height: 1.6;
            padding: 2em;
            background: linear-gradient(135deg, #f0f0f0, #d3e0ea);
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
            border-left: 5px solid #007BFF;}

            /* Reseñas */

        #resenas {
            padding: 2em;
            background-color: #f4f4f4;
        }

        #resenas h2 {
            color: #004085;
            font-family: 'Oswald', sans-serif;   
        }
        
        .resenas-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 1.5em;
        }
        
        .reseña {
            background-color: #fff;
            border: 1px solid #ddd;
            border-radius: 8px;
            padding: 1em;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        }
        
     

        /* Estilos comunes para los carruseles */
        .carousel-img {
            width: 100%; /* Ajusta al 100% del contenedor */
            height: 300px; /* Usa la altura de la imagen más baja */
            object-fit: cover; /* Asegura que la imagen llene el contenedor manteniendo las proporciones */
        }
        
.carousel-inner {
    width: 100%; /* Ajusta el ancho del contenedor del carrusel */
    max-width: 800px; /* Tamaño máximo opcional para que ambos carruseles sean iguales */
    margin: 0 auto; /* Centra el carrusel */
}

/* Estilo específico para el contenedor de "Nuestro Personal" */
#carouselPersonal .carousel-item img {
    max-width: 100%; /* Asegura que las imágenes dentro del carrusel ocupen el 100% del contenedor */
    height: auto; /* Mantiene la proporción */
}

/* Estilo específico para el contenedor de "Nuestras Oficinas" */
#carouselOficinas .carousel-item img {
    max-width: 100%; /* Asegura que las imágenes dentro del carrusel ocupen el 100% del contenedor */
    height: auto; /* Mantiene la proporción */
}

        