
/* ============================
   HEADER (siempre visible)
   ============================ */

:root{
  --header-h: 92px; /* altura del header con logo grande */
}

.main-header{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: rgba(13, 13, 13, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner{
  max-width: 1200px;
  margin: 0 auto;
  height: var(--header-h);
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}


/* Izquierda */
.header-left {
  justify-self: start;
}

.header-link {
  color: #e5e7eb;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  opacity: 0.85;
}

.header-link:hover {
  opacity: 1;
}

/* Centro */
.header-center{
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: center;
}

.header-brand-link{
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  line-height: 1;
}

.header-logo {
  display: block;
  width: 64px;
  height: 64px;
}

.header-brand {
  font-weight: 600;
  font-size: 30px;
  letter-spacing: 0.2px;
  line-height: 1;
}

.header-cta {
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #0d0d0d;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}

/* Derecha */
.header-right {
  justify-self: end;
}


.header-cta:hover {
  opacity: 0.9;
}

/* Mobile */
@media (max-width: 640px) {
  .header-link {
    font-size: 13px;
  }

  .header-logo {
    width: 44px;
    height: 44px;
  }

  .header-brand {
    font-size: 20px;
  }

  .header-cta {
    padding: 7px 12px;
    font-size: 12px;
  }
}



/* Empuja todo el contenido hacia abajo para que no quede debajo del header */
body{
  padding-top: var(--header-h);
}

/* Mobile: header un poco más bajo */
@media (max-width: 640px){
  :root{ --header-h: 72px; }
  body{ padding-top: var(--header-h); }
}

.main-header .header-brand{
  font-size: 30px;
  font-weight: 600;
}

/* Blog: más “impactante” (pill + borde + micro-contraste) */
.header-link--blog{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;

  font-weight: 800;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  font-size: 12.5px;

  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  opacity: 1; /* anula el 0.85 del base */
}

/* Punto/acento visual delante */
.header-link--blog::before{
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(220,20,60,0.16);
}

/* Hover: más intención */
.header-link--blog:hover{
  background: rgba(220,20,60,0.14);
  border-color: rgba(220,20,60,0.35);
}

/* Estado activo cuando estás en /blog/ */
.header-link--blog.is-active{
  background: rgba(220,20,60,0.18);
  border-color: rgba(220,20,60,0.55);
}