@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    max-width: 80rem;
    margin-inline: auto;
    padding-inline: 1rem;
    font-family: "Raleway";
    min-height: 100dvh;
    padding-top: 2rem;
    display: grid;
    grid-template-rows: auto 1fr;
}

.a {
    text-decoration: none;
}

svg {
    width: 2rem;
    height: 2rem;
}

img {
    display: block;
    max-width: 100%;
    width: 100%;

}

.contenido img {
    max-width: 280px;
    border-radius: 20px;
}

iframe {
    display: flex;
    white-space: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
}

.ytp-cued-thumbnail-overlay-image {
    width: 280px;
    height: 280px;
}

body iframe {
    min-height: 280px;
    height: 280px;
    width: 100%;
    max-width: 280px;
    max-height: 280px;
    height: 100%;
    border-radius: 20px;
}

header img {
    width: 100%;
    max-width: 100px;
}

h1 {
    font-size: clamp(2rem, -0.0435rem + 5.2174vi, 4rem);
    padding-top: 1rem;
    padding-bottom: 1rem;
    text-align: center;
    text-transform: uppercase;
}

h2 {
    padding-top: 1.5rem;
    text-transform: uppercase;
}

h3 {
    padding-top: 1rem;
}

h5 {
    color: rgb(112, 112, 112);
    padding-top: 0.3rem;
}

ul,
ol {
    list-style: none;
    color: black;
    text-decoration: none;
    padding: 0;
}


header {
    background-color: rgb(255, 255, 255);
}

header nav a {
    text-decoration: none;
    color: hsl(0, 0%, 0%);
    background-color: #cfcfcf00;
    padding-block: 0.25em .5em;
    border-radius: 100vw;
    text-align: center;
}

.navegacion {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2em;
    padding-bottom: 1rem;
}

.navegacion a {
    text-transform: uppercase;
}


header nav ul {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    font-weight: bold;
}

.galeria {
    display: grid;
}

/*boton atras*/

.atras {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-end;
}

.atras svg {
    margin-right: 1rem;
}

/*boton atras*/

.subrayado {
    text-decoration: underline;
    text-underline-offset: .5em;
    text-decoration-thickness: 0.2em;
}

/*pestañas de la galeria*/

.pestañas {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 2em;
    padding-top: 2rem;
    white-space: nowrap;
    scrollbar-width: none;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior: inherit;
    padding-bottom: 2em;
}

.pestañas a {
    color: black;
}

.nosubrayado {
    text-decoration: none;
}

.vermas {
    display: flex;
    gap: 1rem;
    align-items: baseline;
}

figure {
    margin: 0%;
}

figure img {
    border-radius: 20px;
}

/*Animacion nav*/

nav ul {
    --_gap: 1rem;
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
}

nav li {
    position: relative;
    padding: calc(var(--_gap) / 2);
    overflow: hidden;
}

nav li::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0rem;
    height: 3px;
    width: 100%;
    background: rgb(0, 0, 0);

    translate: var(--_translate, 0);
    scale: var(--_width, 0) 1;
    transition:
        scale 300ms var(--_scale-delay, 0ms),
        translate 500ms var(--_translate-delay, 0ms);
}

nav li:hover {
    --_width: 1;
}

@supports selector(:has(h1)) {
    nav li:hover+li {
        --_translate: -100%;
        --_scale-delay: 300ms;
        --_translate-delay: 200ms;
    }

    nav li:has(+ :hover) {
        --_translate: 100%;
        --_scale-delay: 300ms;
        --_translate-delay: 200ms;
    }
}

nav a {
    color: inherit;
    opacity: .7;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 500;
    position: relative;
}

nav a:hover,
nav a:focus-visible {
    opacity: 1;
}

/* Animación */

@media (prefers-reduced-motion: no-preference) {

    .feed {

        --radio: 2rem;
        --mascara: 25%;
        --opacidad: .1;

        opacity: var(--opacidad);

        animation: aparece linear forwards;
        animation-timeline: view();
        animation-range: entry;
    }

    section:has(.feed) {
        animation: fondo linear forwards;
        animation-timeline: view();
        animation-range: cover;
    }

    @keyframes aparece {
        0% {
            clip-path: inset(var(--mascara));
            opacity: var(--opacidad);
        }

        100% {
            clip-path: inset(0% round var(--radio));
            opacity: 1;

        }
    }
}

