:root {
    --bg-color:#050b14;
    --text-main:#ffffff;
    --text-muted:#94a3b8;
    --border-color:rgba(56, 189, 248, 0.15);
    --card-bg:#030712;
    --accent-secondary:#38bdf8;   
    --success-color:#34d399;    
    --warning-color:#38bdf8;   
}

* {
    box-sizing: border-box;
    cursor: none;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    margin: 0;
    padding: 0;
    line-height: 1.5;
    overflow-x: hidden;
    position: relative;
}

@keyframes lighthouseSweep {
    0% {
        transform: translateX(-150%) skewX(-15deg);
        opacity: 0;
    }
    20% {
        opacity: 0.6;
    }
    50% {
        transform: translateX(120%) skewX(-15deg);
        opacity: 0.85;
    }
    80% {
        opacity: 0.6;
    }
    100% {
        transform: translateX(350%) skewX(-15deg);
        opacity: 0;
    }
}

.lighthouse-sweep {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(56, 189, 248, 0.01) 15%, 
        rgba(56, 189, 248, 0.07) 40%, 
        rgba(56, 189, 248, 0.12) 50%, 
        rgba(56, 189, 248, 0.07) 60%, 
        rgba(56, 189, 248, 0.01) 85%, 
        transparent 100%
    );
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: screen;
    filter: blur(100px);
    animation: lighthouseSweep 14s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background-color: #38bdf8;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    box-shadow: 0 0 15px 4px rgba(56, 189, 248, 0.7);
    filter: blur(1px);
    transition: transform 0.1s ease, width 0.2s ease, height 0.2s ease;
}

.catedra-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(5, 11, 20, 0.95);
    backdrop-filter: blur(8px);
    padding: 15px 30px;
    font-size: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

.nav-left {
    z-index: 2;
}

.nav-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    z-index: 2;
}

.nav-right {
    z-index: 2;
    display: flex;
    align-items: center;
}

.catedra-bar a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.2s;
    letter-spacing: 0.5px;
}

.catedra-bar .nav-left a,
.catedra-bar .nav-right a {
    margin-left: 15px;
}

.catedra-bar .nav-center a {
    margin: 0 10px;
}

.catedra-bar a:hover, .catedra-bar a.active {
    color: var(--accent-secondary);
}

.academic-info-bar {
    width: 100%;
    background-color: rgba(3, 7, 18, 0.8);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 14px 20px;
    text-align: center;
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: var(--text-muted);
    text-transform: uppercase;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    z-index: 10;
    position: relative;
}

.academic-info-bar span {
    display: inline-flex;
    align-items: center;
}

.academic-info-bar .separator {
    color: var(--accent-secondary);
    opacity: 0.5;
    margin-left: 12px;
}

.orbit-section {
    position: relative;
    width: 100%;
    height: 90vh;
    min-height: 720px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 2;
}

.central-name {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 1;
    pointer-events: none;
    padding: 20px;
    max-width: 500px;
    opacity: 1;
    transition: opacity 0.3s ease, filter 0.3s ease;
}

@keyframes waveAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.central-name h1 {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -1.5px;
    margin: 0;
    background: linear-gradient(270deg, #38bdf8, #0ea5e9, #0284c7, #2dd4bf, #06b6d4, #38bdf8);
    background-size: 300% 300%;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: waveAnimation 6s ease infinite;
}

.orbit-container {
    position: absolute;
    width: 900px;
    height: 450px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 2;
}

.orbit-shadow {
    position: absolute;
    width: 400px;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.26), rgba(2, 132, 199, 0.07));
    border: 1px solid rgba(56, 189, 248, 0.13);
    border-radius: 6px;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
    filter: blur(5px);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.orbit-item {
    position: absolute;
    width: 400px;
    aspect-ratio: 16/9;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75), 0 0 20px rgba(56, 189, 248, 0.05);
    transform: translate(-50%, -50%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease, opacity 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    z-index: 3;
}

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

.orbit-item:hover {
    transform: translate(-50%, -50%) scale(1.12) !important;
    filter: brightness(1.1);
    border-color: var(--accent-secondary);
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.9), 0 0 25px rgba(56, 189, 248, 0.2);
    z-index: 50;
}

.orbit-section.featured-active .central-name {
    opacity: 0;
    filter: blur(4px);
    pointer-events: none;
}

.orbit-container.featured-active .orbit-shadow {
    opacity: 0;
}

.orbit-container.paused .orbit-item:not(:hover) {
    transform: translate(-50%, -50%) scale(0.85);
    filter: blur(6px);
    opacity: 0.15;
}

