/* =======================
   ARTÍCULOS – CONTENEDOR RAÍZ
======================= */
.articulos-page {
    font-family: 'Open Sans', sans-serif;
    color: #e6e6e6;
    line-height: 1.6;
    min-height: 100vh;
}

/* Hero */
.articulos-page .hero-articulos {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    text-align: center;
}

.articulos-page .hero-articulos h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.articulos-page .hero-articulos p {
    font-size: 1.1rem;
    color: #cfcfcf;
}

/* Barra de búsqueda */
.articulos-page .search-bar {
    max-width: 1200px;
    margin: 20px auto 40px;
    display: flex;
    gap: 10px;
}

.articulos-page .search-bar input {
    flex: 1;
    padding: 12px 16px;
    border-radius: 8px;
    border: none;
    font-size: 1rem;
}

.articulos-page .search-bar button {
    padding: 12px 20px;
    border-radius: 8px;
    border: none;
    background-color: #ffffff;
    color: #0f1115;
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s ease;
}

.articulos-page .search-bar button:hover {
    background-color: #d9d9d9;
}

/* Grid de artículos */
.articulos-page .articulos-grid {
    max-width: 1400px;
    margin: 0 auto 80px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

/* Tarjeta de artículo */
.articulos-page .articulo-card {
    background-color: rgba(15, 17, 21, 0.85);
    padding: 20px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.articulos-page .articulo-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
}

.articulos-page .articulo-card h3 {
    font-size: 1.2rem;
    margin-top: 0;
}

.articulos-page .articulo-card p {
    font-size: 0.95rem;
    color: #cfcfcf;
}

.articulos-page .articulo-card a {
    margin-top: auto;
    text-decoration: none;
    font-weight: 500;
    color: #ffffff;
    background-color: #0f1115;
    padding: 8px 16px;
    border-radius: 12px;
    text-align: center;
    transition: 0.3s ease;
}

.articulos-page .articulo-card a:hover {
    background-color: #ffffff;
    color: #0f1115;
    font-weight: 600;
}

/* Hover efecto tarjeta */
.articulos-page .articulo-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* =======================
   RESPONSIVE
======================= */
@media (max-width: 1200px) {
    .articulos-page .articulos-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
}

@media (max-width: 900px) {
    .articulos-page .articulos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 600px) {
    .articulos-page .articulos-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .articulos-page .search-bar {
        flex-direction: column;
    }

    .articulos-page .search-bar button {
        width: 100%;
    }
}

/* Hero flex para título y breadcrumb */
.articulos-page .hero-articulos .hero-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap; /* para que en móvil se apilen */
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Título hero */
.articulos-page .hero-articulos .hero-titulo h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.articulos-page .hero-articulos .hero-titulo p {
    font-size: 1.1rem;
    color: #cfcfcf;
}

.articulos-page .hero-articulos .hero-titulo {
    text-align: left;       /* Justifica el texto a la izquierda */
}

.articulos-page .hero-articulos .hero-titulo h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.articulos-page .hero-articulos .hero-titulo p {
    font-size: 1.1rem;
    color: #cfcfcf;
}

/* Breadcrumb */
.articulos-page .hero-articulos .breadcrumb {
    font-size: 1.15rem;       /* un pelín más grande que antes */
    margin-bottom: 12px;   /* espacio entre breadcrumb y título */
    color: #f2f6f9;
}

.articulos-page .hero-articulos .breadcrumb a {
    text-decoration: none;
    color: #f2f6f9;
    transition: all 0.3s ease;
}

.articulos-page .hero-articulos .breadcrumb a:hover {
    text-decoration: underline;
    color: #42e2ff; /* azul turquesa */
}

.articulos-page .hero-articulos .breadcrumb span {
    color: #cfcfcf; /* el texto final no es enlace */
}


/* =======================
   ARTÍCULO – CONTENEDOR RAÍZ
======================= */
.articulo-page {
    font-family: 'Open Sans', sans-serif;
    color: #e6e6e6;
    line-height: 1.6;
    min-height: 100vh;
}

/* Hero con imagen de fondo */
.articulo-page .hero-articulo {
    background-image: url('img/articulo1-hero.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.articulo-page .hero-articulo .hero-overlay {
    background-color: rgba(15, 17, 21, 0.7);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.articulo-page .hero-articulo h1 {
    font-size: 3.5rem;
    margin-bottom: 12px;
}

.articulo-page .hero-articulo p {
    font-size: 1.8rem;
    color: #cfcfcf;
}

/* Contenido del artículo */
.articulo-page .contenido-articulo {
    max-width: 1000px;
    margin: -40px auto;
    padding: 0 30px;
    border-radius: 0px;
}

.articulo-page .contenido-articulo p {
    margin-bottom: 20px;
    font-size: 1rem;
}

/* Link oficial */
.articulo-page .link-oficial a {
    display: inline-block;
    text-decoration: none;
    color: #ffffff;
    background-color: #03073f;
    padding: 8px 16px;
    border-radius: 0px;
    transition: 0.3s ease;
}

.articulo-page .link-oficial a:hover {
    background-color: #ffffff;
    color: #03073f;
    font-weight: 600;
}

/* Sección comentarios */
.articulo-page .comentarios-articulo {
    max-width: 930px;
    margin: 60px 80px;
    margin-left: 220px;
    padding: 0 20px;
}

.articulo-page .comentarios-articulo h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: #ffffff;
    font-family: 'Open Sans', sans-serif;
}

.articulo-page .comentarios-articulo p {
    font-size: 1.2rem;
    font-family: 'Open Sans', sans-serif;
}

.articulo-page .comentarios-articulo textarea {
    width: 105%;
    min-height: 100px;
    padding: 12px;
    font-size: 1.0rem;
    border-radius: 0px;
    border: none;
    margin-bottom: 12px;
    font-family: 'Open Sans', sans-serif;
    resize: none;

}

.articulo-page .comentarios-articulo button {
    padding: 10px 20px;
    border-radius: 0px;
    border: none;
    font-size: 1.0rem;
    background-color: #ffffff;
    color: #03073f;
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s ease;
}

.articulo-page .comentarios-articulo button:hover {
    background-color: #d9d9d9;
}

/* Comentarios publicados */
.articulo-page .comentario {
    background-color: rgba(15,17,21,0.8);
    padding: 12px 16px;
    border-radius: 0px;
    margin-top: 12px;
    width: 104%;
}

.articulo-page .comentario p {
    margin: 0;
}

.articulo-page .hero-articulo {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* alinea a la izquierda */
    padding: 40px 20px;      /* espacio respecto al borde de la página */
}

.articulo-page .hero-articulo .breadcrumb {
    font-size: 1.15rem;
    margin-bottom: 12px;   /* separa breadcrumb del título */
    color: #cfcfcf;
}

.articulo-page .hero-articulo .breadcrumb a {
    text-decoration: none;
    color: #cfcfcf;
    transition: all 0.3s ease;
}

.articulo-page .hero-articulo .breadcrumb a:hover {
    text-decoration: underline;
    color: #40e0d0; /* azul turquesa */
}

.articulo-page .hero-articulo .breadcrumb span {
    color: #cfcfcf; /* texto final del breadcrumb */
}

/* ============================
   CONTENIDO ARTÍCULO – BLOQUE BLANCO
============================ */

.contenido-articulo {
    display: flex;
    justify-content: center;
    padding: 0rem 1rem 6rem;
    margin-top: -3px;
    background: transparent; /* mantiene tu fondo azul */
}

.contenido-texto {
    background: #ffffff;
    color: #03073f;
    max-width: 1200px;
    width: 100%;
    padding: 3.0rem 3.0rem;
    border-radius: 0px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.contenido-texto p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 0.55px;
    text-align: justify;
}

.no-results-message {
    text-align: center;
    padding: 20px;
    margin: 20px 0;
    background-color: #f4f6f90b; /* Fondo suave rojo */
    color: #ffffff; /* Color del texto */
    font-size: 18px;
    border-radius: 5px;
}
