/* ============================================================
   QUILLAX CORPORATE WEBSITE - DESIGN SYSTEM & STYLES
   Corporación Tecnológica Quillax S.A.C.S.
   Color Palette derived from brand logo:
     - Copper/Rose Gold: #C47A5A, #D4956B, #B8734F
     - Dark Navy Metallic: #0F1B33, #1A2744, #243352
     - Cyan/Blue Metallic: #4A9FD9, #6FC3E8, #3B8CC4
   ============================================================ */

/* ── CSS Custom Properties (Design Tokens) ───────────────── */
:root {
  /* Primary - Copper/Rose Gold Metallic */
  --copper-100: #F2D6C6;
  --copper-200: #E8B89A;
  --copper-300: #D4956B;
  --copper-400: #C47A5A;
  --copper-500: #B8734F;
  --copper-600: #9F5F3E;
  --copper-gradient: linear-gradient(135deg, #D4956B 0%, #C47A5A 40%, #9F5F3E 100%);
  --copper-gradient-hover: linear-gradient(135deg, #E8B89A 0%, #D4956B 40%, #C47A5A 100%);
  --copper-glow: 0 0 25px rgba(196, 122, 90, 0.4);

  /* Secondary - Dark Navy Metallic */
  --navy-900: #060D1A;
  --navy-800: #0F1B33;
  --navy-700: #1A2744;
  --navy-600: #243352;
  --navy-500: #2E4066;
  --navy-400: #3A507A;
  --navy-gradient: linear-gradient(180deg, #0F1B33 0%, #1A2744 50%, #243352 100%);

  /* Tertiary - Cyan/Blue Metallic (circuit traces) */
  --cyan-100: #B5E3F7;
  --cyan-200: #8ED5F2;
  --cyan-300: #6FC3E8;
  --cyan-400: #4A9FD9;
  --cyan-500: #3B8CC4;
  --cyan-600: #2C6F9E;
  --cyan-glow: 0 0 15px rgba(74, 159, 217, 0.3);

  /* Neutrals */
  --white: #FFFFFF;
  --gray-100: #E8ECF1;
  --gray-200: #C8D0DB;
  --gray-300: #A0AEC0;
  --gray-400: #718096;
  --gray-500: #4A5568;

  /* Glass effects */
  --glass-bg: rgba(26, 39, 68, 0.6);
  --glass-border: rgba(196, 122, 90, 0.15);
  --glass-blur: blur(20px);

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Outfit', 'Inter', sans-serif;

  /* Spacing */
  --section-padding: clamp(60px, 8vw, 120px);
  --container-max: 1280px;
  --container-padding: clamp(16px, 4vw, 40px);

  /* Borders */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-medium: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Base ────────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  background-color: var(--navy-800);
  color: var(--gray-200);
  line-height: 1.7;
  overflow-x: hidden;
}

::selection {
  background: rgba(196, 122, 90, 0.3);
  color: var(--white);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul, ol { list-style: none; }

/* ── Container ───────────────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* ── Section Titles ──────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: rgba(196, 122, 90, 0.1);
  border: 1px solid rgba(196, 122, 90, 0.25);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--copper-300);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.section-badge i {
  font-size: 0.7rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-title .accent {
  background: var(--copper-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--gray-300);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ── Circuit Board Background Pattern ────────────────────── */
.circuit-bg {
  position: relative;
  overflow: hidden;
}

.circuit-bg::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-image:
    /* Horizontal traces */
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 80px,
      rgba(74, 159, 217, 0.03) 80px,
      rgba(74, 159, 217, 0.03) 81px
    ),
    /* Vertical traces */
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 120px,
      rgba(74, 159, 217, 0.03) 120px,
      rgba(74, 159, 217, 0.03) 121px
    );
  pointer-events: none;
  z-index: 0;
}

.circuit-bg > * {
  position: relative;
  z-index: 1;
}

/* ── Circuit nodes (animated dots) ───────────────────────── */
.circuit-nodes {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.circuit-node {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--cyan-400);
  border-radius: 50%;
  opacity: 0;
  box-shadow: 0 0 8px rgba(74, 159, 217, 0.6);
  animation: nodeGlow 4s ease-in-out infinite;
}

@keyframes nodeGlow {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  50% { opacity: 0.7; transform: scale(1.2); }
}

/* ── Navigation ──────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 0;
  transition: all var(--transition-medium);
}

.navbar.scrolled {
  background: rgba(15, 27, 51, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(196, 122, 90, 0.1);
  padding: 10px 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1001;
}

.nav-logo img {
  height: 44px;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(196, 122, 90, 0.3));
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 1px;
}

.nav-logo-text span {
  background: var(--copper-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 8px 18px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-200);
  border-radius: var(--radius-sm);
  position: relative;
  transition: all var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--copper-300);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 24px;
  height: 2px;
  background: var(--copper-gradient);
  border-radius: 2px;
  transition: transform var(--transition-fast);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: translateX(-50%) scaleX(1);
}

.nav-cta {
  padding: 10px 24px !important;
  background: var(--copper-gradient) !important;
  color: var(--white) !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 15px rgba(196, 122, 90, 0.3);
  transition: all var(--transition-fast) !important;
}

.nav-cta:hover {
  box-shadow: var(--copper-glow) !important;
  transform: translateY(-1px);
}

.nav-cta::after {
  display: none !important;
}

/* Hamburger Menu */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
  padding: 8px;
}

