/* ── Blog: listado de posts ─────────────────────────────────────────────── */
.blog-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.4rem;
    margin-top: 2rem;
}

.blog-post-card {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.blog-post-meta {
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.blog-post-card h3 {
    margin-bottom: 0.5rem;
}

.blog-post-card p {
    min-height: 0;
    flex: 1;
}

.blog-empty-note {
    text-align: center;
    color: var(--text-light);
    padding: 2rem 0;
}

/* ── Blog: artículo individual ──────────────────────────────────────────── */
.article-section {
    padding: 3rem 0 4rem;
}

.article-body {
    max-width: 760px;
    margin: 0 auto;
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.75;
}

.article-body h2 {
    color: var(--text-dark);
    font-size: 1.35rem;
    margin: 2.2rem 0 0.9rem;
}

.article-body h2:first-child {
    margin-top: 0;
}

.article-body h3 {
    color: var(--text-dark);
    font-size: 1.1rem;
    margin: 1.6rem 0 0.7rem;
}

.article-body p {
    margin-bottom: 1rem;
}

.article-body ul,
.article-body ol {
    margin: 0 0 1.2rem 1.2rem;
}

.article-body li {
    margin-bottom: 0.4rem;
}

.article-body strong {
    color: var(--text-dark);
}

/* ── Acordeón de plazos (colapsable, no se fuerza abierto en desktop) ──── */
.plazo-accordion {
    margin: 1rem 0 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.plazo-item {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
}

.plazo-item summary {
    list-style: none;
    cursor: pointer;
    padding: 0.9rem 1.1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.plazo-item summary::-webkit-details-marker {
    display: none;
}

.plazo-item summary::after {
    content: '+';
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.plazo-item[open] summary::after {
    transform: rotate(45deg);
}

.plazo-nombre {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.plazo-mejor {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-left: auto;
    margin-right: 0.6rem;
    white-space: nowrap;
}

.plazo-mejor strong {
    color: #24ca10;
}

.plazo-item-body {
    padding: 0 1.1rem 1rem;
}

.plazo-item-body table {
    margin: 0 0 0.6rem;
}

.plazo-item-body table th,
.plazo-item-body table td {
    padding: 0.4rem 0.5rem;
}

.plazo-item-body p {
    margin-bottom: 0;
    font-size: 0.85rem;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin: 1.4rem 0;
    display: block;
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0 1.6rem;
    font-size: 0.9rem;
}

.article-body th,
.article-body td {
    text-align: left;
    padding: 0.5rem 0.7rem;
    border-bottom: 1px solid var(--border-color);
}

.article-body th {
    color: var(--text-light);
    font-weight: 500;
}

.article-body td strong {
    color: #24ca10;
}

.article-meta {
    max-width: 760px;
    margin: 0 auto 0.5rem;
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.article-disclaimer {
    max-width: 760px;
    margin: 2rem auto 0;
    font-size: 0.8rem;
    color: var(--text-light);
    background: rgba(255, 170, 0, 0.08);
    border: 1px solid rgba(255, 170, 0, 0.2);
    border-radius: 8px;
    padding: 0.7rem 0.9rem;
}

.article-nav-back {
    max-width: 760px;
    margin: 0 auto 1.5rem;
}

.article-nav-back a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.article-nav-back a:hover {
    text-decoration: underline;
}
