:root {
  /* Mantenemos solo la altura del encabezado para acomodar el logo */
  --md-header-height: 80px; 
}

/* 1. Ajuste del contenedor y logo horizontal */
.md-header__title {
  margin-left: 0 !important;
}

.md-header__button.md-logo img {
  height: 75px !important; /* <--- Modifica este valor (ej. 55px, 65px, 80px) para cambiar el tamaño a tu gusto */
  width: auto !important;  /* Mantiene la proporción original de la imagen automáticamente */
  display: block !important;
  object-fit: contain !important;
}

/* 2. Cuadrícula de 4 columnas para las tarjetas (estilo Caltech) */
.md-typeset .grid-4-cols {
  grid-template-columns: repeat(4, 1fr) !important;
}

/* Baja a 2 columnas en tablets/pantallas medianas */
@media screen and (max-width: 76.25em) {
  .md-typeset .grid-4-cols {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}


/* Mantiene 1 sola columna en dispositivos móviles */
@media screen and (max-width: 45em) {
  .md-typeset .grid-4-cols {
    grid-template-columns: 1fr !important;
  }
}

/* --- SECCIÓN HERO (Por defecto en PC: Lado a lado) --- */
.hero-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-bottom: 20px;
  width: 100%;
}

.hero-logo {
  flex: 1;
  max-width: 680px;
  text-align: center;
}

.hero-img {
  flex: 1;
  max-width: 410px;
  text-align: center;
}

/* --- SOLO PARA CELULARES (Pantallas menores a 48em / 768px) --- */
@media screen and (max-width: 48em) {
  .hero-banner {
    flex-direction: column !important;
  }
  
  .hero-logo {
    order: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  
  .hero-img {
    order: 2 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}
/* 1. Aumentar el tamaño de los íconos en las tarjetas (Grid Cards) */
.grid.cards .icon svg {
  width: 50px !important;  /* Ajusta este valor a tu gusto (ej. 35px, 50px) */
  height: 50px !important;
}

/* 2. Aumentar el tamaño de los íconos en los títulos (Noticias y Producción) */
h3 svg, h3 .twemoji {
  width: 35px !important;  /* Ajusta este valor a tu gusto */
  height: 35px !important;
  vertical-align: middle;  /* Mantiene el ícono alineado con el texto del título */
  margin-right: 8px;       /* Da un poco de respiro entre el ícono y la primera letra */
}

/* 3. Aumentar el tamaño de los íconos en las listas (Opcional) */
li svg, li .twemoji {
  width: 25px !important;
  height: 25px !important;
  vertical-align: sub;
}