.nav-hamburger span {
  width: 26px;
  height: 2.5px;
  background: var(--copper-300);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.nav-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ── Hero Section ────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 40%, var(--navy-700) 100%);
  overflow: hidden;
}

.hero-bg-effects {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}

.hero-gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.3;
}

.hero-gradient-orb.copper {
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--copper-400), transparent 70%);
  top: -15%;
  right: -10%;
  animation: orbFloat 12s ease-in-out infinite;
}

.hero-gradient-orb.cyan {
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--cyan-500), transparent 70%);
  bottom: -20%;
  left: -10%;
  animation: orbFloat 15s ease-in-out infinite reverse;
}

.hero-gradient-orb.navy {
  width: 700px; height: 700px;
  background: radial-gradient(circle, var(--navy-500), transparent 60%);
  top: 40%;
  left: 30%;
  animation: orbFloat 18s ease-in-out infinite;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding-top: 100px;
  padding-bottom: 60px;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(196, 122, 90, 0.08);
  border: 1px solid rgba(196, 122, 90, 0.2);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--copper-300);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 28px;
  animation: fadeInUp 0.8s ease-out;
}

.hero-badge .pulse-dot {
  width: 8px; height: 8px;
  background: var(--copper-400);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(196, 122, 90, 0.6); }
  50% { opacity: 0.8; box-shadow: 0 0 0 8px rgba(196, 122, 90, 0); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease-out 0.15s both;
}

.hero-title .copper-text {
  background: var(--copper-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: var(--gray-300);
  max-width: 520px;
  line-height: 1.8;
  margin-bottom: 40px;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  animation: fadeInUp 0.8s ease-out 0.45s both;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  font-family: var(--font-primary);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--copper-gradient);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(196, 122, 90, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 8px 35px rgba(196, 122, 90, 0.5);
  transform: translateY(-2px);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 200%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-outline {
  background: transparent;
  color: var(--copper-300);
  border: 1.5px solid rgba(196, 122, 90, 0.4);
}

.btn-outline:hover {
  background: rgba(196, 122, 90, 0.1);
  border-color: var(--copper-400);
  transform: translateY(-2px);
}

.btn i {
  font-size: 0.85rem;
  transition: transform var(--transition-fast);
}

.btn:hover i {
  transform: translateX(3px);
}

/* ── Hero Visual ─────────────────────────────────────────── */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInUp 1s ease-out 0.5s both;
}

.hero-logo-showcase {
  position: relative;
  width: 100%;
  max-width: 480px;
}

.hero-logo-showcase img {
  width: 100%;
  filter: drop-shadow(0 20px 60px rgba(196, 122, 90, 0.2));
  animation: logoFloat 6s ease-in-out infinite;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

.hero-logo-ring {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 110%;
  height: 110%;
  border: 1px solid rgba(74, 159, 217, 0.15);
  border-radius: 50%;
  animation: ringPulse 4s ease-in-out infinite;
}

.hero-logo-ring:nth-child(2) {
  width: 125%;
  height: 125%;
  border-color: rgba(196, 122, 90, 0.08);
  animation-delay: 1s;
}

.hero-logo-ring:nth-child(3) {
  width: 140%;
  height: 140%;
  border-color: rgba(74, 159, 217, 0.05);
  animation-delay: 2s;
}

@keyframes ringPulse {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.03); }
}

/* Stats bar below hero */
.hero-stats {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(15, 27, 51, 0.7);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(196, 122, 90, 0.1);
  padding: 24px 0;
  z-index: 2;
}

