/* Estilos Generales */
:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #ec4899;
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --border-color: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --surface-strong: rgba(15, 23, 42, 0.96);
    --surface-soft: rgba(30, 41, 59, 0.72);
}

body {
    font-family: 'Plus Jakarta Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin: 0;
    color: var(--text-primary);
    background:
        radial-gradient(circle at top left, rgba(236, 72, 153, 0.28), transparent 28%),
        radial-gradient(circle at 85% 12%, rgba(99, 102, 241, 0.4), transparent 24%),
        radial-gradient(circle at 50% 100%, rgba(34, 197, 94, 0.18), transparent 30%),
        url('fotos/fondo de pixel art ciudad.gif') no-repeat center center fixed;
    background-size: cover, cover, cover, cover;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body.home-page {
    font-family: 'Plus Jakarta Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background:
        radial-gradient(circle at top left, rgba(236, 72, 153, 0.28), transparent 28%),
        radial-gradient(circle at 85% 12%, rgba(99, 102, 241, 0.4), transparent 24%),
        radial-gradient(circle at 50% 100%, rgba(34, 197, 94, 0.18), transparent 30%),
        url('fotos/fondo de pixel art ciudad.gif') no-repeat center center fixed;
    background-size: cover, cover, cover, cover;
    background-attachment: fixed;
}

body.home-page::before {
    background: linear-gradient(160deg, rgba(2, 6, 23, 0.58), rgba(15, 23, 42, 0.38));
}

body.home-page .main-content {
    padding-top: 2rem;
    padding-bottom: 4.5rem;
}

body.home-page .site-nav {
    background: linear-gradient(135deg, rgba(10, 15, 35, 0.72), rgba(24, 32, 73, 0.62));
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 30px rgba(2, 6, 23, 0.16);
}

body.home-page .navbar-brand {
    letter-spacing: -0.04em;
}

body.home-page .navbar .btn-primary {
    background: linear-gradient(135deg, #ec4899, #6366f1);
    box-shadow: 0 12px 26px rgba(99, 102, 241, 0.34);
}

body.home-page .navbar .btn-primary:hover {
    box-shadow: 0 16px 32px rgba(99, 102, 241, 0.44);
}

body.home-page .navbar .btn-danger {
    box-shadow: 0 12px 26px rgba(239, 68, 68, 0.34);
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.7), rgba(30, 41, 59, 0.7));
    pointer-events: none;
    z-index: -1;
}

/* Contenido Principal */
.main-content {
    flex: 1;
    padding-top: 1.5rem; 
    padding-bottom: 4rem;
}

.content-box {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    margin-top: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.1);
}

/* Títulos y Textos */
h1, h2, h3 {
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.5px;
}

h1 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

p {
    line-height: 1.7;
    font-size: 1rem;
    color: var(--text-secondary);
}

/* Navbar */
.site-nav {
    position: sticky !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 1030 !important;
}

.navbar {
    width: 100%;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 12px 28px rgba(2, 6, 23, 0.16);
}

.navbar .navbar-brand {
    color: var(--text-primary) !important;
    font-weight: 700;
    letter-spacing: -0.04em;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
}

.navbar .navbar-text {
    color: var(--text-secondary) !important;
}

.navbar .nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    transition: color 0.3s ease, background-color 0.3s ease;
    border-radius: 999px;
    padding: 0.5rem 0.8rem !important;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--primary-color) !important;
    background: rgba(99, 102, 241, 0.12);
}

.navbar-toggler {
    border-color: var(--border-color);
}

.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%28241, 245, 249, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}


/* Pie de Página */
footer {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.98));
    color: var(--text-primary);
    padding: 3rem 0 2rem;
    box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.25);
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    margin-top: auto;
}

.footer-links a {
    color: #c7d2fe;
    text-decoration: none;
    margin: 0 20px;
    transition: color 0.3s ease, transform 0.3s ease;
    font-weight: 500;
}

.footer-links a:hover {
    color: #ffffff;
    transform: translateY(-2px);
}

