@import url(font-awesome.min.css);

*, *::after, *::before {
    margin:0;
    padding:0;
    box-sizing: border-box;
}
:root{
    --background: #4c266A;
    --titulo-font: 4rem;
    --subtitulo-font: 2rem;
    --cream: #F6F8EB;
    --cream-deep: #EEF1E2;
    --purple: #4c266A;
    --orange: #ef8b00;
    --green: #5fb18d;
    --radius-card: 24px;
    --shadow-soft: 0 10px 26px -16px rgba(45, 29, 54, .35);
    --shadow-raised: 0 22px 42px -22px rgba(45, 29, 54, .45);
    --transition-card: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

html, body{
    scroll-behavior: smooth;
    overflow-x: hidden;
    font-family:'PT Sans', sans-serif;
    color:#222;
    font-size:18px;
    background-color:var(--cream);
}

header{
    background: var(--background);
    text-align: center;
    position:fixed;
    width:100%;
    box-shadow: 0px 5px 10px 0px #222;
    z-index: 100;
}

h2, h3{
    letter-spacing: .2rem;
}

/* Aniversario / recursos comunes */
.eyebrow{
    display: flex;
    align-items: center;
    gap: .65rem;
    margin-bottom: .55rem;
    font-family: "brandon-grotesque", sans-serif;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .16em;
    line-height: 1.2;
    text-transform: uppercase;
}

.eyebrow::before{
    content: "";
    width: 1.8rem;
    height: 3px;
    border-radius: 99px;
    background: currentColor;
    box-shadow: 0 2px 8px currentColor;
}

.eyebrow--orange{ color: var(--orange); }
.eyebrow--green{ color: #2f8b6e; }

iframe{
    max-width:100% !important;
}

.titulo{
    font-size:2.3rem;
    line-height: 1.1;
    font-family: "brandon-grotesque", sans-serif;
}

.subtitulo{
    font-size:2rem;
    line-height: 1.15;
    font-family: "brandon-grotesque", sans-serif;
}

.container{
    width:80%;
    margin:0 auto;
    padding: 2em 0 2em 0;
}

.logo{
    width:30%;
    padding:1em;
}

.nav-toggle{
    display:none;
}

.nav-toggle-label{
    position:absolute;
    top:0;
    right:0;
    margin-right:1em;   
    height: 100%;
    display:flex;
    align-items: center; 
}

.barra{
    font-size: 38px;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

nav{
    position:absolute;
    text-align: right;
    top:100%;
    right:0;
    background: var(--background);
    width:100%;
    transform:scale(1, 0);
    transform-origin: top;
    transition: transform 400ms ease-in-out;
}

nav ul{
    margin:0;
    padding:0;
    list-style: none;
}

nav li{
    margin-bottom: 1em;
    margin-right: 1em;
}

nav a{
    color:#fff;
    text-decoration: none;
    font-size: 1.5rem;
    opacity: 0;
    transition: opacity 150ms ease-in-out;
}

nav a:hover{
    color:#ef8b00;
}

.nav-toggle:checked ~ nav {
    transform: scale(1, 1);
}

.nav-toggle:checked ~ nav a{
    opacity:1;
    transition: opacity 250ms ease-in-out 250ms;
}

header.scrolled{
    background-color: #ea514d !important;
    transition: background-color 200ms linear;
}

/* Hero image */

.hero {
    height: 100vh;
    min-height: 80vh;
    background-image: url("../assets/img/hero_mobile.jpg");
    background-size: cover;
    background-position: center;
    object-fit: contain;
}

.intro{
    display: grid;
    grid-gap: 10px;
    grid-template-columns: 1fr;
    align-items: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: var(--radius-card);
    margin: -110px auto 20px auto;
    /* Gradiente violeta */
    background: linear-gradient(135deg, #4c266A 0%, #6d3a96 100%);

  /* Varias sombras para realismo */
    box-shadow:
    0 24px 42px -20px rgba(34,16,48,.72),
    0 8px 18px -12px rgba(34,16,48,.48),
    inset 0 1px 0 rgba(255,255,255,.2),
    inset 0 -10px 24px rgba(28,10,40,.22);
    transition: var(--transition-card);
}

.intro::after{
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 88% 8%, rgba(255,255,255,.16), transparent 30%);
}


.intro-text{
    width: 100%;
    display:block;
    color:#fff;
    padding: 1em;
    border-radius: var(--radius-card);
    font-size: 1.05rem;
    line-height: 1.55;
    font-weight: 400;
}
.intro-video {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.25rem;
}

.video-estudiante {
    width: min(100%, 360px);
    aspect-ratio: 9 / 16;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 18px 32px -18px rgba(15, 5, 22, .8);
}

/* Tarjetas 3D */
.upc-presentacion{
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: linear-gradient(135deg, #84c494 0%, #5fb18d 100%);
    box-shadow:
    0 20px 35px -10px rgba(0,0,0,0.45),
    0 10px 15px -10px rgba(0,0,0,0.25),
    inset 0 8px 15px rgba(255,255,255,0.08),
    inset 0 -8px 20px rgba(0,0,0,0.22);
}

.upc-presentacion::before{
    content: "";
    position: absolute;
    z-index: -1;
    top: -7rem;
    right: -5rem;
    width: 15rem;
    aspect-ratio: 1;
    border-radius: 42%;
    background: linear-gradient(145deg, rgba(255,255,255,.18), rgba(76,38,106,.08));
    box-shadow: inset 12px 12px 24px rgba(255,255,255,.12), 0 24px 50px rgba(42,80,67,.18);
    transform: rotate(28deg);
}
.texto{
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size:1.2rem;
    line-height: 1.7rem;
    color:#f1f1f1;
}

.link:link, .link:visited {
    background-color: transparent;
    color: #222;
    border: 2px solid #ef8b00;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    transition: background-color .3s ease, color .3s ease;
}
.link:hover, .link:active {
    background-color: #ef8b00;
    color: white;
}


/* Cronograma */

.cronograma{
    
    color: #fff;
    background-color: #4c266A;
    padding: 0.5em;
    border-radius: 2px;
    font-size: 1em;
    box-shadow: rgb(255 255 255 / 60%) 1px 1px 0, rgb(0 0 0 / 30%) 4px 4px 0;
}

.actividad{
    display: grid;
    grid-template-columns: 1fr;
    grid-gap: 1em;
    padding: 1em;
}
/* Animación de entrada existente */
.content-fade{
    opacity:0;
    transition:opacity 1s ease-in-out, transform 1s ease-in-out;
}

.content {
    opacity: 0;
    transform: translateX(-100%);
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
}

.content.right {
    transform: translateX(100%);
}

.content.show {
    opacity: 1;
    transform: translateX(0);
}

/* Empresas */
.empresas{
    position: relative;
    background:
        radial-gradient(circle at 8% 12%, rgba(239,139,0,.08), transparent 22rem),
        linear-gradient(180deg, #f9faF2 0%, var(--cream-deep) 100%);
    border-block: 1px solid rgba(76,38,106,.07);
}

#empresas,
#galeria,
#anteriores{
    scroll-margin-top: 5.5rem;
}

.empresa{
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 132px;
    background: #fff;
    border: 1px solid rgba(76,38,106,.09);
    border-radius: var(--radius-card);
    padding: 1.15rem;
    position: relative;
    box-shadow: var(--shadow-soft);
    transition: box-shadow .28s ease, border-color .28s ease;
}

.empresa::before{
    display: none;
}

.empresa .modal-button{
    display: block;
    width: 100%;
    height: 92px;
    object-fit: contain;
    filter: none;
    transition: transform .28s ease;
}

@media (hover:hover){
    .empresa:hover{
        border-color: rgba(76,38,106,.16);
        box-shadow: var(--shadow-raised);
    }

    .empresa:hover .modal-button{
        transform: translateY(-1px) scale(1.015);
        filter: none;
    }
}
/*Grid stands empresas */
.mapa-stands{
    display:grid;
    grid-template-columns: 1fr;
    grid-gap:1rem;
    padding:1rem;
}
.mapa img{
        width: 100%;
        height: auto;
    }

/*===============*/
/*Grid empresas*/
.grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 2em;
    cursor: pointer;
    align-items: center;
}
/*===============*/
/*Modals*/

.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Stay in place */
    z-index: 200;
    /* Sit on top */
    padding: 1rem;
    left: 0;
    top: 0;
    width: 100%;
    /* Full width */
    height: 100%;
    /* Full height */
    overflow: auto;
    /* Enable scroll if needed */
    background-color: rgb(0, 0, 0);
    /* Fallback color */
    background-color: rgba(0, 0, 0, 0.85);
    /* Black w/ opacity */
}


/* Modal Content/Box */

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fefefe;
    margin: auto;
    padding: 0;
    border: 1px solid #888;
    width: min(92%, 760px);
    min-height: min(400px, calc(100vh - 2rem));
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    animation: modal-in .25s ease-out;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    border-radius: 20px;
}

.modal-text {
    padding: 20px;
}
.no-animation{
    transition: none !important;
    transform: none !important;
}

/* Entrada breve, sin alterar el centrado del modal */
@keyframes modal-in {
    from { opacity: 0; transform: translate(-50%, -48%) scale(.985); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* The Close Button */

.close {
    color: #aaa;
    float: right;
    font-size: 48px;
    line-height: .8;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal-header {
    padding: .5em;
    background-color:#84c494;
    color: white;
}
.modal-header h2{
    margin-top:0px;
}

.modal-body {
    padding: 1em 1em;
    line-height: 1.5em;
}

.floating-imgs {
        position: absolute;
        z-index:0;
        }

.front-one {
        right: 10em;
        }

    .front-two{
        left: 2.4em;
    
    }
    .front-three{
        right:5em;
    }
/* Parallax / separadores 3D */
.parallax,
.parallax-1{
    position: relative;
    isolation: isolate;
    min-height: 310px;
    height: clamp(310px, 58vw, 500px);
    background-attachment: scroll;
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
}

.parallax::after,
.parallax-1::after{
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(180deg, rgba(76,38,106,.05), transparent 34%, rgba(42,25,52,.1));
    box-shadow: inset 0 14px 28px -24px rgba(24,12,31,.7), inset 0 -14px 28px -24px rgba(24,12,31,.7);
    pointer-events: none;
}

.parallax{
    background-image:url(../assets/img/parallax_mobile_1.jpg);
    background-position: 52% center;
}

.parallax-1{
    background-image:url(../assets/img/parallax_mobile.jpg);
    background-position: 48% center;
}

.videos-grid{
    display:grid;
    grid-template-columns: 100%;
}

.video-centered{
    display:flex;
    justify-content: center;
    margin: 2em 0 2em 0;
}

.image-grid{
    display: grid;
    grid-gap: 10px;
    grid-template-columns: 1fr;
    margin-top: 2em;
}

.image-fit{
    width:100%;
    display:block;
    box-shadow: -1px 22px 29px -20px rgba(0,0,0,0.32);
}

.image-grid a img{
    width:100%;
    border: 4px solid #ef8b00;
}

.caption-galeria{
    color: black;
    padding: 1.5em;
    font-weight: 300;
    background-color: #ef8b00;
    margin: -5px 0 0;
}

.overlay-gallery{
    background-image: linear-gradient(#1095c1,#1095c1);
    background-size: 0 100%;
    background-repeat: no-repeat;
    transition: .4s;
}
.album-fotos{
    display:flex;
    flex-direction: column;
    padding: 1rem;
    justify-content: center;
    align-items: center;
}

.orange{
    color: #ef8b00;
    font-weight: bold;
}

.purple{
    color: #4c266A;
    font-weight: 700;
    font-size: 2.3rem;
    margin-bottom:1.3rem;
}

.ferias-anteriores{
    display:grid;
    grid-template-columns: 1fr;
    gap:1rem;
}

.element{
    display:flex;
    align-items: center;
    justify-content: center;
}
.element img{
    width:100%;
    height: 100%;
    object-fit: cover;
}

.sombra-card{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    padding: .65rem;
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(76,38,106,.09);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255,255,255,.95);
    transition: var(--transition-card);
}

.sombra-card img{
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: calc(var(--radius-card) - .5rem);
}

/* Ediciones anteriores */
#galeria{
    background: var(--cream);
}

#anteriores{
    position: relative;
    background:
        radial-gradient(circle at 92% 12%, rgba(95,177,141,.12), transparent 24rem),
        var(--cream);
}

#anteriores .container{
    padding-top: 3rem;
    padding-bottom: 3.5rem;
}

.element{
    overflow: hidden;
    border: 1px solid rgba(76,38,106,.09);
    border-radius: 18px;
    background: rgba(255,255,255,.72);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-card);
}

