@charset "utf-8";


@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;700;900&display=swap');
/* general */

*,
*::after,
*::before {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0;
    outline-color: transparent;
}

html {
    scroll-behavior: smooth;
    scroll-padding-block-start: 5em;
}

* {
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
    padding: 0;
    border: 0;
    outline: none;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
}


header {
    background-color: rgb(94, 163, 126);
    display: flex;
    color: rgb(255, 255, 255);
    font-size: 0.5rem;
    max-width: 100%;
    padding: 1rem;
    justify-content: space-between;
    align-items: center;
}


/*footer*/
footer {
    background-color: rgb(94, 163, 126);
    color: rgb(255, 255, 255);
    font-size: 0.5rem;
    max-width: 100%;

}


body {
    background-color: rgb(234, 235, 235);
}

main {
    padding: 2rem;
}


h1 {
    padding-bottom: 2rem;
}

a {
    text-decoration: none;
    color: rgb(255, 255, 255);

}

ul,
ol {
    list-style: none;
}

.nav-lista {
    font-size: 1.2rem;
}

nav ul li a:hover {
    font-weight: 300rem;
    transition: .2s;
    border-bottom: solid rgb(255, 255, 255);
}

.abrir-menu,
.cerrar-menu {
    display: none;
}


/*cuerpo*/


.bienvenidos figure {
    position: relative;
    text-align: bottom;
}

.bienvenidos figure figcaption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgb(255, 255, 255);

}

.bienvenidos figure figcaption span {
    font-size: 2rem;

}

.bienvenidos figure figcaption p {
    font-size: 0.6rem;
    background-color: rgb(25, 152, 255);
    padding: 0.5rem;
    border-radius: 1rem;
    margin-top: 1rem;
}

main h2 {
    padding-top: 3rem;
    padding-bottom: 1rem;
}

/* footer */
footer img {
    width: 20px;
    display: grid;
    padding: 2rem;
}

/* algunos eventos*/

h2 {

    border-color: rgb(25, 152, 255);
    font-size: 1.2rem;
    padding-top: 3rem;
}



/* Estilos para el menú de navegación */

ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
}

li {
    margin: 0.5rem;
}

/* Estilos para el contenido principal */
main {
    text-align: center;
    padding: 20px;
}

h1 {
    font-size: 36px;
}

h2 {
    font-size: 24px;
}

/* Estilos para el footer */
footer {
    text-align: center;
    padding: 10px;
}

footer img {
    width: 30px;
    height: 30px;
    margin: 0 5px;
}

/* Estilos para el contenedor de primer imagen */
.contenedor-imagen {
    position: relative;
    max-width: 100%;
    overflow: hidden;
}

/* Estilo para la imagen dentro del contenedor */
.contenedor-imagen img {
    width: 100%;
    height: auto;
    display: block;
}

/* Estilo para el texto encima de la imagen */
.texto-encima {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 24px;
    text-align: center;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    /* Sombra para mejorar visibilidad del texto */
}

/* Estilos para el logo */

#logo {
    margin: 10px;
}

#logo img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    /* Añade una sombra suave al logo */
}


/* Media query para pantallas más pequeñas */
@media screen and (max-width: 778px) {

    .abrir-menu,
    .cerrar-menu {
        display: block
    }


    .nav {
        opacity: 0;
        visibility: hidden;

        position: absolute;
        z-index: 6666;
        top: 0;
        right: 0;
        background-color: rgb(25, 152, 255);
        padding: 2rem;
        bottom: 0;
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: end;
    }

    .nav.visible {
        opacity: 1;
        visibility: visible;
    }

    .nav-lista {
        flex-direction: column;
        align-items: end;
    }

    .texto-encima {
        font-size: 1rem;
    }

    figure {
        display: grid;
        padding-bottom: 1rem;
    }

    .texto-encima {
        position: absolute
    }

    article figure {
        position: relative;

    }

    article figure figcaption {
        position: absolute;
        align-self: center;
        align-content: center;
        color: rgb(255, 255, 255);
        padding: 3rem;
    }


    article figure figcaption:hover {
        transition: .2s;
        background-color: rgba(94, 163, 126, 0.616);
        position: absolute;
        border-radius: 0.5rem;
        padding-bottom: 10.9rem;
    }

    section article figure img {
        border: 0.5rem solid rgb(94, 163, 126);
    }

    section article {
        text-align: center;
    }

    section article figure figcaption.texto-arriba {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        box-sizing: border-box;
        align-items: center;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {


    article figure {
        position: relative;
        display: flex;

    }

    article figure figcaption {
        position: absolute;
        align-self: center;
        align-content: center;
        color: rgb(255, 255, 255);
        padding: 3rem;
    }


    article figure figcaption:hover {
        transition: .2s;
        background-color: rgb(94, 163, 126);
        position: absolute;
        border-radius: 0.5rem;
        padding-right: 20rem;
    }

    section article figure img {
        border: 0.5rem solid rgb(94, 163, 126);
    }

    section article {
        text-align: center;
    }

    section article figure figcaption.texto-arriba {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        box-sizing: border-box;
        align-items: bottom;
    }
}

@media (min-width: 30px) {

    section article {
        margin-bottom: 1rem;
        align-items: end;
        margin-left: 0%;
    }

    img {
        border-radius: 0%;
        max-width: 100%;
        height: auto;
    }

    article figure {
        display: flex;
        flex-direction: row-reverse;

    }

    .texto-arriba {
        padding: 2rem;
        text-align: end;
        background-color: rgb(94, 163, 126);
        color: rgb(255, 255, 255);

    }

    @media (min-width: 1024px) {

        section article {
            margin-bottom: 1rem;
            align-items: end;
            margin-left: 0%;
        }


        img {
            border-radius: 0%;
            max-width: 100%;
            height: auto;
        }

        section {
            margin: 5rem;
        }

        article figure {

            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
            grid-gap: 0;

        }

        .texto-arriba {
            padding: 2rem;
            text-align: end;
            background-color: rgb(94, 163, 126);
            color: rgb(255, 255, 255);

        }
    }
}