/* =========================
   FOOTER
   ========================= */
.site-footer{
  background: #003366;
  color: #ffffff;
  margin-top: 40px;
  padding: 44px 0 20px;
  font-size: 13px;
}

/* Contenedor principal (4 columnas) */
.footer-inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;

  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr; /* brand más ancho + 3 columnas */
  gap: 34px;
  align-items: start;
}

/* =========================
   Brand
   ========================= */
.footer-brand{
  text-align: left;
}

.footer-logo{
  max-width: 260px;
  height: auto;
  display: block;
  margin-bottom: 14px;
}

.footer-logo-text{
  font-size: 22px;
  font-weight: 900;
  display: block;
  margin-bottom: 14px;
}

.footer-desc,
.footer-contact{
  margin: 0 0 12px;
  max-width: 340px;
  line-height: 1.55;
  color: #d6f0f0;
}

.footer-contact a{
  color: #d6f0f0;
  text-decoration: none;
}

.footer-contact a:hover{
  text-decoration: underline;
}

/* =========================
   Columnas de links
   ========================= */
.footer-nav{
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;   /* ← antes center */
  text-align: left;          /* ← antes center */
}

.footer-nav-title{
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
}

/* Links: blanco, sin subrayado; subrayado aparece al hover */
.footer-nav a{
  color: #ffffff;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  display: inline-block;
  position: relative;
  padding-bottom: 2px;
  line-height: 1.35;
}

/* underline (invisible) */
.footer-nav a::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: #ffffff;
  transition: width .22s ease;
}

/* hover underline */
.footer-nav a:hover::after{
  width: 100%;
}

/* =========================
   Barra inferior
   ========================= */
.footer-bottom{
  max-width: 1200px;
  margin: 22px auto 0;
  padding: 16px 16px 0;
  border-top: 1px solid rgba(255,255,255,.12);
}

.footer-copy{
  margin: 0;
  text-align: right;
  color: #d6f0f0;
  font-size: 12px;
}

/* =========================
   Responsive
   ========================= */
@media (max-width: 900px){
  .footer-inner{
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .footer-brand{
    text-align: center;
  }

  .footer-logo{
    margin-left: auto;
    margin-right: auto;
  }

  .footer-desc,
  .footer-contact{
    margin-left: auto;
    margin-right: auto;
  }

  .footer-nav{
   align-items: flex-start;   /* ← antes center */
  text-align: left;          /* ← antes center */
  }

  .footer-copy{
    text-align: center;
  }
}
.site-footer{
  background: linear-gradient(180deg, #003366 0%, #00284d 100%);
}
/* =========================
   FOOTER BOTTOM – LINKS
   ========================= */

.footer-copy a{
  color: #ffffff;            /* blanco */
  text-decoration: none;     /* sin subrayado */
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
}

/* línea inferior oculta */
.footer-copy a::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background-color: #ffffff;
  transition: width .25s ease;
}

/* hover */
.footer-copy a:hover::after{
  width: 100%;
}
/* =========================
   DROPDOWN MENU (sub-menú WP)
   ========================= */

/* MUY IMPORTANTE: que el dropdown pueda “salirse” sin recortarse */
.main-nav,
.main-nav-inner,
.main-menu{
  overflow: visible !important;
}

.main-menu li{
  position: relative;
}

/* Submenú oculto por defecto */
.main-menu .sub-menu{
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;

  min-width: 260px;
  padding: 12px;
  margin: 0;

  list-style: none;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 14px;
  box-shadow: 0 14px 40px rgba(0,0,0,.10);
  z-index: 9999;
}

/* Mostrar al hover (desktop) */
@media (min-width: 901px){
  .main-menu li.menu-item-has-children:hover > .sub-menu{
    display: block;
  }
}

/* Links del submenú: “texto plano” */
.main-menu .sub-menu a{
  display: block;
  padding: 10px 10px;

  color: #111;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;

  border-radius: 10px;
}

/* Hover: línea inferior + fondo suave */
.main-menu .sub-menu a:hover{
  background: rgba(179,38,46,.08);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ===== Dark mode ===== */
html.dark .main-menu .sub-menu{
  background: #0f1414;
  border-color: #233030;
}

html.dark .main-menu .sub-menu a{
  color: #eaeaea;
}

html.dark .main-menu .sub-menu a:hover{
  background: rgba(46,204,113,.10);
}

/* Opcional: flechita visual (solo si quieres) */
.main-menu li.menu-item-has-children > a::after{
  content: "▾";
  margin-left: 6px;
  font-size: 12px;
  opacity: .7;
}


/* FIX: que el submenu NO se cierre al mover el mouse */
.main-menu li.menu-item-has-children{
  position: relative;
}

/* 1) pega el dropdown al item (sin hueco) */
.main-menu li.menu-item-has-children > .sub-menu{
  top: 100% !important;   /* antes calc(100% + 10px) */
  margin-top: 8px;        /* separación visual sin hueco real */
}

/* 2) “puente” invisible entre el link y el dropdown */
.main-menu li.menu-item-has-children > .sub-menu::before{
  content:"";
  position:absolute;
  left: 0;
  right: 0;
  top: -12px;            /* altura del puente */
  height: 12px;
}

/* 3) se mantiene abierto si estás dentro del submenú también */
@media (min-width: 901px){
  .main-menu li.menu-item-has-children:hover > .sub-menu,
  .main-menu li.menu-item-has-children:focus-within > .sub-menu{
    display: block;
  }
}
