/*
Theme Name: GeneratePress Child
Template: generatepress
*/

/* =========================
   Global footer (3 columnas)
   ========================= */

.nw-footer{
  background: #fff;
  border-top: 1px solid rgba(11,18,32,0.10);
  padding: 44px 0 18px;
}

.nw-footer__inner{
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 40px;

  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 28px;
}

.nw-footer__logo{
  max-width: 250px;
  height: auto;
}

.nw-footer__desc{
  margin: 12px 0 14px;
  color: rgba(11,18,32,0.70);
  font-size: 16px;
  line-height: 1.7;
  max-width: 50ch;
}

.nw-footer__social{
  display: flex;
  gap: 12px;
}

.nw-footer__socialLink{
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;

  border-radius: 999px;
  border: 1px solid rgba(11,18,32,0.12);
  color: rgba(11,18,32,0.70);
  background: transparent;
  text-decoration: none;

  transition: transform .18s ease,
              background .18s ease,
              border-color .18s ease,
              color .18s ease;
}

.nw-footer__socialLink i{
  font-size: 17px;
  line-height: 1;
}

.nw-footer__socialLink:hover{
  transform: translateY(-2px);
  background: rgba(245,246,255,0.7);
  border-color: rgba(11,18,32,0.20);
  color: #0b1220;
}

.nw-footer__title{
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
  color: #303e7a;
}

.nw-footer__list{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 3px;
}

.nw-footer__list a{
  text-decoration: none;
  color: rgba(11,18,32,0.70);
  font-size: 16px;
  font-weight: 400;
}

.nw-footer__list a:hover{
  color: black;
}

.nw-footer__copyright{
  margin-top: 14px;
  font-size: 13px;
  color: rgba(11,18,32,0.70);
  line-height: 1.4;
}

/* Desktop: columnas 2 y 3 a la derecha */
.nw-footer__col--right{
  justify-self: end;
}
.nw-footer__col--right *{
  text-align: left;
}

/* =========================
   Footer responsive (intermedio + móvil)
   - Orden: Sobre, Legal, Brand
   - Todo centrado
   ========================= */
@media (max-width: 1100px){
  .nw-footer__inner{
    grid-template-columns: 1fr;
    gap: 18px;
    text-align: center;
    padding: 0 22px;
  }

  .nw-footer__col:nth-of-type(2){ order: 1; justify-self: center; } /* Sobre */
  .nw-footer__col:nth-of-type(3){ order: 2; justify-self: center; } /* Legal */
  .nw-footer__col--brand{ order: 3; justify-self: center; }         /* Brand */

  .nw-footer__col--right{ justify-self: center; }
  .nw-footer__col--right *{ text-align: center; }

  .nw-footer__logo{ margin-left: auto; margin-right: auto; }
  .nw-footer__desc{ margin-left: auto; margin-right: auto; text-align: center; }
  .nw-footer__social{ justify-content: center; }
  .nw-footer__copyright{ text-align: center; }
}

/* =========================
   Navbar global (fixed)
   ========================= */

#masthead.site-header{
  display: none !important;
}


.nw-globalNav{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(11,18,32,0.08);
}

/* Empuja el contenido para que no quede debajo del nav */
body{
  padding-top: 104px;
}

.nw-globalNav__inner{
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 30px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
}

@media (max-width: 960px){
  .nw-globalNav__inner{
    width: 100%;
    grid-template-columns: 1fr auto; /* logo | burger */
    justify-content: space-between;
    align-items: center;
  }

  .nw-globalNav__brand{
    justify-self: start;
  }

  .nw-burger{
    justify-self: end; /* 🔑 burger a la derecha */
  }
}

