/* ======================================================
   HEADER PREMIUM 2026 - BRICK LOYALTY
   Archivo limpio: sin duplicados, sin !important innecesario
====================================================== */

.site-header{
  position:sticky;
  top:0;
  z-index:9999;
  background:rgba(255,255,255,.94);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
}

.site-navbar{
  background:transparent;
  border-bottom:1px solid rgba(226,232,240,.9);
  padding:14px 0;
  transition:padding .22s ease, box-shadow .22s ease;
}

.site-header .nav-container{
  width:100%;
  max-width:1520px;
  margin:0 auto;
  padding:0 48px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  box-sizing:border-box;
}

.navbar-brand{
  display:flex;
  align-items:center;
  flex:0 0 auto;
  min-width:0;
  margin:0;
  color:#0b1220;
  text-decoration:none;
}

.brand-logo{
  width:176px;
  height:auto;
  display:block;
  object-fit:contain;
  transition:width .22s ease;
}

.desktop-nav,
.desktop-nav ul{
  list-style:none;
  margin:0;
  padding:0;
}

.desktop-nav{
  flex:1 1 auto;
  min-width:0;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
}

.desktop-nav > li{
  list-style:none;
}

.nav-link{
  display:flex;
  align-items:center;
  white-space:nowrap;
  padding:10px 12px;
  border-radius:999px;
  color:#0b1220;
  text-decoration:none;
  font-size:15px;
  font-weight:500;
  line-height:1;
  transition:background .2s ease, color .2s ease;
}

.nav-link.active,
.nav-link:hover,
.nav-link:focus{
  background:#e6fffb;
  color:#008f83;
}

.nav-mega{
  position:relative;
}

.caret-box{
  width:22px;
  height:22px;
  margin-left:6px;
  border-radius:50%;
  background:#e6fffb;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 22px;
}

.caret{
  width:14px;
  height:14px;
  fill:none;
  stroke:#009b8f;
  stroke-width:2.3;
  stroke-linecap:round;
  stroke-linejoin:round;
  transition:transform .2s ease;
}

.nav-mega:hover .caret{
  transform:rotate(180deg) translateY(1px);
}

.mega-menu{
  position:absolute;
  top:100%;
  left:50%;
  transform:translateX(-50%) translateY(12px);
  width:640px;
max-width:calc(100vw - 48px);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .18s ease, transform .18s ease, visibility .18s ease;
  padding-top:14px;
}

.nav-mega:hover .mega-menu,
.nav-mega:focus-within .mega-menu{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform:translateX(-50%) translateY(0);
}

.mega-inner{
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:24px;
  box-shadow:0 18px 45px rgba(15,23,42,.12);
  padding:18px 20px;
}

.mega-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
    gap:10px 14px;
}

.mega-item{
  display:grid;
  grid-template-columns:48px 1fr;
  align-items:center;
  gap:12px;
  padding:10px 12px;
    border-radius:14px;
  text-decoration:none;
  color:#0b1220;
  font-size:15px;
  font-weight:600;
  line-height:1.25;
}

.mega-item:hover,
.mega-item:focus{
  background:#f1f5f9;
  color:#0b1220;
}

.mega-item-icon,
.mega-item-icon img{
  width:42px;
  height:42px;
}

.mega-item-icon{
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 48px;
}

.mega-item-icon img{
  object-fit:contain;
  display:block;
}

.nav-actions{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  gap:14px;
  margin:0;
}

.btn-demo{
  min-height:40px;
  padding:0 16px;
  border-radius:999px;
  border:1.5px solid #00a79d;
  color:#008f83;
  background:#fff;
  text-decoration:none;
  font-size:14px;
  font-weight:500;
  letter-spacing:.1px;
  line-height:1;
  white-space:nowrap;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  box-shadow:none;
  transition:background .2s ease, color .2s ease, border-color .2s ease;
}

.btn-demo:hover,
.btn-demo:focus{
  background:#e6fffb;
  color:#007b72;
}

.btn-demo svg,
.btn-demo .btn-icon{
  width:15px;
  height:15px;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
  flex:0 0 15px;
  border:0;
}

