/* == BODY Tipografía y fondo general ==*/
body {
  font-family: "Segoe UI", Arial, sans-serif;
   background-color: var(--blanco);
      color: var(--negro);
      background: linear-gradient(180deg, var(--claro, #e9f1f8) 0%, var(--blanco, #ffffff) 100%);
}
/* Quitar borde y outline de todos los enlaces */
#ancla_aside {
    text-decoration: none;   /* quita el subrayado */
    border: none;            /* quita cualquier borde */
    outline: none;           /* quita el borde de foco */
}





/* === COLORES BASE === */
    :root {
      --principal: #6288ba;       /* Azul institucional */
      --oscuro: #2c3e50;          /* Azul oscuro / gris marino */
      --claro: #9bb7d9;           /* Azul grisáceo suave */
        --blanco: #ffffff;
        --negro: #000000;
        --gris: #e0e0e0;
    }



    /* === FONDO CON DOS COLORES: TITULO Y CONTENIDO DE NOTICIAS === */
.fondo2colores { 
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  padding: 2rem;
  background: linear-gradient(180deg, var(--claro) 0%, var(--blanco) 100%);
}

.titulo-logistica {
  text-align: center;
  padding: 1rem 2.5rem;
  margin: 0 auto 2rem auto;
  width: fit-content;

  background-color: var(--principal); /* color distinto */
  color: var(--blanco);

  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 1px;

  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}


/* ===============================
   HEADER DE CATEGORÍA
=============================== */
.categoria-header {
    background: #f4f7fb;              /* fondo distinto */
    border-radius: none;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.imagen-fila {
    width: 100%;
    height: 240px;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.imagen-fila  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* Título */
.categoria-titulo {
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1f2b3a;
}

/* Imagen */
.categoria-imagen {
    width: 100%;
    height: 240px;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.categoria-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Descripción */
.categoria-descripcion {
    color: #555;
    font-size: 1rem;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .categoria-imagen {
        height: 180px;
    }
}

.noticia-meta {
    margin-top: 0.5rem;
}

.noticia-fecha {
    color: #777;
    font-size: 0.9rem;
}

/* Contenedor de la primera noticia */
.caja_noticias .fila-principal {
    background-color: #ffffff;       /* fondo blanco para toda la fila */
    padding: 1.5rem;                 /* espacio interno */
    /* border-radius: 10px;    */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); /* sombra ligera */
    margin-bottom: 1.5rem;           /* separación con otras filas */
    display: flex;
    flex-direction: column;
    gap: 1rem;                        /* separación interna entre título, imagen, descripción y fecha */
}
.titulo-fila{
    margin: 0;
    font-size: 2.6rem;        /* ↑ tamaño más grande para noticia */
    font-weight: 700;         /* más negrita */
    line-height: 1.2;         /* mejor espaciado vertical */
    color: #000000;
}

/* ===============================
   ASIDE: Últimas Noticias
=============================== */
#caja_aside {
    width: 40%;               /* aumenta un poco el ancho */
    max-width: 450px;         /* nuevo ancho máximo */
    min-width: 350px;         /* nuevo ancho mínimo */
    height: 90vh;              
    padding: 5px 20px 20px 20px;

    display: flex;
    flex-direction: column;
    align-items: center;       
    overflow-y: auto;          

    /* Scroll invisible */
    scrollbar-width: none;      /* Firefox */
    -ms-overflow-style: none;   /* IE 10+ */
}

#caja_aside::-webkit-scrollbar {
    display: none;              /* Chrome, Safari y Opera */
}

/* Título "Últimas noticias" */
#texto_noticias_ultimas {
    width: 100%;
    margin-left: 0;            
}

/* CARDS del aside */
#card {
    width: 100%;               /* se adapta al ancho del aside */
    border: none;
    margin: 20px 0;            /* espacio vertical */
    background: none;
}

/* Fila interna del card */
#row_card_aside,
#card .row.g-0 {
    display: flex;
    align-items: flex-start;
}

.card-title {
    color: black;
}

/* Caja imagen (restaurada al tamaño original) */
#caja_imagen {
    padding-top: 30px;
    height: 8rem;              
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
}

#caja_imagen img {
    width: 100%;
    height: 110px;
    object-fit: cover;
}

/* Ajustes de texto en cards */
#card h5,
#card p,
#card small {
    margin-top: 0;
}

/* ===============================
   RESPONSIVE
=============================== */
@media(max-width: 1200px) {
    #caja_aside {
        width: 45%;
        max-width: 420px;
        min-width: 320px;
    }
}

@media(max-width: 992px) {
    #container_blog_aside {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    #caja_noticias,
    #caja_aside {
        width: 95%;
        height: auto !important;
        padding-right: 0;
    }

    .imagen-fila img {
        width: 100%;
        height: auto;
    }
}

@media(max-width: 600px) {
    #card {
        width: 100%;
    }

    .imagen-fila img {
        height: 220px;
        width: 100%;
    }
}
