/* ===== HEADER ===== */
.mw-header{
  width:100%;
  background:rgba(255, 255, 255, 0.92);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(0,0,0,0.08);
  position:sticky;
  top:0;
  z-index:9999;
  box-shadow:0 4px 20px rgba(0,0,0,0.02), 0 1px 3px rgba(0,0,0,0.03);
}

.mw-header::after{
  content:"";
  display:block;
  width:100%;
  height:1px;
  background:linear-gradient(90deg, transparent, rgba(141, 193, 0, 0.2), rgba(22, 151, 183, 0.2), transparent);
  position:absolute;
  bottom:-1px;
  left:0;
}

.mw-header-container{
  max-width:1280px;
  margin:0 auto;
  min-height:70px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:32px;
  padding:8px 24px;
}

/* LOGO */
.mw-logo{
  flex:0 0 auto;
  position:relative;
}

.mw-logo a{
  text-decoration:none;
  font-family:"Cinzel",serif;
  font-size:24px;
  line-height:1.2;
  letter-spacing:1px;
  background:linear-gradient(135deg, #1a2a3a 0%, #2c3e50 50%, #1e2b38 100%);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
  white-space:nowrap;
  font-weight:700;
  text-shadow:0 2px 4px rgba(0,0,0,0.05);
  transition:all 0.3s ease;
  display:inline-block;
}

.mw-logo a:hover{
  transform:scale(1.02);
  text-shadow:0 4px 8px rgba(141, 193, 0, 0.2);
}

/* DESKTOP MENU */
.mw-nav-desktop{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:42px;
  flex:1 1 auto;
}

.mw-nav-link{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:0 4px;
  text-decoration:none;
  color:#2d3a4a;
  font-size:15px;
  font-weight:600;
  line-height:1;
  letter-spacing:0.3px;
  transition:color 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
  white-space:nowrap;
  text-transform:uppercase;
  opacity:0.85;
}

.mw-nav-link:hover{
  color:#1a2a3a;
  opacity:1;
}

.mw-nav-link::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:8px;
  height:2px;
  background:linear-gradient(90deg, #8dc100, #1697b7, #7d5cff);
  border-radius:2px;
  transform:scaleX(0);
  transform-origin:center;
  transition:transform 0.4s cubic-bezier(0.2, 0.9, 0.3, 1);
  opacity:0.7;
}

.mw-nav-link:hover::before{
  transform:scaleX(1);
}

/* si quieres marcar manualmente un enlace activo, agrega class="mw-nav-link is-active" */
.mw-nav-link.is-active{
  color:#1a2a3a;
  opacity:1;
  font-weight:700;
}

.mw-nav-link.is-active::before{
  transform:scaleX(1);
  background:linear-gradient(90deg, #1697b7, #7d5cff, #8dc100);
  height:3px;
  bottom:7px;
  opacity:1;
}

/* ACCIONES */
.mw-header-actions{
  display:flex;
  align-items:center;
  gap:12px;
  flex:0 0 auto;
}

.mw-btn-donate{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:0 26px;
  border-radius:40px;
  background:linear-gradient(145deg, #e2c15f, #d4af37);
  color:#1a2a3a;
  text-decoration:none;
  font-size:15px;
  font-weight:700;
  letter-spacing:0.5px;
  border:none;
  transition:all 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
  box-shadow:0 8px 18px -8px rgba(226, 193, 95, 0.4), 0 2px 4px rgba(0,0,0,0.05);
  position:relative;
  overflow:hidden;
  z-index:1;
}

.mw-btn-donate::before{
  content:"♡";
  margin-right:10px;
  font-size:16px;
  line-height:1;
  transition:transform 0.3s ease;
}

.mw-btn-donate::after{
  content:"";
  position:absolute;
  top:0;
  left:0;
  right:0;
  bottom:0;
  background:linear-gradient(145deg, #d4af37, #e2c15f);
  border-radius:40px;
  z-index:-1;
  opacity:0;
  transition:opacity 0.3s ease;
}

.mw-btn-donate:hover{
  transform:translateY(-2px);
  box-shadow:0 16px 24px -10px rgba(226, 193, 95, 0.6), 0 4px 8px rgba(0,0,0,0.1);
}

.mw-btn-donate:hover::before{
  transform:scale(1.1);
}

.mw-btn-donate:hover::after{
  opacity:1;
}

/* ===== BOTON HAMBURGUESA (FUERA DEL MENU) ===== */
.mw-menu-toggle{
  display:none;
  width:48px;
  height:48px;
  border:2px solid rgba(0, 0, 0, 0.25);
  background:rgba(15, 95, 77, 0.1);
  cursor:pointer;
  position:relative;
  z-index:10002;
  padding:0;
  border-radius:16px;
  transition:all 0.3s ease;
  box-shadow:0 4px 12px rgba(0, 0, 0, 0.1);
  backdrop-filter:blur(4px);
  -webkit-backdrop-filter:blur(4px);
}

.mw-menu-toggle:hover{
  background:rgba(141, 193, 0, 0.15);
  border-color:rgba(0, 0, 0, 0.5);
  transform:scale(1.05);
  box-shadow:0 6px 16px rgba(0, 0, 0, 0.15);
}

.mw-menu-toggle span{
  display:block;
  width:26px;
  height:3px;
  margin:6px auto;
  background:linear-gradient(90deg, #0f5f4d, #1697b7);
  border-radius:4px;
  transition:all 0.3s ease;
}

.mw-menu-toggle:hover span{
  background:linear-gradient(90deg, #8dc100, #1697b7);
}

/* Cuando el menú está abierto */
.mw-menu-toggle.is-active{
  background:rgba(15, 95, 77, 0.95);
  border:2px solid #8dc100;
  box-shadow:0 0 20px rgba(141, 193, 0, 0.6);
  backdrop-filter:blur(4px);
  -webkit-backdrop-filter:blur(4px);
}

.mw-menu-toggle.is-active span{
  background:#ffffff;
  box-shadow:0 0 8px rgba(255,255,255,0.5);
}

/* Animación a X */
.mw-menu-toggle.is-active span:nth-child(1){
  transform:translateY(9px) rotate(45deg);
}

.mw-menu-toggle.is-active span:nth-child(2){
  opacity:0;
}

.mw-menu-toggle.is-active span:nth-child(3){
  transform:translateY(-9px) rotate(-45deg);
}

/* ===== BOTON CERRAR (DENTRO DEL MENU) ===== */
.mw-menu-close{
  position:absolute;
  top:15px;
  right:15px;
  width:44px;
  height:44px;
  border:2px solid rgba(141, 193, 0, 0.5);
  background:rgba(15, 95, 77, 0.3);
  cursor:pointer;
  border-radius:16px;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:all 0.3s ease;
  z-index:10002;
  backdrop-filter:blur(4px);
  -webkit-backdrop-filter:blur(4px);
  box-shadow:0 4px 12px rgba(0,0,0,0.2);
}

.mw-menu-close:hover{
  background:rgba(141, 193, 0, 0.3);
  border-color:#8dc100;
  transform:scale(1.1) rotate(90deg);
  box-shadow:0 6px 16px rgba(141, 193, 0, 0.4);
}

.mw-menu-close span{
  display:block;
  width:22px;
  height:3px;
  background:#ffffff;
  border-radius:3px;
  position:absolute;
  box-shadow:0 0 8px rgba(255,255,255,0.3);
}

.mw-menu-close span:nth-child(1){
  transform:rotate(45deg);
}

.mw-menu-close span:nth-child(2){
  transform:rotate(-45deg);
}

/* OVERLAY */
.mw-mobile-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.45);
  opacity:0;
  visibility:hidden;
  transition:opacity .3s ease, visibility .3s ease;
  z-index:10000;
}

.mw-mobile-overlay.active{
  opacity:1;
  visibility:visible;
}

/* ===== MENU MOVIL - ANCHO REDUCIDO ===== */




.mw-mobile-menu{
  position:fixed;
  top:0;
  left:0;
  width:min(320px, 85vw);
  height:100dvh;
  background:
    linear-gradient(rgba(0,27,20,.58), rgba(0,27,20,.74)),
    url("https://i.postimg.cc/DwD1dmDB/menuimg.webp") center/cover no-repeat;
  border:4px solid #8dc100;
  border-radius:0 24px 24px 0;
  box-shadow:14px 0 30px rgba(0,0,0,.28);
  transform:translateX(-105%);
  transition:transform .35s ease;
  z-index:10001;
  overflow-y:auto;
  overflow-x:hidden;
}











.mw-mobile-menu.active{
  transform:translateX(0);
}

/* Inner con padding superior para el botón de cerrar */
.mw-mobile-inner{
  height:100%;
  display:flex;
  flex-direction:column;
  padding:70px 20px 26px;
}

/* TOP HOME */
.mw-mobile-top{
  margin-bottom:18px;
}

.mw-mobile-home{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:62px;
  padding:0 18px;
  border-radius:10px;
  background:#f6f6f6;
  color:#0f6b57 !important;
  text-decoration:none;
  font-size:18px;
  font-weight:800;
  letter-spacing:.3px;
  box-shadow:0 4px 10px rgba(0,0,0,.12);
}

.mw-icon-home{
  width:24px;
  height:24px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#bb8a22;
  flex:0 0 24px;
}

.mw-icon-home svg{
  width:24px;
  height:24px;
  display:block;
}

/* LINKS MOVIL */
.mw-mobile-links{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.mw-mobile-links a{
  display:flex;
  align-items:center;
  min-height:62px;
  padding:0 18px;
  text-decoration:none;
  color:#ffffff;
  font-size:18px;
  font-weight:800;
  letter-spacing:.4px;
  text-transform:uppercase;
  background:rgba(0,0,0,.22);
  border-radius:8px;
  transition:background .25s ease, transform .25s ease;
  text-shadow:0 2px 6px rgba(0,0,0,.45);
}

.mw-mobile-links a:hover{
  background:rgba(255,255,255,.10);
  transform:translateX(3px);
}

.mw-mobile-spacer{
  flex:1 1 auto;
}

/* SOCIAL */
.mw-mobile-social{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  margin-top:20px;
}

.mw-mobile-social a{
  width:40px;
  height:40px;
  border-radius:4px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(0,0,0,.28);
  color:#ffffff;
  text-decoration:none;
  transition:background .25s ease, transform .25s ease;
}

.mw-mobile-social a:hover{
  background:rgba(255,255,255,.12);
  transform:translateY(-2px);
}

.mw-mobile-social svg{
  width:20px;
  height:20px;
  display:block;
}

/* COPYRIGHT */
.mw-mobile-copy{
  margin-top:20px;
  text-align:center;
  color:rgba(255,255,255,.78);
  font-size:14px;
  font-weight:500;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 980px){
  .mw-nav-desktop,
  .mw-header-actions{
    display:none;
  }

  .mw-menu-toggle{
    display:block;
  }

  .mw-header-container{
    min-height:68px;
  }

  .mw-logo a{
    font-size:18px;
  }
}

/* Z-INDEX ALTO EN MÓVILES */
@media (max-width:980px){
  .mw-menu-toggle{
    display:block;
    position:relative;
    z-index:10005;
  }
}

@media (min-width: 981px){
  .mw-header{
    background:rgba(255, 255, 255, 0.92);
  }

  .mw-header-container{
    min-height:70px;
  }

  .mw-logo a{
    font-size:24px;
  }

  .mw-nav-link{
    font-size:15px;
    min-height:48px;
  }

  .mw-btn-donate{
    min-height:44px;
    font-size:15px;
  }

  .mw-mobile-menu,
  .mw-mobile-overlay{
    display:none;
  }
}

/* Ajustes para pantallas muy pequeñas */
@media (max-width: 480px){
  .mw-header-container{
    padding:10px 14px;
  }

  .mw-logo a{
    font-size:16px;
  }

  .mw-mobile-inner{
    padding:65px 16px 22px;
  }

  .mw-mobile-home,
  .mw-mobile-links a{
    min-height:58px;
    font-size:17px;
  }
  
  .mw-menu-toggle{
    width:44px;
    height:44px;
  }
  
  .mw-menu-toggle span{
    width:24px;
    margin:5px auto;
  }
  
  .mw-menu-toggle.is-active span:nth-child(1){
    transform:translateY(8px) rotate(45deg);
  }
  
  .mw-menu-toggle.is-active span:nth-child(3){
    transform:translateY(-8px) rotate(-45deg);
  }
  
  /* Botón cerrar más pequeño en móviles */
  .mw-menu-close{
    top:12px;
    right:12px;
    width:40px;
    height:40px;
  }
  
  .mw-menu-close span{
    width:20px;
  }
}