/* =========================================
   GLOBAL BASE STYLES
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&display=swap');

body {
    font-family: 'Inter', sans-serif;
    background-color: #121212;
    color: #e0e0e0;
    margin: 0;
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* --- Sidebar Navigation --- */
nav {
    width: 13.5%;
    min-width: 220px;
    flex-shrink: 0;
    position: fixed;
    height: 100vh;
    background-color: #0a0a0c;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 100;
    display: flex;
    flex-direction: column;
    transform: translateZ(0);
}

nav hr {
    width: 100%;
    border: 0;
    height: 1px;
    background: linear-gradient(to right, #ceae7d, transparent);
    margin: 0;
}

.nav-header {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 20px 0;
}

.nav-header a {
    z-index: 1;
    display: block;
    width: 100%;
}

.fondo-logo {
    display: block;
    max-width: 100%;
    height: auto;
    -webkit-mask-image: radial-gradient(circle, black 50%, transparent 100%);
    mask-image: radial-gradient(circle, black 50%, transparent 100%);
}

.logo {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 7px rgba(0, 0, 0, 1));
}

a .logo:hover {
    transform: translate(-50%, -50%) scale(1.1);
    transition: all 0.3s ease;
}

nav ul li a {
    display: block;
    font-size: 1.1rem;
    text-decoration: none;
    padding: 14px 25px;
    color: #a0a0a0;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    font-weight: 600;
    border-left: 0px solid transparent;
}

nav ul li a:hover:not(.activo) {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
    padding-left: 32px;
    border-left: 4px solid rgba(76, 201, 240, 0.5);
}

nav a.activo {
    font-size: 1.1rem;
    background: linear-gradient(90deg, rgba(76, 201, 240, 0.15) 0%, rgba(76, 201, 240, 0) 100%);
    color: #ffffff;
    padding: 14px 25px 14px 32px;
    border-left: 4px solid #4cc9f0;
    text-shadow: 0 0 10px rgba(76, 201, 240, 0.5);
}

#fondo {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-color: rgba(14, 14, 14, 0.85);
    background-blend-mode: multiply;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 20px 0;
    list-style: none;
}

.bottom-divider {
    margin-top: auto;
}

/* --- Main Content Area --- */
main {
    margin-left: 13.5%;
    width: calc(100% - 13.5%);
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
    flex-grow: 1;
}

/* =========================================
   GLOBAL COMPONENTS
   ========================================= */

#content-layout {
    margin-top: 10vh;
    padding: 0 4%;
    display: flex;
    flex-direction: column;
    gap: 40px;
    box-sizing: border-box;
    animation: fadeInSlideUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

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

.section-title {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 2.5px;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.2);
    margin-bottom: 20px;
    position: relative;
    padding-left: 20px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    height: 90%;
    width: 4px;
    background: linear-gradient(180deg, #4cc9f0 0%, #3b82f6 100%);
    border-radius: 4px;
    box-shadow: 0 0 12px rgba(76, 201, 240, 0.8);
}

.section-title.centered {
    justify-content: center;
    padding-left: 0;
}

.section-title.centered::before {
    display: none;
}

.glass-dark {
    background: linear-gradient(145deg, rgba(22, 22, 26, 0.6), rgba(12, 12, 14, 0.85));
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.glass-dark:hover {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6), 0 0 20px rgba(76, 201, 240, 0.1);
    border-color: rgba(255, 255, 255, 0.12);
}

.main-footer {
    background: rgba(10, 10, 12, 0.9);
    padding: 60px 40px 40px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #666;
    font-size: 0.95rem;
    letter-spacing: 1px;
    font-weight: 600;
    margin-top: 40px;
}

.main-footer p {
    margin: 0;
    transition: color 0.3s ease;
}

.main-footer:hover p {
    color: #aaa;
}