/* ── FUENTES ─────────────────────────────────── */

@font-face {
    font-family: 'Exo';
    src: url('/fonts/google/exo/static/Exo-Black.woff2') format('woff2'),
         url('/fonts/google/exo/static/Exo-Black.ttf') format('truetype');
    font-weight: 900; /* 👈 mejor especificar el peso real */
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'bootstrap-icons';
    src: url('/fonts/bootstrap-icons-1.13.1/fonts/bootstrap-icons.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

.breadcrumb {
  --bs-breadcrumb-divider: '›';
}

.breadcrumb-item a {
    transition: color 0.2s ease;
    text-decoration: none;
}

/* Breadcrumb activo */
.breadcrumb-active-color {
    color: #f59e0b; /* amarillo en modo oscuro */
}

[data-bs-theme="light"] .breadcrumb-active-color {
    color: #0d6efd; /* azul en modo claro */
}

/* Links del breadcrumb */
.breadcrumb-link {
    transition: color 0.2s ease;
}

.breadcrumb-link:hover {
    color: #a855f7 !important;
}

[data-bs-theme="light"] .breadcrumb-link:hover {
    color: #7c3aed !important;
}

hr.title {
    height: 3px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(90deg, #6f42c1, #a855f7);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.7),
                0 0 20px rgba(111, 66, 193, 0.5);
}

/* ── TOPBAR ──────────────────────────────────── */
#stickyHeader {
    position: sticky;
    top: 0;
    z-index: 1030;
    transition: transform 0.3s ease;
    will-change: transform;
}

#topbar {
    background: linear-gradient(135deg, #1a0533, #2d1b69) !important;
}

#topbar .text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}

#topbar a {
    transition: color 0.2s ease;
}

#topbar a:hover {
    color: #a855f7 !important;
}

/* ── NAVBAR ──────────────────────────────────── */
#mainNavbar {
    background-color: #212529 !important;
    transition: box-shadow 0.3s ease;
    padding-top: 0.20rem;
    padding-bottom: 0.20rem;
}

#mainNavbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
}

[data-bs-theme="light"] #mainNavbar {
    background-color: #f8f9fa !important;
}

#mainNavbar .nav-link {
    position: relative;
    padding-bottom: 6px;
    transition: color 0.25s ease;
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
}

#mainNavbar .nav-link svg {
    width: 18px;
    height: 18px;
    vertical-align: -0.2em;
}

/* Línea animada debajo */
#mainNavbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, #7c3aed, #a855f7);
    border-radius: 999px;
    transition: width 0.3s ease;
}

#mainNavbar .nav-link:hover {
    color: #a855f7 !important;
}

#mainNavbar .nav-link:hover::after {
    width: 80%;
}

#mainNavbar .nav-link.active {
    color: #a855f7 !important;
    font-weight: 600;
}

#mainNavbar .nav-link.active::after {
    width: 80%;
}

#mainNavbar .navbar-brand:hover {
    color: #a855f7 !important;
    transition: color 0.25s ease;
}

#mainNavbar .navbar-brand img {
    transition: filter 0.3s ease;
}

#mainNavbar .navbar-brand:hover img {
    filter: hue-rotate(20deg) saturate(1.4) brightness(1.1)
            drop-shadow(0 0 10px rgba(240, 64, 251, 0.5));
}

#mainNavbar .navbar-brand:active img {
    filter: none;
    transition: filter 0.1s ease;
}

/* ── BOTONES AUTH NAVBAR ──────────────────────── */
#navAuth .btn-login {
    background: transparent;
    border: 1px solid #7c3aed;
    color: #a855f7;
    border-radius: 20px;
    padding: 5px 14px;
    font-size: .85rem;
    transition: all 0.2s;
}

#navAuth .btn-login:hover {
    background: #7c3aed;
    color: #fff;
}

#navAuth .btn-signup {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    border: none;
    color: #fff;
    border-radius: 20px;
    padding: 5px 14px;
    font-size: .85rem;
    transition: all 0.2s;
}

#navAuth .btn-signup:hover {
    background: linear-gradient(135deg, #6d28d9, #9333ea);
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.5);
    transform: translateY(-1px);
    color: #fff !important;
}

/* Modo claro */
[data-bs-theme="light"] #navAuth .btn-login {
    border-color: #7c3aed;
    color: white;
    background: transparent;
    opacity: 1;
}

#navAuth .btn-login:hover {
    background: #7c3aed;
    color: #fff !important;
    border-color: #7c3aed;
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.5);
    transform: translateY(-1px);
}

/* Dropdown hover */
#navAuth .dropdown:hover .dropdown-menu {
    display: block;
}

#themeToggle,
.dropdown .btn {
    border-radius: 20px;
    padding: 5px 12px;
    font-size: .85rem;
    transition: all 0.2s;
}

