:root {
    --color-dark: #0a0a0a;
    --color-dark-grey: #12101b; /* Darker purple-ish grey */
    --color-medium-grey: #231f32; /* Medium purple-ish grey */
    --color-light-grey: #cccccc;
    --color-accent-purple: #ab66ff; /* Main purple accent */
    --color-accent-deep-purple: #582f97; /* Deep purple */
    --color-accent-lilac: #e0c3fc; /* Light lilac for text */
    --font-primary: 'Cinzel', serif;
    --font-secondary: 'Roboto', sans-serif;
    --header-height: 70px;
}


#mobile-menu-toggle {
    display: none !important; /* fuerza la ocultación */
}

@media (max-width: 768px) {
    #mobile-menu-toggle {
        display: block !important;
    }
}



/* === Barras de estadísticas DK === */
.stat-container {
    max-width: 500px;
    margin: 2rem auto;
}

.stat-label {
    font-family: var(--font-secondary);
    font-weight: 600;
    color: var(--color-accent-lilac);
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.stat-bar {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(171, 102, 255, 0.2);
    border-radius: 6px;
    overflow: hidden;
    height: 14px;
    position: relative;
    box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 1rem;
}

.stat-fill {
    background: linear-gradient(90deg, var(--color-accent-purple), var(--color-accent-deep-purple));
    height: 100%;
    width: 0;
    animation: fillBar 2s ease-out forwards;
}

@keyframes fillBar {
    to {
        width: var(--value);
    }
}


body {
    font-family: var(--font-secondary);
    background-color: var(--color-dark);
    color: var(--color-light-grey);
    background-image: url('background.jpg');
    background-size: cover;

}

/* New layout container */
.app-container {
    display: flex;
    height: 100vh;
    position: relative;
}

/* Sidebar Styles */
#sidebar {
    width: 280px;
    flex-shrink: 0;
    background: linear-gradient(160deg, var(--color-medium-grey), var(--color-dark-grey));
    border-right: 1px solid rgba(171, 102, 255, 0.3);
    padding: 1.5rem 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    z-index: 1001; /* Above particles */
    transition: transform 0.3s ease-in-out;
}

.sidebar-header {
    text-align: center;
    padding: 0 1rem 1.5rem 1rem;
    border-bottom: 1px solid rgba(171, 102, 255, 0.2);
    margin-bottom: 1.5rem;
}

.sidebar-logo {
    max-width: 180px;
    filter: drop-shadow(0 0 15px var(--color-accent-purple));
    animation: pulse-glow-logo 4s ease-in-out infinite;
}

.guide-menu {
    list-style: none;
    flex-grow: 1;
    padding-left: 0;
}

.guide-menu li {
    margin: 0;
}

.guide-menu li a {
    display: block;
    color: var(--color-light-grey);
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    font-weight: 700;
    font-size: 0.95rem;
    transition: background-color 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
    border-left: 3px solid transparent;
    position: relative;
}

.guide-menu li a:hover {
    background-color: rgba(171, 102, 255, 0.1);
    color: white;
    border-left-color: var(--color-accent-purple);
}

.guide-menu li a.active {
    background-color: rgba(171, 102, 255, 0.15);
    color: var(--color-accent-lilac);
    border-left-color: var(--color-accent-purple);
}

.guide-menu .submenu-toggle::after {
    content: '▸';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.2s ease;
    color: var(--color-accent-purple);
}

.guide-menu li.open > .submenu-toggle::after {
    transform: translateY(-50%) rotate(90deg);
}

.submenu {
    list-style: none;
    background-color: rgba(0,0,0,0.2);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    padding: 0;
}

li.open > .submenu {
    max-height: 1000px; /* Adjust as needed */
    padding: 0.5rem 0;
}

.submenu li a {
    padding-left: 2.5rem;
    font-size: 0.9rem;
    font-weight: 400;
}

.submenu li a:hover {
    padding-left: 2.8rem;
}

