/* =====================================================================
   TRIPLE TRIAD · MENÚ Y NAVEGACIÓN (cierre de diseño)
   ---------------------------------------------------------------------
   Última capa. Manda sobre todas las anteriores (se carga al final).

   Lo que reproduce del estilo de interfaz de FFXIV:
     - barra superior de ventana con filo dorado y esquinas biseladas
     - pestañas con subrayado dorado y fondo degradado al estar activas
     - etiquetas en versalita espaciada, tipografía serif en el logo
     - botón de cuenta con forma de pastilla y filo interior
     - todo el cromo comparte el mismo lenguaje: filo doble + brillo tenue

   No usa arte de Square Enix: son bordes, degradados y tipografía.
   ===================================================================== */

/* ================= BARRA SUPERIOR ================= */
.tt-barra {
  position: relative;
  display: flex !important;
  align-items: center !important;
  gap: 18px !important;
  padding: 10px 20px !important;
  background:
    linear-gradient(180deg, rgba(38, 52, 68, .97) 0%, rgba(16, 24, 33, .99) 100%) !important;
  border-bottom: 1px solid #6d5f3e !important;
  box-shadow:
    0 1px 0 rgba(200, 178, 115, .22) inset,
    0 -1px 0 rgba(0, 0, 0, .6) inset,
    0 6px 22px rgba(0, 0, 0, .65) !important;
}
/* filo interior claro justo debajo del borde */
.tt-barra::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 1px;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%, rgba(200, 178, 115, .28) 18%,
    rgba(200, 178, 115, .28) 82%, transparent 100%);
  pointer-events: none;
}

/* ================= LOGO ================= */
.tt-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  text-decoration: none;
  padding-right: 20px;
  border-right: 1px solid rgba(200, 178, 115, .20);
}
.tt-logo-marca {
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: 19px !important;
  letter-spacing: .10em !important;
  color: #e8d9b0 !important;
  text-shadow: 0 1px 0 #000, 0 0 18px rgba(200, 178, 115, .28) !important;
  font-weight: 400 !important;
}
.tt-logo-sub {
  font-family: Georgia, serif !important;
  font-size: 8.5px !important;
  letter-spacing: .42em !important;
  color: #8d8262 !important;
  margin-top: 3px;
}

/* ================= PESTAÑAS ================= */
.tt-nav {
  display: flex !important;
  align-items: stretch !important;
  gap: 2px !important;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.tt-nav::-webkit-scrollbar { display: none; }

.tt-nav .tt-tab {
  position: relative;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 2px solid transparent !important;
  border-radius: 0 !important;
  padding: 9px 15px !important;
  color: #93a0ad !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: 11px !important;
  letter-spacing: .14em !important;
  text-transform: uppercase !important;
  cursor: pointer;
  white-space: nowrap;
  transition: color .16s, background .16s, border-color .16s !important;
}
.tt-nav .tt-tab:hover {
  color: #efe6cf !important;
  background: rgba(200, 178, 115, .07) !important;
  border-bottom-color: rgba(200, 178, 115, .40) !important;
}
.tt-nav .tt-tab.activo {
  color: #f4ead2 !important;
  border-bottom-color: #c8b273 !important;
  background:
    linear-gradient(180deg, rgba(200, 178, 115, .16), rgba(200, 178, 115, 0)) !important;
  text-shadow: 0 0 14px rgba(200, 178, 115, .35) !important;
}
/* marca pequeña de esquina en la pestaña activa */
.tt-nav .tt-tab.activo::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 18px; height: 2px;
  background: #c8b273;
  box-shadow: 0 0 8px rgba(200, 178, 115, .8);
}

/* ================= ZONA DE CUENTA ================= */
.tt-cuenta {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex: 0 0 auto;
}
.tt-cuenta .tt-pildora {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border: 1px solid #6d5f3e;
  border-radius: 1px;
  background: linear-gradient(180deg, rgba(30, 45, 61, .95), rgba(16, 24, 33, .98));
  box-shadow: 0 0 0 1px rgba(200, 178, 115, .14) inset;
  color: #e8d9b0;
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.tt-cuenta .tt-quien {
  color: #efe6cf;
  font-family: Georgia, serif;
  font-size: 12px;
  letter-spacing: .04em;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tt-cuenta .tt-enlace {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border: 1px solid #6d5f3e !important;
  border-radius: 1px !important;
  background: linear-gradient(180deg, rgba(30, 45, 61, .95), rgba(16, 24, 33, .98)) !important;
  box-shadow: 0 0 0 1px rgba(200, 178, 115, .14) inset !important;
  color: #c8b273 !important;
  font-size: 10.5px !important;
  letter-spacing: .10em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}
.tt-cuenta .tt-enlace:hover {
  border-color: #c8b273 !important;
  color: #f4ead2 !important;
  background: linear-gradient(180deg, rgba(200, 178, 115, .18), rgba(16, 24, 33, .98)) !important;
}
.tt-version {
  font-size: 8.5px;
  color: #6b7686;
  letter-spacing: .04em;
  padding: 1px 5px;
  border: 1px solid rgba(109, 95, 62, .5);
  border-radius: 1px;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
  .tt-barra { flex-wrap: wrap; gap: 10px !important; padding: 9px 12px !important; }
  .tt-logo { border-right: 0; padding-right: 0; }
  .tt-nav { order: 3; width: 100%; }
  .tt-nav .tt-tab { padding: 8px 10px !important; font-size: 10px !important; letter-spacing: .08em !important; }
  .tt-cuenta { margin-left: auto; }
  .tt-cuenta .tt-quien { max-width: 90px; }
}
@media (max-width: 560px) {
  .tt-nav .tt-tab { padding: 7px 7px !important; font-size: 9px !important; }
  .tt-cuenta .tt-pildora { padding: 4px 8px; font-size: 10px; }
}

/* ================= MOVIMIENTO REDUCIDO ================= */
@media (prefers-reduced-motion: reduce) {
  .tt-nav .tt-tab { transition: none !important; }
}
