@font-face {
    font-family: 'MiTipografia1';
    src: url(../font/Montreal-Bold.ttf);
}
@font-face {
    font-family: 'MiTipografia2';
    src: url(../Font/Montreal-Regular.ttf);
}
@font-face {
    font-family: 'MiTipografia3';
    src: url(../font/Syne-VariableFont_wght.ttf);
}

@font-face {
    font-family: 'MiTipografia4';
    src: url(../font/PPNeueMontreal-Bold.otf);
}
@font-face {
    font-family: 'MiTipografia5';
    src: url(../font/PPNeueMontreal-Book.otf);
}
@font-face {
    font-family: 'MiTipografia6';
    src: url(../font/PPNeueMontreal-Italic.otf);
}
@font-face {
    font-family: 'MiTipografia7';
    src: url(../font/PPNeueMontreal-Medium.otf);
}
@font-face {
    font-family: 'MiTipografia8';
    src: url(../font/PPNeueMontreal-SemiBolditalic.otf);
}
@font-face {
    font-family: 'MiTipografia9';
    src: url(../font/PPNeueMontreal-Thin.otf);
}
 @font-face {
    font-family: 'Manrope';
    src: url(../font/Manrope-VariableFont_wght.ttf);
}
@font-face {
    font-family: 'Oswald';
    src: url(../font/Oswald-VariableFont_wght.ttf);
}

.subrayado {
    text-decoration: none; /* Eliminamos el subrayado normal */
    position: relative;
}

.subrayado::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 4px; /* Grosor del subrayado */
    background-color: white; /* Color del subrayado */
    bottom: 0; /* Posicionamiento */
    left: 0; /* Posicionamiento */
    transform: rotate(-2deg); /* Inclinación del subrayado */
}

.contenido-nuestro-trabajo {
    width: 80%;
    padding-top: 200px;
    margin: auto;
    box-sizing: border-box;
}

.trabajo {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
}

.titulo-trabajo, .descripcion {
    flex: 1 1 50%;
    box-sizing: border-box;
    padding: 20px;
}

.titulo-trabajo {
    text-align: left;
}

.descripcion {
    flex: 1 1 50%;
    box-sizing: border-box;
    text-align: left;
    opacity: 0;
    transform: translateX(50px);
    transition: transform 0.5s, opacity 0.5s;
    padding-top: 50px;
}

.descripcion h3 {
    font-family: 'MiTipografia9';
    font-size: 40px !important;
}

.descripcion.visible {
    opacity: 1;
    transform: translateX(0);
}

.titulo {
    font-family: 'MiTipografia9';
    font-size: clamp(2.5rem, 7.1vw, 7.5rem);
    margin: 0;
    line-height: 1.5;
}

/*css para efecto hacia arriba */
.titulo-trabajo {
    opacity: 0;
    transform: translateY(20px); /* Initial position for the animation */
    transition: opacity 1s ease-out, transform 1s ease-out; /* Animation properties */
}

.titulo-trabajo.visible {
    opacity: 1; /* Make visible */
    transform: translateY(0); /* Move to original position */
}/**/

.descripcion h3 {
    font-family: 'MiTipografia9';
    font-size: 1.75rem;
    margin-top: 0;
}

.descripcion p {
    font-family: 'MiTipografia5';
    font-size: 1.25rem;
}

/* Estilos para el mostrador */
.mostrador {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cartilla {
    position: relative; /* Necesario para la superposición del cuadro negro */
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    border-radius: 10px;
}

.cartilla img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius:0 0 10px 10px;
}

.cartilla:nth-child(1) {
    flex: 1 1 100%;
}

.cartilla:nth-child(n+2):nth-child(-n+5) {
    flex: 1 1 calc(50% - 5px);
}

.cartilla:nth-child(2),
.cartilla:nth-child(3),
.cartilla:nth-child(4),
.cartilla:nth-child(5) {
    width: calc(50% - 5px);
}

.cabecera {
    font-family: 'MiTipografia9';
    display: flex;
    justify-content: space-between;
    padding: 10px;
    border-radius:10px 10px 0 0;
    border-top: 1px solid rgb(186, 184, 184);
    border-left: 1px solid rgb(186, 184, 184);
    border-right: 1px solid rgb(186, 184, 184);
}

.nombre {
    font-weight: bold;
}

.anio {
    font-style: italic;
}

.imagen {
    border-radius: 0 0 10px 10px;
    margin-top: 0;
}
/**/

/* Estilos para el cuadro negro superpuesto */
.overlay-cartilla {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s;
}

.overlay-cartilla .mensaje {
    text-align: center;
    font-size: 1.5rem;
}

.overlay-cartilla .botones {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: flex;
    gap: 10px;
}

.overlay-cartilla .botones p {
    border: 1px solid white;
    border-radius: 20px;
    padding: 10px 20px;
    color: white;
}

.cartilla:hover .overlay-cartilla {
    opacity: 1;
}
/**/

/* Estilo para la ventana emergente (modal) */
.modal {
    display: none; /* Oculto por defecto */
    position: fixed; 
    z-index: 1; 
    padding-top: 80px;
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0, 0, 0, 0.5); 
}

.modal-content {
    position: relative;
    margin: auto;
    padding: 0;
    width: 90%; /* Ancho del modal */
    max-width: 1200px; /* Ancho máximo del modal */
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
}

.close {
    position: absolute;
    top: 10px;
    right: 20px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/*boton mostrar mas*/
.mostrar-mas {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding-top: 50px;
    text-align: center;
    padding: 20px 0; /* Ajusta el padding según necesites */
}

.mostrar-mas a{
    text-decoration: none;
}

.boton-a {/*boton animado*/
    position: relative;
    padding: 10px 20px;
    background-color: black;
    color: white;
    border: 2px solid white;
    border-radius: 25px;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.3s ease-in-out;
    display: inline-flex;
    align-items: center;
    font-family: 'MiTipografia5';
    font-size: 1.25rem;
}

.texto-a {
    margin-right: 40px;
}

.boton-a .flecha-a {
    width: 20px;
    height: 20px;
    background-image: url("../img/lif.png");
    background-size: contain;
    background-repeat: no-repeat;
    margin-left: -25px; /* Inicialmente oculta la flecha */
    transition: margin-left 0.3s ease-in-out;
}

.boton-a:hover .flecha-a {
    margin-left: 0; /* Muestra la flecha al pasar el cursor sobre el botón */
}

iframe {
    width: 100%;
    height: 600px;
    border: none;
}

/******************************************MEDIA QUERIE PARA 480px*******************************/

@media (max-width: 480px) {
    .contenido-nuestro-trabajo{
        padding-top: 50px !important;
        width: 70%; /*importante porque genera scroll en mayor tamaño*/
    }
    .trabajo {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .cartilla {
        width: 90% !important; /* Ancho completo para la primera cartilla */
        margin-bottom: 20px; /* Espacio entre cartillas */
    }

    .cartilla:nth-child(n+2) {
        display: none; /* Oculta todas las cartillas excepto la primera */
    }

    .descripcion h3{
        font-size: 20px !important;
    }
    .botones p{
        visibility: hidden;
    }
    .texto-a{
        font-size: 12px;
    }
}

/******************************************MEDIA QUERIE PARA 480px***********/
@media (min-width: 481px) and (max-width: 600px){
    .contenido-nuestro-trabajo{
        padding-top:100px;
    }

    .overlay-cartilla .mensaje{
        font-size: 14px;
    }

    .overlay-cartilla .botones p{
        font-size: 14px;
    }

    .boton-a{ 
        font-size: 14px;
    }

}