html {
    scroll-behavior: smooth;
}

.navbar {
    background-color: rgba(0, 0, 0, 0);
    transition: background-color 0.5s ease;
}

.navbar.scrolled {
    background-color: rgba(1, 18, 110, 0.9); 
}

.fixed-top {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1030;
}

body{
    width: 100%;
    margin: 0;
    padding-top: 3.5rem;
    height: 100%;
    background-image: url('assets/imagen12.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

#inicio {
    width: 100%;
    margin-top: 10px;
    height: 100vh;
}

.custom-logo {
    width: 500px;
    height: auto;
}

#nosotros {
    width:100%;
    background: rgb(2,0,36);
    background: linear-gradient(90deg, rgba(2,0,36,1) 0%, rgba(0,29,148,1) 0%, rgba(1,11,85,1) 100%, rgba(0,212,255,1) 100%);
}

.historia{
    text-align: center;
    padding: 50px;
} 

.historia p{
    font-size: 17px;
}

.grid-container {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columnas en tamaño normal */
    gap: 10px;
}

.grid-item{
    background: linear-gradient(90deg, rgb(126, 216, 9), rgb(182, 230, 10));
    border: 2px solid white;
    overflow: hidden;
}

.grid-item p{
    font-size: 17px;
}

/* Media query para pantallas de 768px o menos */
@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas */
    }

    .grid-container > :nth-child(3) {
        grid-column: 1 / -1; /* Hacer que el tercer elemento ocupe toda la fila */
        justify-self: center; /* Centrar el tercer elemento */
    }
}

/* Media query para pantallas más pequeñas (celulares) */
@media (max-width: 480px) {
    .grid-container {
        grid-template-columns: 1fr; /* 1 columna */
    }
}

.h2valor{
    margin-left: 37%;
}

.valores-list{
    display: flex;
    flex-wrap: wrap;
    max-width: 400px;
}

.valores-list li{
    font-size: 17px;
    width: 33.33%;
    box-sizing: border-box;
}

#servicios {
    width: 100%;
    padding-bottom: 50px;
    overflow: hidden;
}

#servicios h1 {
    padding-top: 60px;
}

.grid-services {
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 20px;
}

/* Para pantallas más pequeñas */
@media (max-width: 1200px) {
    .grid-services {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas en pantallas más pequeñas */
    }
}

@media (max-width: 800px) {
    .grid-services {
        grid-template-columns: 1fr; /* 1 columna en pantallas muy pequeñas */
    }
}

.card {
    position: relative;
    overflow: hidden;
}

.card img {
    width: 100%;
    height: 300px;
    display: block;
}

.card .title {
    color: white;
    font-size: 24px;
    margin: 0;
    position: absolute;
    bottom: 10px;
    left: 10px;
    z-index: 1;
    background: rgba(0, 0, 0, 0.7); /* Fondo semi-transparente */
    padding: 5px; /* Espacio interno */
    border-radius: 10px;
}

.card .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover .overlay {
    opacity: 1;
}

.card .text {
    color: white;
    font-size: 20px;
    text-align: center;
    margin-top: 5px;
    padding: 0 10px;
}

#contactenos {
    width: 100%;
    margin-top: 80px;
    text-align: center;
    background: rgb(2,0,36);
background: linear-gradient(90deg, rgba(2,0,36,1) 0%, rgba(0,29,148,1) 0%, rgba(1,11,85,1) 100%, rgba(0,212,255,1) 100%);
}

.contacto{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}

/* Media query para pantallas de 768px o menos */
@media (max-width: 768px) {
    .contacto {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas */
    }

    .contacto > :nth-child(3) {
        grid-column: 1 / -1; /* Hacer que el tercer elemento ocupe toda la fila */
        justify-self: center; /* Centrar el tercer elemento */
    }
}

/* Media query para pantallas más pequeñas (celulares) */
@media (max-width: 480px) {
    .contacto {
        grid-template-columns: 1fr; /* 1 columna */
    }
}

.contact-icons {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.contact-icons li {
    margin: 0;
}

.contact-icons a {
    text-decoration: none;
    color: #fff; 
    font-size: 1.5rem; /* Usar rem para el tamaño de fuente */
}

.contact-icons a:hover {
    color: #007bff; 
}






