﻿:root {
    --navy: #0b1f3a;
    --navy2: #12345d;
    --gold: #b08d57;
    --text: #0f172a;
    --muted: #475569;
    --line: #e5e7eb;
    --card: #ffffff;
    --radius: 20px;
    --shadow: 0 14px 34px rgba(15,23,42,.10);
}

.blog-wrap {
    width: min(1140px, calc(100% - 36px));
    margin: 26px auto 50px;
}

.blog-head {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 10px 22px rgba(15,23,42,.06);
    padding: 22px;
    margin-bottom: 18px;
    position: relative;
    overflow: hidden;
}

    .blog-head::before {
        content: "";
        position: absolute;
        right: -70px;
        top: -80px;
        width: 260px;
        height: 260px;
        background: radial-gradient(circle, rgba(176,141,87,.20), transparent 60%);
    }

    .blog-head h2 {
        margin: 0 0 8px;
        color: var(--navy);
        font-weight: 950;
        letter-spacing: -.3px;
        font-size: clamp(26px, 3.2vw, 36px);
    }

    .blog-head p {
        margin: 0;
        color: var(--muted);
        line-height: 1.75;
    }

.blog-grid {
    display: grid;
    grid-template-columns: 1.6fr .9fr;
    gap: 18px;
    align-items: start;
}

.blog-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.post-card {
    background: var(--card);
    border: 1px solid rgba(229,231,235,.95);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px 22px;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

    .post-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 20px 44px rgba(15,23,42,.12);
        border-color: rgba(11,31,58,.20);
    }

.post-title {
    margin: 0 0 10px;
    color: var(--navy);
    font-weight: 950;
    letter-spacing: -.2px;
    font-size: 18px;
    line-height: 1.3;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 12px;
}

.chip {
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid rgba(176,141,87,.35);
    background: rgba(176,141,87,.10);
    color: #5a4528;
    font-weight: 900;
    font-size: 12px;
}

.dot {
    opacity: .6;
}

.post-content {
    color: rgba(15,23,42,.86);
    line-height: 1.9;
    font-size: 14.8px;
}

.post-empty {
    background: #fff;
    border: 1px dashed rgba(11,31,58,.28);
    border-radius: var(--radius);
    padding: 22px;
    color: var(--muted);
}

/* Admin */
.blog-admin {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px 20px 18px;
    position: sticky;
    top: 92px;
}

    .blog-admin h2 {
        margin: 0 0 6px;
        color: var(--navy);
        font-weight: 950;
        font-size: 18px;
    }

.admin-sub {
    margin: 0 0 14px;
    color: var(--muted);
    line-height: 1.6;
    font-size: 13.5px;
}

.form-block label {
    display: block;
    margin: 12px 0 6px;
    color: rgba(15,23,42,.75);
    font-weight: 800;
    font-size: 13px;
}

.inp, .txt {
    width: 100%;
    padding: 12px 12px;
    border-radius: 12px;
    border: 1px solid var(--line);
    outline: none;
    font-size: 14.5px;
    background: #fff;
}

.txt {
    resize: vertical;
    min-height: 140px;
}

    .inp:focus, .txt:focus {
        border-color: rgba(176,141,87,.9);
        box-shadow: 0 0 0 4px rgba(176,141,87,.18);
    }

.btn-save {
    width: 100%;
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--navy);
    background: var(--navy);
    color: #fff;
    font-weight: 950;
    cursor: pointer;
}

    .btn-save:hover {
        filter: brightness(1.06);
    }

.admin-tip {
    margin-top: 14px;
    padding: 12px 12px;
    border-radius: 14px;
    border: 1px solid rgba(176,141,87,.25);
    background: rgba(176,141,87,.08);
    color: rgba(15,23,42,.80);
    font-size: 13px;
    line-height: 1.6;
}

/* Comentarios */
.cmt-wrap {
    margin-top: 16px;
    border-top: 1px solid #e5e7eb;
    padding-top: 14px;
}

.cmt-title {
    margin: 0 0 10px;
    color: #0b1f3a;
    font-weight: 900;
    font-size: 14px;
}

.cmt-item {
    padding: 12px 0;
    border-bottom: 1px solid #eef2f7;
}

.cmt-head {
    display: flex;
    gap: 10px;
    align-items: center;
    color: #0f172a;
    flex-wrap: wrap;
}

.cmt-date {
    color: #64748b;
    font-size: 12px;
}

.cmt-body {
    margin-top: 6px;
    color: rgba(15,23,42,.86);
    line-height: 1.7;
}

.cmt-replybtn {
    margin-top: 8px;
    background: transparent;
    border: 0;
    color: #12345d;
    font-weight: 800;
    cursor: pointer;
    padding: 0;
}

.cmt-reply {
    margin: 10px 0 0 18px;
    padding: 10px 12px;
    border-left: 3px solid rgba(176,141,87,.45);
    background: rgba(11,31,58,.03);
    border-radius: 12px;
}

.cmt-form {
    margin-top: 12px;
    display: grid;
    gap: 10px;
}

.cmt-form--reply {
    margin-left: 18px;
}

/* Responsive */
@media (max-width: 980px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-admin {
        position: static;
        top: auto;
    }
}