.social-links img {
    width: 30px;
    margin: 0 10px;
    transition: transform 0.3s;
}

.social-links img:hover {
    transform: scale(1.1);
}

/* Botones */
.btn {
    font-weight: 600;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 8px 18px rgba(99, 102, 241, 0.28);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(99, 102, 241, 0.38);
}

.btn-secondary {
    background: rgba(148, 163, 184, 0.14);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(148, 163, 184, 0.22);
    border-color: var(--primary-color);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    box-shadow: 0 8px 18px rgba(239, 68, 68, 0.28);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(239, 68, 68, 0.38);
}

.btn-light {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 8px 18px rgba(16, 185, 129, 0.28);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(16, 185, 129, 0.38);
}

/* Form Controls */
.form-control {
    background: rgba(30, 41, 59, 0.8) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
    border-radius: 8px !important;
    transition: border-color 0.3s, box-shadow 0.3s !important;
}

.form-control:focus {
    background: rgba(30, 41, 59, 0.9) !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1) !important;
}

.form-control-dark {
    background: rgba(30, 41, 59, 0.8) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
}

.form-control-dark:focus {
    background: rgba(30, 41, 59, 0.9) !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1) !important;
}

.form-label {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Modal Styling */
.modal-dark {
    background: rgba(30, 41, 59, 0.95) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
}

.modal-dark .modal-header,
.modal-dark .modal-footer {
    border-color: var(--border-color) !important;
}

.modal-title {
    color: var(--text-primary) !important;
}

/* Forum Styles */
.forum-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 3rem;
}

.forum-header h2 {
    margin-bottom: 0.5rem;
}

.forum-header .text-secondary {
    font-size: 1rem;
    color: var(--text-secondary);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.post-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(51, 65, 85, 0.6));
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 16px 40px rgba(99, 102, 241, 0.2);
}

.post-card-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.author-info {
    flex: 1;
}

.author-name {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.author-date {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.btn-visit-profile {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-visit-profile:hover {
    background: rgba(99, 102, 241, 0.2);
    transform: scale(1.1);
}

.post-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.post-title {
    margin: 0;
    font-size: 1.2rem;
    color: var(--text-primary);
    flex: 1;
    line-height: 1.4;
}

.post-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    white-space: nowrap;
}

.post-excerpt {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    flex-grow: 1;
    line-height: 1.6;
}

.post-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

.post-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.post-interactions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.post-stat {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.replies {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.btn-read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-read-more:hover {
    color: var(--secondary-color);
    transform: translateX(4px);
}

/* Responsive */
@media (max-width: 768px) {
    .forum-header {
        flex-direction: column;
    }

    .forum-header .btn {
        width: 100%;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }

    .reply-card {
        background: rgba(30, 41, 59, 0.6);
        border: 1px solid var(--border-color);
        border-radius: 12px;
        padding: 1.5rem;
        margin-bottom: 1rem;
        transition: all 0.3s ease;
    }

    .reply-card:hover {
        border-color: var(--primary-color);
        box-shadow: 0 8px 20px rgba(99, 102, 241, 0.1);
    }

    h1 {
        font-size: 1.8rem;
    }

    .content-box {
        padding: 1.5rem;
    }

    .navbar-collapse {
        text-align: center;
    }

    .navbar-nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
}

/* Contenido Exclusivo */
.exclusive-content {
    background: rgba(255, 102, 0, 0.7);
    padding: 20px;
    margin-top: 30px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(255, 102, 0, 0.8);
    display: none; /* Oculto por defecto */
}
.exclusive-content h3 {
    color: #ffffff;
    text-shadow: 0 0 5px #ff6600;
}

body.home-page .hero-main,
body.home-page .home-shell {
    max-width: 760px;
}

body.home-page .home-shell {
    display: grid;
    gap: 1.2rem;
}

body.home-page .hero-panel,
body.home-page .social-panel,
body.home-page .feature-strip,
body.home-page .exclusive-content {
    background: rgba(15, 23, 42, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    box-shadow: 0 26px 70px rgba(2, 6, 23, 0.32);
    backdrop-filter: blur(22px);
}

body.home-page .hero-panel {
    display: grid;
    grid-template-columns: 1fr;
    padding: 1.15rem;
}

body.home-page .hero-copy {
    display: grid;
    gap: 0.8rem;
    align-content: start;
}

body.home-page .hero-eyebrow,
body.home-page .status-label,
body.home-page .profile-kicker {
    display: inline-flex;
    width: fit-content;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.22), rgba(99, 102, 241, 0.22));
    color: #eff6ff;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
    font-weight: 700;
}

body.home-page .profile-kicker {
    margin-bottom: 0.65rem;
}

body.home-page .profile-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

body.home-page .profile-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    display: grid;
    place-items: center;
    background: transparent;
    color: white;
    font-size: 1.6rem;
    font-weight: 800;
    box-shadow: 0 12px 28px rgba(99, 102, 241, 0.35);
    flex-shrink: 0;
    border: 2px solid rgba(99, 102, 241, 0.3);
}

body.home-page .hero-copy h1 {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    line-height: 1.1;
    margin: 0;
}

body.home-page .hero-text {
    font-size: 0.95rem;
    max-width: 60ch;
    color: #dbeafe;
}

body.home-page .social-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

body.home-page .link-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 860px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    body.home-page .link-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
        gap: 0.8rem;
    }
}