.project-featured-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    display: flex;
    align-items: center;
    gap: 35px;
    z-index: 300;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.orbit-container.featured-active .project-featured-wrapper {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}

.featured-image-box {
    width: 520px;
    aspect-ratio: 16/9;
    background-color: var(--card-bg);
    border: 1px solid var(--accent-secondary);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.9), 0 0 35px rgba(56, 189, 248, 0.25);
    flex-shrink: 0;
}

.featured-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-info-content {
    width: 380px;
    background: rgba(3, 7, 18, 0.95);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    backdrop-filter: blur(16px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 25px rgba(56, 189, 248, 0.1);
}

.project-info-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 12px 0;
    letter-spacing: -0.5px;
}

.project-info-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

.project-info-content p strong {
    color: var(--accent-secondary);
    font-weight: 600;
}

/* SECCIÓN SOBRE MÍ */
.about-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: center;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px;
    margin-top: 20px;
}

.about-avatar-box {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid transparent;
    background: linear-gradient(270deg, #38bdf8, #0ea5e9, #0284c7, #2dd4bf, #06b6d4, #38bdf8);
    background-size: 300% 300%;
    animation: waveAnimation 6s ease infinite;
    padding: 3px;
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.2);
}

.about-avatar-box-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    background-color: var(--card-bg);
}

.about-avatar-box-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-text-content p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin: 0;
}

.about-text-content p strong {
    color: var(--text-main);
    font-weight: 600;
}

/* SECCIONES COMPLEMENTARIAS */
.content-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 20px;
    border-top: 1px solid var(--border-color);
    position: relative;
    z-index: 2;
}

.content-section h2 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-secondary);
}

.content-section > p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.plan-progress-box {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px 30px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.plan-progress-box span {
    font-size: 0.95rem;
    color: var(--text-main);
}

.plan-progress-box strong {
    color: var(--accent-secondary);
    font-size: 1.1rem;
}

.foja-box {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    margin-top: 20px;
}

.foja-box h3 {
    font-size: 1.05rem;
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--text-main);
    font-weight: 600;
}

.materias-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 15px;
}

.materia-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(56, 189, 248, 0.08);
}

.materia-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.materia-nombre {
    font-weight: 500;
    color: var(--text-main);
    font-size: 0.9rem;
}

.materia-info {
    font-size: 0.8rem;
    text-align: right;
}

.materia-info.en-curso {
    color: var(--warning-color);
    font-weight: 600;
}

.materia-info.aprobada {
    color: var(--success-color);
    font-weight: 600;
}

.seccion-divisor {
    font-size: 0.9rem;
    color: var(--accent-secondary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 6px;
    margin-top: 25px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    list-style: none;
}

.datos-obligatorios-box {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    margin-top: 20px;
}

.datos-obligatorios-box h3 {
    font-size: 1.05rem;
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--text-main);
    font-weight: 600;
    letter-spacing: -0.3px;
}

.datos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.dato-item {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.dato-item strong {
    color: var(--text-main);
    font-weight: 600;
}

.dato-item.full-width {
    grid-column: 1 / -1;
}

footer {
    padding: 30px 20px;
    text-align: center;
    border-top: 1px solid var(--border-color);
    margin-top: 40px;
    position: relative;
    z-index: 2;
}

footer p {
    font-size: 0.7rem;
    font-weight: 300;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.4;
}

@media (max-width: 1024px) {
    * {
        cursor: auto;
    }
    .custom-cursor {
        display: none;
    }
    .lighthouse-sweep {
        display: none;
    }
    .catedra-bar {
        position: relative;
        flex-direction: column;
        gap: 10px;
        padding: 15px;
    }
    .nav-center {
        position: relative;
        transform: none;
        left: auto;
    }
    .orbit-section {
        height: auto;
        padding: 160px 20px 40px 20px;
        flex-direction: column;
    }
    .central-name {
        position: relative;
        transform: none;
        top: auto;
        left: auto;
        margin-bottom: 30px;
    }
    .orbit-container {
        position: relative;
        width: 100%;
        height: auto;
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
        transform: none;
        top: auto;
        left: auto;
    }
    .orbit-item, .orbit-shadow {
        position: relative;
        width: 100%;
        transform: none !important;
    }
    .orbit-shadow {
        display: none;
    }
    .project-featured-wrapper {
        position: relative;
        flex-direction: column;
        transform: none;
        top: auto;
        left: auto;
        width: 100%;
    }
    .featured-image-box, .project-info-content {
        width: 100%;
    }
    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }
    .about-avatar-box {
        width: 200px;
    }
}