/**
 * Estilos para Single Noticia (post type: news)
 *
 * @package Grupo_Mexico
 */

/* ========================================
   LAYOUT PRINCIPAL
   ======================================== */

.news-single {
    background-color: #F9FAFB;
    padding: 32px 0 56px;
}

.news-single__container {
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   NAVEGACIÓN (Volver / Ver todo)
   ======================================== */

.news-single__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    margin-bottom: 28px;
}

.news-single__nav--bottom {
    margin-top: 40px;
    margin-bottom: 0;
    padding-top: 32px;
    border-top: 1px solid var(--border, #E5E7EB);
}

.news-single__nav-link {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: var(--accent, #9E0505);
    text-decoration: none;
    transition: color 0.2s ease;
}

.news-single__nav-link:hover {
    color: var(--accent-hover, #800505);
    text-decoration: underline;
}

.news-single__nav-link--all {
    margin-left: auto;
}

/* ========================================
   HEADER (Título + meta)
   ======================================== */

.news-single__header {
    margin-bottom: 28px;
}

.news-single__title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(26px, 4vw, 36px);
    font-weight: 700;
    color: var(--ink-heading-2, #111827);
    margin: 0 0 16px 0;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.news-single__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 28px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: var(--ink-muted, #6B7280);
}

.news-single__meta-item {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
}

.news-single__meta-item strong {
    font-weight: 600;
    color: var(--ink-default, #4B5563);
}

/* ========================================
   IMAGEN (centrada, bonita)
   ======================================== */

.news-single__image {
    width: 100%;
    margin: 0 auto 32px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    background: var(--surface-150, #f5f5f5);
}

.news-single__image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: cover;
    object-position: center;
}

/* ========================================
   CUERPO (texto de la noticia)
   ======================================== */

.news-single__body {
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    line-height: 1.7;
    color: var(--ink-default, #4B5563);
}

.news-single__body p {
    margin: 0 0 1em 0;
}

.news-single__body p:last-child {
    margin-bottom: 0;
}

.news-single__body h2,
.news-single__body h3 {
    font-size: 1.35em;
    font-weight: 600;
    color: var(--ink-heading-2, #111827);
    margin: 1.5em 0 0.5em 0;
    line-height: 1.3;
}

.news-single__body h2:first-child,
.news-single__body h3:first-child {
    margin-top: 0;
}

.news-single__body ul,
.news-single__body ol {
    margin: 1em 0;
    padding-left: 1.5em;
}

.news-single__body a {
    color: var(--accent, #9E0505);
    text-decoration: underline;
}

.news-single__body a:hover {
    color: var(--accent-hover, #800505);
}

.news-single__body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}