.hero-stats .container {
  display: flex;
  justify-content: center;
  gap: clamp(32px, 6vw, 80px);
  padding-top: 0;
  padding-bottom: 0;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  background: var(--copper-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 4px;
}

/* ── About Section ───────────────────────────────────────── */
.about {
  padding: var(--section-padding) 0;
  background: var(--navy-800);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text p {
  margin-bottom: 20px;
  font-size: 1.05rem;
  color: var(--gray-300);
}

.about-text p:first-of-type {
  font-size: 1.15rem;
  color: var(--gray-200);
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.about-feature-card {
  padding: 28px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  backdrop-filter: var(--glass-blur);
  transition: all var(--transition-medium);
}

.about-feature-card:hover {
  border-color: rgba(196, 122, 90, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.about-feature-card .icon {
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(196, 122, 90, 0.1);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  color: var(--copper-300);
  font-size: 1.3rem;
}

.about-feature-card h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
}

.about-feature-card p {
  font-size: 0.85rem;
  color: var(--gray-400);
  line-height: 1.6;
}

/* ── Services Section ────────────────────────────────────── */
.services {
  padding: var(--section-padding) 0;
  background: linear-gradient(180deg, var(--navy-800) 0%, var(--navy-900) 100%);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 28px;
}

.service-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: var(--glass-blur);
  transition: all var(--transition-medium);
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.service-card.copper-accent { border-top: 3px solid var(--copper-400); }
.service-card.copper-accent:hover { box-shadow: 0 20px 60px rgba(196, 122, 90, 0.15); }

.service-card.cyan-accent { border-top: 3px solid var(--cyan-400); }
.service-card.cyan-accent:hover { box-shadow: 0 20px 60px rgba(74, 159, 217, 0.15); }

.service-card.navy-accent { border-top: 3px solid var(--navy-400); }
.service-card.navy-accent:hover { box-shadow: 0 20px 60px rgba(58, 80, 122, 0.2); }

.service-card-header {
  padding: 32px 32px 20px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.service-icon {
  width: 56px; height: 56px;
  min-width: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  font-size: 1.5rem;
}

.copper-accent .service-icon {
  background: rgba(196, 122, 90, 0.12);
  color: var(--copper-300);
}

.cyan-accent .service-icon {
  background: rgba(74, 159, 217, 0.12);
  color: var(--cyan-300);
}

.navy-accent .service-icon {
  background: rgba(58, 80, 122, 0.2);
  color: var(--cyan-200);
}

.service-card-header h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}

.service-card-header p {
  font-size: 0.9rem;
  color: var(--gray-400);
  line-height: 1.6;
}

.service-card-body {
  padding: 0 32px 12px;
}

.service-product {
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.service-product:last-child {
  border-bottom: none;
}

.service-product-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  gap: 12px;
}

.service-product-header h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-100);
  display: flex;
  align-items: center;
  gap: 10px;
}

.service-product-header h4 i {
  color: var(--copper-400);
  font-size: 0.8rem;
}

.service-product-toggle {
  width: 28px; height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  color: var(--gray-400);
  font-size: 0.75rem;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.service-product.active .service-product-toggle {
  background: rgba(196, 122, 90, 0.15);
  color: var(--copper-300);
  transform: rotate(180deg);
}

.service-product-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-medium), padding var(--transition-medium);
}

.service-product.active .service-product-detail {
  max-height: 600px;
  padding-top: 12px;
}

.service-product-detail p {
  font-size: 0.9rem;
  color: var(--gray-400);
  line-height: 1.7;
  padding-left: 24px;
  border-left: 2px solid rgba(196, 122, 90, 0.2);
}

.service-product-detail ul {
  margin-top: 10px;
  padding-left: 24px;
}

.service-product-detail ul li {
  font-size: 0.85rem;
  color: var(--gray-400);
  padding: 4px 0;
  padding-left: 16px;
  position: relative;
}

.service-product-detail ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 12px;
  width: 6px; height: 6px;
  background: var(--copper-400);
  border-radius: 50%;
}

.service-card-footer {
  padding: 16px 32px 28px;
}

.service-card-footer a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--copper-300);
  transition: all var(--transition-fast);
}

.service-card-footer a:hover {
  gap: 12px;
  color: var(--copper-200);
}

/* ── Training Section (Masive) ───────────────────────────── */
.training {
  padding: var(--section-padding) 0;
  background: var(--navy-800);
}

.training-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 48px;
}

.training-tab {
  padding: 12px 24px;
  background: transparent;
  border: 1.5px solid rgba(196, 122, 90, 0.2);
  border-radius: 100px;
  color: var(--gray-300);
  font-family: var(--font-primary);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.training-tab:hover {
  border-color: rgba(196, 122, 90, 0.4);
  color: var(--copper-300);
}

.training-tab.active {
  background: var(--copper-gradient);
  border-color: transparent;
  color: var(--white);
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(196, 122, 90, 0.3);
}

.training-content {
  display: none;
}

.training-content.active {
  display: block;
  animation: fadeInUp 0.5s ease-out;
}

.training-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.training-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 28px;
  backdrop-filter: var(--glass-blur);
  transition: all var(--transition-medium);
}

