.dosis { font-family: "Dosis", serif; }
.teko { font-family: "Teko", serif; }
.rubik { font-family: "Rubik", serif; }
.josefin-sans {font-family: "Josefin Sans", serif;}
.nothing-you-could-do-regular { font-family: "Nothing You Could Do", serif; }
.grid-item {
    height: 100vh;
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    border-left: 4px solid rgba(255,255,255,0.3);
    box-shadow: 4px 0 10px rgba(0,0,0,0.2);
    clip-path: inset(0 -15px 0 0);
}

.h3, h3 {
    font-size: calc(5rem + 1.5vw);
}

.grid-item:hover {
    flex: 3 !important;
    z-index: 2;
    box-shadow: 6px 0 12px rgba(0,0,0,0.25);
}

.grid-item:not(:first-child) {
    margin-left: -10px;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.25);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0; /* Oculto por defecto */
    transition: opacity 1s ease;
    pointer-events: none; /* Impide la interacción con el overlay */
}

.container-nosotros {
    padding: 100px 20px;
    background-color: rgba(255, 255, 255, 0.9); /* Fondo blanco con 90% de opacidad para el contenido */
    border-radius: 10px;
    margin-top: 80px; /* Para evitar que el contenido se solape con el navbar */
}

.container-nosotros h1 {
    color: #333;
    font-family: "Teko", serif;
    font-weight: 600;
    margin-bottom: 20px;
	 
}

.container-nosotros p, .container-nosotros ul {
    font-family: "Rubik", serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.container-nosotros ul {
    list-style-type: disc;
    padding-left: 20px;
}

.container-nosotros img {
    transition: transform 0.3s ease;
}

.container-nosotros img:hover {
    transform: scale(1.05); /* Efecto de zoom al hacer hover */
}


.text-justify {
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
}

.grid-item {
    position: relative; /* Asegura que el enlace posicionado se refiera a este contenedor */
}

.full-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2; /* Ajusta el z-index según tu overlay; asegúrate de que el enlace esté por encima si se requiere clic en móviles */
    text-indent: -9999px; /* Si hubiera texto, lo oculta */
    /* Opcional: Puedes usar background: transparent; para asegurarte de que no se vea nada */
}


/* Estilos para escritorio */

@media (max-width: 768px) { 
    .img-responsive {
        height: 100%;
        width: auto;
        max-height: 300px; /* Ajusta este valor según el diseño */
        object-fit: cover;
    }
    
    .row.align-items-center {
        display: flex;
        flex-direction: column;
    }
    
    .col-6 {
        width: 100% !important;
    }
}



@media (min-width: 993px) {
    .grid-item:hover .overlay {
        opacity: 1; /* Mostrar al hacer hover */
        pointer-events: auto; /* Permitir la interacción con el overlay */
    }
}

/* Estilos para móvil y tablet */
@media (max-width: 992px) {
    .grid-container {
        flex-direction: column;
    }

    .grid-item {
        height: 100vh;
        width: 100vw;
        margin: 0 !important;
        border-left: none;
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
        clip-path: none;
    }

    .grid-item:hover {
        flex: 1 !important;
        box-shadow: 0 6px 15px rgba(0,0,0,0.3);
    }

    .overlay {
        opacity: 1; /* Mostrar en móvil */
        pointer-events: auto; /* Permitir la interacción con el overlay */
    }
}

.container-fluid { padding: 0; }
footer { margin-top: 0; }

