/* 
========================================================================
   AG GLOBAL TECNOLOGÍA - ESTILOS PERSONALIZADOS MOCKUP
========================================================================
*/

/* 1. SCROLLBAR PREMIUM */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #070b13;
}
::-webkit-scrollbar-thumb {
  background: #151e2e;
  border-radius: 4px;
  border: 1px solid #070b13;
}
::-webkit-scrollbar-thumb:hover {
  background: #1e6fd9;
}

/* 2. TRANSICIONES Y HOVERS DEL HEADER (NEXIN Style) */
#header {
  height: 6rem; /* 96px */
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#header.scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  height: 5rem; /* 80px */
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.08);
}

#header .nav-link {
  height: 100%;
  display: inline-flex;
  align-items: center;
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease-in-out;
  border-radius: 0px !important;
}

#header .nav-link:hover,
#header .nav-link.active {
  background-color: #f8fafc; /* slate-50 */
  color: #0f172a; /* slate-900 */
  border-bottom-color: #1e6fd9; /* blue active line */
}

/* 3. MENU MÓVIL TOGGLE */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 16px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
  position: relative;
}
.nav-toggle span {
  width: 100%;
  height: 2px;
  background-color: #334155; /* slate-700 for light header */
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
  background-color: #0f172a;
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
  background-color: #0f172a;
}

/* 4. REVELACIÓN AL HACER SCROLL */
.reveal {
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}
.reveal-left {
  transform: translateX(-40px);
}
.reveal-right {
  transform: translateX(40px);
}
.reveal-up {
  transform: translateY(40px);
}
.reveal.active {
  opacity: 1;
  transform: translate(0, 0);
}

/* 5. FORMULARIO B2B - MENSAJES FEEDBACK */
.form-feedback {
  transition: all 0.3s ease;
}
.form-feedback.success {
  background-color: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #10b981;
}
.form-feedback.error {
  background-color: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

/* 6. METODOLOGÍA - CONEXIÓN LINEAL (DESKTOP) */
@media (min-width: 768px) {
  #metodologia .grid > div:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 3.5rem;
    right: -1rem;
    width: 2rem;
    height: 1px;
    background: linear-gradient(90deg, #1e6fd9, transparent);
    z-index: 5;
  }
}
