/* THB MENU 2025 - clean (standalone)
   - Header + desktop nav + mobile drawer + search overlay
   - Colors: black + dark gray (#111 / #1a1a1a)
   - No non-ASCII chars to avoid Dreamweaver encoding warnings
*/

/* Optional fonts. If you do NOT want external requests, delete these 2 lines. */
@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Open+Sans:wght@400;600&display=swap");

:root{
  --thb-bg: #000;
  --thb-fg: #FAF9F6;
  --thb-muted: rgba(255,255,255,.75);
  --thb-line: rgba(255,255,255,.18);
  --thb-radius: 999px;
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }
body{
  margin: 0;
  /*font-family: "Open Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;*/
  background: var(--thb-bg);
  color: var(--thb-fg);
}
a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: underline; }
img{ max-width: 100%; height: auto; }
button{ font: inherit; }

/* =========================
   HEADER LAYOUT
   ========================= */
.thb-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--thb-bg);
}

.thb-header__inner{
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 1280px; 
  margin: 0 auto;
  padding: 10px 32px;
}

/* Brand */
.thb-brand{ display:inline-flex; align-items:center; flex:0 0 auto; }
.thb-brand img{ height: 80px; width:auto;display: block; }

@media (min-width: 1200px){ .thb-brand img{ height: 95px; } }

/* Right block = nav + icons */
.thb-navWrap{ margin-left: auto; }
.thb-actions{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: 10px;
}


