/* ==========================================================
   BLOG TANGO · listado (home.php / archive.php) y entrada (single.php)
   ========================================================== */

.tango-blog,
.tango-post {
    --tb-bg: #0A0A0A;
    --tb-card: #141414;
    --tb-line: rgba(255, 255, 255, 0.10);
    --tb-text: #D1D5DB;
    --tb-muted: #9CA3AF;
    --tb-white: #FFFFFF;
    --tb-gold: #D4AF37;
    --tb-blue: #6391CC;
    background: var(--tb-bg);
    color: var(--tb-text);
    font-family: 'Montserrat', sans-serif;
    padding: 150px 0 110px;
}

.tango-blog__inner {
    width: 85%;
    max-width: 1240px;
    margin: 0 auto;
}

/* ---------- Cabecera ---------- */
.tango-blog__header {
    text-align: center;
    margin-bottom: 60px;
}

.tango-blog__title,
.tango-post__title {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    color: var(--tb-white);
    font-size: 48px;
    line-height: 1.15;
    margin: 0;
}

.tango-blog__sep {
    display: block;
    width: 100px;
    height: 2px;
    background: var(--tb-blue);
    margin: 18px auto 22px;
}

.tango-blog__intro {
    max-width: 680px;
    margin: 0 auto;
}

.tango-blog__intro p {
    color: var(--tb-text);
    font-size: 15px;
    line-height: 1.7;
    letter-spacing: 0.04em;
    margin: 0;
}

/* ---------- Tarjetas ---------- */
.tango-blog__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
}

.tango-card {
    display: flex;
    flex-direction: column;
    background: var(--tb-card);
    border: 1px solid var(--tb-line);
    border-radius: 5px;
    overflow: hidden;
    transition: border-color .3s ease, transform .3s ease;
}

.tango-card:hover {
    border-color: rgba(212, 175, 55, 0.45);
    transform: translateY(-2px);
}

.tango-card__media {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #1c1c1c;
}

.tango-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .6s ease;
}

.tango-card:hover .tango-card__media img {
    transform: scale(1.04);
}

.tango-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: rgba(255, 255, 255, 0.25);
    font-family: 'Playfair Display', serif;
    font-size: 34px;
    letter-spacing: 0.3em;
}

.tango-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 26px 26px 30px;
}

.tango-card__date,
.tango-post__date {
    color: var(--tb-blue);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.tango-card__title {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-size: 24px;
    line-height: 1.3;
    margin: 12px 0 14px;
}

.tango-card__title a {
    color: var(--tb-white);
}

.tango-card__title a:hover {
    color: var(--tb-gold);
}

.tango-card__excerpt {
    color: var(--tb-text);
    font-size: 14px;
    line-height: 1.7;
    margin: 0 0 22px;
}

.tango-card__more {
    margin-top: auto;
    align-self: flex-start;
    color: var(--tb-gold);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(212, 175, 55, 0.5);
    padding-bottom: 3px;
}

.tango-card__more:hover {
    color: var(--tb-white);
    border-color: var(--tb-white);
}

.tango-blog__empty {
    text-align: center;
    color: var(--tb-muted);
}

/* ---------- Paginación ---------- */
.tango-blog .navigation.pagination {
    margin-top: 56px;
}

.tango-blog .nav-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.tango-blog .page-numbers {
    color: var(--tb-text);
    border: 1px solid var(--tb-line);
    padding: 8px 14px;
    font-size: 13px;
    letter-spacing: 0.08em;
}

.tango-blog .page-numbers.current,
.tango-blog a.page-numbers:hover {
    color: #000;
    background: var(--tb-gold);
    border-color: var(--tb-gold);
}

.tango-blog .screen-reader-text,
.tango-card .screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

/* ---------- Entrada ---------- */
.tango-post__article {
    width: 90%;
    max-width: 820px;
    margin: 0 auto;
}

.tango-post__header {
    text-align: center;
    margin-bottom: 40px;
}

.tango-post__back {
    display: inline-block;
    margin-bottom: 26px;
    color: var(--tb-muted);
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.tango-post__back:hover {
    color: var(--tb-gold);
}

.tango-post__title {
    font-size: 44px;
}

.tango-post__image {
    margin: 0 0 48px;
    border-radius: 5px;
    overflow: hidden;
}

.tango-post__image img {
    width: 100%;
    height: auto;
    display: block;
}

.tango-post__content {
    font-size: 16px;
    line-height: 1.8;
    letter-spacing: 0.01em;
}

.tango-post__content > * + * {
    margin-top: 0;
}

.tango-post__content p {
    color: var(--tb-text);
    margin: 0 0 22px;
}

.tango-post__content h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    color: var(--tb-white);
    font-size: 32px;
    line-height: 1.25;
    margin: 52px 0 18px;
}

.tango-post__content h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--tb-white);
    font-size: 18px;
    line-height: 1.4;
    margin: 32px 0 10px;
}