.btn-reward{
  position:relative;
  overflow:visible;
  width:44px;
  height:44px;
  flex:0 0 44px;
  border-radius:50%;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  background:linear-gradient(135deg,#12d6c7 0%, #008f83 100%);
  border:0;
  text-decoration:none;
  box-shadow:0 8px 18px rgba(0,143,131,.18);
  transition:transform .2s ease, box-shadow .2s ease;
}

.btn-reward svg{
  width:22px;
  height:22px;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.btn-reward:hover,
.btn-reward:focus{
  transform:translateY(-1px);
  box-shadow:0 10px 20px rgba(0,143,131,.22);
}

.reward-tooltip{
  position:absolute;
  top:calc(100% + 12px);
  left:50%;
  transform:translateX(-50%);
  background:#0b1220;
  color:#fff;
  padding:8px 12px;
  border-radius:10px;
  font-size:13px;
  font-weight:500;
  line-height:1;
  white-space:nowrap;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  z-index:10000;
  transition:opacity .18s ease, visibility .18s ease;
}

.reward-tooltip::after{
  content:"";
  position:absolute;
  top:-5px;
  left:50%;
  width:10px;
  height:10px;
  background:#0b1220;
  transform:translateX(-50%) rotate(45deg);
}

.btn-reward:hover .reward-tooltip,
.btn-reward:focus .reward-tooltip,
.btn-reward:focus-visible .reward-tooltip{
  opacity:1;
  visibility:visible;
}

.navbar-burger{
  display:none;
  width:44px;
  height:44px;
  flex:0 0 44px;
  padding:0;
  border:1px solid #e5edf4;
  border-radius:14px;
  background:#fff;
  color:#0b1220;
  cursor:pointer;
  align-items:center;
  justify-content:center;
  box-shadow:0 6px 18px rgba(15,23,42,.08);
  transition:background .25s ease, border-color .25s ease, box-shadow .25s ease, transform .2s ease;
}

.navbar-burger:hover{
  background:#f8ffff;
  border-color:#15d8cb;
  box-shadow:0 10px 24px rgba(21,216,203,.16);
}

.navbar-burger:active{
  transform:scale(.96);
}

.navbar-burger svg{
  width:22px;
  height:22px;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round;
}

.mobile-overlay{
  position:fixed;
  inset:0;
  background:rgba(15,23,42,.38);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .22s ease, visibility .22s ease;
  z-index:9998;
}

.mobile-overlay.is-open{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}

.mobile-menu{
  position:fixed;
  top:0;
  right:0;
  width:min(88vw,390px);
  height:100vh;
  background:#fff;
  z-index:9999;
  transform:translateX(100%);
  transition:transform .24s ease;
  padding:22px;
  overflow-y:auto;
  box-shadow:none;
}

.mobile-menu.is-open{
  transform:translateX(0);
  box-shadow:-18px 0 45px rgba(15,23,42,.18);
}

.mobile-menu-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:18px;
}

.close-btn{
  width:40px;
  height:40px;
  border:0;
  border-radius:12px;
  background:#f1f5f9;
  color:#0b1220;
  font-size:26px;
  line-height:1;
}

.mobile-menu-list,
.mobile-submenu{
  list-style:none;
  margin:0;
  padding:0;
}

.mobile-menu-list > li{
  border-bottom:1px solid #e2e8f0;
}

.mobile-menu-list a,
.mobile-menu-toggle{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:16px 0;
  background:transparent;
  border:0;
  color:#0b1220;
  text-decoration:none;
  font-weight:600;
  text-align:left;
  font-family:inherit;
    font-size:16px;
    line-height:1.25;
    letter-spacing:0;

    -webkit-font-smoothing:antialiased;
}
.mobile-menu-toggle{
    appearance:none;
    -webkit-appearance:none;
    font:inherit;
    color:inherit;
}

.mobile-submenu{
  display:none;
  padding:0 0 10px 16px;
}

.mobile-submenu.is-open{
  display:block;
}

.mobile-submenu a{
  padding:10px 0;
  font-weight:400;
  color:#334155;
}

.chevron{
  color:#009b8f;
  font-size:18px;
  line-height:1;
  transition:transform .18s ease;
}

.mobile-menu-toggle.is-open .chevron{
  transform:rotate(180deg);
}

.mobile-actions{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:14px;
  margin-top:24px;
}

.mobile-demo{
  width:100%;
  max-width:240px;
  height:42px;
  padding:0 14px;
}

.mobile-voucher{
  color:#008f83;
  text-decoration:none;
  font-weight:500;
}

body.menu-open{
  overflow:hidden;
}

/* Desktop medio */
@media (max-width:1500px){
  .site-header .nav-container{
    padding:0 36px;
    gap:20px;
  }

  .brand-logo{
    width:166px;
  }

  .desktop-nav{
    gap:4px;
  }

  .nav-link{
    padding:10px 10px;
    font-size:14px;
  }
}

/* Desktop compacto */
@media (max-width:1400px){
  .site-header .nav-container{
    padding:0 28px;
    gap:16px;
  }

  .brand-logo{
    width:154px;
  }

  .desktop-nav{
    gap:0;
  }

  .nav-link{
    padding:9px 8px;
    font-size:14px;
  }

  .btn-demo{
    min-height:38px;
    padding:0 14px;
    font-size:13px;
  }

  .btn-reward{
    width:40px;
    height:40px;
    flex-basis:40px;
  }
}

/* Tablet: cambia a menú móvil antes de encimarse */
@media (max-width:1320px){
  .desktop-nav,
  .nav-actions{
    display:none;
  }

  .site-header .nav-container{
    padding:0 24px;
  }

  .brand-logo{
    width:148px;
  }

  .navbar-burger{
    display:inline-flex;
    margin-left:auto;
  }
}

@media (max-width:900px){
  .brand-logo{
    width:140px;
  }

  .navbar-burger{
    width:42px;
    height:42px;
    flex-basis:42px;
  }
}

@media (max-width:560px){
  .site-navbar{
    padding:10px 0;
  }

  .site-header .nav-container{
    padding:0 16px;
  }

  .brand-logo{
    width:126px;
  }

  .navbar-burger{
    width:40px;
    height:40px;
    flex-basis:40px;
    border-radius:12px;
  }
}

.site-header.is-scrolled .site-navbar{
  padding:8px 0;
  box-shadow:0 10px 28px rgba(15,23,42,.06);
}

.site-header.is-scrolled .brand-logo{
  width:142px;
}

@media (max-width:560px){
  .site-header.is-scrolled .brand-logo{
    width:122px;
  }
}
/* ======================================================
   MOBILE MENU - DROPDOWN PREMIUM
====================================================== */

.mobile-overlay{
  display:none !important;
}

.mobile-menu{
  position:fixed !important;
  top:88px !important;
  left:0 !important;
  right:0 !important;
  bottom:auto !important;

  width:100% !important;
  max-width:none !important;
  height:auto !important;
  max-height:calc(100vh - 80px) !important;

  background:#ffffff !important;
  border-top:1px solid #eef2f7 !important;
  border-bottom:1px solid #eef2f7 !important;
  border-radius:0 !important;

  padding:28px 28px 30px !important;

  transform:translateY(-12px) !important;
  opacity:0 !important;
  visibility:hidden !important;
  pointer-events:none !important;

  transition:
    opacity .22s ease,
    transform .22s ease,
    visibility .22s ease !important;

  overflow-y:auto !important;
  z-index:9998 !important;
  box-shadow:none !important;
  box-sizing:border-box !important;
}

.mobile-menu.is-open{
  transform:translateY(0) !important;
  opacity:1 !important;
  visibility:visible !important;
  pointer-events:auto !important;
}

.mobile-menu-header{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  max-width:420px !important;
  margin:0 auto 14px !important;
  padding:0 !important;
}
.mobile-menu-header span{
  font-size:16px !important;
  font-weight:500 !important;
  color:#0b1220 !important;
}
.close-btn{
  position:static !important;
  width:34px !important;
  height:34px !important;
  flex:0 0 34px !important;
  border-radius:12px !important;
  background:#f5f8fb !important;
  color:#0b1220 !important;
  border:1px solid #edf1f5 !important;
  font-size:20px !important;
  font-weight:400 !important;
  line-height:1 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
}


.mobile-menu-list{
  max-width:420px !important;
  margin:0 auto !important;
  padding:0 !important;
  list-style:none !important;
}

.mobile-menu-list > li{
  border-bottom:1px solid #edf1f5 !important;
}

.mobile-menu-list a,
.mobile-menu-toggle{
  width:100% !important;
  padding:14px 0 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;

  background:transparent !important;
  border:0 !important;
  color:#0b1220 !important;
  text-decoration:none !important;

  font-size:15px !important;
  font-weight:500 !important;
  text-align:left !important;
   line-height:1.25 !important;
  color:#0b1220 !important;
}

.mobile-submenu{
  display:none !important;
  padding:0 0 12px 14px !important;
  margin:0 !important;
  list-style:none !important;
}

.mobile-submenu.is-open{
  display:block !important;
}

.mobile-submenu a{
  font-size:14px !important;
  font-weight:400 !important;
  color:#334155 !important;
  padding:10px 0 !important;
}


.mobile-actions{
  max-width:420px !important;
  margin:22px auto 0 !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  gap:12px !important;
}

.mobile-demo{
  width:100% !important;
  max-width:240px !important;
  height:42px !important;
  font-size:13px !important;
  font-weight:500 !important;
}

.mobile-voucher{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:10px !important;
  color:#009b8f !important;
  text-decoration:none !important;
  font-size:13px !important;
  font-weight:500 !important;
}

.mobile-voucher .voucher-icon{
  width:34px !important;
  height:34px !important;
  flex:0 0 34px !important;
  border-radius:50% !important;
  background:linear-gradient(135deg,#12d6c7 0%, #008f83 100%) !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
}

.mobile-voucher svg{
  width:16px !important;
  height:16px !important;
  fill:none !important;
  stroke:#fff !important;
  stroke-width:2 !important;
}
.mobile-menu-toggle .chevron{
  width:22px !important;
  height:22px !important;
  border-radius:50% !important;
  background:#e6fffb !important;
  color:#009b8f !important;
  font-size:15px !important;
  font-weight:500 !important;
  line-height:1 !important;

  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;

  transform:none !important;
  transition:transform .2s ease !important;
}

.mobile-menu-toggle.is-open .chevron{
  transform:rotate(180deg) !important;
}