/* Variables Globales / Branding */
:root {
    --primary-dark: #22354C; /* Fondo */
    --accent-neon: #A6EED6; /* Acentos */
    --accent-neon-glow: rgba(166, 238, 214, 0.4);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #FBFBFB; /* Textos */
    --text-muted: rgba(251, 251, 251, 0.7);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset Moderno */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--primary-dark);
    /* Slot para imagen de fondo con overlay oscuro para legibilidad */
    background-image:
        linear-gradient(rgba(34, 53, 76, 0.85), rgba(34, 53, 76, 0.85)),
        url('fondo-placeholder.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-main);
    font-family: 'Montserrat', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    /* Extra gruesa */
    color: var(--text-main);
}



/* --- HEADER & NAV --- */
header {
    background: rgba(34, 53, 76, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2rem 5%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: none;
}

.header-content {
    max-width: 800px;
}

h1 {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 0.5rem;
    color: var(--accent-neon);
}

h1 .accent-text {
    color: var(--accent-neon);
    text-shadow: 0 0 15px var(--accent-neon-glow);
}

.description {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.header-logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--accent-neon);
    /* box-shadow: 0 0 20px var(--accent-neon-glow); removed to avoid "punteado" look */
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- MAIN LAYOUT & COLUMNS --- */
main {
    padding: 5rem 2% 2rem;
}

.columns-outer {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2rem;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-neon) transparent;
}

.columns-outer::-webkit-scrollbar {
    height: 6px;
}

.columns-outer::-webkit-scrollbar-thumb {
    background: var(--accent-neon);
    border-radius: 10px;
}

.columns-container {
    display: flex;
    gap: 1rem;
    width: 100%;
}

.column {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.column-title {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--accent-neon);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.cards-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    overflow-y: auto;
    padding-right: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-neon) transparent;
}

.cards-wrapper::-webkit-scrollbar {
    width: 6px;
}

.cards-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

.cards-wrapper::-webkit-scrollbar-thumb {
    background: var(--accent-neon-glow);
    border-radius: 10px;
}

/* --- CARDS (GLASSMORPISM) --- */
.card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: var(--transition-smooth);
    position: relative;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent, rgba(166, 238, 214, 0.2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(166, 238, 214, 0.3);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), 0 0 15px rgba(166, 238, 214, 0.1);
}

.card-cover {
    height: 80px;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(166, 238, 214, 0.1);
}

.cover-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    color: var(--accent-neon);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    padding: 0 1rem;
    transition: var(--transition-smooth);
    z-index: 2;
}

.card:hover .cover-title {
    transform: translateY(-2px);
}

.card-cover::after {
    display: none;
}

.cover-text {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent-neon);
    opacity: 0.6;
    z-index: 1;
}

.card-content {
    padding: 1rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

.card-desc {
    font-size: 0.9rem;
    color: var(--text-main);
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.card-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0 1.5rem 1.5rem;
}

.pdf-btn {
    background: var(--accent-neon);
    color: var(--primary-dark);
    border: none;
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.pdf-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 0 20px var(--accent-neon-glow);
}

.social-actions {
    display: flex;
    justify-content: flex-start;
    gap: 1rem;
    border-top: 1px solid var(--glass-border);
    padding-top: 1rem;
}

.icon-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.icon-btn:hover {
    color: var(--accent-neon);
}

.icon-btn.active {
    color: #ff4757;
}

.icon-btn.active i {
    font-weight: 900;
}

/* Modal PDF */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(20, 30, 42, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--primary-dark);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    width: 90vw;
    height: 90vh;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 0 40px rgba(166, 238, 214, 0.15);
    overflow: hidden;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    background: var(--accent-neon);
    color: var(--primary-dark);
    border: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    z-index: 20;
    transition: transform 0.2s;
}

.close-btn:hover {
    transform: scale(1.1);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.2rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
}

.modal-actions .pdf-btn {
    font-size: 1rem;
    padding: 0.5rem;
}

.pdf-container {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
}

#pdf-frame {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    background: #fff;
}

/* Footer */
.main-footer {
    text-align: center;
    padding: 2rem 5%;
    background: rgba(0, 0, 0, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: auto;
}

.footer-content {
    font-size: 0.9rem;
    color: rgba(226, 226, 212, 0.7);
}

.footer-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 800;
    transition: opacity 0.3s ease;
    display: inline-block;
    margin-top: 0.5rem;
}

.footer-link:hover {
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 1024px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .header-logo {
        margin: 0 auto;
    }

    .board-container {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .board-container {
        flex-direction: column;
        align-items: stretch;
        gap: 2rem;
        padding: 1.5rem;
        overflow-y: auto;
    }

    .column {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        max-height: none;
    }

    .cards-wrapper {
        max-height: 50vh;
    }

    .modal-content {
        width: 95vw;
        height: 95vh;
    }
}
