:root{
  --bg:#0b1020;
  --bg2:#0f1630;

  --text:#e7ecff;
  --muted: rgba(231,236,255,.78);
  --muted2: rgba(231,236,255,.55);

  --stroke: rgba(255,255,255,.10);
  --stroke2: rgba(255,255,255,.14);

  --accent:#7c4dff;   /* azul/logo */
  --accent2:#00d4ff;  /* cyan/logo */

  --danger:#fb7185;

  --shadow: 0 18px 45px rgba(0,0,0,.45);
  --shadow2: 0 12px 26px rgba(0,0,0,.25);
  --radius: 18px;
}

*{ box-sizing:border-box; }
a{ color: inherit; text-decoration:none; }

:focus{ outline:none; }
:focus-visible{
  box-shadow: 0 0 0 3px rgba(124,77,255,.28);
  border-radius: 12px;
}

/* =========================
   TOPBAR
========================= */
.ith-topbar{
  position: sticky;
  top: 0;
  z-index: 10000;
  backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(11,16,32,.72), rgba(11,16,32,.42));
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.ith-container{
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px;
}

.ith-nav{
  height: 64px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  flex-wrap: nowrap;
}

/* =========================
   BRAND
========================= */
.ith-brand{
  display:flex;
  align-items:center;
  gap: 10px;
  font-weight: 900;
  letter-spacing:.3px;
  min-width: 190px;
  flex: 0 0 auto;
}

.ith-logo{
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background:
    radial-gradient(circle at 35% 35%, rgba(255,255,255,.45), transparent 55%),
    linear-gradient(135deg, rgba(124,77,255,1), rgba(0,212,255,1));
  box-shadow: 0 10px 30px rgba(124,77,255,.25);
  position: relative;
}

.ith-logo:after{
  content:"";
  position:absolute;
  inset: 9px;
  border-radius: 8px;
  background: rgba(11,16,32,.55);
  border: 1px solid rgba(255,255,255,.14);
}

.ith-brandTxt{
  display:flex;
  align-items:center;
  gap: 10px;
}

.ith-title{
  font-weight: 950;
  color: var(--text);
}

/* =========================
   DESKTOP MENU (short + centered pill)
========================= */
.ith-links{
  display:flex;
  align-items:center;
  gap: 8px;
  padding: 4px 6px;
  border-radius: 999px;

  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 10px 22px rgba(0,0,0,.18);
  overflow: hidden;

  flex: 0 0 auto;
  margin: 0 auto;
  justify-content: center;
}

.ith-links::before,
.ith-links::after{
  content:none !important;
}

.ith-link{
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .10em;
  text-transform: uppercase;

  border-radius: 999px;
  color: rgba(231,236,255,.78);

  border: 1px solid transparent;
  transition: transform .12s ease, background .12s ease, color .12s ease, border-color .12s ease, box-shadow .12s ease;
  position: relative;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1;
  white-space: nowrap;
}

.ith-link:hover{
  color: rgba(231,236,255,.96);
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.10);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0,0,0,.18);
}

.ith-link.is-active{
  color: rgba(231,236,255,.98);
  background: rgba(124,77,255,.12);
  border-color: rgba(124,77,255,.28);
  box-shadow: 0 10px 22px rgba(124,77,255,.10);
}

.ith-link.is-active::after{
  content:"";
  position:absolute;
  left: 50%;
  bottom: 5px;
  transform: translateX(-50%);
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(124,77,255,1), rgba(0,212,255,1));
  opacity: .85;
}

/* =========================
   HOME icon in menu
========================= */
.ith-link-home{
  padding: 8px 10px;
  letter-spacing: normal;
}

.ith-link-home svg{
  display:block;
}

.ith-link-home:hover{
  background: linear-gradient(135deg, rgba(124,77,255,.18), rgba(0,212,255,.12));
  border-color: rgba(124,77,255,.28);
}

.ith-link-home.is-active::after{ content:none; }

