/* ─────────────────────────────────────────
   RESET
───────────────────────────────────────── */

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

/* ─────────────────────────────────────────
   VARIABLES
───────────────────────────────────────── */

:root {
    --pink:         #ff1cc0;
    --violet:       #b131fa;
    --blue:         #1c3aff;
    --bg1:          #070014;
    --bg2:          #130022;
    --bg3:          #1c0f4d;
    --glass-bg:     rgba(255, 255, 255, 0.07);
    --glass-border: rgba(255, 255, 255, 0.12);
    --text:         #ffffff;
    --muted:        rgba(255, 255, 255, 0.65);
}

/* ─────────────────────────────────────────
   CURSOR
───────────────────────────────────────── */

body {
    cursor: none;
}

#cursor {
    position: fixed;
    width: 14px;
    height: 14px;
    background: var(--pink);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: background 0.3s ease, width 0.3s ease, height 0.3s ease;
    mix-blend-mode: screen;
}

#cursor-ring {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(177, 49, 250, 0.6);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, opacity 0.3s ease;
}

#cursor.hover {
    width: 20px;
    height: 20px;
    background: var(--violet);
}

#cursor-ring.hover {
    width: 55px;
    height: 55px;
    opacity: 0.5;
}

/* ─────────────────────────────────────────
   BODY
───────────────────────────────────────── */

body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, var(--bg1), var(--bg2), var(--bg3));
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ─────────────────────────────────────────
   BLURS DECORATIVOS
───────────────────────────────────────── */

.blur {
    position: fixed;
    border-radius: 50%;
    filter: blur(130px);
    z-index: -1;
    pointer-events: none;
}

.blur1 {
    width: 450px;
    height: 450px;
    background: var(--pink);
    top: -120px;
    left: -120px;
    opacity: 0.55;
}

.blur2 {
    width: 450px;
    height: 450px;
    background: var(--blue);
    bottom: -120px;
    right: -120px;
    opacity: 0.55;
}

.blur3 {
    width: 300px;
    height: 300px;
    background: var(--violet);
    top: 40%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.2;
}

/* ─────────────────────────────────────────
   HEADER
───────────────────────────────────────── */

header {
    width: 100%;
    padding: 28px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(7, 0, 20, 0.6);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.5px;
}

.logo-dot {
    width: 11px;
    height: 11px;
    background: var(--pink);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--pink);
    animation: pulse 2.5s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1);   opacity: 1;   }
    50%       { transform: scale(1.4); opacity: 0.7; }
}

nav {
    display: flex;
    gap: 32px;
}

nav a {
    text-decoration: none;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: color 0.3s ease;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--pink);
    transition: width 0.3s ease;
    border-radius: 2px;
}

nav a:hover {
    color: var(--text);
}

nav a:hover::after {
    width: 100%;
}

/* ─────────────────────────────────────────
   CONTENEDOR PRINCIPAL
───────────────────────────────────────── */

main.contenedor {
    max-width: 820px;
    margin: 0 auto;
    padding: 60px 24px 100px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* ─────────────────────────────────────────
   PERFIL HEADER
───────────────────────────────────────── */

.perfil-header {
    display: flex;
    align-items: center;
    gap: 40px;
    animation: fadeUp 0.7s ease both;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0);    }
}

/* ─────────────────────────────────────────
   FOTO
───────────────────────────────────────── */

.foto {
    flex-shrink: 0;
    width: 140px;
    height: 140px;
    border-radius: 24px;
    overflow: hidden;
    border: 2px solid var(--glass-border);
    box-shadow: 0 0 40px rgba(177, 49, 250, 0.35);
}

.foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.foto-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(177, 49, 250, 0.3), rgba(255, 28, 192, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: -2px;
}

/* ─────────────────────────────────────────
   NOMBRE
───────────────────────────────────────── */

.perfil-nombre {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.subtitulo {
    color: var(--violet);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
}

h1 {
    font-size: 52px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -1px;
}

.carrera-badge {
    display: inline-block;
    margin-top: 10px;
    padding: 5px 14px;
    background: rgba(255, 28, 192, 0.15);
    border: 1px solid rgba(255, 28, 192, 0.3);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--pink);
    letter-spacing: 0.5px;
}

/* ─────────────────────────────────────────
   CARDS
───────────────────────────────────────── */

