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

body {
    margin: 0;
    font-family: "Montserrat", Arial, sans-serif;
    background-color: hsl(0, 0%, 100%);
}

.navbar {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 40px;
    background: #003496;
    position: sticky;
    color: #ffffff;
    font-size: 2rem;
    height: 100px;
    font-family: 'Montserrat', Arial, sans-serif;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    top: 0;
    z-index: 10;
    animation: navbarFadeIn 1s;
}

.inscribirse {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.inscribirse a {
    background: #ffcc00;
    color: #003496;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: font-size 0.3s, color 0.3s, background 0.3s;
    display: inline-block;
}
.inscribirse a:hover {
    font-size: 2.5rem;
    color: #ffcc00;
    background: transparent;
}

@keyframes navbarFadeIn {
    from { opacity: 0; transform: translateY(-40px);}
    to { opacity: 1; transform: translateY(0);}
}

.navbar-title {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 18px;
    font-weight: bold;
    letter-spacing: 2px;
    transition: color 0.3s;
}
.navbar-title img {
    width: 100px;
    height: 100px;
    margin-bottom: 0;
}

.feria-title {
    font-size: 2.5rem;
    font-weight: bold;
    letter-spacing: 2px;
    color: #fff;
    margin-top: 0;
    text-align: center;
}

.navbar-title:hover {
    color: #ffcc00;
    cursor: pointer;
}

/* Redes sociales navbar */
.navbar-redes {
    display: flex;
    gap: 100px; /* Más separación entre íconos */
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar-redes a {
    font-size: 2.8rem; /* Íconos más grandes */
    display: flex;
    align-items: center;
    position: relative;
    transition: color 0.3s;
    text-decoration: none;
}

.navbar-redes i{
    font-size: 3.5rem;
}

.navbar-redes a::after {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 3px;
    background: currentColor;
    border-radius: 2px;
    transition: width 0.3s cubic-bezier(.4,0,.2,1);
}

.navbar-redes a:hover::after,
.navbar-redes a:focus::after {
    width: 100%;
}

.navbar-redes a.instagram { color: #E4405F; }
.navbar-redes a.tiktok { color: #000; }

.navbar-redes a:hover {
    filter: brightness(1.3);
    color: #ffcc00;
}

.content {

    padding: 20px;
    text-align: center;
    color: #0d3aff;
}

.content h1 {
    font-size: 2.5rem;
    animation: fadeIn 1s;
    margin-bottom: 20px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px);}
    to { opacity: 1; transform: translateY(0);}
}
.content p {
    font-size: 1.5rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    animation: fadeIn 1s;
}





.images-content img:hover {
    transform: scale(1.05);
}
@keyframes ImageFadeIneachother {
    from { opacity: 0; transform: translateY(20px);}
    to { opacity: 1; transform: translateY(0);}
}

.about-the-event {
    background: rgb(0, 32, 136);
    padding: 40px;
    border-radius: 10px;
    max-width: 800px;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 16px;
    margin: 50px;
    color: #fff;
    text-align: left;
    animation: fadeIn 1s;
}

.invitation-text{
    font-size: 17px;
    font-weight: 600;
}



.navbar-links {
    display: flex;
    gap: 20px;
    margin-left: 200px;
}

@media (max-width: 600px) {
    .about-the-event {
        padding: 20px;
        margin: 20px;
    }
    .invitation-text{
        font-size: 14px;
        font-weight: 600;
    }
    .navbar-links {
        flex-direction: column;
        margin-left: 0;
        align-items: center;
        margin: 0px;
    }
}

.navbar-links a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.event{
    display: flex;
    justify-content: center;
    flex-direction: row;
    animation: fadeIn 1s;
}

.event img {
    width: 100%;
    height: 200px;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    display: flex;
    align-self: center;

}

section.when {
    background: rgb(0, 32, 136);
    padding: 40px;
    border-radius: 10px;
    max-width: 1200px;
    margin: 50px auto;
    color: #fff;
    text-align: left;
    animation: fadeIn 1s;
}

.when-layout {
    display: flex;
    flex-direction: row;
    gap: 40px;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
}

.when-info {
    flex: 1 1 180px;
    min-width: 160px;
    max-width: 220px;
    background: #001a66;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.map {
    flex: 2 1 400px;
    min-width: 260px;
    max-width: 500px;
    height: 400px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    background: #001a66;
    padding: 16px;
    box-sizing: border-box;
}

.map h2 {
    font-size: 1.8rem;
    color: #ffcc00;
    margin-bottom: 10px;
}

.map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 10px;
}

.cronograma {
    flex: 1 1 220px;
    background: #001a66;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    min-width: 160px;
    max-width: 220px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cronograma h2 {
    color: #ffcc00;
    margin-bottom: 16px;
}

.cronograma p {
    font-size: 1.1rem;
    margin: 0 0 8px 0;
}

.when-info {
    flex: 1 1 250px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.map {
    flex: 1 1 400px;
    height: 400px;
    border-radius: 10px;
    margin-top: 0;
    display: flex;
    flex-direction: column;
    min-width: 300px;
    max-width: 600px;
}

.map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 10px;
}

.map p {
    margin-top: -10px;
    font-size: 1.2rem;
    color: #fff;
}

.when-info h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #ffcc00;
}
.when-info p {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
}

/* --- RESPONSIVE: TABLETAS --- */
@media (max-width: 1024px) {
    .navbar {
        padding: 14px 18px;
        font-size: 1.5rem;
    }
    .navbar-redes {
        gap: 40px;
    }
    .navbar-redes a {
        font-size: 2.2rem;
    }
    img.todos{
        width: 100%;
        height: auto;
        border-radius: 10px;
        box-shadow: 0 4px 16px rgba(0,0,0,0.2);
        margin-top: 20px;
    }
    .content h1 {
        font-size: 2rem;
    }
    .images-content {
        gap: 20px;
    }
    .about-the-event,
    section.when {
        padding: 24px;
        margin: 24px auto;
        max-width: 95vw;
    }
    .event {
        flex-direction: column;
        align-items: center;
    }
    .event img {
        width: 80%;
        height: auto;
        margin-top: 16px;
    }
    section.when {
        flex-direction: column;
        gap: 24px;
        align-items: stretch;
    }
    .map {
        height: 300px;
        min-width: unset;
        max-width: 100%;
    }
}



/* NAVBAR: Responsive para móviles y tablets */
@media (max-width: 1024px) {
    .navbar {
        flex-direction: column;
        height: auto;
        padding: 16px 8px;
        gap: 10px;
    }
    .navbar-title {
        justify-content: center;
        width: 100%;
        font-size: 2rem;
        margin-bottom: 8px;
        text-align: center;
    }
    .inscribirse {
        position: static;
        transform: none;
        margin: 10px 0;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    .navbar-redes {
        gap: 28px;
        justify-content: center;
        width: 100%;
        margin-bottom: 8px;
    }
    .navbar-redes a {
        font-size: 2.2rem;
    }
}

/* SECCIÓN CUANDO/MAPA/CRONOGRAMA: Responsive */
@media (max-width: 1024px) {
    .when-layout {
        flex-direction: column;
        gap: 24px;
        align-items: stretch;
    }
    .when-info,
    .map,
    .cronograma {
        max-width: 100%;
        min-width: unset;
        height: auto;
    }
    .map {
        height: 300px;
    }
}

@media (max-width: 600px) {
    /* NAVBAR apilada y centrada */
    .navbar {
        flex-direction: column;
        align-items: center;
        height: auto;
        padding: 18px 8px;
        gap: 0;
    }
    .navbar-title {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0;
        width: 100%;
        font-size: 1.2rem;
        margin-bottom: 0;
        text-align: center;
    }
    .navbar-title img {
        width: 80px;
        height: 80px;
        margin-bottom: 0;
    }
    .feria-title {
        font-size: 1.3rem;
        margin-top: 0;
        text-align: center;
    }
    .inscribirse {
        position: static;
        transform: none;
        margin: 16px 0 8px 0;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    .inscribirse a {
        font-size: 1.2rem;
        padding: 12px 18px;
        width: auto;
    }
    .navbar-redes {
        gap: 24px;
        justify-content: center;
        width: 100%;
        margin-bottom: 8px;
        margin-top: 8px;
    }
    .navbar-redes a {
        font-size: 2rem;
    }

    /* MAIN CONTENT apilado */
    .content {
        padding: 10px;
    }
    .content h1 {
        font-size: 1.1rem;
    }
    .wrapper {
        flex-direction: column;
        gap: 12px;
        margin-top: 20px;
        align-items: center;
    }
    .wrapper img {
        width: 90vw;
        max-width: 300px;
        height: auto;
    }

    /* EVENTOS apilados */
    .event {
        flex-direction: column;
        align-items: center;
    }
    img.todos{
        width: 90vw;
        max-width: 300px;
        height: auto;
        margin-top: 10px;
    }
    .event img {
        width: 90vw;
        max-width: 300px;
        height: auto;
        margin-top: 10px;
    }

    /* SECCIÓN CUANDO/MAPA/CRONOGRAMA apilados */
    .when-layout {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
    .when-info,
    .map,
    .cronograma {
        max-width: 100%;
        min-width: unset;
        height: auto;
    }
    .map {
        height: 180px;
    }
    .when-info h2,
    .map h2,
    .cronograma h2 {
        font-size: 1.2rem;
    }
    .when-info p,
    .map p,
    .cronograma p {
        font-size: 1rem;
    }
}









/* Responsive */
@media (max-width: 600px) {
    .images-track, .images-track img {
        width: 90vw;
        min-width: 90vw;
        max-width: 90vw;
        height: 180px;
        border-radius: 20px;
    }
    .images-track img {
        border-radius: 16px;
    }
}

span h1{
    font-size: 2.5rem;
    font-weight: bold;
    color: #003496;
    margin-bottom: 20px;
    text-align: center;
}

.footer p{
    font-size: 1.2rem;
    color: #003496;
    text-align: center;
    margin: 20px 0;
}

.wrapper{
    width: 90%;
    max-width: 1536px;
    display: flex;
    align-items: center;
    margin-inline: auto;
    position: relative;
    height: 500px;
    margin-top: 5rem;
    overflow: hidden;
    mask-image: linear-gradient(to right,
    rgba(0,0,0,0),
    rgba(0,0,0,1) 20%,
    rgba(0,0,0,1) 80%,
    rgba(0,0,0,0)
    );
}


.wrapper img{
    width: 300px;
    height: 300px;
    object-fit: cover;
}
@keyframes scrollerleft{
    to {
        left: -300px;
    }
}

.item{
    width: 300px;
    height: 300px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    border-radius: 6px;
    position: absolute;
    left: max(calc(300px * 8), 100%);
    animation: scrollerleft 30s linear infinite;
    transition: transform 0.5s ease;
}

.item:hover{
    transform: scale(1.2);
}



.item1{
    animation-delay: calc(30s / 8 * (8 - 1) * -1);
}

.item2{
    animation-delay: calc(30s / 8 * (8 - 2) * -1);
}

.item3{
    animation-delay: calc(30s / 8 * (8 - 3) * -1);
}

.item4{
    animation-delay: calc(30s / 8 * (8 - 4) * -1);
}

.item5{
    animation-delay: calc(30s / 8 * (8 - 5) * -1);
}

.item6{
    animation-delay: calc(30s / 8 * (8 - 6) * -1);
}

.item7{
    animation-delay: calc(30s / 8 * (8 - 7) * -1);
}

.item8{
    animation-delay: calc(30s / 8 * (8 - 8) * -1);
}

.item9{
    animation-delay: calc(30s / 8 * (8 - 9) * -1);
}

.item10{
    animation-delay: calc(30s / 8 * (8 - 10) * -1);
}

.item11{
    animation-delay: calc(30s / 8 * (8 - 11) * -1);
}

.item12{
    animation-delay: calc(30s / 8 * (8 - 12) * -1);
}

.item13{
    animation-delay: calc(30s / 8 * (8 - 13) * -1);
}


img.todos{
    width: 500px;
    height: 300px;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    margin-top: 20px;
}