Estilos específicos para esta página
.pagina-categorias {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Contenedor principal */
.categorias-container {
    width: 100%;
    max-width: 1200px;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    /* align-items: center; */
    
}

/* Contenedor de tarjetas */
.categorias-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    width: 100%;
}

/* Tarjetas de categoría */
.categoria-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease-in-out;
    width: 220px;
    padding: 10px;
}

.categoria-card:hover {
    transform: scale(1.05);
}

.categoria-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
}

.categoria-card label {
    display: block
}

/* Breadcrumb (barra de navegación) */
.breadcrumb {
    margin: 20px;
    font-size: 18px;
}

.breadcrumb a {
    text-decoration: none;
    color: #007BFF;
    font-weight: bold;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Contenedor de noticias con el mismo estilo que las categorías */
.categorias-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    width: 100%;
}

.categoria-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease-in-out;
    width: 220px;
    padding: 10px;
}

.categoria-card:hover {
    transform: scale(1.05);
}

.categoria-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
}

.categoria-card label {
    display: block;
    font-size: 18px;
    margin-top: 10px;
    font-weight: bold;
    color: #333;
}

a {
    text-decoration: none;
}





/* Breadcrumb (barra de navegación) */
.breadcrumb {
    margin: 20px;
    font-size: 18px;
}

.breadcrumb a {
    text-decoration: none;
    color: #007BFF;
    font-weight: bold;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Contenedor de la noticia */
.noticia-container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

/* Tarjeta de noticia */
.noticia-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease-in-out;
    width: 90%;
    max-width: 800px;
    padding: 20px;
    margin-bottom: 20px;
}

.noticia-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    margin: 15px 0;
}

.noticia-card h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 10px;
}

.noticia-card h3 {
    font-size: 22px;
    color: #555;
    margin-bottom: 10px;
}

.noticia-card p {
    font-size: 18px;
    color: #444;
    line-height: 1.6;
    text-align: justify;
}




/* transisiones */
.img_categoria {
    opacity: 0; /* La imagen comienza invisible */
    transition: opacity 3s ease; /* Transición de 3 segundos */
}

.categoria-card:hover .img_categoria {
    opacity: 1; /* La imagen se vuelve visible al pasar el ratón */
}
