* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: #f0f8ff;
    color: #0a2b3e;
    padding: 20px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    background: white;
    border-radius: 28px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    overflow: hidden;
    padding: 20px 30px 40px;
}

h1 {
    color: #1e6f9f;
    font-weight: 700;
    border-left: 6px solid #1e88e5;
    padding-left: 20px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

h1 i {
    background: #1e88e5;
    color: white;
    padding: 10px;
    border-radius: 40px;
}

.post-form {
    background: #eef5fc;
    border-radius: 24px;
    padding: 20px;
    margin-bottom: 35px;
    border: 1px solid #cde3f5;
}

.form-group {
    margin-bottom: 16px;
}

input, textarea, select {
    width: 100%;
    padding: 12px 16px;
    border-radius: 40px;
    border: 1px solid #bbdef5;
    background: white;
    font-size: 15px;
    transition: 0.2s;
}

textarea {
    border-radius: 24px;
    resize: vertical;
    min-height: 80px;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #1e88e5;
    box-shadow: 0 0 0 3px rgba(30,136,229,0.1);
}

.btn {
    background: #1e88e5;
    border: none;
    color: white;
    padding: 10px 25px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn:hover {
    background: #0b5e8a;
    transform: scale(0.97);
}

.btn-outline {
    background: transparent;
    border: 1px solid #1e88e5;
    color: #1e88e5;
}

.btn-outline:hover {
    background: #1e88e5;
    color: white;
}

.btn-danger {
    background: #e63946;
}

.btn-danger:hover {
    background: #b91c2c;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.barra-filtros {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    gap: 12px;
    background: #ffffffdd;
    padding: 12px 18px;
    border-radius: 60px;
    border: 1px solid #cfe3fc;
}

.search-box {
    display: flex;
    gap: 8px;
    flex: 2;
    min-width: 180px;
}

.search-box input {
    border-radius: 40px;
    margin: 0;
}

.priv-filter {
    display: flex;
    gap: 10px;
    align-items: center;
    background: #e3f2fd;
    padding: 5px 15px;
    border-radius: 40px;
}

.badge {
    background: #d4e7f7;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 500;
}

.badge.privado {
    background: #ffebcc;
    color: #b45f06;
}

.badge.publico {
    background: #c8e6e0;
    color: #0a5e44;
}

.posts-grid {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-top: 15px;
}

.post-card {
    background: white;
    border-radius: 28px;
    box-shadow: 0 5px 18px rgba(0,0,0,0.05);
    border: 1px solid #d9ebff;
    overflow: hidden;
    transition: 0.2s;
}

.post-header {
    padding: 18px 24px 8px 24px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    border-bottom: 1px solid #eef2fa;
}

.post-titulo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0b3b5f;
}

.post-fecha {
    font-size: 12px;
    color: #5f8bb3;
}

.post-contenido {
    padding: 18px 24px;
}

.post-texto {
    margin-bottom: 20px;
    line-height: 1.5;
    white-space: pre-wrap;
}

.media-content {
    margin: 15px 0;
}

.media-content img {
    max-width: 100%;
    border-radius: 24px;
    max-height: 380px;
    object-fit: cover;
    border: 1px solid #cfe3fc;
}

.media-content iframe, .media-content video {
    max-width: 100%;
    border-radius: 24px;
    border: none;
}

.link-url a {
    color: #1e88e5;
    text-decoration: none;
    word-break: break-all;
    background: #eef5fc;
    padding: 8px 14px;
    border-radius: 50px;
    display: inline-block;
}

.post-actions {
    padding: 12px 24px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    border-top: 1px solid #ecf3f9;
    background: #fafdff;
}

.compartir-btns {
    display: flex;
    gap: 10px;
    margin-left: auto;
    align-items: center;
}

.comentarios-final {
    margin-top: 50px;
    background: #eef5fc;
    border-radius: 28px;
    padding: 25px;
    border: 1px solid #cde3f5;
}

.comentarios-list {
    max-height: 280px;
    overflow-y: auto;
    margin: 20px 0;
    background: white;
    border-radius: 24px;
    padding: 12px;
}

.comentario-item {
    padding: 12px;
    border-bottom: 1px solid #e2edf7;
    margin-bottom: 8px;
}

.comentario-nombre {
    font-weight: bold;
    color: #1e6f9f;
}

.comentario-texto {
    margin-top: 5px;
}

.comentario-fecha {
    font-size: 10px;
    color: gray;
}

.modal-edit {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-card {
    background: white;
    max-width: 650px;
    width: 90%;
    border-radius: 32px;
    padding: 25px;
    box-shadow: 0 20px 35px rgba(0,0,0,0.2);
}

@media (max-width: 700px) {
    .container { padding: 15px; }
    .post-header { flex-direction: column; gap: 6px; }
}

hr { margin: 15px 0; }
i { margin-right: 4px; }