body {
    padding-top: 70px;
    font-family: Arial, sans-serif;
    background-color: #cde6f268;
}

.navbar {
    position:fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}
    .custom-navbar {
        background-color: #ffffff00; /* Azul de Bootstrap o el que prefieras */
        color: rgb(244, 245, 248); /* Color del texto */
      }
      
      .custom-navbar .navbar-nav .nav-link {
        color: rgba(8, 8, 8, 0.918); /* Color de los enlaces */
        font-size: 1.3rem;
      }
    
      .custom-footer {
        background-color: #0a3d74; /* Mismo azul que el navbar */
        color: white; /* Color del texto */
        padding: 20px 0; /* Ajusta el padding según necesites */
        text-align: center; /* Centra el texto (opcional) */
      }
      
      .custom-footer a {
        color: white; /* Color de los enlaces */
        text-decoration: none; /* Quita el subrayado de los enlaces (opcional) */
      }
      
      .custom-footer a:hover {
        text-decoration: underline; /* Subraya los enlaces al pasar el mouse (opcional) */
      }

header {
    background: url("/img/Baner.PNG") no-repeat center center;
    background-size: cover;
    width: 100vw; /* Todo el ancho de la pantalla */
    height: 40vh; /* Toda la altura de la pantalla */
    overflow: hidden;
    position: relative;
    object-fit: cover; /* Se adapta al espacio sin deformarse */
    margin-bottom: -50px;
    margin-top: -4rem;
}




.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    background-color: #007bff;
    color: rgb(116, 240, 240);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    text-align: center;
    cursor: pointer;
}



/* Encabezado */
h2 {
    color: #2a73cc;
    font-weight: 600;
    text-align: center;
}



/* Responsividad */
@media (max-width: 768px) {

    header{
        background: url('/img/Bacei_baner_pc.png') no-repeat
    }
    .div-nosotros{
        margin-top:-100px
    }
    .form-row {
        grid-template-columns: 1fr; /* Cambia a una sola columna en móviles */
    }
    .full-width {
        grid-column: span 1;
    }
    .card {
        width: 90%;
    }
}




/* Responsividad */

@media (max-width: 800px) and (max-height:1280px) {
    header {
        background: url('/img/Bacei_baner_pc.png') no-repeat;
        height: 10rem;
        background-size: contain;
        margin-bottom: 100px;
             
    }
    #nosotros {
        flex-direction: column;
        align-items: center;
    }
    #nosotros .img-container {
        max-width: 100%;
    }
}



@media (max-width: 576px) {
    header {
        height: auto;
        padding: 3rem 0.5rem 1rem;
        background-size: cover;
    }
 
    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    #nosotros img {
        max-width: 250px;
    }
     .custom-navbar {
        background-color: #07487694; /* Azul de Bootstrap o el que prefieras */
    }
}
@media (max-width: 390px) and (max-height: 844px) {
    header {
        height: 9rem;
        background-size: contain;
        margin-bottom: 50px;
    }
     .custom-navbar {
        background-color: #07487694; /* Azul de Bootstrap o el que prefieras */
    }
}


@media (max-width: 576px) {
  
    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
     .custom-navbar {
        background-color: #07487694; /* Azul de Bootstrap o el que prefieras */
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 50px;
        font-size: 13px;
    }

    .custom-navbar .navbar-nav .nav-link {
        font-size: 0.9rem; /* Más pequeño aún para celulares */
        text-align: center; /* Centra el texto en móviles */
    }
    .custom-navbar {
        background-color: #07487694; /* Azul de Bootstrap o el que prefieras */
    }

    .custom-footer {
        padding: 10px 5px;
        font-size: 13px;
        text-align: center;
    }
}


                       

                /*INICIA CSS INDEX*/
                .contenedor-index {
                    display: flex;
                    align-items: center;
                    justify-content: space-between;
                    padding: 80px;
                  }
              
                  .texto-index {
                    width: 50%;
                    padding-right: 20px;
                    font-size: 1rem;
                    margin-left: 2rem;
                    margin-right: 2rem;
                    text-align: justify;
                  }
              
                  .imagen-index {
                    width:50%;
                    text-align: center;
                    margin-right: 2rem;
                  }
              
                  .imagen-index img {
                    max-width: 100%;
                    height: auto;
                    border-radius: 8px;
                  }
              
                  @media (max-width: 768px) {
                    .contenedor-index {
                      flex-direction: column;
                      text-align: center;
                    }
              
                    .texto-index, .imagen-index {
                      width: 100%;
                      padding: 10px 0;
                    }
              
                    .imagen-index {
                      text-align: center;
                    }
                }
                /*TERMINA CSS INDEX*/

                /*INICIA CSS NOSOTROS*/
                .contenedor-nosotros {
                    display: flex;
                    align-items: center;
                    justify-content: space-between;
                    padding: 80px;
                  }
              
                  .texto-nosotros {
                    width: 50%;
                    font-size: 1.4rem;
                    text-align: justify;
                    
                  }
              
                  .imagen-nosotros {
                    width:70%;
                    text-align: center;
                    
                  }
              
                  .imagen-nosotros img {
                    max-width: 100%;
                    height: auto;
                    border-radius: 8px;
                  }

                  .imagen-nosotros h1{
                    text-align: left;
                    margin-right: 12rem;
                    padding-bottom: 2rem;
                    font-size: 2rem;

                  }
              
                  @media (max-width: 768px) {
                    .contenedor-nosotros {
                      flex-direction: column;
                      text-align: center;
                    }
              
                    .texto-nosotros, .imagen-nosotros {
                      width: 100%;
                      padding: 10px 0;
                    }
              
                    .imagen-nosotros {
                      text-align: center;
                    }
                }
                /*TERMINA CSS NOSOTROS*/


               