body.home-page .link-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.9rem;
    min-height: 72px;
    padding: 0.9rem 1rem;
    border-radius: 999px;
    text-decoration: none;
    color: #ffffff;
    background: rgba(16, 18, 26, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 14px 34px rgba(2, 6, 23, 0.34);
    backdrop-filter: blur(8px);
}

body.home-page .link-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.24);
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.42);
}

body.home-page .primary-card {
    background: linear-gradient(135deg, #6d4aa8 0%, #4f67c7 100%);
}

body.home-page .link-grid .link-card:nth-child(1) {
    background: linear-gradient(135deg, rgba(109, 74, 168, 0.92) 0%, rgba(79, 103, 199, 0.92) 100%);
}

body.home-page .link-grid .link-card:nth-child(2) {
    background: linear-gradient(135deg, rgba(47, 143, 122, 0.92) 0%, rgba(52, 137, 161, 0.92) 100%);
}

body.home-page .link-grid .link-card:nth-child(3) {
    background: linear-gradient(135deg, rgba(162, 116, 45, 0.92) 0%, rgba(168, 99, 47, 0.92) 100%);
}

body.home-page .link-grid .link-card:nth-child(4) {
    background: linear-gradient(135deg, rgba(53, 111, 154, 0.92) 0%, rgba(107, 90, 168, 0.92) 100%);
}

body.home-page .link-card-index {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #f8fafc;
    font-size: 1rem;
    font-weight: 800;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 8px 18px rgba(2, 6, 23, 0.15);
}

body.home-page .link-card > div {
    min-width: 0;
}

body.home-page .link-card h2 {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.1;
}

body.home-page .link-card p {
    margin: 0.2rem 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.82rem;
}

body.home-page .link-card-meta {
    display: none;
}

body.home-page .link-card-meta span {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.55rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

body.home-page .link-card-cta {
    color: #ffffff;
    font-weight: 700;
    white-space: nowrap;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 8px 16px rgba(2, 6, 23, 0.16);
    font-size: 0.82rem;
}

body.home-page .social-panel,
body.home-page .exclusive-content {
    padding: 1.15rem;
}

body.home-page .ad-banner {
    display: grid;
    place-items: center;
    background: rgba(15, 23, 42, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    box-shadow: 0 20px 48px rgba(2, 6, 23, 0.28);
    backdrop-filter: blur(14px);
    padding: 0.6rem;
    overflow: hidden;
    width: 100%;
    border-width: 1px;
    color: #e2e8f0;
    cursor: pointer;
    transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
    text-align: center;
    appearance: none;
}

body.home-page .ad-banner:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 24px 56px rgba(2, 6, 23, 0.34);
}

body.home-page .ad-banner:focus-visible {
    outline: 2px solid rgba(148, 163, 184, 0.9);
    outline-offset: 3px;
}

body.home-page .ad-banner img {
    display: block;
    width: 100%;
    max-width: 740px;
    height: auto;
    border-radius: 14px;
}

body.home-page .ad-banner-info {
    margin: 0.55rem 0 0;
    font-size: 0.86rem;
    line-height: 1.35;
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.01em;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.22), rgba(99, 102, 241, 0.24));
    border: 1px solid rgba(125, 211, 252, 0.35);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

body.home-page .ad-banner-status {
    margin-top: 0.4rem;
    font-size: 0.82rem;
    color: #f8fafc !important;
    font-weight: 700;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: rgba(2, 6, 23, 0.82) !important;
    border: 1px solid rgba(148, 163, 184, 0.42) !important;
    border-radius: 999px;
    padding: 0.3rem 0.7rem;
    text-shadow: 0 1px 1px rgba(2, 6, 23, 0.75) !important;
}

body.home-page .ad-banner.copied .ad-banner-status {
    color: #86efac;
}

body.home-page .section-heading {
    display: grid;
    gap: 0.45rem;
    margin-bottom: 1rem;
}

body.home-page .social-grid {
    gap: 0.7rem;
}

body.home-page .social-panel .section-heading,
body.home-page .social-grid {
    justify-content: center;
    text-align: center;
}

body.home-page .social-grid {
    justify-content: center;
}

body.home-page .social-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.85rem 1rem;
    border-radius: 18px;
    text-decoration: none;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}

