:root{
    --black:#0a0a0a;
    --white:#f4f3ef;
    --violet:#7654ff;
    --violet-dark:#5b3de0;
    --grey:#a3a3a3;
    --line:rgba(244,243,239,.18);
}

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

html{
    scroll-behavior:smooth;
}

body{
    background:var(--black);
    color:var(--white);
    font-family:'Inter', sans-serif;
    overflow-x:hidden;
    cursor:none;
}

a{
    color:inherit;
    text-decoration:none;
}

::selection{
    background:var(--violet);
    color:var(--white);
}


/* =========================
   CURSOR
========================= */

.cursor{
    position:fixed;
    width:18px;
    height:18px;
    border:1px solid var(--white);
    border-radius:50%;
    pointer-events:none;
    z-index:9999;
    transform:translate(-50%,-50%);
    transition:
        width .25s ease,
        height .25s ease,
        background .25s ease;
    mix-blend-mode:difference;
}

.cursor.active{
    width:55px;
    height:55px;
    background:var(--white);
}


/* =========================
   HEADER (idéntico al grupal)
========================= */

.nav-equipo {
    font-family: Arial, Helvetica, sans-serif;
    position: fixed;
    top: 22px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: calc(100% - 100px);
    max-width: 1500px;
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 9px 10px 9px 14px;
    background: rgba(17, 17, 17, 0.90);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    color: #fff;
    text-decoration: none;
}

.nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    border: 1px solid #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-brand-text {
    font-size: 10px;
    line-height: 1.25;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: rgba(255, 255, 255, 0.55);
    white-space: nowrap;
}

.nav-right {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 10px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 3px;
    min-width: 0;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 11px;
    border: 1px solid transparent;
    color: rgba(255, 255, 255, 0.58);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 10px;
    white-space: nowrap;
    transition: .25s ease;
}

.nav-link:hover {
    color: #fff;
    border-color: rgba(255,255,255,.28);
    background: rgba(255,255,255,.05);
}

.nav-link.activo {
    color: #111111;
    background: #fff;
    border-color: #fff;
}

.nav-semestre {
    padding-left: 12px;
    border-left: 1px solid rgba(255,255,255,.18);
    font-size: 9px;
    line-height: 1.25;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,.4);
    white-space: nowrap;
}


/* =========================
   HERO
========================= */

.hero{
    height:100vh;
    min-height:700px;
    position:relative;
    display:flex;
    flex-direction:column;
    justify-content:center;
    padding:0 4vw;
    overflow:hidden;
}

.hero-top{
    position:absolute;
    top:100px;
    left:4vw;
    right:4vw;
    display:flex;
    justify-content:space-between;
    font-family:'DM Mono', monospace;
    font-size:10px;
    letter-spacing:.12em;
}

.hero-title{
    position:relative;
    z-index:3;
}

.hero-title h1{
    font-size:clamp(100px,20vw,330px);
    line-height:.75;
    letter-spacing:-.08em;
    font-weight:900;
    margin-left:-.06em;
}

.hero-title h1 span{
    color:var(--violet);
}

.hero-subtitle{
    margin-top:50px;
    display:flex;
    justify-content:space-between;
    align-items:flex-end;
    font-family:'DM Mono', monospace;
    font-size:11px;
    line-height:1.6;
    max-width:100%;
}

.hero-subtitle p{
    max-width:330px;
}

.intro-number{
    position:absolute;
    bottom:35px;
    left:4vw;
    font-family:'DM Mono', monospace;
    font-size:11px;
}

.scroll{
    position:absolute;
    bottom:35px;
    right:4vw;
    font-family:'DM Mono', monospace;
    font-size:10px;
    letter-spacing:.1em;
    writing-mode:vertical-rl;
}

.scroll::after{
    content:'';
    display:block;
    width:1px;
    height:70px;
    background:var(--white);
    margin:15px auto 0;
}