/* Particle Canvas */
#main-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Main Content Area */
#main-content {
    flex-grow: 1;
    overflow-y: auto;
    padding: 3rem;
    position: relative; /* For particle canvas */
    z-index: 1; /* Above particle canvas */
}

.content-page {
    display: none;
}

.content-page.active-content {
    display: block;
    animation: fade-in-content 0.5s ease forwards;
}

@keyframes fade-in-content {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* New Info Card Styling */
.info-card {
    background: linear-gradient(145deg, rgba(35, 31, 50, 0.85), rgba(18, 16, 27, 0.95));
    border: 1px solid rgba(171, 102, 255, 0.2);
    padding: 2.5rem;
    border-radius: 4px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
}

.info-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(171, 102, 255, 0.1) 0%, rgba(171, 102, 255, 0) 40%);
    transition: opacity 0.5s ease;
    opacity: 0;
    pointer-events: none;
    animation: rotate-glow 10s linear infinite;
}


.info-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(171, 102, 255, 0.2), 0 0 15px rgba(224, 195, 252, 0.1);
}

.info-card:hover::before {
    opacity: 1;
}

.info-card h2, .info-card h3 {
    font-family: var(--font-primary);
    color: var(--color-accent-lilac);
    text-shadow: 0 0 10px var(--color-accent-purple);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.info-card h2 {
    font-size: 1.8rem;
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(171, 102, 255, 0.2);
    position: relative;
}

.info-card h2::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-accent-purple), transparent);
}

.info-card h3 {
    font-size: 1.3rem;
    margin-top: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(171, 102, 255, 0.1);
}

.info-card p, .info-card li {
    font-family: var(--font-secondary);
    color: var(--color-light-grey);
    font-size: 1rem;
    line-height: 1.8;
}

.info-card p {
    margin-bottom: 1rem;
}

.info-card strong {
    color: var(--color-accent-purple);
    font-weight: 700;
}

.info-card ul {
    list-style: none;
    padding-left: 0.5rem;
    margin-top: 1rem;
}

.info-card li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.info-card li::before {
    content: '✧';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-accent-purple);
    font-weight: bold;
}

.info-card .table-container {
    max-width: 100%;
    overflow-x: auto;
    margin: 1.5rem auto;
    border: 1px solid rgba(171, 102, 255, 0.2);
    border-radius: 4px;
    background-color: rgba(0, 0, 0, 0.2);
    display: table; /* Fix for centering */
}
.info-card table {
    border-collapse: collapse;
    font-size: 0.9rem;
    min-width: 500px;
}
.info-card th, .info-card td {
    padding: 0.8rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(171, 102, 255, 0.1);
}
.info-card thead th {
    background-color: rgba(0, 0, 0, 0.4);
    color: var(--color-accent-lilac);
    font-family: var(--font-primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--color-accent-purple);
}
.info-card tbody tr:last-child td {
    border-bottom: none;
}
.info-card tbody tr:hover {
    background-color: rgba(171, 102, 255, 0.08);
}
.info-card tbody td:first-child {
    font-weight: 700;
    color: var(--color-light-grey);
}

.welcome-image {
    max-width: 100%;
    border-radius: 4px;
    margin: 1.5rem auto;
    display: block;
    border: 1px solid rgba(171, 102, 255, 0.2);
    box-shadow: 0 0 15px rgba(171, 102, 255, 0.2);
}

/* Quote Section */
.quote-section {
    text-align: center;
    padding: 2.5rem 1rem;
    background-color: rgba(0,0,0,0.3);
    border-radius: 4px;
    margin-top: 2.5rem;
    border-top: 2px solid var(--color-accent-purple);
    border-bottom: 2px solid var(--color-accent-deep-purple);
}

.quote {
    font-family: var(--font-primary);
    font-size: 1.6rem;
    font-style: italic;
    color: white;
    text-shadow: 0 0 12px var(--color-accent-deep-purple), 0 0 22px var(--color-accent-purple), 0 0 5px var(--color-accent-lilac);
    font-weight: 700;
    line-height: 1.5;
    animation: pulse-glow 4s infinite ease-in-out;
}

