/* === Estilo Moderno Institucional Azul Claro === */
/* Basado en el CSS original, adaptado a directrices 2025. */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
 div.paragraph { margin: 0.5em 0; line-height:1.5; }
 p { margin: 0.5em 0; line-height:1.5; }
 .clear { clear:both; height:20px; }
a { text-decoration:none; }
 a:link, a:visited { color: #6688ff; }
 div.paragraph a:hover, a:active { border-bottom:#963 1px solid; }

/* ===== Fondo y texto base ===== */
body {
  background-color: #f5f7f8; /* PARA CAMBIAR EL COLOR DE FONDO */
  font: 76%/1.6em verdana, tahoma, arial, sans-serif;
  color: #333;
  text-align: left;
  padding-top: 20px;
}


/* ===== Contenedor general ===== */
#container {
  max-width: 1250px;
  margin: 0 auto;
  background: transparent;
  border-radius: 0px;
  box-shadow: none;
  padding: 0px 20px;
  margin-left: auto;
  margin-right: auto;
}


/* ===== Cabecera con imagen ===== */
#header-outer {
  width: 100%;
  height: 200px; /* ajusta según la proporción de tu imagen */
  background-size: cover;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ===== Cabecera ===== */
#headertext {
  text-align: center;
  margin-bottom: 1.5rem;
}

#headertext h1 {
  font-size: 1.7em;
  font-family: Georgia, Verdana, Arial, Serif;
  color: #000;
  margin-bottom: 0.3em;
  font-variant: small-caps;
  text-align: left;
}

#headertext h2 {
  font-size: 1em;
  font-family: Tahoma, Verdana, Arial, Serif;
  font-weight: normal;
  color: #000;
  text-align: left;
}

/* ==============================
   NAVEGACIÓN PRINCIPAL (WEEBLY)
   ============================== */

#navigation {
  background: #598a99;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  font-family: Trebuchet MS, Tahoma, Verdana, Arial, Serif;
  max-width: 900px;
  margin: 0 auto 1.5rem;
  position: relative;
  z-index: 9999;
}

/* UL principal */
#navigation > ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

/* Items */
#navigation li {
  position: relative;
}

/* Enlaces principales */
#navigation a {
  display: block;
  padding: 10px 18px;
  color: #ffffff;
  font-weight: bold;
  text-decoration: none;
  white-space: nowrap;
}

#navigation li:hover > a {
  background: #4a7d89;
}

/* ==============================
   SUBMENÚS WEEBLY
   ============================== */

/* Contenedor del submenú
   Weebly lo genera con style="display:none" */
#navigation .weebly-menu-wrap {
  position: absolute;
  top: 100%;
  left: 0;
  background: #598a99;
  min-width: 220px;
  display: none !important;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  z-index: 1000;
}

/* Mostrar submenú al hover */
#navigation li:hover > .weebly-menu-wrap {
  display: block !important;
}

/* Lista interna */
#navigation .weebly-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Enlaces del submenú */
#navigation .weebly-menu li a {
  padding: 10px 15px;
  font-weight: normal;
}

#navigation .weebly-menu li a:hover {
  background: #4a7d89;
}

/* ==============================
   SUB-SUBMENÚS (3er nivel)
   ============================== */

#navigation .weebly-menu-wrap .weebly-menu-wrap {
  top: 0;
  left: 100%;
  border-radius: 0 6px 6px 0;
}

/* ==============================
   AJUSTES DE SEGURIDAD
   ============================== */

/* Evita interferencias globales */
#navigation a:hover {
  border-bottom: none;
  text-decoration: none;
}

/* Evita que el menú se corte */
#navigation,
#navigation * {
  box-sizing: border-box;
}

/* ===== Contenido ===== */
#content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
  max-width: 1250px;
  margin-left: auto;
  margin-right: auto;
}

#content-main {
  flex: 1 1 70%;
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #dde4e6;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Títulos del contenido */
#content h1,
#content h2,
#content h3,
#content h4,
#content h5,
#content h6 {
  color: #000;
  text-align: left;
  line-height: 1.4;
  margin: 1em 0 0.5em;
}

/* Espaciado entre párrafos personalizados */
div.paragraph {
  margin-bottom: 1.5rem; /* puedes ajustar el valor: 1rem = 16px aprox */
}

#content h1 { font-size: 1.6em; }
#content h2 { font-size: 1.4em; }
#content h3 { font-size: 1.2em; }
#content h4 { font-size: 1.05em; }

/* Texto justificado */
#content p,
#content-main p,
div.paragraph p {
  text-align: justify;
  margin-bottom: 1rem;
}

/* Listas */
#content ul,
#content ol {
  margin: 0.5rem 1.5rem;
  padding: 0;
}

#content ul li,
#content ol li {
  margin-bottom: 0.5rem;
}

/* ===== Barra lateral ===== */
#sidebar {
  flex: 1 1 25%;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #dde4e6;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  padding: 1rem 1.5rem;
  font-size: 0.95em;
}

li.sidebox {
  background: #f0f6f7;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.05);
}

/* ===== Enlaces ===== */
a {
  color: #598a99;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #4a7d89;
  text-decoration: underline;
}

/* ===== Formularios ===== */
input.textbox,
textarea {
  background: #fff;
  border: 1px solid #ccc;
  padding: 6px;
  border-radius: 5px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}

input.textbox:focus,
textarea:focus {
  border-color: #598a99;
  box-shadow: 0 0 0 3px rgba(89, 138, 153, 0.2);
  outline: none;
}

/* ===== Botones ===== */
button,
input[type="submit"],
#submit {
  background: #598a99;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 14px;
  cursor: pointer;
  transition: background 0.3s ease;
}

button:hover,
input[type="submit"]:hover,
#submit:hover {
  background: #4a7d89;
}

/* ===== Pie de página ===== */
#footer {
  text-align: center;
  color: #666;
  font-size: 0.9em;
  padding: 1.5rem 0;
  background: #ffffff80;
  border-radius: 8px;
  border-top: 1px solid #cfd7da;
}

/* ===== Responsividad ===== */
@media (max-width: 768px) {
  #content {
    flex-direction: column;
  }

  #content-main,
  #sidebar {
    flex: 1 1 100%;
  }

  #navigation ul {
    flex-direction: column;
  }

  #navigation ul li a {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }
}


/* AÑADIDO POR PROBLEMAS AL CENTRAR TODO*/

#content,
#weebly_page_content_container,
#container {
  max-width: 1250px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  width: 100% !important;
}

#headertext::after {
  content: "";
  display: block;
  clear: both;
}