.training-card:hover {
  border-color: rgba(196, 122, 90, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.training-card .card-icon {
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(196, 122, 90, 0.1);
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
  font-size: 1.2rem;
  color: var(--copper-300);
}

.training-card h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 10px;
}

.training-card p {
  font-size: 0.88rem;
  color: var(--gray-400);
  line-height: 1.7;
  margin-bottom: 16px;
}

.training-card .topics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.training-card .topic-tag {
  padding: 4px 12px;
  background: rgba(74, 159, 217, 0.08);
  border: 1px solid rgba(74, 159, 217, 0.15);
  border-radius: 100px;
  font-size: 0.75rem;
  color: var(--cyan-300);
  font-weight: 500;
}

/* ── Testimonials Section ────────────────────────────────── */
.testimonials {
  padding: var(--section-padding) 0;
  background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 100%);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}

.testimonial-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 36px;
  backdrop-filter: var(--glass-blur);
  position: relative;
  transition: all var(--transition-medium);
}

.testimonial-card:hover {
  border-color: rgba(196, 122, 90, 0.25);
  transform: translateY(-4px);
}

.testimonial-quote-icon {
  font-size: 2.5rem;
  color: rgba(196, 122, 90, 0.2);
  margin-bottom: 16px;
  line-height: 1;
}

.testimonial-text {
  font-size: 1rem;
  color: var(--gray-200);
  line-height: 1.8;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
}

.testimonial-avatar.copper-bg { background: var(--copper-gradient); }
.testimonial-avatar.cyan-bg { background: linear-gradient(135deg, var(--cyan-400), var(--cyan-600)); }
.testimonial-avatar.navy-bg { background: linear-gradient(135deg, var(--navy-400), var(--navy-600)); }

.testimonial-author-info h5 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
}

.testimonial-author-info p {
  font-size: 0.8rem;
  color: var(--gray-400);
}

.testimonial-stars {
  color: var(--copper-300);
  font-size: 0.85rem;
  margin-top: 4px;
  display: flex;
  gap: 3px;
}

/* ── Contact Section ─────────────────────────────────────── */
.contact {
  padding: var(--section-padding) 0;
  background: var(--navy-800);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
  align-items: flex-start;
}

.contact-info h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}

.contact-info > p {
  font-size: 1rem;
  color: var(--gray-300);
  margin-bottom: 36px;
  line-height: 1.8;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 36px;
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-detail-item .icon-circle {
  width: 44px; height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(196, 122, 90, 0.1);
  border: 1px solid rgba(196, 122, 90, 0.15);
  border-radius: 50%;
  color: var(--copper-300);
  font-size: 1rem;
}

.contact-detail-item h5 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-300);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.contact-detail-item p, .contact-detail-item a {
  font-size: 0.95rem;
  color: var(--white);
}

.contact-detail-item a:hover {
  color: var(--copper-300);
}

.contact-socials {
  display: flex;
  gap: 12px;
}

.contact-social-link {
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  color: var(--gray-300);
  font-size: 1.1rem;
  transition: all var(--transition-fast);
}

.contact-social-link:hover {
  background: rgba(196, 122, 90, 0.15);
  border-color: rgba(196, 122, 90, 0.3);
  color: var(--copper-300);
  transform: translateY(-2px);
}

/* Contact Form */
.contact-form-container {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  backdrop-filter: var(--glass-blur);
}

.contact-form-container h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.contact-form-container > p {
  font-size: 0.9rem;
  color: var(--gray-400);
  margin-bottom: 28px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray-300);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group label .required {
  color: var(--copper-400);
}

.form-input,
.form-select,
.form-textarea {
  padding: 13px 18px;
  background: rgba(15, 27, 51, 0.6);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: var(--font-primary);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--copper-400);
  box-shadow: 0 0 0 3px rgba(196, 122, 90, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--gray-500);
}

.form-select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23A0AEC0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}

.form-select option {
  background: var(--navy-700);
  color: var(--white);
}

.form-textarea {
  min-height: 130px;
  resize: vertical;
}

.form-submit-group {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 8px;
}

.form-submit-group .btn {
  min-width: 200px;
  justify-content: center;
}

.form-note {
  font-size: 0.78rem;
  color: var(--gray-500);
}

.form-note i {
  color: var(--cyan-400);
}