.tango-post__content a {
    color: var(--tb-gold);
    border-bottom: 1px solid rgba(212, 175, 55, 0.45);
    transition: color .2s ease, border-color .2s ease;
}

.tango-post__content a:hover {
    color: var(--tb-white);
    border-color: var(--tb-white);
}

.tango-post__content strong {
    color: var(--tb-white);
    font-weight: 600;
}

.tango-post__content ul,
.tango-post__content ol {
    margin: 0 0 26px;
    padding-left: 0;
    list-style: none;
}

.tango-post__content li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 10px;
}

.tango-post__content ul li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 0.75em;
    width: 8px;
    height: 2px;
    background: var(--tb-gold);
}

/* CTA final */
.tango-post__cta {
    margin-top: 64px;
    padding: 44px 32px;
    text-align: center;
    background: var(--tb-card);
    border: 1px solid var(--tb-line);
    border-radius: 5px;
}

.tango-post__cta-eyebrow {
    color: var(--tb-blue);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin: 0 0 10px;
}

.tango-post__cta-title {
    font-family: 'Playfair Display', serif;
    color: var(--tb-white);
    font-size: 28px;
    line-height: 1.3;
    margin: 0 0 26px;
}

.tango-post__cta-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
}

.tango-btn {
    display: inline-block;
    background: var(--tb-gold);
    color: #000;
    border: 2px solid var(--tb-gold);
    border-radius: 2px;
    padding: 12px 36px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transition: .4s ease all;
}

.tango-btn:hover {
    background: transparent;
    color: var(--tb-gold);
}

.tango-btn--outline {
    background: transparent;
    color: var(--tb-white);
    border-color: rgba(255, 255, 255, 0.6);
}

.tango-btn--outline:hover {
    color: #000;
    background: var(--tb-white);
    border-color: var(--tb-white);
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .tango-blog,
    .tango-post {
        padding: 110px 0 120px;
    }

    .tango-blog__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }
}

@media (max-width: 750px) {
    .tango-blog__inner {
        width: auto;
        margin: 0 16px;
    }

    .tango-blog__header {
        margin-bottom: 36px;
    }

    .tango-blog__title {
        font-size: 34px;
    }

    .tango-blog__grid {
        grid-template-columns: 1fr;
    }

    .tango-post__article {
        width: auto;
        margin: 0 16px;
    }

    .tango-post__title {
        font-size: 30px;
    }

    .tango-post__image {
        margin-bottom: 32px;
    }

    .tango-post__content {
        font-size: 15px;
        line-height: 1.75;
    }

    .tango-post__content h2 {
        font-size: 25px;
        margin-top: 40px;
    }

    .tango-post__content h3 {
        font-size: 16px;
    }

    .tango-post__cta {
        padding: 34px 20px;
    }

    .tango-post__cta-title {
        font-size: 22px;
    }

    .tango-btn {
        width: 100%;
        text-align: center;
    }
}