/* =========================
   TOOLTIP (Home)
========================= */
.ith-tooltip{
  position: absolute;
  bottom: -34px;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;

  color: rgba(231,236,255,.98);
  background: rgba(20,26,42,.95);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  white-space: nowrap;

  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
  box-shadow: 0 10px 20px rgba(0,0,0,.35);
}

.ith-link:hover .ith-tooltip,
.ith-link:focus-visible .ith-tooltip{
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (hover: none){
  .ith-tooltip{ display:none; }
}

/* =========================
   ACTIONS (right side)
========================= */
.ith-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap: 10px;
  flex-wrap: nowrap;
}

a.ith-btn,
button.ith-btn{
  height: 40px;
  padding: 0 14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;

  border: 1px solid rgba(255,255,255,.10);
  border-radius: 12px;

  background: rgba(255,255,255,.06);
  color: var(--text);

  cursor: pointer;
  font-size: 14px;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;

  box-shadow: var(--shadow2);
  transition: transform .12s ease, background .12s ease, border-color .12s ease;

  text-decoration: none;
  -webkit-appearance: none;
  appearance: none;
}

a.ith-btn:hover,
button.ith-btn:hover{
  background: rgba(255,255,255,.09);
  border-color: rgba(255,255,255,.16);
  transform: translateY(-1px);
}

a.ith-btn:active,
button.ith-btn:active{ transform: translateY(0px); }

/* Icon helper (NEW) */
.ith-ico{
  display:block;
  flex: 0 0 auto;
}

/* Primary CTA */
.ith-primary{
  background: linear-gradient(135deg, rgba(124,77,255,.95), rgba(0,212,255,.85));
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 18px 40px rgba(124,77,255,.22);
}

.ith-primary:hover{
  background: linear-gradient(135deg, rgba(124,77,255,1), rgba(0,212,255,.95));
}

/* Mi perfil (logo color) */
.ith-outline-ithub{
  border-color: rgba(124, 77, 255, .45);
  background: rgba(124, 77, 255, .12);
  color: rgba(231,236,255,.95);
}

.ith-outline-ithub:hover{
  border-color: rgba(124, 77, 255, .65);
  background: rgba(124, 77, 255, .18);
}

/* Logout (red) + NEW: a bit more subtle until hover */
.ith-danger{
  border-color: rgba(251,113,133,.40);
  background: rgba(251,113,133,.06); /* changed: more subtle */
  color: #ffd0d8;
}

.ith-danger:hover{
  border-color: rgba(251,113,133,.55);
  background: rgba(251,113,133,.14);
}

/* Hello pill */
.ith-hello{
  height: 40px;
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 0 12px;
  border-radius: 999px;

  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(231,236,255,.88);
}

.ith-wave{
  display:inline-block;
  transform-origin: 70% 70%;
  animation: ithWave 1.2s ease-in-out infinite;
}

@keyframes ithWave{
  0%{transform:rotate(0deg)}
  15%{transform:rotate(14deg)}
  30%{transform:rotate(-10deg)}
  45%{transform:rotate(14deg)}
  60%{transform:rotate(-6deg)}
  75%{transform:rotate(10deg)}
  100%{transform:rotate(0deg)}
}

/* =========================
   MOBILE NAV
========================= */
.ith-hamburger{ display:none !important; }

.ith-mnav{
  padding: 10px 0 14px;
}

.ith-mnav a{
  display:block;
  padding: 12px 12px;
  margin-top: 8px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.14);
  color: rgba(231,236,255,.82);
  font-weight: 850;
  letter-spacing: .10em;
  text-transform: uppercase;
  font-size: 12px;
}

.ith-mnav a:hover{
  border-color: rgba(255,255,255,.16);
  color: rgba(231,236,255,.95);
  background: rgba(255,255,255,.04);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 980px){
  .ith-links{ display:none; }
  .ith-hamburger{ display:inline-flex !important; }
}

@media (max-width: 760px){
  .ith-links{ display:none; }
  .ith-hamburger{ display:inline-flex !important; }
}
