/* ========== RESET / BASE ========== */
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html{
  scroll-behavior: smooth;
}

body{
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.7;
  background: #f4f7fc;
  color: #1f2937;
}

a{
  text-decoration: none;
  color: inherit;
}

img{
  max-width: 100%;
  display: block;
}

.container{
  width: min(1200px, 92%);
  margin: auto;
}

/* ========== HEADER ========== */
.site-header{
  background: linear-gradient(135deg, #0b2a6f 0%, #0a4ea3 60%, #083a7a 100%);
  color: #fff;
  box-shadow: 0 14px 35px rgba(2, 6, 23, 0.25);
}

.header-hero{
  padding: 22px 0 14px;
}

.brand{
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 10px;
}

.logo-img{
  width: 78px;
  height: 78px;
  object-fit: contain;
  border-radius: 18px;
  padding: 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.25);
}

.titulo-principal{
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: .2px;
  line-height: 1.2;
  color: #fff;
}

.titulo-principal span{
  display: block;
  margin-top: 6px;
  font-size: 1.05rem;
  font-weight: 700;
  opacity: .95;
}

@keyframes fadeUp{
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-in{
  animation: fadeUp .75s ease both;
}

/* ========== NAV ========== */
.main-nav{
  border-top: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(8px);
}

.nav-inner{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 0;
}

.menu-principal{
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.menu-principal > li{
  position: relative;
}

.menu-principal > li > a{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 800;
  color: #fff;
  transition: background .15s ease, transform .15s ease;
}

.menu-principal > li > a:hover,
.menu-principal > li > a:focus-visible{
  background: rgba(255,255,255,0.16);
  outline: none;
}

.has-dropdown > .dropdown-link i{
  font-size: .85rem;
  opacity: .95;
}

.submenu{
  list-style: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 380px;
  background: #fff;
  color: #0f172a;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 14px;
  box-shadow: 0 22px 60px rgba(2, 6, 23, 0.22);
  padding: 10px;
  display: none;
  z-index: 50;
}

.has-dropdown:hover > .submenu,
.has-dropdown:focus-within > .submenu{
  display: block;
}

.submenu a{
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 700;
  color: #0f172a;
}

.submenu a:hover,
.submenu a:focus-visible{
  background: rgba(15, 23, 42, 0.06);
  outline: none;
}

.submenu-scroll{
  max-height: 320px;
  overflow: auto;
}

/* ========== MENÚ MÓVIL ========== */
.nav-toggle{
  display: none;
}

.nav-toggle-btn{
  display: none;
  position: absolute;
  right: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.10);
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-direction: column;
  cursor: pointer;
}

.nav-toggle-btn span{
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 99px;
}

/* ========== MAIN ========== */
main.container{
  padding: 42px 0 20px;
}

.nosotros,
.principios{
  background: #ffffff;
  border-radius: 18px;
  padding: 30px 26px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
  border: 1px solid rgba(15, 23, 42, 0.06);
  margin-bottom: 24px;
}

.nosotros h2,
.principios h2{
  text-align: center;
  color: #0b2a6f;
  font-size: 2rem;
  margin-bottom: 18px;
  font-weight: 900;
}

.nosotros p,
.principios p{
  font-size: 1.05rem;
  color: #374151;
  text-align: justify;
}

.mision-vision{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin: 28px 0;
}

.mision-vision div{
  background: #f8fbff;
  border: 1px solid #dbe7f5;
  border-left: 5px solid #0a4ea3;
  border-radius: 16px;
  padding: 22px 18px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

.mision-vision h3{
  color: #0b2a6f;
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.nosotros > h3,
.principios > h3{
  color: #0b2a6f;
  margin: 22px 0 14px;
  font-size: 1.35rem;
  font-weight: 850;
}

.valores{
  list-style: none;
  margin-top: 8px;
}

.valores li{
  background: #f8fbff;
  border: 1px solid #dbe7f5;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 12px;
  color: #374151;
}

.principios ul{
  padding-left: 22px;
  margin-top: 10px;
}

.principios ul li{
  margin-bottom: 14px;
  color: #374151;
  text-align: justify;
}

/* ========== BOTÓN DESCARGA ========== */
.boton-descarga{
  display: inline-block;
  padding: 12px 20px;
  background: linear-gradient(90deg, #0a4ea3, #0b2a6f);
  color: #fff;
  border-radius: 12px;
  font-weight: 800;
  transition: transform .2s ease, filter .2s ease;
  box-shadow: 0 10px 22px rgba(10, 78, 163, 0.22);
  margin: 10px auto 0;
}

.boton-descarga:hover{
  transform: translateY(-2px);
  filter: brightness(1.05);
}

/* ========== LEMA ========== */
.lema{
  padding: 24px 20px 40px;
}

.container-lema{
  max-width: 850px;
  margin: auto;
  background: #ffffff;
  border-radius: 18px;
  padding: 28px 22px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
  border-left: 6px solid #0a4ea3;
  text-align: center;
}

.lema h2{
  color: #0b2a6f;
  margin-bottom: 12px;
  font-size: 1.8rem;
}

.lema p{
  font-size: 1.15rem;
  color: #0a4ea3;
  font-weight: 800;
}

/* ========== FOOTER ========== */
footer{
  background: #071227;
  color: #e5e7eb;
  text-align: center;
  padding: 28px 20px;
  margin-top: 10px;
}

.redes-sociales p{
  margin-bottom: 14px;
  font-weight: 700;
}

.social-icons{
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 12px;
}

.social-icons a{
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  transition: transform .2s ease, background .2s ease;
}

.social-icons a:hover{
  background: rgba(255,255,255,0.22);
  transform: translateY(-3px);
}

footer p{
  font-size: .95rem;
  opacity: .95;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 860px){
  .nav-inner{
    justify-content: flex-start;
  }

  .nav-toggle-btn{
    display: inline-flex;
  }

  .menu-principal{
    position: absolute;
    left: 0;
    top: calc(100% + 10px);
    width: min(92vw, 460px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: #ffffff;
    color: #0f172a;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.10);
    box-shadow: 0 22px 60px rgba(2, 6, 23, 0.22);
    padding: 10px;
    z-index: 60;
  }

  .nav-toggle:checked ~ .menu-principal{
    display: flex;
  }

  .menu-principal > li > a{
    color: #0f172a;
    justify-content: space-between;
  }

  .submenu{
    position: static;
    transform: none;
    min-width: 100%;
    border: 0;
    box-shadow: none;
    padding: 6px 0 0;
    display: none;
  }

  .has-dropdown:hover > .submenu,
  .has-dropdown:focus-within > .submenu{
    display: block;
  }

  .mision-vision{
    grid-template-columns: 1fr;
  }

  .nosotros,
  .principios{
    padding: 24px 18px;
  }

  .nosotros h2,
  .principios h2{
    font-size: 1.6rem;
  }

  .lema h2{
    font-size: 1.5rem;
  }

  .lema p{
    font-size: 1.05rem;
  }
}

@media (max-width: 520px){
  .titulo-principal{
    font-size: 1.15rem;
  }

  .titulo-principal span{
    font-size: .95rem;
  }

  .nosotros p,
  .principios p,
  .principios ul li,
  .valores li{
    font-size: .98rem;
  }
}