.element a{
    display: block;
    width: 100%;
    height: 100%;
}

.element img{
    display: block;
    border-radius: inherit;
    transition: transform .35s ease, filter .35s ease;
}

@media (hover:hover){
    .intro:hover,
    .sombra-card:hover,
    .element:hover{
        transform: translateY(-4px);
        box-shadow: var(--shadow-raised);
    }

    .element:hover img{
        transform: scale(1.025);
        filter: saturate(1.04);
    }
}

@media (prefers-reduced-motion: reduce){
    html, body{ scroll-behavior: auto; }
    .content, .content-fade, .intro, .empresa, .empresa .modal-button,
    .sombra-card, .element, .element img{ transition: none; }
}
/*======FOOTER==========*/
footer{
    display:block;
    font-size:100%;
}

#footer {
    list-style: none;
    padding: 8em 0 6em 0;
    background: #f6f6f6;
    color: #aaa;
    text-align: center;
}

#footer a {
    -moz-transition: color 0.2s ease-in-out;
    -webkit-transition: color 0.2s ease-in-out;
    -ms-transition: color 0.2s ease-in-out;
    transition: color 0.2s ease-in-out;
    color: #aaa;
    text-decoration: none;
}

    #footer a:active, #footer a:hover {
        color: #666;
    }