.nw-globalNav__brand{
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.nw-globalNav__logo{
  height: 70px;
  width: auto;
  display: block;
}

.nw-globalNav__links{
  display: flex;
  justify-content: center;
  gap: 22px;
}

/* Links del nav + activo */
.nw-globalNav__links a{
  position: relative;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  color: rgba(11,18,32,0.72);
}

/* Hover normal (solo si NO está activo) */
.nw-globalNav__links a:not(.is-active):hover{
  color: black;
}

/* Activo */
.nw-globalNav__links a.is-active{
  color: #303e7a;
}

/* Ralla del activo (más corta) */
.nw-globalNav__links a.is-active::after{
  content: '';
  position: absolute;
  left: 15%;
  right: 15%;
  bottom: -4px;
  height: 2px;
  background: rgba(48,62,122,0.2);
  border-radius: 2px;
}

/* Si está activo, hover no cambia nada */
.nw-globalNav__links a.is-active:hover{
  color: #303e7a;
}

/* =========================
   Store buttons en navbar
   ========================= */

.nw-globalNav__stores{
  display: flex;
  gap: 10px;
}

.nw-navStoreBtn{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  background: #111;
  border: 1px solid rgba(255,255,255,0.14);
  text-decoration: none;
  transition: transform .18s ease, background .18s ease;
}

.nw-navStoreBtn:hover{
  transform: translateY(-2px);
  background: #000;
}

.nw-navStoreBtn img{
  height: 26px;
  width: auto;
  display: block;
}

.nw-navStoreBtn__text{
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.nw-navStoreBtn__small{
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,0.65);
}

.nw-navStoreBtn__big{
  font-size: 13px;
  font-weight: 800;
  color: #fff;
}

/* Responsive nav (tablet/móvil) */
@media (max-width: 960px){
  .nw-globalNav__links{
    display: none;
  }
  .nw-globalNav__stores .nw-navStoreBtn__text{
    display: none;
  }
}

/* =========================
   Mobile hamburger + offcanvas
   ========================= */

/* Desktop: ocultamos hamburger (menú móvil siempre se controla con [hidden]) */
.nw-burger{ display: none; }

/* Móvil */
@media (max-width: 960px){

  /* Oculta links + stores del header y muestra hamburger */
  .nw-globalNav__links,
  .nw-globalNav__stores{
    display: none;
  }

  .nw-burger{
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;

    width: 44px;
    height: 44px;
    border-radius: 999px;

    background: rgba(220,220,220,0.9);
    border: none;
    cursor: pointer;
    padding: 0;
  }

  .nw-burger span{
    display: block;
    width: 18px;
    height: 3px;
    background: #fff;
    border-radius: 3px;
    margin: 0;
  }

  .nw-burger:hover{
    background: rgba(190,190,190,0.95);
  }

  .nw-burger:active{
    transform: scale(0.98);
  }

  /* Offcanvas wrapper */
  .nw-mobileMenu{
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: block;
  }

  .nw-mobileMenu[hidden]{
    display: none;
  }

  .nw-mobileMenu__backdrop{
    position: absolute;
    inset: 0;
    background: rgba(11,18,32,0.45);
  }

  .nw-mobileMenu__drawer{
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: min(86vw, 360px);

    background: #fff;
    transform: translateX(100%);
    transition: transform .25s ease;
    will-change: transform;

    border-left: 1px solid rgba(11,18,32,0.10);
    box-shadow: -18px 0 40px rgba(0,0,0,0.15);
  }

  .nw-mobileMenu.is-open .nw-mobileMenu__drawer{
    transform: translateX(0);
  }

  .nw-mobileMenu__panel{
    height: 100%;
    padding: 16px 20px;
    background: transparent;

    display: flex;
    flex-direction: column;
  }

  /* Brand (logo) arriba del menú */
  .nw-mobileMenu__brand{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 6px 0 6px;
  }

  .nw-mobileMenu__brand img{
    height: 62px;
    width: auto;
    display: block;
  }

  /* Nav del menú */
  .nw-mobileMenu__nav{
    display: grid;
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid rgba(11,18,32,0.08);
  }

  .nw-mobileMenu__nav a{
    position: relative;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    color: rgba(11,18,32,0.82);
    padding: 10px 10px;
    border-radius: 12px;
  }

  /* Hover solo si NO está activo */
  .nw-mobileMenu__nav a:not(.is-active):hover{
    background: rgba(245,246,255,0.8);
    color: #0b1220;
  }

  /* Activo (móvil) */
  .nw-mobileMenu__nav a.is-active{
    color: #303e7a;
  }


  /* Si está activo, hover no cambia nada */
  .nw-mobileMenu__nav a.is-active:hover{
    color: #303e7a;
  }

  /* CTAs abajo del todo, en 2 columnas con separación */
  .nw-mobileMenu__stores{
    margin-top: auto;
    padding-top: 16px;
    padding-bottom: 12px;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .nw-mobileMenu__stores .nw-navStoreBtn{
    width: 100%;
    justify-content: center;
  }

  /* En el menú móvil sí queremos el texto */
  .nw-navStoreBtn--mobile .nw-navStoreBtn__text{
    display: flex;
  }
}

/* Muy estrecho: CTAs en una columna */
@media (max-width: 400px){
  .nw-mobileMenu__stores{
    grid-template-columns: 1fr;
  }
  .nw-mobileMenu__stores .nw-navStoreBtn{
    justify-content: flex-start;
  }
}

/* Bloquea scroll cuando el menú está abierto */
html.nw-menuOpen,
html.nw-menuOpen body{
  overflow: hidden;
}

/* =========================
   404 Page — NutriWorkers
   ========================= */

body.error404 #primary,
body.error404 .content-area,
body.error404 .site-content,
body.error404 #content,
body.error404 .inside-article,
body.error404 .entry-content{
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  float: none !important;
}

/* 2) Wrapper principal centrado */
.nw-404{
  width: 100%;
  margin: 0 auto;
  background: #fff;
  color: #0b1220;
}

/* 3) Sección centrada */
.nw-404Hero{
  min-height: calc(100vh - 140px); /* ajusta si tu nav es más alto */
  display: grid;
  place-items: center;
  text-align: center;
  padding: 110px 18px 150px;
}

/* 4) Contenedor con ancho máximo y centrado */
.nw-404Hero .nw-container{
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 18px;
  box-sizing: border-box;
}

/* 5) Si el theme mete grid-container, lo centramos */
body.error404 .grid-container{
  max-width: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.nw-404Illustration{
  margin-bottom: 30px;
}

.nw-404Number{
  display: inline-block;
  font-size: clamp(96px, 18vw, 180px);
  font-weight: 800;
  letter-spacing: -0.05em;
  color: #303e7a;
  background: rgba(48, 62, 122,0.1);
  padding: 10px 40px;
  border-radius: 120px;
}

.nw-404Title{
  margin: 10px 0 12px;
  font-size: 45px;
  font-weight: 700;
  color: #303e7a;
}

.nw-404Text{
  max-width: 800px;
  margin: 0 auto 28px;
  font-size: 18px;
  line-height: 1.7;
  color: black;
}

/* Botón estilo CTA */
.nw-404Btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  background:#303e7a;
  border-radius: 14px;
  color: white;
}

.nw-404Btn:hover{
  transform: translateY(-2px);
  color: white;
}