/* ── MODO CLARO NAVBAR ──────────────────────────────── */
/*[data-bs-theme="light"] #mainNavbar {
    background-color: #f8f9fa !important;
}/*

[data-bs-theme="light"] #mainNavbar .navbar-brand,
[data-bs-theme="light"] #mainNavbar .nav-link {
    color: rgba(0,0,0,.75);
}

[data-bs-theme="light"] #mainNavbar .nav-link:hover,
[data-bs-theme="light"] #mainNavbar .nav-link.active {
    color: #000;
}

[data-bs-theme="light"] .card-body {
    background-color: #fff;
    color: #212529;
}

[data-bs-theme="light"] .card {
    background-color: #fff;
}*/

/* Post */
.link-post a{
    color: #0d6efd;
    transition: all 0.3s ease;
}

.link-post:hover {
    color: #6f42c1;
    text-decoration: underline;
    transition: all 0.3s ease;
}

[data-bs-theme="dark"] .link-post {
        color: #f0a030;
    }

[data-bs-theme="dark"] .link-post:hover {
        color: #4990fa !important;
    }

/* Modo claro */
.post-body table tbody tr:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.03);
}

.post-body table tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.07);
}

/* Modo oscuro */
[data-bs-theme="dark"] .post-body table tbody tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.05);
}

[data-bs-theme="dark"] .post-body table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

/* Borde adaptable */
[data-bs-theme="dark"] .post-body table th,
[data-bs-theme="dark"] .post-body table td {
    border-color: #444;
}

/* ── FOOTER ──────────────────────────────────── */
footer a {
    transition: color 0.2s ease;
}

footer a:hover {
    color: #fff !important;
}

footer a.active {
    color: #fff !important;
    font-weight: 600;
}

footer .btn-outline-secondary:hover {
    background-color: #7c3aed !important;
    border-color: #7c3aed !important;
    color: #fff !important;
}

.footer-main {
    background: #0d1117;
    border-top: 1px solid rgba(255,255,255,.08);
    font-family: 'DM Sans', sans-serif;
}

.footer-cta {
    background: rgba(13,110,253,.08);
    border-bottom: 1px solid rgba(13,110,253,.2);
    padding: 20px 0;
}

.footer-cta-title {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
}

.footer-cta-sub {
    font-size: .85rem;
    color: rgba(255,255,255,.5);
}

.footer-body {
    padding: 56px 0 40px;
}

footer .logo-footer {
    transition: filter 0.3s ease;
    cursor: pointer;
}

footer .logo-footer:hover {
    filter: hue-rotate(20deg) saturate(1.4) brightness(1.1)
            drop-shadow(0 0 10px rgba(240, 64, 251, 0.5));
}

footer .logo-footer:active {
    filter: none;
    transition: filter 0.1s ease;
}

.footer-brand {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.35rem;
    color: #fff;
    letter-spacing: -.5px;
}

.footer-brand span { color: #0d6efd; }

.footer-desc {
    font-size: .875rem;
    color: rgba(255,255,255,.45);
    line-height: 1.7;
    max-width: 300px;
}

.footer-socials { display: flex; gap: 8px; }

.social-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    color: rgba(255,255,255,.6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .95rem;
    text-decoration: none;
    transition: background .2s, color .2s, border-color .2s, transform .2s;
}

.social-btn:hover {
    background: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
    transform: translateY(-3px);
}

/* ── FOOTER MODO CLARO ───────────────────────── */
[data-bs-theme="light"] .footer-main {
    background: #1a1f2e;
}

[data-bs-theme="light"] .footer-cta-title,
[data-bs-theme="light"] .footer-brand,
[data-bs-theme="light"] .footer-heading { color: #fff; }

[data-bs-theme="light"] .footer-cta-sub,
[data-bs-theme="light"] .footer-desc,
[data-bs-theme="light"] .footer-contact li,
[data-bs-theme="light"] .footer-contact a { color: rgba(255,255,255,.55); }

[data-bs-theme="light"] .footer-links a { color: rgba(255,255,255,.5); }
[data-bs-theme="light"] .footer-links a:hover { color: #fff; }
[data-bs-theme="light"] .footer-legal { color: rgba(255,255,255,.45); }
[data-bs-theme="light"] .footer-legal:hover { color: #fff; }

[data-bs-theme="light"] .social-btn {
    background: rgba(255,255,255,.1);
    border-color: rgba(255,255,255,.2);
    color: rgba(255,255,255,.7);
}

/* ── CAROUSEL ──────────────────────────────────── */
#headerCarousel,
#headerCarousel .carousel-item {
    min-height: calc(100vh - 96px); /* 40px topbar + 56px navbar */
}

@media (max-width: 991px) {
    #headerCarousel,
    #headerCarousel .carousel-item {
        min-height: auto;
        padding: 50px 0 60px;
    }
}