/* Iconos */
.thb-ico{ width: 27px; height: 27px; display: block; }
.thb-actions{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.thb-iconBtn{
  background: transparent;
  border: 0;
  color: var(--thb-fg);
  cursor: pointer;
  padding: 8px 6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.thb-iconLink{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}
.thb-iconLink img{
  display: block;
  height: 27px;
  width: auto;
}

/* =========================
   NAV DESKTOP (todo a la derecha)
   ========================= */
/*.thb-navWrap{
  margin-left: auto; 
}*/
.thb-nav{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 18px;
}

.thb-nav > li{ position: relative; }
.thb-nav > li > a{
  align-items: center;
  gap: 6px;
  padding: 12px 6px;
  font-family: "Bebas Neue", sans-serif;
  font-size: 18px;
  letter-spacing: .5px;
  line-height: 1;
  color: var(--thb-fg);
  display: flex;
  justify-content: space-between;
  text-decoration: none;
}

/* CTA */
.thb-cta{
  padding: 10px 12px !important;
  border: 2px solid var(--thb-line);
  border-radius: var(--thb-radius);
  text-decoration: none !important;
}
.thb-cta:hover{ border-color: rgba(255,255,255,.7); }

/* Submenu desktop */
.thb-sub{
  list-style: none;
  margin: 0;
  padding: 8px 0;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: #000;
  border: 1px solid var(--thb-line);
  display: none;
}
.thb-sub li a{
  display: block;
  padding: 5px 14px;
  font-family: "Bebas Neue", sans-serif;
  font-size: 17px;
  letter-spacing: .3px;
  color: var(--thb-fg);
}
.thb-hasSub:hover > .thb-sub{ display: block; }

/* Flechita opcional para items con sub */
.thb-hasSub > a::after{
  content:"";
  width: 5px;
  height: 5px;
  border-right: 2px solid #FAF9F6;
  border-bottom: 2px solid #FAF9F6;
  transform: rotate(45deg);
  translate: 0 -1px;
}

/* En movil el burger debe estar visible */
.thb-burger{ display:none; }

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 992px){
 
/* Layout: logo left, icons + burger right */
  .thb-header__inner{ flex-wrap: wrap; padding: 8px 12px }
  /*.thb-brand img{ height: 64px; }*/
  .thb-navWrap{ margin-left: 0; }
  .thb-actions{ margin-left: auto; }
  .thb-burger{ display: inline-flex; }

  /* Drawer container (overlay) */
  .thb-navWrap{
    position: fixed;
    inset: 0;
    background: #111;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .18s ease, visibility .18s ease;
    z-index: 70; /* below header (80) */
  }
  .thb-navWrap::before{
    content:"";
    position:absolute;
    inset: 0;
    background: linear-gradient(to bottom, var(--thb-panel), var(--thb-panel-2));
  }
  .thb-navWrap.is-open{
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  /* Menu list */
  .thb-nav{
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-top: 10px;
    border-top: 1px solid var(--thb-line);
    padding-top: 6px;
  }
  .thb-nav.is-open{ display: flex; }

  /* Submenu: click only */
  .thb-sub{
    position: static;
    display: none;
    border: 0;
    min-width: auto;
    background: #1a1a1a;
    margin: 0 0 10px 0;
    padding: 8px 0;
  }
    
  /* Mobile chevron: closed=down, open=up */    
  .thb-hasSub > a::after{
    content: "";
    width: 10px;
    height: 10px;
    border-right: 2px solid rgba(255,255,255,.70);
    border-bottom: 2px solid rgba(255,255,255,.70);
    transform: rotate(45deg) !important;  /* ? */
    transition: transform .2s ease;
    margin-left: 10px;
  }
  .thb-hasSub.is-open > a::after{ transform: rotate(225deg) !important;   /* ? */}
  .thb-hasSub:hover > a::after{transform:none;}  
  .thb-hasSub.is-open > .thb-sub{ display: block; }
  .thb-sub li a{ padding: 10px 18px; text-transform: uppercase;
    font-family: "Bebas Neue","Open Sans",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif!important;
    font-size: 20px!important;
    }
}

/* =========================
   BUSCADOR OVERLAY
   ========================= */

.thb-searchOverlay{
  position: fixed;
  inset: 0;
  z-index: 99999;                 
  background: rgba(0,0,0,.75); 
  opacity: 0;
  visibility: hidden;
  pointer-events: none; 
  transition: opacity .18s ease, visibility .18s ease;
}
.thb-searchOverlay.is-open{
  opacity: 1;
  visibility: visible;
  pointer-events: auto; 
}

body.thb-lock-search{ overflow: hidden; }

.thb-searchBar{
  max-width: 980px;
  margin: 22px auto 0;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  transform: translateY(-12px);
  transition: transform .18s ease;
}
.thb-searchOverlay.is-open .thb-searchBar{
  transform: translateY(0);
}

/* CAJA BLANCA */
.thb-searchForm{
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: 999px;
  padding: 14px 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}

.thb-searchForm input{
  width: 100%;
  background: transparent;
  border: 0;
  outline: 0;
  color: #111;
  font-size: 16px;
}

.thb-searchForm input::placeholder{color: #6b7280; opacity: 1;}

/* Icono lupa */
.thb-searchIco svg{ stroke: #111;}

/* Botones */
.thb-clearBtn{
  background: transparent;
  border: 0;
  color: #111;
  cursor: pointer;
  font-size: 16px;
  padding: 6px;
}

.thb-cancelBtn{
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
  font-size: 15px;
  padding: 10px 12px;
}


/* =========================
   MÓVIL FINAL: Drawer full-width + header por encima
   ========================= */
@media (max-width: 992px){
  /* Bloquea scroll al abrir */
  body.thb-lock{ overflow: hidden; }
    
  /* Header por encima */
  .thb-header{ z-index: 200; }
  .thb-header__inner{ flex-wrap: nowrap; }
  .thb-actions{ margin-left: auto; position: relative; z-index: 10000; }
  .thb-burger{ 
    order: 3; margin-left: 10px;
    display: inline-flex;
    background: transparent;
    border: 0;
    padding: 8px;
    cursor: pointer;
    gap: 5px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .thb-burger__bar{
    display:block;
    width: 20px;
    height: 2px;
    background: var(--thb-fg);
    opacity: .9;
    transition: transform .18s ease, opacity .18s ease;
  }

  .thb-burger.is-open .thb-burger__bar:nth-child(1){ transform: translateY(7px) rotate(45deg); }
  .thb-burger.is-open .thb-burger__bar:nth-child(2){ opacity: 0; }
  .thb-burger.is-open .thb-burger__bar:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

  .thb-navWrap{
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100dvh;
   transform: translateX(100%);
    transition: transform .2s ease;
    z-index: 150;
    padding: 0 18px 18px; /* espacio para header */
    overflow: auto;
    margin-left: 0;
    margin-top: 6rem;
  }
  .thb-navWrap.is-open{ transform: translateX(0); }

  .thb-nav{
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0;
  }
  .thb-nav > li{ border-bottom: 1px solid rgba(255,255,255,.10);}
  .thb-nav > li:last-child{border-bottom: 0;}
  .thb-nav > li > a:active{ background: rgba(255,255,255,.06); }
  .thb-sub li a:active{ background: rgba(255,255,255,.06); }
  
  /* CTA */
  .thb-cta{
    background: transparent !important;
    border: 2px solid rgba(255,255,255,.55) !important;
    color: rgba(255,255,255,.55) !important;
    border-radius: 25px !important;
    margin: 14px 6px 0;
    padding: 14px 12px !important;
    justify-content: center !important;
    text-decoration: none !important;
      font-size: 1.5rem!important;
  }
    .thb-cta:hover{
    border-color: #F7F5F2!important;
    color: #F7F5F2!important;
  }

 /* desactivar hover de desktop para submenus */
  .thb-hasSub:hover > .thb-sub{ display: none; }
  .thb-hasSub.is-open > .thb-sub{ display: block; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce){
  .thb-searchOverlay, .thb-searchBar{ transition: none; }
}
.thb-drawerTop{ display:none; }