/* =========================
   FLOATING SHAPES
========================= */

.shape{
    position:absolute;
    pointer-events:none;
}

.shape-one{
    width:240px;
    height:240px;
    border:1px solid var(--violet);
    border-radius:50%;
    right:12%;
    top:24%;
}

.shape-two{
    width:80px;
    height:80px;
    background:var(--violet);
    right:27%;
    bottom:20%;
    transform:rotate(45deg);
}

.shape-three{
    width:130px;
    height:130px;
    border:1px solid var(--white);
    left:45%;
    bottom:8%;
}


/* =========================
   MARQUEE
========================= */

.marquee{
    background:var(--violet);
    color:var(--black);
    overflow:hidden;
    white-space:nowrap;
    padding:22px 0;
}

.marquee-track{
    display:inline-flex;
    animation:marquee 18s linear infinite;
}

.marquee span{
    font-size:42px;
    font-weight:800;
    letter-spacing:-.04em;
    margin-right:50px;
}

@keyframes marquee{
    from{
        transform:translateX(0);
    }
    to{
        transform:translateX(-50%);
    }
}


/* =========================
   PROFILE NAV BUTTONS
========================= */

.profile-nav-section{
    background:var(--black);
    padding:40px 4vw;
    border-bottom:1px solid var(--line);
    display:flex;
    flex-direction:column;
    gap:20px;
    align-items:center;
}

.profile-nav-title{
    font-family:'DM Mono', monospace;
    font-size:11px;
    letter-spacing:.12em;
    color:var(--grey);
    text-transform:uppercase;
}

.profile-buttons-container{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:12px;
    width:100%;
    max-width:1100px;
}

.profile-btn{
    font-family:'DM Mono', monospace;
    font-size:11px;
    letter-spacing:.08em;
    padding:12px 20px;
    border:1px solid rgba(244,243,239,.3);
    background:transparent;
    color:var(--white);
    transition:all .3s ease;
    display:inline-flex;
    align-items:center;
    justify-content:center;
}

.profile-btn:hover{
    background:var(--violet);
    border-color:var(--violet);
    color:var(--white);
}

.profile-btn.active{
    border-color:var(--violet);
    color:var(--violet);
}

.profile-btn.group-btn{
    background:var(--white);
    color:var(--black);
    border-color:var(--white);
    font-weight:600;
}

.profile-btn.group-btn:hover{
    background:var(--violet);
    color:var(--white);
    border-color:var(--violet);
}


/* =========================
   GENERAL SECTION
========================= */

section{
    position:relative;
}

.section-label{
    font-family:'DM Mono', monospace;
    font-size:10px;
    letter-spacing:.12em;
    color:var(--grey);
}

.reveal{
    opacity:0;
    transform:translateY(50px);
    transition:
        opacity .8s ease,
        transform .8s ease;
}

.reveal.visible{
    opacity:1;
    transform:translateY(0);
}


/* =========================
   PROFILE
========================= */

.profile{
    padding:100px 4vw 180px;
}

.profile-grid{
    display:grid;
    grid-template-columns:1fr 1.3fr;
    gap:8vw;
    margin-top:70px;
}

.profile-image{
    position:relative;
    aspect-ratio:3/4;
    overflow:hidden;
}

.profile-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    filter:grayscale(100%);
    transition:transform 1s ease, filter .6s ease;
}

.profile-image:hover img{
    transform:scale(1.04);
    filter:grayscale(0%);
}

.profile-image::after{
    content:'MV / 2026';
    position:absolute;
    bottom:15px;
    left:15px;
    font-family:'DM Mono', monospace;
    font-size:9px;
    mix-blend-mode:difference;
}

.profile-content h2{
    font-size:clamp(50px,7vw,110px);
    line-height:.88;
    letter-spacing:-.07em;
    margin-bottom:60px;
}

.profile-content h2 span{
    color:var(--violet);
}

