/* css/components.css */

/* Navigation */
.nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--content-padding);
  background: transparent;
  z-index: 9000;
  transition: background-color 0.4s ease, backdrop-filter 0.4s ease;
}

.nav.scrolled {
  background-color: rgba(8, 8, 8, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav-left {
  flex: 1;
}

.nav-left .nav-brand {
  color: var(--white);
  letter-spacing: 6px;
  cursor: none;
}

.nav-center {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-heartbeat {
  width: 40px;
  height: 1px;
  background-color: var(--accent-active);
  animation: heartbeat 3s infinite ease-in-out;
}

@keyframes heartbeat {
  0% { opacity: 0.3; }
  50% { opacity: 0.8; }
  100% { opacity: 0.3; }
}

.nav-right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  gap: 32px;
}

.nav-link {
  position: relative;
  padding-bottom: 4px;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 0;
  background-color: var(--accent-active);
  transition: width 0.25s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Base button links */
.cta-button {
  display: inline-block;
  padding: 12px 28px;
  border: 1px solid var(--grey-structural);
  background: transparent;
  color: var(--white);
  text-decoration: none;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  transition: border-color 0.3s, color 0.3s;
}

.cta-button:hover {
  border-color: var(--accent-active);
  color: var(--accent-active);
}

/* Page Transition Overlay */
.page-transition-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: var(--black);
  transform: translateY(100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.transition-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 8px;
  text-transform: uppercase;
  color: var(--white); /* Updated from structural, the prompt says "FIGURA SONORA" */
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Custom Cursor */
.cursor-outer {
  position: fixed;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  border: 1px solid var(--grey-structural);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease, border-color 0.3s ease, width 0.3s ease, height 0.3s ease, border-radius 0.3s ease;
  will-change: width, height, transform, border;
}

.cursor-inner {
  position: fixed;
  top: 0;
  left: 0;
  width: 3px;
  height: 3px;
  background-color: var(--accent-active);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  will-change: transform;
}

.cursor-outer.hover {
  width: 36px;
  height: 36px;
  border-color: var(--accent-active);
}

.cursor-outer.text-hover {
  width: 20px;
  height: 1px;
  border-radius: 0;
  background-color: var(--grey-structural);
  border-color: transparent;
}
