:root {
            --bg: #f5f7fa;
            --accent: #ffd300;
            --accent-soft: #fff8e7;
            --text-main: #1a202c;
            --text-muted: #718096;
            --white: #ffffff;
            --border: #e2e8f0;
        }

        body {
            font-family: 'Inter', sans-serif;
            background-color: var(--bg);
            margin: 0;
            padding: 20px;
            color: var(--text-main);
        }

        .forum-container {
            max-width: 900px;
            margin: 0 auto;
        }

        /* --- BUSCADOR Y BOTÓN NUEVO --- */
        .forum-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 30px;
            background: var(--white);
            padding: 20px;
            border-radius: 15px;
            box-shadow: 0 4px 6px rgba(0,0,0,0.05);
        }

        .search-forum {
            flex: 1;
            margin-right: 20px;
            padding: 12px 20px;
            border-radius: 25px;
            border: 1px solid var(--border);
            outline: none;
            background: #f8fafc;
        }

        .btn-post {
            background: var(--accent);
            border: none;
            padding: 12px 25px;
            border-radius: 25px;
            font-weight: 700;
            cursor: pointer;
            transition: 0.3s;
        }

        .btn-post:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(255, 211, 0, 0.3); }

        /* --- LISTA DE PUBLICACIONES --- */
        .post-card {
            background: var(--white);
            border-radius: 15px;
            padding: 25px;
            margin-bottom: 20px;
            border: 1px solid var(--border);
            transition: border-color 0.3s;
        }

        .post-card:hover { border-color: var(--accent); }

        .post-user-info {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 15px;
        }

        .user-avatar {
            width: 40px;
            height: 40px;
            background: var(--accent-soft);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            border: 2px solid var(--accent);
        }

        .post-meta { font-size: 13px; color: var(--text-muted); }
        .post-user-name { font-weight: 700; color: var(--text-main); }

        .post-title {
            font-size: 20px;
            font-weight: 700;
            margin: 0 0 10px 0;
            color: var(--text-main);
        }

        .post-content {
            font-size: 15px;
            line-height: 1.6;
            color: #4a5568;
            margin-bottom: 20px;
        }

        .post-tags {
            display: flex;
            gap: 10px;
            margin-bottom: 20px;
        }

        .tag {
            background: #edf2f7;
            padding: 5px 12px;
            border-radius: 15px;
            font-size: 12px;
            color: var(--text-muted);
            font-weight: 600;
        }

        /* --- BOTONES DE INTERACCIÓN --- */
        .post-actions {
            display: flex;
            gap: 20px;
            border-top: 1px solid #f1f5f9;
            padding-top: 15px;
        }

        .action-btn {
            background: none;
            border: none;
            color: var(--text-muted);
            font-weight: 600;
            font-size: 14px;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .action-btn:hover { color: var(--text-main); }
        .action-btn.like:hover { color: #e53e3e; }

       /* Estilos del Modal - Versión Amiztli Pastel */
.modal {
    display: none; 
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(255, 252, 230, 0.4); /* Fondo crema muy sutil */
    backdrop-filter: blur(8px);
}

.modal-content {
    background-color: #FFFDF0; /* Amarillo crema muy clarito (Vainilla) */
    margin: 5% auto;
    padding: 25px;
    width: 500px;
    border-radius: 15px;
    color: #5D542B; /* Café oscuro suave para que el texto sea legible */
    box-shadow: 0 15px 35px rgba(255, 200, 0, 0.15); /* Sombra con un toque ámbar */
    border: 1px solid #FDF2B5; /* Borde amarillo pastel */
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1.5px solid #FDF2B5;
    padding-bottom: 15px;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
    color: #8B7A2B; /* Amarillo mostaza oscuro para el título */
}

.close-modal { color: #D4C58D; font-size: 28px; cursor: pointer; }
.close-modal:hover { color: #8B7A2B; }

.user-info-modal { display: flex; align-items: center; margin: 20px 0; }

.privacy-select {
    background: #FEF9D9; /* Fondo de selección amarillo claro */
    color: #8B7A2B;
    border: 1px solid #F3E7A1;
    border-radius: 8px;
    font-size: 13px;
    padding: 4px 8px;
    outline: none;
}

#post-title-input, #post-content-input {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #F3E7A1;
    background: #FEF9D9;
    color: #8B7A2B;
    margin-bottom: 15px;
    font-size: 14px;
}