body.home-page .social-chip:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.12);
}

body.home-page .social-chip img {
    width: 22px;
    height: 22px;
    margin: 0;
}

@media (max-width: 992px) {
    body.home-page .hero-panel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    body.home-page .hero-panel {
        padding: 1rem;
    }

    body.home-page .ad-banner {
        padding: 0.45rem;
        border-radius: 16px;
    }

    body.home-page .profile-row {
        flex-direction: column;
    }

    body.home-page .link-card {
        grid-template-columns: auto 1fr;
        gap: 0.8rem;
        padding: 0.75rem 0.85rem;
        min-height: 60px;
        border-radius: 20px;
    }

    body.home-page .link-card-cta {
        grid-column: 2;
        justify-self: start;
    }

    body.home-page .link-card-meta {
        margin-top: 0.6rem;
    }

    body.home-page .hero-copy h1 {
        line-height: 1.02;
    }

    body.home-page .social-grid {
        justify-content: flex-start;
    }
}

/* Estilos para Acordeón Oscuro (Página de Música) */
.accordion-item {
    background-color: rgba(0, 0, 0, 0.5);
    border-color: rgba(0, 255, 255, 0.25);
}
.accordion-header .accordion-button {
    background-color: rgba(0, 255, 255, 0.1);
    color: #00ffff;
    text-shadow: 0 0 5px #00ffff;
}
.accordion-button:focus {
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}
.accordion-button:not(.collapsed) {
    background-color: rgba(0, 255, 255, 0.2);
    color: #00ffff;
}
.accordion-body {
    background-color: rgba(0, 0, 0, 0.7);
    color: #ffffff;
}
.accordion-button::after {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* Player page improvements */
.music-page .content-box {
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
}

.music-page .accordion {
    display: grid;
    gap: 0.8rem;
}

.music-page .accordion-item {
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(9, 14, 33, 0.88), rgba(15, 23, 42, 0.88));
    box-shadow: 0 12px 28px rgba(2, 6, 23, 0.28);
}

.music-page .accordion-header .accordion-button {
    padding: 1rem 1.1rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    border: none;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.12), rgba(99, 102, 241, 0.14));
    color: #e2e8f0;
    text-shadow: none;
}