#mobile-menu-toggle {
    display: none;
}

.top-header {
    background-color: rgba(10, 10, 10, 0.9); /* Dark, slightly transparent */
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    transform: translateX(-100%);
    box-shadow: 5px 0 15px rgba(0,0,0,0.3);
}

#sidebar.open {
    transform: translateX(0);
}

#mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1002;
    background-color: rgba(10, 10, 10, 0.8);
    border: 1px solid var(--color-accent-purple);
    color: var(--color-light-grey);
    width: 45px;
    height: 45px;
    border-radius: 8px;
    font-size: 1.5rem;
    cursor: pointer;
}

#main-content {
    padding: 2rem;
}

/* Responsive Design */
@media (max-width: 992px) { /* Tablet breakpoint */
    #sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        transform: translateX(-100%);
        box-shadow: 5px 0 15px rgba(0,0,0,0.3);
    }

    #sidebar.open {
        transform: translateX(0);
    }

    #mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        top: 15px;
        left: 15px;
        z-index: 1002;
        background-color: rgba(10, 10, 10, 0.8);
        border: 1px solid var(--color-accent-purple);
        color: var(--color-light-grey);
        width: 45px;
        height: 45px;
        border-radius: 8px;
        font-size: 1.5rem;
        cursor: pointer;
    }

    #main-content {
        padding: 2rem;
    }

    /* Hiding old responsive behavior */
    .main-nav {
        display: none;
    }
    .mobile-nav-toggle {
        display: none;
    }
    .social-icons {
       display: none;
    }
    .header-container {
      padding: 0 1rem;
    }
    .top-header {
      display: none;
    }
}

@media (max-width: 768px) {
    #sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        transform: translateX(-100%);
        box-shadow: 5px 0 15px rgba(0,0,0,0.3);
    }

    #sidebar.open {
        transform: translateX(0);
    }

    #mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        top: 15px;
        left: 15px;
        z-index: 1002;
        background-color: rgba(10, 10, 10, 0.8);
        border: 1px solid var(--color-accent-purple);
        color: var(--color-light-grey);
        width: 45px;
        height: 45px;
        border-radius: 8px;
        font-size: 1.5rem;
        cursor: pointer;
    }

    #main-content {
        padding: 1.5rem;
    }

    .hero-description {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    #sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        transform: translateX(-100%);
        box-shadow: 5px 0 15px rgba(0,0,0,0.3);
    }

    #sidebar.open {
        transform: translateX(0);
    }

    #mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        top: 15px;
        left: 15px;
        z-index: 1002;
        background-color: rgba(10, 10, 10, 0.8);
        border: 1px solid var(--color-accent-purple);
        color: var(--color-light-grey);
        width: 45px;
        height: 45px;
        border-radius: 8px;
        font-size: 1.5rem;
        cursor: pointer;
    }

    #main-content {
        padding: 1.5rem 1rem;
    }

    .hero-description {
        font-size: 0.9rem;
    }
}

@keyframes pulse-glow-logo {
    0% {
        filter: drop-shadow(0 0 15px var(--color-accent-purple));
    }
    50% {
        filter: drop-shadow(0 0 25px var(--color-accent-purple)) drop-shadow(0 0 8px var(--color-accent-lilac));
    }
    100% {
        filter: drop-shadow(0 0 15px var(--color-accent-purple));
    }
}

@keyframes rotate-glow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse-glow {
    0% { text-shadow: 0 0 12px var(--color-accent-deep-purple), 0 0 22px var(--color-accent-purple), 0 0 5px var(--color-accent-lilac); }
    50% { text-shadow: 0 0 18px var(--color-accent-deep-purple), 0 0 32px var(--color-accent-purple), 0 0 8px var(--color-accent-lilac); }
    100% { text-shadow: 0 0 12px var(--color-accent-deep-purple), 0 0 22px var(--color-accent-purple), 0 0 5px var(--color-accent-lilac); }
}