.card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(18px);
    border-radius: 20px;
    padding: 32px;
    animation: fadeUp 0.7s ease both;
}

.card:nth-child(2) { animation-delay: 0.10s; }
.card:nth-child(3) { animation-delay: 0.15s; }
.card:nth-child(4) { animation-delay: 0.20s; }
.card:nth-child(5) { animation-delay: 0.25s; }

.card-titulo {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--pink);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-titulo::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--pink);
    box-shadow: 0 0 8px var(--pink);
}

/* ─────────────────────────────────────────
   GRILLA DE MATERIAS
───────────────────────────────────────── */

.materias-grid 
.foja-acordeon{
    display:flex;
    flex-direction:column;
    gap:16px;
}

.foja-item{
    border:1px solid var(--glass-border);
    border-radius:16px;
    overflow:hidden;
    background:rgba(255,255,255,.03);
}

.foja-btn{
    width:100%;
    border:none;
    background:none;
    color:white;
    cursor:pointer;

    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:22px 24px;

    font-size:16px;
    font-weight:700;

    transition:.3s;
}

.foja-btn:hover{
    background:rgba(255,255,255,.04);
}

.foja-btn.aprobado .estado{
    color:#4ade80;
}

.foja-btn.curso .estado{
    color:#facc15;
}

.estado{
    font-size:12px;
    letter-spacing:2px;
}

.foja-contenido{
    max-height:0;
    overflow:hidden;
    transition:max-height .45s ease;
}

.foja-item.active .foja-contenido{
    max-height:500px;
    padding:0 24px 24px;
}



/* ─────────────────────────────────────────
   DATOS INSTITUCIONALES
───────────────────────────────────────── */

.inst-bloque {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.inst-bloque:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.inst-bloque:first-child {
    padding-top: 0;
}

.inst-titulo {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--violet);
    margin-bottom: 4px;
}

.inst-bloque p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.7;
}

/* ─────────────────────────────────────────
   EQUIPO
───────────────────────────────────────── */

.integrantes{
    display:grid;
    grid-template-columns:
    repeat(auto-fit,minmax(240px,1fr));
    gap:20px;
}

.integrante-card{

    text-decoration:none;

    color:white;

    background:rgba(255,255,255,.04);

    border:1px solid var(--glass-border);

    border-radius:18px;

    overflow:hidden;

    transition:.35s;

    position:relative;
}

.integrante-card:hover{

    transform:translateY(-8px);

    border-color:var(--pink);

    box-shadow:
    0 0 35px rgba(255,28,192,.25);
}

.integrante-foto{
    aspect-ratio: 1/1;
    overflow:hidden;
}

.integrante-foto img{

    width:100%;
    height:100%;

    object-fit:cover;
    object-position:center;
    transition:.5s;
}


.integrante-card:hover .integrante-foto img{

    transform:scale(1.08);
}

.integrante-info{

    padding:20px;
}

.integrante-info h4{

    font-size:20px;

    margin-bottom:6px;
}

.integrante-info p{

    color:var(--muted);

    font-size:13px;
}

.integrante-card::after{

    content:"Ver perfil →";

    position:absolute;

    right:20px;
    bottom:20px;

    color:var(--pink);

    font-size:12px;

    opacity:0;

    transition:.3s;
}

.integrante-card:hover::after{

    opacity:1;
}


/* ─────────────────────────────────────────
   TEMA ELEGIDO
───────────────────────────────────────── */

.tema-box {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 18px 22px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    font-style: italic;
}

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */

footer {
    width: 100%;
    padding: 36px 40px;
    text-align: center;
    background: rgba(0, 0, 0, 0.35);
    border-top: 1px solid var(--glass-border);
}

footer p {
    max-width: 820px;
    margin: auto;
    line-height: 1.9;
    font-size: 12px;
    color: var(--muted);
}

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */

@media (max-width: 680px) {

    header {
        padding: 20px 24px;
    }

    nav {
        gap: 18px;
    }

    .perfil-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    h1 {
        font-size: 38px;
    }

    .foto {
        width: 110px;
        height: 110px;
    }

    .materias-grid {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 24px;
    }
}

@media (max-width: 480px) {

    nav {
        gap: 14px;
    }

    nav a {
        font-size: 11px;
        letter-spacing: 1px;
    }

    h1 {
        font-size: 32px;
    }
}