.music-page .accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(99, 102, 241, 0.22));
    color: #ffffff;
}

.music-page .accordion-body {
    background: rgba(2, 6, 23, 0.45);
    padding: 0.85rem;
}

.music-page .list-group-item {
    background: transparent !important;
    border: none;
    border-radius: 14px;
    margin-bottom: 0.65rem;
    padding: 0;
}

.music-page .song-title {
    width: 100%;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(51, 65, 85, 0.7));
    color: #e2e8f0;
    font-weight: 600;
}

.music-page .song-title::after {
    content: "Escuchar";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
    padding: 0.35rem 0.72rem;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.22);
    border: 1px solid rgba(129, 140, 248, 0.38);
    color: #e0e7ff;
}

.music-page .song-title:hover {
    color: #ffffff;
    transform: translateY(-1px);
    border-color: rgba(99, 102, 241, 0.42);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.28);
}

.music-page .audio-container {
    display: none !important;
}

.music-page .audio-container audio {
    display: none;
}

body.player-modal-open .site-nav,
body.player-modal-open .main-content,
body.player-modal-open footer {
    filter: blur(6px);
}

.mini-player-overlay {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(2, 6, 23, 0.52);
    display: grid;
    place-items: center;
    padding: 1rem;
}

.mini-player-overlay[hidden] {
    display: none;
}

.mini-player-window {
    width: min(460px, 94vw);
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: linear-gradient(160deg, rgba(15, 23, 42, 0.93), rgba(30, 41, 59, 0.92));
    box-shadow: 0 22px 56px rgba(2, 6, 23, 0.55);
    backdrop-filter: blur(14px);
    padding: 1rem;
    position: relative;
}

.mini-player-kicker {
    margin: 0;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #93c5fd;
    font-weight: 700;
}

.mini-player-title {
    margin: 0.5rem 0 1rem;
    font-size: 1.05rem;
    line-height: 1.35;
    color: #f8fafc;
    font-weight: 700;
}

.mini-player-controls {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem;
    border-radius: 12px;
    border: 1px solid rgba(129, 140, 248, 0.3);
    background: rgba(2, 6, 23, 0.45);
}

.mini-player-play {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(99, 102, 241, 0.4);
}

.mini-player-progress {
    width: 100%;
    accent-color: #818cf8;
    cursor: pointer;
}

.mini-player-time {
    font-size: 0.76rem;
    font-weight: 700;
    color: #cbd5e1;
    min-width: 84px;
    text-align: right;
}

.mini-player-close {
    position: absolute;
    top: 0.45rem;
    right: 0.45rem;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(15, 23, 42, 0.65);
    color: #e2e8f0;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .mini-player-controls {
        grid-template-columns: auto 1fr;
        row-gap: 0.45rem;
    }

    .mini-player-time {
        grid-column: 1 / -1;
        text-align: left;
        min-width: 0;
    }
}

.music-page .jp-player {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.65rem;
    padding: 0.45rem 0.5rem;
    border-radius: 10px;
    background: rgba(2, 6, 23, 0.42);
    border: 1px solid rgba(148, 163, 184, 0.24);
}

