@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: 'MT10';
    src: url(../../font/Syne-VariableFont_wght.ttf);
}

body, html {
    color: white;
    background-color: black;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

h1,h2,h4,p,span{
    cursor: default;
}

/*composicion de banner inicio*/
.subrayado {
    text-decoration: none; 
    position: relative;
}

.subrayado::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 4px; 
    background-color: white; 
    bottom: 0; 
    left: 0; 
    transform: rotate(-2deg); 
}

/*cambios para fondo video en trabajo*/
.video-fondo {
    opacity: 0.7;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0; /* Hace que el video quede detrás del contenido */
}


.imagen_banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 80%, rgb(0, 0, 0)); /* Degradado negro */
    z-index: 1; /* Coloca el degradado sobre la imagen */
    pointer-events: none; /* Permite interactuar con otros elementos */
}

.contenedor-wb {
    position: relative; /* Necesario para que el video se posicione dentro del contenedor */
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    box-sizing: border-box;
    overflow: hidden; /* Evita que el video sobresalga */
}/**/

.contenedor-interno-wb {
    width: 80%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bienvenida-wb {
    font-family: 'MiTipografia9';
    font-size: 50px;
    flex: 1;
    text-align: left;
}

.texto-intermedio-wb {
    font-family: 'MiTipografia9';
    font-size: 20px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center; 
    z-index: 1; 
}

.imagen-wb {
    flex: 1;
    text-align: right;
}

.imagen-wb img {
    border-radius: 50%;
    max-width: 70%;
    height: auto;
}
/**/

/*nuestros proyectos*/
.proyectos-w {
    font-family: 'MiTipografia5';
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.w {
    width: 80%;
    padding: 20px;
    box-sizing: border-box;
}

.titulo-w {
    font-family: 'MiTipografia5';
    font-size: 50px;
    width: 100%; 
    text-align: left;
    margin-bottom: 20px;
}

.mostrador-w {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 20px;
}

.cartilla-w {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    border-radius: 10px;
}

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

.cabecera-w {
    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-w {
    font-weight: bold;
}

.anio-w {
    font-style: italic;
}

.overlay-cartilla-w {
    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-w .mensaje-w {
    text-align: center;
    font-size: 1.5rem;
}

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

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

.cartilla-w:hover .overlay-cartilla-w {
    opacity: 1;
}

footer{
    padding-top: 100px;
}

/* Estilo para la ventana emergente (modal) */
.modal {
    display: none; /* Oculto por defecto */
    position: fixed; 
    z-index: 1; 
    padding-top: 50px;
    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;
}

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

.be1{
    font-family: 'MiTipografia5';
    margin: auto;
    width: 190px;
    font-size: 14px;
    border-radius: 20px;
    margin-bottom: 40px;
    border: 2px solid black;
    text-align: center;
}

.be1:hover{
    background-color: black;
    transition: 0.5s;
    color: white;
}

/**************************ANIMACIONES***********************************/
/*efecto de aparicion letra por letra*/
@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

h2 span {
    display: inline-block;
    opacity: 0;
    animation: slideUp 0.5s forwards;
    white-space: pre; /* Evita la ruptura de palabras */
}

/*efecto subt*/
@keyframes slideInLeft {
    from {
        transform: translateX(-20%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.subt {
    font-family: 'MT10';
    font-size: 50px;
    font-weight:bold ;
    display: inline-block;
    animation: slideInLeft 1s forwards;
    opacity: 0; /* Aseguramos que la opacidad sea siempre 1 */
    margin-left: 5px; /* Opcional: espacio entre | y TRABAJO */
}

/*efecto cursor*/
@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

.cursor {
    display: inline-block;
    animation: blink 1s step-end infinite;
}

/* animacion para la imagen derecha a izquierda*/
.imagen-wb img {
    height: auto; 
    position: relative; 
    opacity: 0; 
    transform: translateX(100%);
    animation: slideLeft 1s forwards;
}

@keyframes slideLeft {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

/**************************************************MEDIA QUERY***************************************************/
@media (max-width: 480px) {
    .contenedor-wb {
        flex-direction: column;
        height: 110vh;
        padding: 20px;
    }

    .txt{
        position: relative;
        z-index: 1;
    }

    .contenedor-interno-wb {
        width: 100%;
        flex-direction: column;
        align-items: center;
    }

    .bienvenida-wb {
        font-size: 25px;
        text-align: center;
        margin-bottom: 20px;
    }

    .texto-intermedio-wb {
        font-size: 16px;
        position: static;
        transform: none;
        padding-top: 20px;
    }

    .imagen-wb {
        text-align: center;
    }

    .imagen-wb img {
        max-width: 50%;
    }

    .w {
        width: 80%;
        padding: 10px;
    }

    .titulo-w {
        font-size: 25px;
        text-align: center;
    }

    .mostrador-w {
        grid-template-columns: 1fr;
    }

    .cartilla-w {
        margin-bottom: 20px;
    }

    .cabecera-w {
        align-items: flex-start;
        padding: 10px;
        font-size: 12px;
    }

    .overlay-cartilla-w .mensaje-w {
        width: 200px;
        font-size: 12px;
        margin-bottom: 50px;
    }

    .overlay-cartilla-w .botones-w {
        align-items: center;
        gap: 5px;
        bottom: 10px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 11px
    }

    .botones-w p{
        text-align: center;
        width: 70px;
    }

    /*boton empieza*/
    .be1{
        width: 110px !important;
        font-size: 12px !important;
    }
}

/******************************************MEDIA QUERIE PARA 480px***********/
@media (min-width: 481px) and (max-width: 600px){
    .bienvenida-wb{
        font-size: 20px;
        height: 365.91px;
    }

    .texto-intermedio-wb{
        font-size: 14px
    }

    .imagen-wb{
        font-size: 50px;
        padding-top: 50px !important;
    }

    .texto-intermedio-wb{
        padding-top: 100px;
    }
}