.profile-description{
    max-width:650px;
    font-size:19px;
    line-height:1.5;
    margin-bottom:80px;
}

.info{
    border-top:1px solid var(--line);
}

.info-row{
    display:grid;
    grid-template-columns:160px 1fr;
    padding:18px 0;
    border-bottom:1px solid var(--line);
    font-family:'DM Mono', monospace;
    font-size:11px;
}

.info-row span:first-child{
    color:var(--grey);
}

.tools{
    margin-top:80px;
}

.tools-title{
    font-family:'DM Mono', monospace;
    font-size:10px;
    color:var(--grey);
    margin-bottom:25px;
}

.tools-list{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}

.tool{
    border:1px solid var(--line);
    padding:10px 15px;
    font-family:'DM Mono', monospace;
    font-size:10px;
    transition:.3s ease;
}

.tool:hover{
    background:var(--violet);
    border-color:var(--violet);
}


/* =========================
   WORKS
========================= */

.works{
    padding:150px 4vw 180px;
    background:var(--white);
    color:var(--black);
}

.works .section-label{
    color:#777;
}

.works-heading{
    display:flex;
    justify-content:space-between;
    align-items:flex-end;
    margin:60px 0 90px;
}

.works-heading h2{
    font-size:clamp(70px,12vw,180px);
    line-height:.78;
    letter-spacing:-.08em;
    font-weight:900;
}

.works-heading span{
    font-family:'DM Mono', monospace;
    font-size:10px;
    max-width:160px;
    line-height:1.5;
}

.work-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:90px 30px;
}

.work-card{
    position:relative;
}

.work-card:nth-child(1){
    grid-column:1 / -1;
}

.work-image{
    overflow:hidden;
    background:#ddd;
    position:relative;
}

.work-card:nth-child(1) .work-image{
    aspect-ratio:16/8;
}

.work-card:nth-child(2) .work-image,
.work-card:nth-child(3) .work-image{
    aspect-ratio:4/3;
}

.work-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    transition:transform .8s cubic-bezier(.2,.7,.2,1);
}

.work-card:hover .work-image img{
    transform:scale(1.04);
}

.work-overlay{
    position:absolute;
    inset:0;
    background:rgba(118,84,255,.9);
    display:flex;
    align-items:center;
    justify-content:center;
    opacity:0;
    transition:.4s ease;
}

.work-overlay span{
    font-family:'DM Mono', monospace;
    font-size:11px;
}

.work-card:hover .work-overlay{
    opacity:1;
}

.work-info{
    padding-top:18px;
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    border-top:1px solid var(--black);
    margin-top:12px;
}

.work-title{
    font-size:25px;
    font-weight:700;
    letter-spacing:-.04em;
}

.work-meta{
    font-family:'DM Mono', monospace;
    font-size:9px;
    text-align:right;
    line-height:1.6;
}


/* =========================
   APPROACH
========================= */

.approach{
    background:var(--violet);
    color:var(--black);
    padding:160px 4vw 180px;
    min-height:100vh;
}

.approach .section-label{
    color:rgba(0,0,0,.6);
}

.approach-title{
    font-size:clamp(70px,13vw,190px);
    line-height:.78;
    letter-spacing:-.08em;
    font-weight:900;
    margin:80px 0 100px;
}

.approach-title span{
    display:block;
    margin-left:15vw;
}

.approach-bottom{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10vw;
    align-items:end;
}

.approach-text{
    font-size:23px;
    line-height:1.35;
    max-width:600px;
}

.approach-list{
    border-top:1px solid rgba(0,0,0,.4);
}

.approach-item{
    border-bottom:1px solid rgba(0,0,0,.4);
    padding:15px 0;
    display:flex;
    justify-content:space-between;
    font-family:'DM Mono', monospace;
    font-size:11px;
    transition:.3s ease;
}

.approach-item:hover{
    padding-left:20px;
}


/* =========================
   FOJA ACADÉMICA
========================= */

