@font-face {
  font-family: 'RUSH FLOW';
  src: url('../fonts/rush-flow.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* =========================
   VARIABLES
========================= */
:root{
  --tm-orange:#ff7a00;
  --tm-black:#000;
  --tm-white:#fff;

  /* 🔥 ALTURA REAL ÚNICA DEL HEADER */
  --tm-header-h:68px;

  --tm-font:"RUSH FLOW", system-ui, -apple-system, Segoe UI, Arial, sans-serif;
}

/* =========================
   RESET TOTAL
========================= */
.tm-header,
.tm-header *{
  box-sizing:border-box;
}

.tm-header a,
.tm-header a:visited,
.tm-header a:hover,
.tm-header a:focus{
  text-decoration:none !important;
  outline:none;
}

/* =========================
   HEADER
========================= */
.tm-header{
  background:var(--tm-black);
  border-bottom:2px solid var(--tm-orange);
  width:100%;
  margin:0;
  padding:0;
  position:relative;
  z-index:999;
}

/* ❌ ELIMINADO EL ::after (CAUSANTE DEL ESPACIO) */

/* =========================
   CONTENEDOR INTERNO
========================= */
.tm-header-inner{
  height:var(--tm-header-h);
  max-width:1320px;
  margin:0 auto;
  padding:0 16px;

  display:grid;
  grid-template-columns: 1fr auto 1fr;
  align-items:center;
}

/* =========================
   LOGO
========================= */
.tm-left{
  display:flex;
  align-items:center;
}

.tm-logo img{
  height:52px;       /* 🔥 MÁS GRANDE */
  width:auto;
  display:block;
}

@media (max-width:900px){
  .tm-logo img{
    height:40px;
  }
}

/* =========================
   CENTRO
========================= */
.tm-center{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:22px;
  min-width:0;
}

/* =========================
   MENÚ DESKTOP
========================= */
.tm-menu{
  display:flex;
  align-items:center;
  gap:30px;
}

.tm-menu a{
  font-family:var(--tm-font);
  color:var(--tm-orange) !important;
  font-size:16px;
  letter-spacing:1px;
  transition:.2s ease;
}

.tm-menu a:hover{
  color:var(--tm-white) !important;
}

/* =========================
   DERECHA
========================= */
.tm-right{
  display:flex;
  align-items:center;
  justify-content:flex-end;
}

.tm-actions{
  display:flex;
  align-items:center;
  gap:10px;
}

/* =========================
   BOTONES PC
========================= */
.tm-btn{
  font-family:var(--tm-font);
  background:var(--tm-orange);
  color:#000 !important;
  padding:7px 14px;
  border-radius:10px;
  font-size:13px;
  transition:.2s ease;
}

.tm-btn:hover{
  color:var(--tm-white) !important;
}

.tm-btn.outline{
  background:transparent;
  border:1px solid rgba(255,122,0,.75);
  color:var(--tm-orange) !important;
}

/* =========================
   LOGOUT
========================= */
.tm-logout{
  font-family:var(--tm-font);
  color:var(--tm-orange) !important;
  font-size:14px;
}

.tm-logout:hover{
  color:var(--tm-white) !important;
}

.tm-logout .icon{ display:none; }

/* =========================
   ICONOS MOBILE
========================= */
.tm-icon-btn{
  display:none;
  width:40px;
  height:40px;
  border-radius:12px;
  border:1px solid rgba(255,122,0,.45);
  background:rgba(255,122,0,.08);
  color:var(--tm-orange) !important;
  align-items:center;
  justify-content:center;
  font-size:18px;
}

/* =========================
   BURGER
========================= */
.tm-burger{
  display:none;
  width:44px;
  height:44px;
  border-radius:12px;
  border:1px solid rgba(255,122,0,.45);
  background:rgba(255,122,0,.08);
  cursor:pointer;
  padding:10px;
  gap:6px;
  flex-direction:column;
  justify-content:center;
}

.tm-burger span{
  height:2px;
  background:var(--tm-orange);
  display:block;
}

/* =========================
   MOBILE
========================= */
@media (max-width:900px){

  .tm-burger{ display:flex; }
  .tm-btn{ display:none; }
  .tm-icon-btn{ display:inline-flex; }

  .tm-menu{
    position:fixed;
    top: calc(var(--tm-header-h) + 14px);
    left:14px;
    right:14px;

    background:var(--tm-black);
    border:1px solid rgba(255,122,0,.35);
    border-radius:18px;
    padding:18px;

    display:flex;
    flex-direction:column;
    gap:14px;

    opacity:0;
    transform: translateY(-12px);
    pointer-events:none;
    transition:.22s ease;
    z-index:9999;
  }

  body.tm-menu-open .tm-menu{
    opacity:1;
    transform: translateY(0);
    pointer-events:auto;
  }

  .tm-menu a{
    font-size:17px;
    padding:12px;
    border-radius:14px;
    background:rgba(255,122,0,.06);
    border:1px solid rgba(255,122,0,.20);
  }
}