/* Form success/error states */
.form-status {
  grid-column: 1 / -1;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  display: none;
  align-items: center;
  gap: 10px;
}

.form-status.success {
  display: flex;
  background: rgba(0, 200, 120, 0.1);
  border: 1px solid rgba(0, 200, 120, 0.3);
  color: #00C878;
}

.form-status.error {
  display: flex;
  background: rgba(255, 82, 82, 0.1);
  border: 1px solid rgba(255, 82, 82, 0.3);
  color: #FF5252;
}

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  padding: 60px 0 30px;
  background: var(--navy-900);
  border-top: 1px solid rgba(196, 122, 90, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.footer-brand .footer-logo img {
  height: 40px;
}

.footer-brand .footer-logo span {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--gray-400);
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 0.9rem;
  color: var(--gray-400);
  transition: all var(--transition-fast);
}

.footer-col ul li a:hover {
  color: var(--copper-300);
  padding-left: 4px;
}

.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: var(--gray-500);
}

.footer-bottom p .copper {
  color: var(--copper-400);
}

/* ── Animations ──────────────────────────────────────────── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Scroll-triggered animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Staggered children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.12s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.19s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.26s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.33s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.40s; }
.stagger-children.visible > *:nth-child(7) { transition-delay: 0.47s; }
.stagger-children.visible > *:nth-child(8) { transition-delay: 0.54s; }

.stagger-children.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ── Counter Animation ───────────────────────────────────── */
.counter {
  display: inline-block;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-subtitle { margin: 0 auto 40px; }
  .hero-cta-group { justify-content: center; }
  .hero-visual { max-width: 380px; margin: 0 auto; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 80%;
    max-width: 360px;
    height: 100vh;
    background: rgba(15, 27, 51, 0.98);
    backdrop-filter: blur(30px);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 40px 40px;
    gap: 4px;
    transition: right var(--transition-medium);
    border-left: 1px solid rgba(196, 122, 90, 0.1);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    width: 100%;
    font-size: 1.05rem;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
  }

  .nav-links a:hover {
    background: rgba(196, 122, 90, 0.08);
  }

  .nav-hamburger {
    display: flex;
  }

  .hero-stats .container {
    flex-wrap: wrap;
    gap: 20px;
  }

  .stat-item {
    min-width: 100px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-submit-group {
    flex-direction: column;
    align-items: stretch;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .training-grid {
    grid-template-columns: 1fr;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  .training-tabs {
    gap: 6px;
  }

  .training-tab {
    padding: 10px 18px;
    font-size: 0.82rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
  }

  .section-title {
    font-size: 1.7rem;
  }

  .contact-form-container {
    padding: 24px;
  }

  .service-card-header {
    padding: 24px 24px 16px;
    flex-direction: column;
    gap: 12px;
  }

  .service-card-body {
    padding: 0 24px 8px;
  }

  .service-card-footer {
    padding: 12px 24px 24px;
  }
}

/* ── Mobile menu overlay ─────────────────────────────────── */
.mobile-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(6, 13, 26, 0.7);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-medium);
}

.mobile-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* ── Preloader ───────────────────────────────────────────── */
.preloader {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 9999;
  background: var(--navy-900);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-logo {
  width: 80px;
  animation: logoFloat 2s ease-in-out infinite;
  filter: drop-shadow(0 0 30px rgba(196, 122, 90, 0.4));
}

/* ── Back to top ─────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--copper-gradient);
  border: none;
  border-radius: 50%;
  color: var(--white);
  font-size: 1rem;
  cursor: pointer;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-fast);
  box-shadow: 0 4px 20px rgba(196, 122, 90, 0.3);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: var(--copper-glow);
}

/* ── Nuevos Efectos Premium (Typewriter, 3D, Glow) ── */
.cursor {
  display: inline-block;
  width: 3px;
  background-color: var(--copper-400);
  animation: blink 1s infinite;
  margin-left: 2px;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.btn-primary, .nav-cta {
  animation: neonPulse 3s infinite alternate;
}
@keyframes neonPulse {
  0% { box-shadow: 0 0 10px rgba(196, 122, 90, 0.4); }
  100% { box-shadow: 0 0 25px rgba(196, 122, 90, 0.8), 0 0 40px rgba(196, 122, 90, 0.4); }
}

/* Efecto Parallax & Magnético base */
.service-card, .about-feature-card, .training-card {
  transform-style: preserve-3d;
  transform: perspective(1000px);
}
.service-card .service-icon, .service-card-header h3 {
  transform: translateZ(30px);
}
.training-card h4, .training-card .card-icon {
  transform: translateZ(20px);
}