.pending{
    color:var(--violet) !important;
}

.foja{
    padding:150px 4vw 160px;
}

.foja-title{
    font-size:clamp(60px,10vw,150px);
    line-height:.8;
    letter-spacing:-.08em;
    font-weight:900;
    margin:60px 0 70px;
}

.foja-title span{
    color:var(--violet);
}

.foja-cols{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:6vw;
    margin-top:70px;
}

.foja-col h3{
    font-family:'DM Mono', monospace;
    font-size:10px;
    font-weight:400;
    letter-spacing:.12em;
    color:var(--grey);
    margin-bottom:20px;
}

.foja-item{
    display:flex;
    justify-content:space-between;
    gap:20px;
    padding:15px 0;
    border-bottom:1px solid var(--line);
    font-family:'DM Mono', monospace;
    font-size:11px;
}

.foja-col .foja-item:first-of-type{
    border-top:1px solid var(--line);
}

.foja-item span:last-child{
    color:var(--grey);
    text-align:right;
}


/* =========================
   DATOS ACADÉMICOS
========================= */

.academic{
    padding:150px 4vw 160px;
    background:var(--white);
    color:var(--black);
}

.academic .section-label{
    color:#777;
}

.academic-title{
    font-size:clamp(60px,10vw,150px);
    line-height:.8;
    letter-spacing:-.08em;
    font-weight:900;
    margin:60px 0 90px;
}

.academic-title span{
    color:var(--violet);
}

.academic-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:70px 6vw;
}

.academic-block{
    border-top:1px solid var(--black);
}

.academic-block.wide{
    grid-column:1 / -1;
}

.academic-block h3{
    font-family:'DM Mono', monospace;
    font-size:10px;
    font-weight:400;
    letter-spacing:.12em;
    color:#777;
    padding:14px 0 8px;
}

.academic-name{
    font-size:26px;
    line-height:1.1;
    font-weight:700;
    letter-spacing:-.04em;
    margin-bottom:18px;
}

.a-row{
    display:grid;
    grid-template-columns:130px 1fr;
    gap:10px;
    padding:12px 0;
    border-bottom:1px solid rgba(0,0,0,.2);
    font-family:'DM Mono', monospace;
    font-size:11px;
    line-height:1.5;
}

.a-row span:first-child{
    color:#777;
}

.academic .pending{
    color:var(--violet-dark) !important;
}


/* =========================
   CONTACT
========================= */

.contact{
    padding:150px 4vw 50px;
    min-height:80vh;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
}

.contact-title{
    font-size:clamp(90px,17vw,250px);
    line-height:.72;
    letter-spacing:-.09em;
    font-weight:900;
    margin-top:80px;
}

.contact-title span{
    color:var(--violet);
}

.contact-grid{
    margin-top:100px;
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10vw;
}

.contact-intro{
    font-family:'DM Mono', monospace;
    font-size:11px;
    line-height:1.7;
    max-width:300px;
}

.contact-links{
    display:flex;
    flex-direction:column;
}

.contact-link{
    border-top:1px solid var(--line);
    padding:18px 0;
    display:flex;
    justify-content:space-between;
    font-size:22px;
    transition:.3s ease;
}

.contact-link:last-child{
    border-bottom:1px solid var(--line);
}

.contact-link:hover{
    padding-left:20px;
    color:var(--violet);
}

.contact-link span{
    font-family:'DM Mono', monospace;
    font-size:10px;
    color:var(--grey);
}

footer{
    border-top:1px solid var(--line);
    margin-top:150px;
    padding-top:20px;
    display:flex;
    flex-wrap:wrap;
    justify-content:space-between;
    font-family:'DM Mono', monospace;
    font-size:9px;
    color:var(--grey);
}


.legal{
    flex-basis:100%;
    margin-top:28px;
    max-width:900px;
    font-size:9px;
    line-height:1.8;
    color:var(--grey);
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1050px) {
    .nav-semestre,
    .nav-brand-text {
        display: none;
    }
}