@media (prefers-reduced-motion: no-preference) {

    .feed {

        --radio: 2rem;
        --mascara: 25%;
        --opacidad: .1;

        opacity: var(--opacidad);

        animation: aparece linear forwards;
        animation-timeline: view();
        animation-range: entry;
    }

    section:has(.feed) {
        animation: fondo linear forwards;
        animation-timeline: view();
        animation-range: cover;
    }

    @keyframes aparece {
        0% {
            clip-path: inset(var(--mascara));
            opacity: var(--opacidad);
        }

        100% {
            clip-path: inset(0% round var(--radio));
            opacity: 1;

        }
    }
}


/*imagenes galeria*/


.feed {
    display: flex;
    white-space: nowrap;
    gap: 15px;
    grid-auto-flow: column;
    grid-auto-columns: 24.5%;
    padding: 0 0 var(--_spacer) 0;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    margin-bottom: 1.5rem;
    padding: 1rem;
}

.feed figure {
    flex-shrink: 0;
    margin: 10px;
}

.feed2 {
    display: flex;
    white-space: nowrap;
    gap: 15px;
    grid-auto-flow: column;
    grid-auto-columns: 24.5%;
    padding: 0 0 var(--_spacer) 0;
    overscroll-behavior-inline: contain;
    margin-bottom: 1.5rem;
    padding: 1rem;
}

.feed2 figure {
    flex-shrink: 0;
    margin: 10px;
}


/* barra de navegación */

::-webkit-scrollbar {
    height: 5px;
    background-color: #ebeaea;
}

::-webkit-scrollbar-thumb {
    background-color: #302d2d2a;
    border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #a0a0a0;
}


#home h2,
h5 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.premiados img {
    width: 300px;

}

.recomendados img {
    width: 384px;
}

@media (max-width: 414px) {
    .recomendados img {
        width: 300px;
    }
}


/* Desplegable en mobile */

/* Estilos para el botón de menú desplegable */

.boton-menu {
    background-color: #33333300;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
}

.boton-menu:hover {
    background-color: #44444400;
}

/* Oculta el botón de Menú desplegable en escritorio */

@media only screen and (min-width: 769px) {
    .boton-menu {
        display: none;
    }
}

/* Menú desplegable en mobile */

@media only screen and (max-width: 768px) {
    .menu-desplegable {
        position: relative;
        display: inline-block;
    }

    .menu-desplegable ul {
        z-index: 10;
        display: none;
        position: absolute;
        top: 100%;
        right: 0%;
        border-radius: 20px;
        background-color: #f9f9f9;
        border: 1px solid #030303;
        padding: 20px;
        width: 200px;
    }

    .menu-desplegable ul li {
        display: block;
        margin-bottom: 10px;
    }

    .menu-desplegable ul li a {
        display: block;
        padding: 10px;
        text-decoration: none;
        color: #333;
    }

    .menu-desplegable ul li a:hover {
        background-color: #f0f0f0;
    }

    .menu-desplegable:hover ul {
        display: block;
    }
}

/* banner */

.uballery {
    background-image: url(../imagenes/HOME-IMAGENES/galleriahome.png);
    background-repeat: no-repeat;
    background-position: center;
    min-height: 35em;
    margin: 0;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: 1rem;

}

@media (max-width: 768px) {
    .uballery p {
        font-size: 0px;
    }
}

.uballery article {
    background-color: white;
    flex-wrap: wrap;
    text-align: center;
    display: flex;
    justify-content: center;
    margin: 0 auto;
    padding: 1rem;
    border-radius: 20px;
    max-width: 80%;
    min-width: 50%;
    max-height: 70%;
    min-height: 50%;
}

/*Animación de los trabajos*/

.datos {

    position: relative;
    overflow: hidden;
}

.info {

    width: auto;
    background-color: rgba(10, 10, 10, 0.856);
    padding: 1rem 1rem;
    color: white;
    box-shadow: 0 4px 14px hsla(0, 0%, 0%, .15);
    border-radius: 20px;
    border-top-left-radius: 0%;
    border-top-right-radius: 0%;
    position: absolute;
    bottom: 0;
    margin-inline: auto;
    opacity: 0;
    transition: opacity 1s;
    text-align: center;
    left: 0;
    right: 0;

}

figure:hover {
    transform: scale(1.1);
    transition: 0.3s ease-out
}


