/* ============================================
   ESTILOS GENERALES (sin clases ni divs)
   ============================================ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #eef3f8;
  color: #1f2937;
  line-height: 1.5;
}

/* ============================================
   BARRA SUPERIOR
   ============================================ */
#topbar {
  height: 60px;
  background: #0a0a5c;
  border-bottom: 6px solid #d4b43f;
}

/* ============================================
   HERO
   ============================================ */
#hero {
  padding: 30px 24px 44px;
}

#hero-card {
  max-width: 1150px;
  margin: 0 auto;
  min-height: 390px;
  background: #ffffff;
  border: 1px solid #dbe5ee;
  border-radius: 28px;
  position: relative;
  text-align: center;
  padding: 32px 24px 40px;
}

#logo,
#footer-logo {
  width: 120px;
  height: 120px;
  border-radius: 24px;
  background: #ffffff;
  border: 2px solid #dbe5ee;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#logo img,
#footer-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}

#logo {
  position: absolute;
  top: 20px;
  left: 24px;
}

#hero-card h1 {
  color: #0e0c8c;
  font-size: clamp(24px, 2.8vw, 34px);
  margin-top: 72px;
  letter-spacing: 0.06em;
  font-weight: 800;
}

#image-placeholder {
  margin: 24px auto 16px;
  font-size: 96px;
  color: #c2d3e3;
  background: #f3f7fb;
  width: min(320px, 80%);
  border-radius: 24px;
  padding: 24px;
}

#hero-card h2 {
  font-size: clamp(20px, 2vw, 30px);
  line-height: 1.2;
  color: #1f2937;
  max-width: 760px;
  margin: 0 auto;
}

/* ============================================
   CONTENIDO PRINCIPAL
   ============================================ */
main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px 40px;
}

/* Etiquetas de sección */
#section-label,
#support-label {
  width: fit-content;
  margin: 20px 0 0;
  padding: 10px 24px;
  background: #ffffff;
  border: 1px solid #dbe5ee;
  border-left: 6px solid #d4b43f;
  text-align: center;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.08em;
  border-radius: 999px;
}

#support-label {
  width: auto;
  margin-bottom: 5px;
}

/* ============================================
   TARJETAS DE ROLES
   ============================================ */
#cards {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 26px 0 40px;
  flex-wrap: wrap;
}

#cards article {
  width: 270px;
  min-height: 170px;
  background: #ffffff;
  border-radius: 22px;
  text-align: center;
  padding: 22px 18px;
  border: 1px solid #dbe5ee;
}

#cards article i {
  font-size: 24px;
  margin-bottom: 10px;
  color: #0e0c8c;
}

#cards article h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

#cards article p {
  font-size: 15px;
  color: #64748b;
  font-weight: 600;
}

/* ============================================
   TÍTULOS DE BARRAS (Avisos y Descargas)
   ============================================ */
#avisos-title,
#downloads-title {
  background: #ffffff;
  border: 1px solid #dbe5ee;
  text-align: center;
  padding: 12px;
  font-size: 22px;
  margin-top: 8px;
  border-radius: 14px;
}

/* ============================================
   AVISOS + CALENDARIO
   ============================================ */
#avisos {
  display: grid;
  grid-template-columns: 280px repeat(3, minmax(210px, 1fr));
  gap: 24px;
  padding: 16px 0 36px;
}

/* Calendario */
#calendar {
  background: #ffffff;
  border: 1px solid #dbe5ee;
  border-radius: 18px;
  align-self: start;
  margin-top: 30px;
  overflow: hidden;
}

#calendar header {
  background: #0a0a5c;
  color: white;
  display: flex;
  justify-content: space-between;
  padding: 10px 14px;
  font-size: 14px;
}

#calendar table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  font-size: 14px;
}

#calendar th,
#calendar td {
  padding: 8px;
  color: #1f2937;
}

#active-day {
  background: #d4b43f;
  color: #0a0a5c;
  border-radius: 999px;
  font-weight: 700;
}

/* Noticias (avisos) */
#avisos > article {
  /* cada artículo de aviso (excepto el calendario) */
}

#avisos > article h3 {
  text-align: center;
  font-size: 18px;
  margin-bottom: 10px;
  color: #0a0a5c;
}

#avisos > article p {
  background: #ffffff;
  border: 1px solid #dbe5ee;
  min-height: 255px;
  padding: 14px;
  font-size: 14px;
  line-height: 1.5;
  border-radius: 16px;
  color: #64748b;
}

/* ============================================
   DESCARGAS (BOTONES)
   ============================================ */
#downloads {
  display: flex;
  gap: 18px;
  padding: 14px 0 45px;
  flex-wrap: wrap;
  justify-content: center;
}

#downloads > section {
  width: 250px;
  text-align: center;
  background: #ffffff;
  border: 1px solid #dbe5ee;
  border-radius: 20px;
  padding: 16px 14px;
}

#downloads > section h3 {
  display: inline-block;
  background: #0e0c8c;
  color: white;
  border-radius: 999px;
  padding: 10px 16px;
  margin-bottom: 12px;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

#downloads button {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid #dbe5ee;
  border-radius: 999px;
  cursor: pointer;
  background: #ffffff;
  color: #0a0a5c;
}

#downloads button:hover {
  background: #d4b43f;
  color: #fff;
}

/* ============================================
   PIE DE PÁGINA
   ============================================ */
footer {
  max-width: 1240px;
  margin: 0 auto 40px;
  min-height: 260px;
  background: #ffffff;
  border: 1px solid #dbe5ee;
  border-radius: 24px;
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 1fr 0.7fr;
  align-items: center;
  gap: 30px;
  padding: 40px 44px;
}

#contacto {
  font-style: normal;
  line-height: 1.7;
  font-size: 15px;
  color: #64748b;
}

#ubicacion h3 {
  margin-bottom: 8px;
  color: #0a0a5c;
}

#mapa {
  width: 100%;
  max-width: 275px;
  height: 120px;
  background: #eef5fa;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #002e6d;
  font-size: 34px;
}

#social {
  display: flex;
  gap: 20px;
  font-size: 20px;
  color: #d4b43f;
}

#social i {
  cursor: default;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  #hero-card {
    padding-top: 150px;
  }

  #logo {
    left: 50%;
    transform: translateX(-50%);
  }

  #hero-card h1 {
    font-size: 26px;
  }

  #hero-card h2 {
    font-size: 24px;
  }

  #avisos {
    grid-template-columns: 1fr;
  }

  #calendar,
  #avisos > article {
    width: 90%;
    margin: auto;
  }

  footer {
    grid-template-columns: 1fr;
    text-align: center;
  }

  #footer-logo,
  #mapa {
    margin: auto;
  }

  #social {
    justify-content: center;
  }
}