:root {
    --blanco: #F8FAF7;
    --negro: #000000;
    --rosa: #BF06A0;
    --texto: 'Inter', sans-serif;
}

/*Reset*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--texto);
    background-color: var(--negro);
    color: var(--blanco);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

}

a {
    text-decoration: none;
    color: inherit;
}

img,
figure {
    max-width: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

li {
    list-style-type: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: inherit;
    font-weight: inherit;
    font-size: inherit;
}

form,
button,
input,
textarea,
select {
    font-family: var(--texto);
    background-color: var(--blanco);
}

/*Header*/
.header {
    background-color: var(--negro);
    border-top: 2px solid #FFF;
    border-bottom: 2px solid #FFF;
    width: 100%;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--blanco);
    cursor: pointer;
    padding: 0.5rem 1rem;
    position: absolute;
    right: 1rem;
}

/*Nav list*/
.nav-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.nav-item {
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
}

.nav-link {
    padding: 0.5rem 1rem;
    border-radius: 15px;
    transition: background-color 0.3s, color 0.3s;
}

.nav-link:hover {
    background-color: var(--blanco);
    color: var(--negro);
}

/* Boton atras*/
.back.button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: transparent;
    color: var(--blanco);
    border: 2px solid var(--blanco);
    border-radius: 15px;
    margin: 1rem 0;
    font-weight: 600;
    transition: all 0.3s ease;
}

.back.button:hover {
    background-color: var(--blanco);
    color: var(--negro);
}

/* Main*/
.main {
    padding: 1rem;
    animation: 2.5s cubic-bezier(.25, 1, .30, 1) wipe-in-right both;
}

.h4 {
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
    text-transform: uppercase;
    font-weight: 600;
}

.p {
    line-height: 1.6;
    margin-bottom: 1rem;
}

hr {
    border: none;
    height: 2px;
    background-color: var(--blanco);
    margin: 2rem auto;
    width: 90%;
}

/* Contenedores de imagenes y texto */
.portada,
.Info,
.URIMG,
.disimg,
.EUC {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 2rem 0;
    justify-content: center;
    align-items: center;
}

.portada .img {
    width: 100%;
    max-width: 1500px;
    height: auto;
    object-fit: cover;
    object-position: center;
}

.contimg,
.UR1,
.UR2,
.DIS1,
.DIS2,
.EUI {
    flex: 1;
    text-align: center;
}

.continf,
.EULI {
    flex: 2;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.tr {
    border-bottom: 1px solid #ddd;
}

.td {
    padding: 12px;
    text-align: left;
    vertical-align: top;
}

.td .h4 {
    margin: 0;
    text-align: left;
}

.disimg .img,
.EUI .img {
    border-radius: 10px;
    max-height: 400px;
    margin: auto;
}

/* Listas */
.ul {
    padding-left: 1.5rem;
}

.li {
    list-style: disc;
    margin-bottom: 0.8rem;
    padding-left: 0.3rem;
    text-align: justify;
}

/* Links y contenedores */
.link {
    color: var(--rosa);
    text-decoration: underline;
    display: block;
    text-align: center;
    margin-bottom: 1rem;
}

.link:hover {
    color: #FF69B4;
}

.iframe-container {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 960px;
    margin-inline: auto;
}

.iframe {
    width: 100%;
    height: 500px;
    border: none;
    border-radius: 10px;
}

/* Footer */
.footer {
    width: 100%;
    padding: 1.5rem 0;
    text-align: center;
    border-top: 1px solid var(--blanco);
    background-color: var(--negro);
}

.footer .span {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--blanco);
}

/* Animación */
@keyframes wipe-in-right {
    from {
        clip-path: inset(0 100% 0 0);
    }

    to {
        clip-path: inset(0 0 0 0);
    }
}

/* Responsive*/
@media (max-width: 1024px) {
    .nav-list {
        display: none;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .nav.active .nav-list {
        display: flex;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .Info,
    .URIMG,
    .disimg,
    .EUC {
        flex-direction: column;
    }

    .iframe {
        height: 300px;
    }

    .portada .img {
        height: auto;
    }
}
