@charset "UTF-8";
/**
 * single-news.css — Bajo Nalón Tema WP
 *
 * Estilos de la plantilla de noticia individual (single.php).
 * Extraído de styles.css legacy durante el sprint de design tokens
 * y refactorizado para consumir los tokens del Kit de Elementor +
 * tokens técnicos de tokens.css.
 */

/* ─── Barra de progreso de lectura ──────────────────────────────────────── */
.reading-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    /* Un poco más fina para que sea más elegante */
    z-index: 10000; /* 1 use, unique to component (por encima de --bn-z-toast intencionadamente) */
    /* Siempre por encima de todo */
    background: rgba(255, 255, 255, 0.1); /* 1 use, unique to component */
}

.reading-progress-bar {
    height: 100%;
    background: var(--e-global-color-primary);
    width: 0%;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px color-mix(in srgb, var(--e-global-color-primary) 50%, transparent);
}

/* ─── Ajuste del header SOLO en noticias ────────────────────────────────── */
.single-news-article .site-header {
    padding-top: 4px;
}

.single-news-article {
    background: #fdfdfd; /* 1 use, unique to component */
    color: #333; /* 1 use, unique to component */
    font-family: var(--e-global-typography-text-font-family);
}

/* ─── Hero de la noticia ────────────────────────────────────────────────── */
.news-hero {
    height: 70vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    /* Centrado vertical */
    justify-content: center;
    padding: 0 5%;
    position: relative;
    text-align: center;
}

.news-hero-container {
    max-width: 1100px; /* 1 use, unique to component */
    z-index: 2;
}

.news-meta {
    margin-bottom: 25px;
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.news-category a {
    background: var(--e-global-color-primary);
    color: var(--bn-color-white);
    padding: 8px 18px;
    border-radius: 50px; /* 1 use, unique to component (pill local distinto a --bn-radius-pill) */
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 4px 15px color-mix(in srgb, var(--e-global-color-primary) 40%, transparent);
    transition: all 0.3s;
}

.news-category a:hover {
    transform: scale(1.05);
    background: var(--e-global-color-secondary);
}

.news-date,
.news-reading-time {
    color: rgba(255, 255, 255, 0.9); /* 1 use, unique to component */
    font-size: 0.95rem;
    font-weight: 500;
}

.news-title {
    color: var(--bn-color-white);
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 900;
    line-height: 1;
    margin: 0;
    text-shadow: 0 10px 40px rgba(0, 0, 0, 0.6); /* 1 use, unique to component */
    letter-spacing: -2px;
}

/* ─── Contenedor principal del contenido ────────────────────────────────── */
.news-content-container {
    max-width: 1300px; /* 1 use, unique to component */
    margin: -100px auto 60px;
    /* Más elevado */
    background: var(--bn-color-white);
    padding: 80px 100px;
    border-radius: 40px; /* 1 use, unique to component */
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.12); /* 1 use, unique to component */
    position: relative;
    z-index: 5;
}

.news-main-content {
    font-size: 1.2rem;
    line-height: 2;
    color: #2c3e50; /* 1 use, unique to component */
    letter-spacing: -0.01em;
}

.news-main-content p {
    margin-bottom: 2rem;
}

.news-main-content h2,
.news-main-content h3 {
    color: var(--bn-color-surface-dark);
    margin-top: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1px;
}

.news-main-content h2 {
    font-size: 2.2rem;
}

.news-main-content h3 {
    font-size: 1.8rem;
}

.news-main-content blockquote {
    margin: 3rem 0;
    padding: 40px;
    background: #f8fcfd; /* 1 use, unique to component */
    border-left: 8px solid var(--e-global-color-primary);
    font-style: italic;
    font-size: 1.5rem;
    color: var(--bn-color-surface-dark);
    border-radius: 0 var(--bn-radius-lg) var(--bn-radius-lg) 0;
}

.news-main-content img {
    max-width: 100%;
    height: auto;
    border-radius: 25px; /* 1 use, unique to component */
    margin: 40px 0;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1); /* 1 use, unique to component */
}

/* ─── Pie de la noticia: tags + share ───────────────────────────────────── */
.news-footer {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 2px solid var(--bn-color-border-soft);
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    gap: 60px;
    /* Más espacio entre etiquetas y compartir */
}

.news-tags span {
    display: block;
    font-weight: 800;
    font-size: 0.8rem;
    margin-bottom: 10px;
    color: #999; /* 1 use, unique to component */
}

.news-tags a {
    color: var(--bn-color-surface-dark);
    text-decoration: none;
    background: #f4f7f8; /* 1 use, unique to component */
    padding: 8px 18px;
    border-radius: 50px; /* 1 use, unique to component */
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
    margin-right: 8px;
}

.news-tags a:hover {
    background: var(--bn-color-surface-dark);
    color: var(--bn-color-white);
}

.news-share {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.news-share span {
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: #999; /* 1 use, unique to component */
    margin-bottom: 10px;
}

.share-icons {
    display: flex;
    gap: 12px;
}

.share-icons a {
    width: 45px;
    height: 45px;
    background: var(--bn-color-white);
    color: var(--bn-color-surface-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid #eee; /* 1 use, unique to component */
}

.share-icons a:hover {
    background: var(--e-global-color-primary);
    color: var(--bn-color-white);
    border-color: var(--e-global-color-primary);
    transform: translateY(-5px) scale(1.1);
}

/* ─── Botón "volver a noticias" ─────────────────────────────────────────── */
.back-to-news-container {
    margin-bottom: 40px;
    text-align: left;
}

.back-to-news-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #999; /* 1 use, unique to component */
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.back-to-news-btn:hover {
    color: var(--e-global-color-primary);
    gap: 15px;
    /* Pequeño desplazamiento al pasar el ratón */
}

/* ─── Navegación entre noticias ─────────────────────────────────────────── */
.news-navigation {
    max-width: 1000px; /* 1 use, unique to component */
    margin: 40px auto 100px;
    padding: 0 20px;
}

.nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.nav-prev-box,
.nav-next-box {
    background: var(--bn-color-white);
    padding: 30px;
    border-radius: 25px; /* 1 use, unique to component */
    border: 1px solid #eee; /* 1 use, unique to component */
    transition: all 0.3s;
}

.nav-prev-box:hover,
.nav-next-box:hover {
    border-color: var(--e-global-color-primary);
    box-shadow: 0 15px 35px color-mix(in srgb, var(--e-global-color-primary) 10%, transparent);
}

.nav-links a {
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.nav-label {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--e-global-color-primary);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.nav-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--bn-color-surface-dark);
    line-height: 1.3;
    transition: color 0.3s;
}

.nav-prev-box:hover .nav-title,
.nav-next-box:hover .nav-title {
    color: var(--e-global-color-primary);
}

/* ─── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .news-content-container {
        padding: 60px 50px;
        margin-left: 20px;
        margin-right: 20px;
    }
}

@media (max-width: 768px) {
    .news-hero {
        height: 50vh;
    }

    .news-content-container {
        padding: 40px 30px;
        margin-top: 0;
        border-radius: 0;
    }

    .news-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .news-share {
        align-items: flex-start;
    }

    .nav-links {
        grid-template-columns: 1fr;
    }
}
