/* ==========================
   NOTICIA INDIVIDUAL
   Scope: #articles-main
   (no choca con #articles ni #home-articles)
========================== */

#articles-main {
    width: 100%;
    max-width: 1100px;
    margin: 50px auto 80px;
}

/* Enlace "Volver a noticias" */
.noticia-breadcrumb {
    margin-bottom: -50px;
    margin-top: 80px;
}

.noticia-breadcrumb a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: white;
    font-weight: 700;
    font-size: .9rem;
    padding: 10px 20px;
    border-radius: 30px;
    background: #5CA32B; /* Color de fondo con transparencia */
    box-shadow: 0 6px 16px rgba(0, 0, 0, .08);
    transition: .3s;
    margin-bottom: -90px;
    margin-top: -20px;
}

.noticia-breadcrumb a:hover {
    background: #1269AE;
    color: #fff;
    transform: translateX(-4px);
}

.new-volver-wrap {
    margin-bottom: 0px;
    margin-top: 0px;
}

.new-volver-wrap a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: white;
    font-weight: 700;
    font-size: .9rem;
    padding: 10px 20px;
    border-radius: 30px;
    background: #5CA32B; /* Color de fondo con transparencia */
    box-shadow: 0 6px 16px rgba(0, 0, 0, .08);
    transition: .3s;
    margin-bottom: 42px;
    margin-top: -45px;
    margin-left: 935px;
}

.new-volver-wrap a:hover {
    background: #1269AE;
    color: #fff;
    transform: translateX(-4px);
}

#articles-main h2{
    grid-column:1/-1;
    width:fit-content;
    margin:0 auto 50px;
    padding:15px 45px;
    font-size:2.5rem;
    color:white;
    background:#fff;
    border:3px solid transparent;
    border-radius:50px;
    background-image:
        linear-gradient(rgb(62, 137, 194),rgb(52, 115, 174)),
        linear-gradient(135deg,#1269AE,#5CA32B);
    background-origin:border-box;
    background-clip:padding-box,border-box;
    box-shadow:0 12px 30px rgba(0,0,0,.12);
    transition:all .35s ease;
    margin-bottom: -50px;
    margin-top: -40px;
}

#articles-main h2::after{
    display:none;
}

#articles-main h2:hover{
    transform:translateY(-5px) scale(1.05);
    box-shadow:0 18px 40px rgba(18,105,174,.25);
    text-shadow:0 0 10px rgba(18,105,174,.5);
    cursor:alias;
    color:rgb(207, 211, 218);
}

/* Tarjeta de la noticia */
.noticia-individual {
    background: #fff;
    border-radius: 20px;
    padding: 50px 55px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, .1);
}

.noticia-individual .data {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: "Inter", sans-serif;
    font-size: .85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #5CA32B;
    margin-bottom: 18px;
}

.noticia-individual .data i {
    font-size: .9rem;
}

.noticia-individual h1,
.noticia-individual h4 {
    font-size: 2rem;
    line-height: 1.35;
    color: #1269AE;
    margin: 0 0 30px;
    padding-bottom: 22px;
    position: relative;
    text-align: center;
    margin-top: 31px;
}

.noticia-individual h1::after,
.noticia-individual h4::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 70px;
    height: 3px;
    border-radius: 20px;
}

.noticia-individual p {
    font-family: "Inter", sans-serif;
    font-size: 1.05rem;
    line-height: 1.95;
    color: black;
    text-align: justify;
    margin: 0 0 22px;
}

.noticia-individual p:first-of-type::first-letter {
    float: left;
    font-family: Georgia, serif;
    font-size: 3.4rem;
    font-weight: 700;
    line-height: 1;
    color: #1269AE;
    padding: 4px 10px 0 0;
}

.noticia-individual p:last-of-type {
    margin-bottom: 0;
}

.noticia-individual .noticia-imagen {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 1400px;
    margin: 10px auto 30px;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .12);
    border: 2px solid gray;
}

.firma-noticia {
    margin-top: 35px;
    padding-top: 20px;
    border-top: 2px solid #e2e8ef;
    text-align: right;
    font-style: normal;
    line-height: 1.6;
}

.firma-noticia strong {
    font-style: normal;
    font-weight: 700;
    color: #1269AE;
}

/* ==========================
   RESPONSIVE
========================== */

@media (max-width: 1000px) {

    .new-volver-wrap a{
        text-align: center;
        margin-top: 20px;
        display: none;
    }

    .noticia-breadcrumb {
        text-align: center;
        display: none;
    }

    #articles-main h2{
        padding: 0 15px;
        display: none;
    }
}

@media (max-width: 600px) {

    #articles-main {
        padding: 0 15px;
    }

    .noticia-individual {
        padding: 34px 26px;
    }

    .noticia-individual h1,
    .noticia-individual h4 {
        font-size: 1.5rem;
    }

    .noticia-individual p {
        text-align: left;
    }

    .noticia-breadcrumb {
        font-size: .85rem;
        margin-bottom: 20px;
        text-align: center;
        display: none;
    }

    .new-volver-wrap {
        text-align: center;
        margin-top: 20px;
        display: none;
    }
}