/* =======================================================
   ESTRUCTURA PRINCIPAL Y FUENTES 
========================================================== */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: Georgia, 'Times New Roman', Times, serif; 
  margin: 0;
  background-color: #f2f2f2; /* Gris claro */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* =======================================================
   ESTILOS DE ENCABEZADO Y NAVEGACIÓN (DESKTOP)
========================================================== */

/* ENCABEZADO */
.barra-superior {
  background-color: #113b64; 
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px;
  position: relative; /* Para el botón de hamburguesa */
  border-bottom: 4px solid #f5b301;
}

.logo-mini {
  display: block;
}

.logo-mini img {
  width: 50px; 
  height: 50px;
}

.header-title-group {
  display: flex;
  align-items: center;
  gap: 15px;
}

.barra-superior h1 {
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: 28px;
  margin: 0;
  line-height: 1.1;
  text-align: left;
  font-weight: 900;
}

.barra-superior h1 span {
  display: block;
  font-size: 0.85em;
  color: #f5b301;
  font-weight: 700;
  text-align: center; /* Centrado */
}

/* MENÚ (DESKTOP) */
.menu {
  display: block; 
  position: static;
}

.menu ul {
  list-style: none;
  display: flex;
  justify-content: center;
  background-color: #e8e8e8;
  padding: 20px 0;
  margin: 0;
  flex-direction: row; /* Horizontalidad en desktop */
  gap: 20px; 
}

.menu li {
  margin: 0;
  font-weight: 700;
  border: none;
}

/* Estado normal de los botones */
.menu a {
  text-decoration: none;
  color: white;
  transition: all 0.3s ease;
  border-radius: 5px;
  background-color: #2a5a8a; 
  box-shadow: 0 1px 3px rgba(0,0,0,0.15); 
  display: inline-block;  
  width: 180px;           
  text-align: center;     
  padding: 8px 0;         
  box-sizing: border-box; 
}

/* Botón al pasar el cursor (Hover) */
.menu a:hover {
  color: #113b64;
  background-color: #f5b301;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2); 
}

/* Botón "activo" (en qué página estás) para Desktop */
.menu a.active {
  background-color: #c3c1bb; 
  color: #113b64;
  box-shadow: none; 
}


/* --- Botón Hamburguesa (Oculto en Desktop) --- */
.hamburger-toggle { display: none; }
.hamburger-button { display: none; }


/* BARRA DE TÍTULO "NOSOTROS" */
.frase-conocenos {
  text-align: left;
  background-color: #3D5F85;
}

.frase-conocenos h2 {
  color: white;
  width: 90%;
  max-width: 1200px; 
  margin: 0 auto; 
  padding: 8px 20px;
  box-sizing: border-box;
  
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-weight: 800;
  font-size: 26px;
}

/* =======================================================
   CONTENIDO PRINCIPAL "NOSOTROS" 
========================================================== */

main {
  flex-grow: 1;
  width: 80%; 
  max-width: 900px; 
  margin: 20px auto; 
  background-color: #fafafa; 
  padding: 20px 0;
  
  border-radius: 10px; 
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); 
}

/* --- ESTILOS DESKTOP "NOSOTROS" --- */
main section {
  padding: 10px 40px; 
  margin: 30px auto; 
  width: 100%; 
  box-sizing: border-box;
}

/* Título con banda amarilla */
main h5 {
  color: #113b64;
  font-size: 24px; 
  background-color: #f5b301; 
  width: 70%;
  border-radius: 20px;
  display: inline-block; 
  padding: 5px 125px; 
  margin-bottom: 25px;
  text-transform: uppercase; 
  font-weight: 900;
}

/* Contenedor principal para limpiar los floats */
.content-wrapper {
    overflow: hidden; 
    margin-bottom: 0;
}

/* Estilos de las imágenes */
.image-container {
    width: 280px; 
    margin-bottom: 15px;
    border: 5px solid #113b64; 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); 
    border-radius: 35px;
    overflow: hidden; 
}

.image-container img {
    width: 100%;
    height: auto;
    display: block;
}

/* Posición de la imagen a la izquierda */
.left-align {
    float: left;
    margin-right: 25px; 
}

/* Posición de la imagen a la derecha */
.right-align {
    float: right;
    margin-left: 25px; 
}

main p {
  color: #113b64;
  font-weight: 500;
  font-size: 16px; 
  line-height: 1.6; 
  text-align: justify; /* Texto justificado (Desktop) */
}

/* Para el párrafo que está debajo del contenido flotante */
main .parrafo-inferior {
    margin-top: 15px; 
    clear: both; 
}