/* Naming animations in hover */


.datos:hover .info {
    animation: show-data 1s forwards;
    opacity: 1;
    transition: opacity .3s;
}

.datos:hover {
    animation: remove-overflow 2s forwards;
}

.datos:not(:hover) {
    animation: show-overflow 2s forwards;
}

.datos:not(:hover) .info {
    animation: remove-data 1s forwards;
}

/* Animacion info */

@keyframes show-data {
    50% {
        transform: translateY(-5rem);
    }

    100% {
        transform: translateY(0rem);
    }
}


@keyframes remove-overflow {
    to {
        overflow: initial;
    }
}

@keyframes remove-data {
    0% {
        transform: translateY(-7rem);
    }

    50% {
        transform: translateY(-10rem);
    }

    100% {
        transform: translateY(.5rem);
    }
}

@keyframes show-overflow {
    0% {
        overflow: initial;
        pointer-events: none;
    }

    50% {
        overflow: hidden;
    }
}


/*menu desplegable hacia abajo*/

.caida a {
    display: block;
    color: black;
    text-decoration: none;
}

.caida .menu {
    display: none;
    position: absolute;
    background-color: rgb(255, 255, 255);
    min-width: 100px;
    box-shadow: 2px 2px 5px hsla(0, 0%, 0%, 0.8);
    z-index: 10;
    padding: 10px;
    border-radius: 20px;
}

.caida .menu a {
    padding-block: 0.5em;
    padding-inline: 0.5em;
    border-radius: 20px;
}

.caida:hover .menu {
    display: block;
}

.caida:hover button {
    background-color: hsl(0, 0%, 100%);
}

.caida .menu a:hover {
    background-color: hsl(0, 0%, 3%);
    color: white;
}

/*ruido*/

@property --lines {
    syntax: "<length>";
    inherits: false;
    initial-value: 0.00010px;
}

@keyframes liner {

    10%,
    40% {
        filter: blur(0);
    }


    50% {
        --lines: 0.00012px;
    }
}


.ruido {
    animation: liner 3s linear infinite;
    mask: repeating-radial-gradient(circle at center,
            #000,
            var(--lines),
            #000,
            0,
            #0000005b,
            calc(var(--lines) * 2),
            #000000fb 0);
}



.ruido {
    --space: |;

    @supports (background: linear-gradient(in oklch, #000, #000)) {
        --space: in oklch;
    }

    display: grid;
    place-content: center;

    background-image: linear-gradient(to right var(--space),
        rgb(0, 0, 0), rgb(8, 8, 8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    @media (prefers-color-scheme: light) {
        background-image: linear-gradient(to right var(--space),
                black, rgb(0, 0, 0));

        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
}


/*pagina información*/


.tituloresumen {
    font-weight: 600;
    font-size: 40px;
    padding-bottom: 20px;
    text-transform: uppercase;
}

.subtituloresumen {
    padding-block: 1rem;
    font-weight: 550
}

.minititulo {
    padding-top: 10px;
    padding-bottom: 10px;

}

.contenido_informacion div img {
    width: 600px;
    border-radius: 20px;
}

.contenido_informacion div {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(22rem, 100%), 1fr));
    gap: 1rem;

}

/*pagina información*/


/* Carrusel */

.likes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
}

.contenidocarrusel {
    max-width: 80rem;
    width: 100%;
}

.carrusel {
    padding-top: 2rem;
    display: grid;
    grid-template-columns: repeat(20, 1fr);
    gap: 18px;
    list-style: none;
    margin-bottom: 30px;
    overflow-x: hidden;
    overflow-y: hidden;
}

@media only screen and (max-width: 350px) {
    .carrusel {
        width: 100%;
        padding: 0;
    }

    .contenidocarrusel {
        width: 100%;
        overflow-x: auto;
    }

    .datos {
        width: 100%;
        padding: 10px;
    }
}

.carrusel .datos {
    max-width: 250px;
    width: 400px;
    object-fit: cover;
    transition: all 0.6s;
    cursor: pointer;
    border-radius: 20px;
}

.carrusel .datos {
    animation: carrusel 20s linear infinite;
}

.carrusel:hover .datos {
    animation-play-state: paused;
}

.carrusel .datos:hover img {
    filter: none;
}

.carrusel .datos img {
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.carrusel:hover .datos img {
    filter: grayscale(100%);
}

.carrusel .datos:hover img {
    filter: none;
    transition: filter 0.3s ease;
}

@keyframes carrusel {
    0% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(-600px);
    }

    100% {
        transform: translateX(-1200px);
    }

    100.01% {
        transform: translateX(0);
    }
}

/* Página detalle */

.catedra {
    display: flex;
    justify-content: space-between;
}

.nombredetalle {
    display: flex;
    justify-content: space-between;
    padding-block: 2rem;
}

.catedra {
    display: flex;
    justify-content: space-between;
    padding-bottom: 2rem;
}

.seccion-comentarios h2 {
    font-size: 2rem;
    padding-bottom: 2rem;
}

.detalle h3 {
    font-size: 2rem;
    padding-bottom: 1rem;
}

.detalle img {
    width: auto;
    border-radius: 20px;
}

.detalle {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr));
    gap: 1rem;

}


