/* ============ RESET GENERAL ============ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #fff;
    font-family: 'Open Sans', sans-serif;
    color: #444;
}
a {
  transition: 0.5s;
  text-decoration:none;
}
/* ===========================
   CABECERA
=========================== */
.header {    
    margin:0.938em .4em;
    overflow: hidden;
    padding:0 2em;
    width:100%;
}
.header-logo1 img {
    width:100%;
}
.header-title {
    width:530px;
    margin-left:15em;
    padding:0 .6em;
    text-align:center;
}
.header-title h1{
font-family: 'Open Sans', sans-serif;
font-size: 1.75em;
text-align:right;
color:#428f5d;
font-weight:bold;
}
/* ==========================
   NAVBAR (menú principal)
========================== */
.navbar {
  background-color: #428f5d; /* verde institucional */
  border: none;
  justify-content: center;
}

.navbar-brand {
  color: #fff !important;
  font-weight: 600;
  font-size: 1.2rem;
}

.navbar-toggler {
  border: none;
  outline: none !important;
}

.navbar-toggler-icon {
  background-image: none;
  position: relative;
  width: 24px;
  height: 2px;
  background-color: #fff;
  transition: all 0.3s ease;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 2px;
  background-color: #fff;
  left: 0;
  transition: all 0.3s ease;
}

.navbar-toggler-icon::before {
  top: -7px;
}

.navbar-toggler-icon::after {
  top: 7px;
}

.navbar .nav-link {
  color: #fff !important;
  font-weight: 500;
  padding: 10px 20px;
  transition: background-color 0.3s ease;
}

.navbar .nav-link:hover,
.navbar .nav-item:hover > .nav-link {
  background-color: rgba(66, 143, 93, 0.85);
  color: #fff !important;
}

/* Centrado del menú en desktop */
@media (min-width: 992px) {
  .navbar-nav {
    margin: 0 auto;
  }
}

/* ==========================
   MENÚ MULTINIVEL
========================== */
.dropdown-menu {
  background-color: #428f5d;
  border: none;
  border-radius: 0;
  min-width: 200px;
}

.dropdown-item {
  color: #fff;
  padding: 10px 20px;
  transition: background-color 0.3s ease;
}

.dropdown-item:hover {
  background-color: rgba(66, 143, 93, 0.85);
  color: #fff;
}

.dropdown-submenu {
  position: relative;
}

.dropdown-submenu .dropdown-menu {
  top: 0;
  left: 100%;
  margin-top: -1px;
  display: none;
}

.dropdown-submenu:hover > .dropdown-menu {
  display: block;
}

/* Solo mostrar submenús con hover en escritorio */
@media (min-width: 992px) {
  .navbar-nav li.dropdown:hover > .dropdown-menu {
    display: block;
  }
}

/* En móvil, los submenús se abren con clic */
@media (max-width: 991px) {
  .dropdown-submenu > a::after {
    content: " ▸";
    float: right;
  }

  .dropdown-submenu .dropdown-menu {
    position: relative;
    left: 0;
    display: none;
    margin-top: 5px;
  }

  .dropdown-submenu.open .dropdown-menu {
    display: block;
  }
}


/* ============ CARRUSEL ============ */
.carousel-inner img {
    width: 100%;
    height: auto;
}

/* ============ CONTENIDO ============ */
.caja-principal {
    padding: 40px 20px;
}

.caja-principal h2 {
    color: #428f5d;
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.caja-principal h2::after {
    content: "";
    position: absolute;
    width: 100px;
    height: 3px;
    background: #428f5d;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.caja-principal p {
    text-align: justify;
    font-size: 1rem;
}

.caja-principal .lista{
  font-family: "Open Sans", serif;
  font-size:2em;
  list-style:none;
  font-weight: 400;
  line-height: 2;
  margin-left: 2px;
}
.caja-principal .lista a{
  color:#444444;
}
.caja-principal .lista a:hover{
   color:#444444;
}

/* ============ FOOTER ============ */
.site-footer {
    background: rgba(66,143,93,0.8);
    color: #fff;
}

.site-footer .bottom {
    padding: 20px 0;
}

.site-footer p,
.site-footer a {
    color: #fff;
    font-size: 1rem;
    opacity: .9;
}
