body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #121212;
    color: #e0e0e0;
    overflow-x: hidden;
}

.site-login {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

.site-login .login-card {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    border-radius: 12px;
}

/* ── Header ── */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: #1a1a1a;
    position: relative;
    z-index: 1000;
    border-bottom: 1px solid #2d2d2d;
    box-sizing: border-box;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffffff;
}

.nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
}

.nav-link {
    text-decoration: none;
    color: #cccccc;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
}

/* ── Layout ── */
.layout-container {
    display: flex;
    width: 100%;
    box-sizing: border-box;
    margin: 2rem 0;
    padding: 0 1rem;
    gap: 1rem;
}

.main-content  { flex: 3; }

.sidebar-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* ── Hero / Noticia ── */
.hero {
    background-color: #1e222b;
    border: 1px solid #2d3139;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.hero-content h1 {
    color: #ffffff;
    margin-top: 0;
    font-size: 2.2rem;
}

.hero-content p {
    color: #94a3b8;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.main-article {
    background-color: #161920;
    border-left: 4px solid #3b82f6;
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
}

.news-date {
    color: #3b82f6;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.main-article h2 {
    color: #ffffff;
    margin: 0.5rem 0 1rem 0;
    font-size: 1.5rem;
}

.main-article p {
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.btn-read-more {
    display: inline-block;
    color: #3b82f6;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s ease, transform 0.2s ease;
}

.btn-read-more:hover {
    color: #60a5fa;
    transform: translateX(4px);
}

/* ── Sidebar ── */
.moodle-panel {
    background-color: #1a1a1a;
    border: 1px solid #2d2d2d;
    border-radius: 8px;
    padding: 1rem;
}

.btn-moodle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #ffffff;
    text-decoration: none;
    background-color: #2d2d2d;
    padding: 0.75rem;
    border-radius: 6px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.btn-moodle:hover { background-color: #3b82f6; }

.btn-moodle svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* ── Carrusel ── */
.carousel-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin: 2rem 0 0 0;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid #2d3139;
}

.carousel-track-container {
    width: 100%;
    height: 100%;
    background-color: #000000;
    overflow: hidden;
}

.carousel-slide {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-button-left  { left: 15px; }
.carousel-button-right { right: 15px; }

.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    position: absolute;
    bottom: 15px;
    width: 100%;
    z-index: 10;
}

.carousel-indicator {
    border: 0;
    border-radius: 50%;
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
}

.carousel-indicator.current-slide {
    background: #3b82f6;
    width: 25px;
    border-radius: 5px;
}

.is-hidden { display: none; }

/* Ajuste para botones del carrusel en pantallas móviles */
@media (max-width: 480px) {
    .carousel-button {
        padding: 0.5rem 0.7rem;
        font-size: 0.8rem;
    }
    .carousel-button-left  { left: 5px; }
    .carousel-button-right { right: 5px; }
}

/* ── Historial de noticias ── */
.news-history-panel {
    background-color: #1a1a1a;
    border: 1px solid #2d2d2d;
    border-radius: 8px;
    padding: 1.25rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.news-history-panel h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #ffffff;
    border-bottom: 1px solid #2d2d2d;
    padding-bottom: 0.5rem;
}

.history-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.history-list li {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.history-date {
    font-size: 0.75rem;
    color: #8aa4cc;
    font-weight: bold;
}

.history-link {
    color: #cccccc;
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.3;
    transition: color 0.2s ease;
}

.history-link:hover {
    color: #ffffff;
    text-decoration: underline;
}



        /* ── Navbar dark ── */
        .navbar-dark-custom {
            background-color: #1a1a1a !important;
            border-bottom: 1px solid #2d2d2d;
            padding: 0.6rem 1.5rem;
        }

        .navbar-dark-custom .navbar-brand {
            color: #ffffff !important;
            font-weight: 700;
            font-size: 1.1rem;
            letter-spacing: 0.5px;
        }

        .navbar-dark-custom .navbar-brand:hover {
            color: #3b82f6 !important;
        }

        /* Links del nav */
        .navbar-dark-custom .nav-link {
            color: #cccccc !important;
            font-size: 0.9rem;
            padding: 0.5rem 0.85rem !important;
            border-radius: 6px;
            transition: background-color 0.2s, color 0.2s;
        }

        .navbar-dark-custom .nav-link:hover,
        .navbar-dark-custom .nav-link:focus {
            color: #ffffff !important;
            background-color: #2d2d2d;
        }

        .navbar-dark-custom .nav-link.active {
            color: #3b82f6 !important;
            background-color: rgba(59, 130, 246, 0.1);
        }

        /* Dropdown */
        .navbar-dark-custom .dropdown-menu {
            background-color: #1e1e1e;
            border: 1px solid #2d2d2d;
            border-radius: 8px;
            padding: 0.4rem;
            min-width: 160px;
            box-shadow: 0 8px 24px rgba(0,0,0,0.4);
        }

        .navbar-dark-custom .dropdown-item {
            color: #cccccc;
            font-size: 0.875rem;
            border-radius: 5px;
            padding: 0.45rem 0.85rem;
            transition: background-color 0.15s, color 0.15s;
        }

        .navbar-dark-custom .dropdown-item:hover {
            background-color: #2d2d2d;
            color: #ffffff;
        }

        .navbar-dark-custom .dropdown-divider {
            border-color: #2d2d2d;
            margin: 0.3rem 0;
        }

        /* Username badge */
        .navbar-dark-custom .nav-user-badge {
            color: #94a3b8 !important;
            font-size: 0.8rem;
        }

        /* Toggler (hamburguesa) */
        .navbar-dark-custom .navbar-toggler {
            border-color: #3d3d3d;
        }
        


        .navbar-dark-custom .navbar-toggler-icon {
            background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
        }
        
        
        
        /*** FOOTER ****/
        
        
        /***** ── Footer ── ******/
        .footer {
            background-color: #1a1a1a;
            border-top: 1px solid #2d2d2d;
            margin-top: 4rem;
            padding: 3rem 2rem 1.5rem;
        }

        .footer-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            max-width: 1100px;
            margin: 0 auto;
            gap: 2rem;
        }

        .footer-card {
            background-color: #161920;
            border: 1px solid #2d3139;
            border-radius: 10px;
            padding: 1.5rem;
        }

        .footer-card h3 {
            color: #ffffff;
            margin: 0 0 1rem;
            font-size: 1rem;
            border-bottom: 2px solid #3b82f6;
            padding-bottom: 0.5rem;
            display: inline-block;
        }

        .footer-card p {
            color: #94a3b8;
            font-size: 0.9rem;
            line-height: 1.6;
            margin: 0;
        }

        .footer-links {
            list-style: none;
            padding: 0;
            margin: 0;
            display: flex;
            flex-direction: column;
            gap: 0.6rem;
            color: #94a3b8;
            font-size: 0.9rem;
        }
        
        .footer-bottom {
            text-align: center;
            margin-top: 2.5rem;
            padding-top: 1.25rem;
            border-top: 1px solid #2d2d2d;
            color: #64748b;
            font-size: 0.82rem;
        }

        .social-links {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }

        .social-icon {
            color: #3b82f6;
            text-decoration: none;
            font-size: 0.9rem;
            font-weight: 500;
            transition: color 0.2s, transform 0.2s;
            display: inline-flex;
            align-items: center;
            gap: 0.55rem;
        }

        .social-logo { width: 20px; height: 20px; flex: 0 0 20px; }

        .social-icon:hover { color: #60a5fa; transform: translateX(4px); }


        
        
