/* Estilo para la sección completa */
.contenedor-nuevas-noticias {
    position: relative;
    max-width: 1200px;
    margin: 40px auto;
    padding: 30px;
    background: transparent;
    border-radius: 15px; /* Bordes redondeados */
    overflow: hidden; /* Para asegurar que todo quede dentro */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Sombra sutil */
}

/* Decoración en las esquinas con figuras geométricas doradas */
.contenedor-nuevas-noticias::before,
.contenedor-nuevas-noticias::after,
.contenedor-nuevas-noticias .corner-decor {
    content: "";
    position: absolute;
    background: linear-gradient(135deg, #c8a060, #f4dba3);
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

/* Esquina superior izquierda */
.contenedor-nuevas-noticias::before {
    width: 60px;
    height: 60px;
    top: -20px;
    left: -20px;
    transform: rotate(45deg); /* Crea un rombo */
}

/* Esquina inferior derecha */
.contenedor-nuevas-noticias::after {
    width: 60px;
    height: 60px;
    bottom: -20px;
    right: -20px;
    transform: rotate(45deg); /* Crea un rombo */
}

/* Fondo decorativo sutil en el centro */
.contenedor-nuevas-noticias .corner-decor {
    width: 120px;
    height: 120px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    opacity: 0.2; /* Muy sutil */
    z-index: -1; /* Mantener detrás del contenido */
}

/* Líneas diagonales doradas dentro del contenedor */
.contenedor-nuevas-noticias .diagonal-line {
    position: absolute;
    top: 20%;
    left: 50%;
    width: 70%;
    height: 4px;
    background: linear-gradient(135deg, #c8a060, #f4dba3);
    transform: translateX(-50%) rotate(45deg);
    z-index: -2;
}


/* Estilos del título */
.titulo-seccion {
    font-size: 2rem;
    text-align: center;
    color: #c8a060;
    text-shadow: 2px 2px 10px rgba(200, 160, 96, 0.5);
}

/* Tarjetas de noticias */
.tarjeta-noticia {
    background: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    padding: 20px;
    transition: transform 0.3s ease;
}

.tarjeta-noticia:hover {
    transform: scale(1.03);
    box-shadow: 0px 0px 10px rgba(200, 160, 96, 0.5);
}

.titulo-seccion {
    text-align: center;
    font-size: 3.5rem;
    color: #FFF;
    margin-bottom: 20px;
}

.grid-noticias {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.tarjeta-noticia {
    background: linear-gradient(71deg, #080509, #1a171c, #080509);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

.tarjeta-noticia:hover {
    transform: translateY(-10px);
}

.tarjeta-noticia img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.contenido-noticia {
    padding: 15px;
}

.contenido-noticia h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 0 10px;
    background-image: linear-gradient(135deg, #c8a060, #f4dba3, #c8a060); /* Degradado */
    -webkit-background-clip: text;
    color: transparent;
}

.contenido-noticia p {
    font-size: 1rem;
    color: #FFF;
}

.leer-mas {
    display: inline-block;
    margin-top: 10px;
    color: #FFF;
    text-decoration: none;
    font-weight: bold;
}

.leer-mas:hover {
    text-decoration: underline;
}

.tarjeta-noticia {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.tarjeta-noticia.show-noticia {
    opacity: 1;
    transform: translateY(0);
}