/* ===== css/header.css ===== */

/* HEADER - OCUPA TODO EL ANCHO */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(204, 0, 0, 0.5);
  padding: 0.75rem 0 0.5rem 0;
  border-bottom: 3px solid rgba(139, 0, 0, 0.2);
  box-shadow: 0 4px 25px rgba(23, 29, 49, 0.5);
  width: 100%;
  transition: transform 0.3s ease-in-out;
}

/* Ocultar header al hacer scroll hacia abajo */
.header.hidden {
  transform: translateY(-100%);
}

/* Contenedor interno - centrado con max-width */
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ============================================================
   LOGO - SIN EFECTOS VISUALES (FUNCIÓN SECRETA)
   ============================================================ */
.logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  max-width: 100px;
  transition: all 0.3s ease;
  margin-bottom: -5px;
  cursor: default;
}

.logo-img {
  width: 100%;
  height: auto;
  aspect-ratio: 8 / 3;
  object-fit: cover;
  display: block;
  border-radius: 4px;
  filter: brightness(0.9) sepia(0.1);
}

/* ============================================================
   REDES SOCIALES - SIEMPRE A LA DERECHA
   ============================================================ */
.social-icons {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex: 0 0 auto;
  margin-top: 4px !important;
}

.social-icons a {
  color: #C0C0C0; /* Plomo */
  font-size: 1.5rem;
  transition: color 0.3s, transform 0.3s, text-shadow 0.3s;
  text-decoration: none;
}

.social-icons a:hover {
  color: #ffffff; 
  transform: scale(1.2);
  text-shadow: 0 0 25px rgba(204, 0, 0, 0.4);
}

/* ============================================================
   CENTRO VACÍO
   ============================================================ */
.header-center {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .header {
    padding: 0.3rem 0 0.1rem 0;
  }

  .header-inner {
    padding: 0.5rem 1rem;
  }

  .logo {
    max-width: 70px;
  }

  .social-icons {
    gap: 0.8rem;
  }

  .social-icons a {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .logo {
    max-width: 80px;
  }

  .social-icons a {
    font-size: 1.1rem;
  }
  
  .social-icons {
    gap: 0.6rem;
  }
}