 body {
      font-family: Arial, sans-serif;
      margin: 0;
      padding: 0;
      overflow-x: hidden;
      background-color: #fff;
    }

    /* ======== ENCABEZADO ======== */
    /* ==== ESTILOS GENERALES ==== */
header {
  background-color: #ffffff;
  color: rgb(12, 107, 61);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  position: relative;
}

header h1 {
  margin: 0;
  font-size: 1em;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}

nav ul li {
  position: relative;
}

nav ul li a {
  color: rgb(0, 112, 30);
  text-decoration: none;
  padding: 10px 15px;
  display: block;
}

nav ul li a:hover {
  border-bottom: solid rgb(31, 78, 20);
}

/* ==== SUBMENÚ ==== */
/* ==== SUBMENÚ ==== */
.submenu-items {
  display: none;
  position: absolute;
  background-color: #ffffff;
  top: 100%;
  left: 0;
  min-width: 180px;
  flex-direction: column;
  z-index: 10;

  /* Animación */
  opacity: 0;
  transform: translateY(5px);
  transition: opacity .25s ease, transform .25s ease;
}

.submenu.open .submenu-items {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

/* ==== MENÚ HAMBURGUESA (MÓVIL) ==== */
.menu-toggle {
  display: none;
  position: absolute;
  top: 10px;
  right: 20px;
  z-index: 10000;
  font-size: 2rem;
  background: transparent;
  border: none;
  color: rgb(10, 82, 17);
  cursor: pointer;
}

/* ==== RESPONSIVE ==== */
@media (max-width: 768px) {
  header{
    z-index: 9999;
  }
  nav.menu {
    position: absolute;
    top: 60px;
    left: 0;
    background-color: #c3c3c3;
    width: 100%;
    display: none;
    flex-direction: column;
    z-index: 9999;
  }

  nav.menu.active {
    display: flex;
  }

  nav ul {
    flex-direction: column;
  }

  nav ul li {
    width: 100%;
  }

  .submenu-items {
    max-height: 0;
    overflow: hidden;
    position: static;
    background-color: #a3a3a3;
    opacity: 0;
    transform: translateY(-5px);
    transition: max_height 0.3s ease-out;
  }

  .submenu.open .submenu-items {
    display: flex;
    opacity: 1;
    max-height: 500px;
    transform: translateY(0);
  }

  .menu-toggle {
    display: block;
  }
}

/* ======= TITULOS ======= */
.titulo_comunicados {
  font-size: clamp(28px, 6vw, 50px);
  text-align: center;
  margin: 30px 0;
  background: linear-gradient(270deg, rgb(113, 255, 81), rgb(52, 116, 52));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.titulo_conv {
  font-size: clamp(20px, 4vw, 40px);
  font-weight: bold;
  padding-left: 20px;
  margin-bottom: 20px;
  color: rgb(0, 129, 71);
}

/* -------- CARDS RESPONSIVAS -------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  max-width: 1200px;   /* ancho máximo del área de tarjetas */
  margin: auto;        /* centra las tarjetas */
  padding: 20px;
}
.card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 5px 10px 10px rgba(0,0,0,0.15);
  overflow: hidden;
  text-align: center;
}

.card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.card h3 {
  margin: 10px 0 0;
  font-size: 1.1em;
  font-weight: bold;
}

.card small {
  display: block;
  font-size: 0.85em;
  color: #444;
  margin: 3px 0;
}

.card p {
  padding: 0 15px;
  font-size: 0.9em;
  color: #666;
}

/* ======= BOTÓN VER MÁS ======= */
.btn-ver-mas {
  display: block;
  width: 80%;
  margin: 15px auto 20px;
  padding: 10px;
  background-color: #21b45c;
  color: white;
  font-weight: bold;
  text-decoration: none;
  border-radius: 10px;
  transition: 0.3s;
}

.btn-ver-mas:hover {
  background-color: #1f2326;
}

/* ======= MENU RESPONSIVE ======= */
.menu-toggle {
  display: none;
  font-size: 30px;
  background: none;
  border: none;
  color: black;
  cursor: pointer;
}

@media (max-width: 768px) {

  nav.menu {
    display: none;
    flex-direction: column;
    background: #eee;
    width: 100%;
    padding: 10px 0;
    position: absolute;
    top: 60px;
    left: 0;
    z-index: 999;
  }

  nav.menu.active {
    display: flex;
  }

  nav ul {
    flex-direction: column;
  }

  .menu-toggle {
    display: block;
  }

}