#footer .icons {
    font-size: 2em;
}

    #footer .icons li {
        padding-right: 0;
    }

        #footer .icons li:last-child {
            padding-right: 0;
        }

#footer .copyright {
    margin: 2em 0;
    padding: 0;
    text-align: center;
}
    #footer .copyright li {
        border-left: solid 1px rgba(144, 144, 144, 0.25);
        display: inline-block;
        list-style: none;
        margin-left: 1.5em;
        padding-left: 1.5em;
    }
        #footer .copyright li:first-child {
            border-left: 0;
            margin-left: 0;
            padding-left: 0;
        }
        .icon {
            text-decoration: none;
            border-bottom: none;
            position: relative;
            }

.icon:before {
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    font-family: FontAwesome;
    font-style: normal;
    font-weight: normal;
    text-transform: none !important;
}

.icon > .label {
    display: none;
}

        
ul.icons {
    display:flex;
    justify-content: space-around;
    cursor: default;
    list-style: none;
    padding-left: 0;
}
    ul.icons li {
        display: inline-block;
        padding: 0 1em 0 0;
    }
        ul.icons li:last-child {
            padding-right: 0;
        }
        ul.icons li .icon:before {
            font-size: 2em;
        }

/*========*/

/* Responsive / desktop */

@media screen and (min-width: 979px){
    .titulo{
        font-size: 4rem;
        line-height: 1.1;
    }

    .subtitulo{
        font-size: 3rem;
        line-height: 1.15;
    }

    .nav-toggle-label{
        display:none;
    }

    header{
        display:grid;
        grid-template-columns: 200px minmax(400px, 2fr) minmax(400px, 3fr) 1fr;
    }

    .logo{
        grid-column: 2 / 3;
        width:25%;
    }

    .titulo-grande{
        font-size: 2.5rem;
        color: #ea514d;
        font-weight: 500;
    }

    nav{
        all: unset;
        grid-column: 3 / 4;
        display:flex;
        justify-content: flex-end;
        align-items: center;
    }
    nav a {
        opacity: 1;
        position:relative;
    }

    nav a::before{
        content:'';
        display: block;
        height: 4px;
        background: #ef8b00;
        position:absolute;
        bottom: -.75em;
        left:0;
        right:0;
        transform: scale(0,1);
        transform-origin: right;
        transition: transform ease-in-out 250ms
    }

    nav a:hover::before{
        transform: scale(1,1);
    }

    nav ul{
        display:flex; 
    }
    
    nav li{
        margin-right: 3em;
        margin-bottom: 0;
    }
    .hero {
        height: 86vh;
        min-height: 500px;
        background-image: url("../assets/img/hero_desktop.jpg");
        background-size: cover;
        background-position: center;
        object-fit: contain;
    }
    .intro-text{
        flex: 1;
        width: auto;
        line-height: 2rem;
        padding: 2em;
        font-size: 1.2em;
        font-weight: 400;
    }
    .intro{
        display: flex;
        width:70%;
        border-radius: var(--radius-card);
    }
    .intro-video{
        flex: 0 0 38%;
        padding: 1.5rem;
    }
    .grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 30px;
        }
    
    .parallax{
        background-attachment: fixed;
        background-image:url(../assets/img/parallax_desktop.jpg);
        background-position: center center;
        background-size: cover;
        height: min(520px, 55vw);
    }
    .parallax-1{
        background-attachment: fixed;
        background-image:url(../assets/img/parallax_desktop1.jpg);
        background-position: center center;
        background-size: cover;
        height: min(520px, 55vw);
    }
    #footer .icons li {
        padding-right: 2.5em;
    }
    .videos-grid{
        display:grid;
        grid-template-columns:1fr 1fr;
        align-items: center;
    }
    .video-centered{
        margin:2em;
        box-shadow: -1px 22px 29px -20px rgba(0, 0, 0, 0.32);
    }
    .image-fit{
        width:100%;
        display:block;
    }

    .image-grid{
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-gap: 10px;
    }
    
    .cronograma{
        line-height: 2.5em;
        font-size: 1.2em;
    }
    .actividad{
        display: grid;
        grid-template-columns: auto 1fr 1fr;
        grid-gap: 1em;
        padding: 1em;
    }
    .dos-columnas, .mapa-stands{
        display:grid;
        grid-template-columns: 1fr 1fr;
        grid-gap:1rem;
        padding:1rem;
        align-items: center;
    }

    .mapa img{
        width: 100%;
        height: auto;
    }
    .texto{
        display: flex;
        flex-direction: column;
        justify-content: center;
        margin: 2rem;
        font-size:1.2rem;
        line-height: 1.7rem;
        color:#f1f1f1;
    }
    .purple{
        font-size:4rem;
    }
    .ferias-anteriores{
        display:grid;
        grid-template-columns: repeat(4, 1fr);
        gap:1rem;
    }

    .empresa{
        min-height: 154px;
        padding: 1.4rem;
    }

    .empresa .modal-button{
        height: 112px;
    }

    .eyebrow{
        font-size: .78rem;
        letter-spacing: .18em;
    }
    
    .element{
        display:flex;
        align-items: center;
        justify-content: center;
    }
    .element img{
        width:100%;
        height: 100%;
        object-fit: cover;
    }
    #footer .icons {
        font-size: 2.5em;
    }

    ul.icons{
        display:block;
    }
}
