/* puntilla-header.css: Estilos para el header y su container, completamente responsive */

body.puntilla-landing .puntilla-header {
  width: 100%;
  background: var(--b1, #181818);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0;
}

body.puntilla-landing .header-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  box-sizing: border-box;
  min-height: 56px;
  gap: 1.5rem;
}

body.puntilla-landing .logo-section {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Center the logo inside its container (middle-center) */
body.puntilla-landing .puntilla-header .puntilla-logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

body.puntilla-landing .puntilla-header .puntilla-logo-image {
  display: block;
  height: auto;
  width: auto;
  max-width: 100%;
  max-height: 40px; /* fit nicely within header */
}

body.puntilla-landing .horizontal-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
  margin: 0 !important;
}

/* NAV HORIZONTAL - HEADER */
body.puntilla-landing .horizontal-nav {
  background: var(--puntilla-white);
  width: 100%;
  flex-shrink: 0;
}

body.puntilla-landing .nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-4);
  display: flex;
  align-items: center;
}

body.puntilla-landing .nav-menu-horizontal {
  display: flex !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  flex-direction: row !important;
}

body.puntilla-landing .nav-item-horizontal {
  margin: 0;
  position: relative;
  display: inline-block;
  height: 100%;
}

body.puntilla-landing .nav-link-horizontal {
  display: flex !important;
  align-items: center;
  padding: var(--spacing-2) var(--spacing-3);
  color: var(--puntilla-gray-600);
  text-decoration: none;
  border-radius: var(--border-radius-md);
  transition: all var(--transition-fast);
  font-weight: 400;
  font-size: var(--font-size-xs);
  white-space: nowrap;
  position: relative;
  height: 100%;
  min-width: 120px;
  justify-content: center;
}

body.puntilla-landing .nav-link-horizontal:hover {
  background: var(--puntilla-gray-100);
  color: var(--grayscale-0) !important;
}

body.puntilla-landing .nav-item-horizontal.active .nav-link-horizontal:hover {
  background: transparent;
  color: var(--puntilla-primary-dark);
  transform: translateY(-1px);
}

body.puntilla-landing .nav-item-horizontal.active .nav-link-horizontal {
  background: var(--puntilla-primary);
  color: var(--puntilla-white);
  box-shadow: var(--shadow-md);
}

body.puntilla-landing .nav-item-horizontal.active .nav-link-horizontal::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 3px;
  background: var(--puntilla-accent);
  border-radius: 2px 2px 0 0;
}

body.puntilla-landing .puntilla-header #horizontal-nav .nav-item-horizontal.active .nav-link-horizontal::after {
  display: none;
}

body.puntilla-landing .nav-link-horizontal .material-icons {
  font-size: 18px;
  color: currentColor;
  margin-right: var(--spacing-2);
}

/* Responsive: tablet */
@media (max-width: 1024px) {
  body.puntilla-landing .header-container {
    padding: 0 1rem;
    min-height: 48px;
    gap: 1rem;
  }
  body.puntilla-landing .puntilla-header .puntilla-logo-image {
    max-height: 36px;
  }
}

/* Responsive: mobile */
@media (max-width: 768px) {
  body.puntilla-landing .header-container {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 0.5rem;
    min-height: 44px;
    gap: 0.5rem;
  }
  body.puntilla-landing .horizontal-nav {
    justify-content: center;
    margin-top: 1rem;
  }
  body.puntilla-landing .puntilla-header .puntilla-logo-image {
    max-height: 34px;
  }
}

@media (max-width: 480px) {
  body.puntilla-landing .header-container {
    padding: 0 0.25rem;
    min-height: 40px;
    gap: 0.25rem;
  }
  body.puntilla-landing .puntilla-header .puntilla-logo-image {
    max-height: 32px;
  }
}