.music-page .jp-play-btn {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 14px rgba(99, 102, 241, 0.35);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.music-page .jp-play-btn:hover:not(:disabled) {
    transform: translateY(-1px);
}

.music-page .jp-play-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.music-page .jp-progress {
    width: 100%;
    accent-color: #818cf8;
    cursor: pointer;
}

.music-page .jp-time {
    font-size: 0.76rem;
    font-weight: 600;
    color: #cbd5e1;
    min-width: 86px;
    text-align: right;
}

@media (max-width: 768px) {
    .music-page .song-title {
        padding: 0.72rem 0.8rem;
        font-size: 0.9rem;
    }

    .music-page .song-title::after {
        font-size: 0.72rem;
        padding: 0.3rem 0.6rem;
    }

    .music-page .jp-player {
        grid-template-columns: auto 1fr;
        row-gap: 0.4rem;
    }

    .music-page .jp-time {
        grid-column: 1 / -1;
        text-align: left;
        min-width: 0;
    }
}

/* ==================== GOOGLE ADSENSE STYLES ==================== */

.adsense-container {
    background: rgba(30, 41, 59, 0.6);
    border-radius: 16px;
    padding: 20px;
    margin: 40px auto;
    max-width: 1200px;
    text-align: center;
    border: 1px solid rgba(148, 163, 184, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
}

.adsense-container ins {
    display: block !important;
    background: transparent !important;
    text-align: center;
}

/* Anuncio responsivo inline */
.adsense-inline {
    margin: 20px 0;
    padding: 15px;
    background: rgba(30, 41, 59, 0.5);
    border-left: 4px solid #6366f1;
    border-radius: 8px;
    text-align: center;
}

/* Video Previews (Blog) */
.video-preview-container {
    max-width: 600px;
    margin: 1.5rem auto;
}

.video-thumbnail-wrapper {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.video-thumbnail-wrapper img {
    transition: transform 0.5s ease, filter 0.3s ease;
}

.video-thumbnail-wrapper:hover {
    transform: scale(1.02);
    border-color: var(--primary-color);
}

.video-thumbnail-wrapper:hover img {
    transform: scale(1.05);
    filter: brightness(0.7);
}

.play-button-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background: rgba(99, 102, 241, 0.9);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.5);
    opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease;
}

.video-thumbnail-wrapper:hover .play-button-overlay {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
    background: #ec4899;
}

@media (max-width: 768px) {
    .play-button-overlay {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }
}

/* Texto "Anuncio" discreto */
.adsense-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .adsense-container {
        padding: 15px;
        margin: 25px auto;
    }
    
    .adsense-between-posts {
        margin: 20px auto;
        padding: 15px;
    }
    
    .adsense-container ins {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .adsense-container {
        padding: 12px;
        margin: 20px auto;
    }
    
    .adsense-between-posts {
        margin: 15px auto;
        padding: 12px;
    }
}
/* Estilos para Posts del Foro y Blog */
.post-card.pinned {
    border: 2px solid #38bdf8 !important;
    background: linear-gradient(145deg, #1e293b, #0f172a) !important;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
}

.post-card.pinned::before {
    content: "📌 ANUNCIO OFICIAL";
    display: inline-block;
    background: #38bdf8;
    color: #000;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.post-interactions {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.post-stat {
    font-size: 0.9rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* --- MEJORAS DE UI PARA POSTS Y COMENTARIOS --- */
.post-card {
    background: rgba(30, 41, 59, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.post-card:hover {
    border-color: rgba(56, 189, 248, 0.4);
    transform: translateY(-2px);
}

.author-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #38bdf8, #818cf8);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.post-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 15px 0 10px 0;
    color: #f8fafc;
}

.post-excerpt {
    color: #cbd5e1;
    line-height: 1.6;
    font-size: 1rem;
}

.btn-like {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 99px;
    padding: 5px 15px;
    transition: all 0.2s;
}

.btn-like.active {
    background: #ef4444;
    color: white;
}

.btn-comment {
    background: rgba(56, 189, 248, 0.1);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 99px;
    padding: 5px 15px;
}

/* Sección de comentarios tipo Chat */
.comments-section {
    background: rgba(15, 23, 42, 0.6);
    border-radius: 15px;
    padding: 15px;
    margin-top: 15px;
}

.reply-card {
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 12px !important;
    padding: 12px !important;
    margin-bottom: 10px;
    border-left: 3px solid #38bdf8;
}

.comment-input {
    background: rgba(2, 6, 23, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    border-radius: 10px !important;
}

.comment-input:focus {
    border-color: #38bdf8 !important;
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2) !important;
}

/* --- EFECTO DE PARTÍCULAS NEÓN --- */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(circle at center, #0f172a 0%, #020617 100%);
}
