/* Reset básico */
html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;   /* Empuja el footer hacia abajo */
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter" , sans-serif
}

/* Fondo general */
body {
  background: #f2f4ff;
  color: #222;
}

/* ----------------------------- */
/* HEADER */
/* ----------------------------- */

/* ----------------------------- */
/* HEADER */
/* ----------------------------- */

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: #334188;
  color: white;

  display: flex;
  align-items: center;
  justify-content: center;  /* CENTRA todo */
  padding: 0 15px;
  z-index: 1000;
}

/* Columna izquierda con logos */
.header-left {
  position: absolute;
  left: 15px;
  display: flex;
  align-items: center;
}

.logo-box {
  display: flex;
  align-items: center;
  gap: 4px; /* logos más juntos */
}

.logo {
  width: 38px;
  height: 38px;
  border-radius: 0%;
  object-fit: cover;
}

/* Texto perfectamente centrado */
.titulo {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  white-space: nowrap;
}

/* Botón hamburguesa */
.menu-btn {
  position: absolute;
  right: 15px;
  font-size: 32px;
  cursor: pointer;
  user-select: none;
}

/* ----------------------------- */
/* PANEL LATERAL */
/* ----------------------------- */

.menu-panel {
  position: fixed;
  right: 0;
  top: 0;
  height: 100vh;
  width: 70%;
  background: #fff;
  box-shadow: -4px 0 10px rgba(0,0,0,0.2);
  padding: 70px 20px;
  transform: translateX(100%);
  transition: 0.35s ease;
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 30;
}

.menu-panel a {
  font-size: 20px;
  color: #3957ED;
  text-decoration: none;
  font-weight: bold;
}

.menu-panel a.external-link {
  margin-top: 12px;
  border-top: 1px solid #e0e0e0;
  padding-top: 12px;
}

/* Fondo oscuro al abrir menú */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0,0,0,0.45);
  display: none;
  z-index: 25;
}

/* ----------------------------- */
/* CONTENIDO */
/* ----------------------------- */

section {
  padding: 90px 20px 20px;
}

/* NOTICIAS */
.slide {
  background: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-radius: 16px;
  margin-bottom: 25px;
  overflow: hidden;
}

.slide img {
  width: 100%;
  display: block;
}

.slide-text {
  padding: 16px;
  font-size: 16px;
  color: #333;
  line-height: 1.4;
}

/* DOCUMENTOS */

#documentos {
  display: none;
}

.doc-item {
  background: white;
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 15px;
  font-size: 18px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.doc-item a {
  color: #3957ED;
  font-weight: bold;
  text-decoration: none;
}

/* Pantallas grandes */
@media (min-width: 768px) {
  body {
    max-width: 650px;
    margin: auto;
    background: #e9e9e9;
  }
}

/* ----------------------------- */
/* FOOTER */
/* ----------------------------- */

.footer {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background: #1f2a68;
  color: white;
  padding: 40px 0;
  margin-top: 40px;
  text-align: center;
}

.footer-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.footer-text {
  margin: 10px 0 20px;
  opacity: 0.9;
}

.footer-item {
  margin: 5px 0;
  opacity: 0.9;
}

.footer-copy {
  margin-top: 25px;
  font-size: 13px;
  opacity: 0.7;
  border-top: 1px solid #ffffff33;
  padding-top: 15px;
}