/* =======================================================
   FOOTER Y MENSAJE FINAL 
========================================================== */

.mensaje-final {
  text-align: center;
  color: #113b64;
  font-weight: 700;
  margin: 40px auto;
  padding: 0 10%;
  font-size: 18px;
  background: none; 
}

.frase-final {
  text-align: center;
  background-color: #113b64;
  color: white;
  font-weight: 800;
  padding: 10px 0; 
  font-size: 22px;
}
div1{
  background-color: #f5b301;
  color: #113b64;
  padding: 5px 40px; 
  border-radius: 8px;
  display: inline-block;
  font-size: 20px;
  margin-top: 0px;
  font-weight: 900;
  transition: background-color 0.2s;
}
div1:hover {
  background-color: #e8a800;
}


/* ============================================================
   ESTILOS PARA MÓVIL (MEDIA QUERY)
============================================================
*/
@media (max-width: 768px) {

  /* --- ENCABEZADO Y MENÚ  --- */
  
  .barra-superior { padding: 20px; justify-content: space-between; }
  
  .hamburger-button { 
    display: block; 
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
    background: none; 
    border: none; 
    color: #f5b301; 
    font-size: 32px; 
    cursor: pointer; 
    text-shadow: 0 0 5px rgba(245, 179, 1, 0.5); 
  }
  
/* --- MENÚ: Despliegue Suave  --- */
  .menu {
    display: block; 
    position: absolute;
    top: 100px; 
    left: auto;
    right: 0; 
    width: 60%; 
    
    height: auto; 
    max-height: none; 
    
    background-color: #113b64; 
    z-index: 1000; 
    border-radius:12px; 
    border-left: 2px solid #f5b301; 
    box-shadow: -8px 8px 25px rgba(0, 0, 0, 0.8); 
    
    transform: translateX(100%); 
    visibility: hidden;
    transition: transform 0.3s ease-in-out, visibility 0.3s ease-in-out; 
    
    overflow-y: auto; 
    overflow-x: hidden;
  }
  
  .hamburger-toggle:checked ~ .menu {
    display: block !important; 
    transform: translateX(0);
    visibility: visible;
  }

  .menu ul {
    flex-direction: column;
    padding: 0;
    gap: 0;
    background-color: transparent;
  }

  .menu li {
    width: 100%;
    margin-bottom: 0;
    border-bottom: 1px solid rgba(245, 179, 1, 0.3); 
  }

  .menu li:last-child {
      border-bottom: none;
  }

  .menu a {
    background-color: transparent; 
    color: white; 
    text-align: left; 
    display: block;
    width: 100%;
    padding: 25px 15px; 
    border-radius: 0;
    box-shadow: none;
    box-sizing: border-box; 
    transition: background-color 0.15s ease, color 0.15s ease; 
  }

  .menu a:hover {
    background-color: #f5b301; 
    color: #113b64;
    box-shadow: none;
  }

  .menu a.active {
    background-color: #f5b301; 
    color: #113b64;
    font-weight: 900;
  }
  
  .frase-conocenos h2 {
    font-size: 18px; 
    padding: 10px 20px; 
    width: auto; 
    max-width: none;
    margin: 0;
  }

  /* --- CONTENIDO "NOSOTROS" MÓVIL --- */
  main {
    width: 100%; 
    padding: 0;
    margin: 0;
    display: block; 
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); 
    border-radius: 0; 
  }
  
  main section {
    padding: 15px 20px; 
    margin: 15px 0 0 0; 
    width: auto; 
  }
  
  main h5 {
    font-size: 18px; 
    margin-bottom: 15px;
    width: 100%;
    padding: 8px 20px;
    text-align: left; 
    box-sizing: border-box;
  }
  
  .image-container {
      width: 90%; 
      max-width: 300px; 
      margin: 15px auto; 
      float: none; 
      display: block; 
  }
  
  .left-align, .right-align {
      margin-left: auto;
      margin-right: auto;
  }
  
  main p {
    font-size: 14px; 
    text-align: justify; 
    margin-top: 15px; 
  }


  .mensaje-final { 
    font-size: 8px; 
    padding: 0 15px; 
    margin: 10px auto; 
    background-color: transparent; 
  }
  .frase-final { 
    font-size: 18px; 
    padding: 15px; 
    line-height: 1.4;
  }
  div1{ 
    padding: 6px 25px; 
    font-size: 18px;
    margin-top: 0px;
    font-weight: 900;
  }

} /* --- FIN DEL @media query --- */