/* Comentarios página detalle */


.seccion-comentarios {
    margin: 10px;
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    padding-inline: 15%;
}

.seccion-comentarios h2 {
    margin-top: 0;
}

.comment-box,
.comment {
    display: flex;
    margin-bottom: 20px;
}

.avatar {
    flex-shrink: 0;
    margin-right: 15px;
}

.avatar img {
    width: 50px;
    height: 50px;
    border-radius: 10%;
}

.comment-input {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.comment-input textarea {
    width: 100%;
    height: 60px;
    border: 1px solid #ddd;
    border-radius: 5px;
    resize: none;
}

.comment-input .comment-submit {
    align-self: flex-end;
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #000000;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.comment-input .comment-submit:hover {
    background-color: #000000;
}

.comment-user {
    font-weight: bold;
}

.texto {
    margin: 5px 0;
}

.acciones {
    font-size: 0.9em;
    color: #555;
}

.acciones .fecha {
    margin-right: 10px;
}

.acciones .responder {
    background: none;
    border: none;
    color: #0073e6;
    cursor: pointer;
}

.acciones .comment-reply:hover {
    text-decoration: underline;
}

.comment.reply {
    margin-left: 65px;
    margin-top: 15px;
}

@media (max-width: 706px) {
    .seccion-comentarios {
        padding-inline: 3%;
    }

    .detalle div {
        padding-inline: 2rem;
    }

    .detalle {
        gap: 2rem;
    }

    .catedra {
        padding-bottom: 1rem;
    }
}

/* PERFIL */

.pestañasperfil {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    padding-bottom: 1em;
    padding-top: 0.5rem;
}

.fotoperfil {
    display: grid;
    justify-items: center;
}

.fotoperfil img {
    max-width: 150px;
    border-radius: 20px;
}

.favoritos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.favoritos.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 70%;
    gap: 1rem;
}

.favoritos figure {
    max-width: 200px;
    margin: 10px;
}


@media only screen and (max-width: 768px) {
    .favoritos figure {
        width: 100%;
    }
}

@media only screen and (max-width: 550px) {
    .favoritos figure {
        max-width: 400px;
        margin: 5px;
    }
}

@media only screen and (max-width: 550px) {
    .favoritos {
        gap: 1rem;
    }
}


/*solo footer*/

.footer {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 1rem;
    background-color: #f8f9fa00;
    text-align: center;
    padding: 3rem;
    bottom: 0;
    width: 100%;
}

.footer h2 {
    padding: 0;
}

.footer p {
    margin: 0;
    color: #6c757d;
}

.footer a {
    color: #007bff;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}


/* tipografia*/

.filtro {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.filtro.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 70%;
    gap: 1rem;
}

.filtro figure {
    margin: 10px;
}


@media only screen and (max-width: 550px) {
    .filtro {
        gap: 1rem;
    }

}

@media (max-width: 670px) {
    .filtro figure {
        max-width: 450px;
    }

    .filtro img {
        max-width: 450px;
        min-width: 450px;
    }

    .filtro {
        gap: 1rem;
    }
}

/* FLECHA */


h2 a::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    border-top: 3px solid #000000;
    border-left: 3px solid #040404;
    transform: rotate(-45deg);
    margin-right: 9px;
    text-decoration: none;
    color: inherit;

}

h2 a {
    text-decoration: none;
    color: inherit;
    font-size: 1em;
    display: inline-flex;
    align-items: center;
}