@media(max-width:800px){

    body{
        cursor:auto;
    }

    .cursor{
        display:none;
    }

    .nav-equipo {
        top: 10px;
        width: calc(100% - 20px);
        min-height: 54px;
        padding: 7px 8px;
        gap: 8px;
    }

    .nav-badge {
        padding: 8px 9px;
        font-size: 11px;
    }

    .nav-right {
        flex: 1;
        overflow: hidden;
    }

    .nav-links {
        width: 100%;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .nav-links::-webkit-scrollbar {
        display: none;
    }

    .nav-link {
        padding: 9px 10px;
        font-size: 9px;
    }

    .profile-buttons-container{
        flex-direction:column;
        width:100%;
    }

    .profile-btn{
        width:100%;
        text-align:center;
    }

    .hero{
        padding:0 5vw;
        min-height:650px;
    }

    .hero-top{
        top:90px;
        left:5vw;
        right:5vw;
        font-size:8px;
    }

    .hero-title h1{
        font-size:29vw;
    }

    .hero-subtitle{
        display:block;
        margin-top:35px;
    }

    .hero-subtitle p{
        max-width:260px;
    }

    .shape-one{
        width:140px;
        height:140px;
        right:5%;
    }

    .shape-two{
        width:45px;
        height:45px;
        right:18%;
    }

    .shape-three{
        width:70px;
        height:70px;
    }

    .marquee span{
        font-size:27px;
    }

    .profile,
    .works,
    .approach,
    .contact{
        padding-left:5vw;
        padding-right:5vw;
    }

    .profile{
        padding-top:60px;
    }

    .profile-grid{
        grid-template-columns:1fr;
        gap:60px;
        margin-top:50px;
    }

    .profile-image{
        max-width:500px;
    }

    .profile-content h2{
        font-size:18vw;
        margin-bottom:40px;
    }

    .profile-description{
        font-size:17px;
        margin-bottom:50px;
    }

    .info-row{
        grid-template-columns:100px 1fr;
        font-size:9px;
    }

    .works{
        padding-top:110px;
    }

    .works-heading{
        display:block;
        margin:50px 0 60px;
    }

    .works-heading h2{
        font-size:18vw;
        margin-bottom:30px;
    }

    .work-grid{
        grid-template-columns:1fr;
        gap:60px;
    }

    .work-card:nth-child(1){
        grid-column:auto;
    }

    .work-card:nth-child(1) .work-image{
        aspect-ratio:4/3;
    }

    .work-title{
        font-size:20px;
    }

    .approach{
        padding-top:110px;
    }

    .approach-title{
        font-size:18vw;
        margin:60px 0 80px;
    }

    .approach-title span{
        margin-left:8vw;
    }

    .approach-bottom{
        grid-template-columns:1fr;
        gap:70px;
    }

    .approach-text{
        font-size:19px;
    }

    .foja,
    .academic{
        padding:100px 5vw 110px;
    }

    .foja-cols,
    .academic-grid{
        grid-template-columns:1fr;
        gap:50px;
    }

    .a-row{
        grid-template-columns:100px 1fr;
    }

    .contact{
        padding-top:110px;
    }

    .contact-title{
        font-size:22vw;
        margin-top:60px;
    }

    .contact-grid{
        grid-template-columns:1fr;
        gap:60px;
        margin-top:80px;
    }

    .contact-link{
        font-size:18px;
    }

    footer{
        margin-top:100px;
        flex-direction:column;
        gap:8px;
    }

}


/* =========================
   REDUCED MOTION
========================= */

@media(prefers-reduced-motion:reduce){

    *,
    *::before,
    *::after{
        animation-duration:.01ms !important;
        animation-iteration-count:1 !important;
        transition-duration:.01ms !important;
        scroll-behavior:auto !important;
    }

}
