/* ============================================
   GROWTHPERIENCIA — styles.css  v4
   Redesign: Dark Theme / Glassmorphism
   Paleta: Azul #0D4277 | Oro #C6A516 | Fondo #020D1A
   Tipografia: Zalando Sans (headings) + Montserrat (body)
   ============================================ */

/* FUENTE PERSONALIZADA */
@font-face {
  font-family: 'Zalando Sans';
  src: url('assets/fonts/ZalandoSansSemiExpanded-Regular.ttf') format('truetype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Zalando Sans';
  src: url('assets/fonts/ZalandoSansSemiExpanded-SemiBold.ttf') format('truetype');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Zalando Sans';
  src: url('assets/fonts/ZalandoSansSemiExpanded-Bold.ttf') format('truetype');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Zalando Sans';
  src: url('assets/fonts/ZalandoSansSemiExpanded-ExtraBold.ttf') format('truetype');
  font-weight: 800 900; font-style: normal; font-display: swap;
}

/* VARIABLES */
:root {
  --bg-deep:    #020D1A;
  --bg-mid:     #061E38;
  --bg-surface: rgba(13,66,119,0.15);
  --blue:       #0D4277;
  --blue-mid:   #1A5FA0;
  --blue-glow:  #2678C4;
  --gold:       #C6A516;
  --gold-bright:#E8C41E;
  --gold-dark:  #8B7210;
  --gold-glow:  rgba(198,165,22,0.3);
  --white:      #ffffff;
  --text:       rgba(255,255,255,0.92);
  --text-mid:   rgba(255,255,255,0.6);
  --text-dim:   rgba(255,255,255,0.3);
  --border:     rgba(198,165,22,0.15);
  --border-blue:rgba(38,120,196,0.2);
  --radius:     12px;
  --radius-lg:  20px;
  --ease:       cubic-bezier(0.23,1,0.32,1);
  --ease-bounce:cubic-bezier(0.34,1.56,0.64,1);
  --font-heading:'Zalando Sans','Outfit','Segoe UI',sans-serif;
  --font-body:  'Montserrat','Segoe UI',system-ui,sans-serif;
  --glow-gold:  0 0 40px rgba(198,165,22,0.4);
  --glow-blue:  0 0 40px rgba(38,120,196,0.35);
  --transition: 0.25s cubic-bezier(0.4,0,0.2,1);
}

/* RESET */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(198,165,22,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(198,165,22,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}
img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

/* TIPOGRAFIA */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-stretch: semi-expanded;
  line-height: 1.15;
  color: var(--text);
  text-transform: uppercase;
}
h1 { font-size: clamp(1.75rem, 4vw, 42px); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 32px); font-weight: 600; }
h3 { font-size: clamp(1.1rem, 2vw, 22px); font-weight: 400; }
p  { font-family: var(--font-body); color: var(--text-mid); }

/* LAYOUT */
.container { max-width: 1120px; margin: 0 auto; padding: 0 28px; position: relative; z-index: 1; }
section    { padding: 80px 0; position: relative; z-index: 1; }

/* SECTION HEADERS */
.section-header { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.section-header h2  { margin-bottom: 16px; }
.section-header p   { font-size: 1.12rem; line-height: 1.7; }
.section-sub        { font-size: 1.12rem; line-height: 1.7; }
.section-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 12px;
}

/* BUTTONS */
.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, #C6A516 0%, #E8C41E 50%, #C6A516 100%);
  background-size: 200% 100%;
  color: #020D1A;
  font-family: var(--font-body);
  font-weight: 700; font-size: 0.95rem;
  padding: 18px 36px;
  border-radius: var(--radius);
  border: none; cursor: pointer;
  letter-spacing: 0.05em;
  transition: background-position 0.4s ease, transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 24px rgba(198,165,22,0.3);
  line-height: 1;
}
.btn-primary:hover {
  background-position: 100% 0;
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(198,165,22,0.5);
}
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }
.btn-lg { padding: 22px 48px; font-size: 1.1rem; }

.btn-ghost {
  display: inline-block;
  color: var(--text-mid);
  font-family: var(--font-body);
  font-weight: 600; font-size: 0.95rem;
  padding: 18px 20px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease;
  line-height: 1;
}
.btn-ghost:hover { color: var(--gold); border-color: var(--gold-glow); }

/* ===== NAVBAR ===== */
#navbar {
  position: fixed; top: 0; width: 100%;
  z-index: 1000;
  background: rgba(2,13,26,0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(198,165,22,0.1);
  transition: box-shadow var(--transition);
}
#navbar.scrolled { box-shadow: 0 2px 40px rgba(0,0,0,0.4); }

.nav-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 28px;
  display: flex; justify-content: space-between; align-items: center;
  height: 90px;
}
.nav-logo-img { height: 80px; width: auto; display: block; object-fit: contain; filter: brightness(0) invert(1); }
.nav-logo-text { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 800; color: var(--white); }
.nav-logo-text span { color: var(--gold); }
.nav-links { display: flex; gap: 32px; }
.nav-links a { font-family: var(--font-body); font-size: 0.88rem; font-weight: 500; color: var(--text-mid); transition: color var(--transition); }
.nav-links a:hover { color: var(--gold); }
.nav-cta { display: flex; align-items: center; gap: 12px; }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text-mid); border-radius: 2px; transition: all 0.3s; }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); background: var(--gold); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); background: var(--gold); }

.mobile-nav {
  display: none; flex-direction: column;
  position: fixed; top: 90px; left: 0; right: 0;
  background: rgba(2,13,26,0.97);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(198,165,22,0.1);
  padding: 20px 28px 24px; gap: 4px;
  z-index: 999; box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.mobile-nav.open { display: flex; }
.mobile-link { font-family: var(--font-body); font-size: 1rem; font-weight: 500; color: var(--text-mid); padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.06); transition: color var(--transition); }
.mobile-link:hover { color: var(--gold); }

/* ===== HERO ===== */
#hero {
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(13,66,119,0.28) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 50% 70%, rgba(198,165,22,0.05) 0%, transparent 60%),
    var(--bg-deep);
  min-height: 100vh;
  padding: 140px 0 100px;
  position: relative; overflow: hidden;
}
#hero-particles {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr;
  max-width: 860px; margin: 0 auto;
  gap: 0; align-items: center;
  position: relative; z-index: 1;
}
.hero-content { text-align: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(198,165,22,0.08);
  border: 1px solid rgba(198,165,22,0.2);
  color: var(--gold); padding: 7px 16px; border-radius: 100px;
  font-family: var(--font-body); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 24px;
}
.badge-pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); animation: pulse-dot 2s ease infinite; }
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(198,165,22,0.5); }
  50%      { box-shadow: 0 0 0 6px rgba(198,165,22,0); }
}
.hero-content h1 { color: var(--text); margin-bottom: 24px; max-width: 800px; margin-left: auto; margin-right: auto; }
.text-gold-glow { color: var(--gold); text-shadow: 0 0 30px rgba(198,165,22,0.5); }
.hero-sub { font-size: 1.12rem; color: var(--text-mid); max-width: 600px; line-height: 1.75; margin-bottom: 36px; margin-left: auto; margin-right: auto; }
.hero-ctas { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: nowrap; }

/* Hero 3D Wheel */
.hero-visual { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.wheel-scene { width: 320px; height: 320px; perspective: 600px; perspective-origin: 50% 45%; margin: 0 auto; position: relative; }
.wheel { width: 100%; height: 100%; transform-style: preserve-3d; animation: wheel-spin 16s linear infinite; position: relative; }
@keyframes wheel-spin {
  from { transform: rotateX(30deg) rotateY(0deg); }
  to   { transform: rotateX(30deg) rotateY(360deg); }
}
.wheel-node {
  position: absolute; width: 90px; height: 90px;
  top: 50%; left: 50%; margin: -45px 0 0 -45px;
  background: linear-gradient(135deg, rgba(13,66,119,0.9), rgba(6,30,56,0.95));
  border: 1px solid rgba(198,165,22,0.4); border-radius: 16px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  transform-style: preserve-3d; backface-visibility: visible;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.wheel-node:nth-child(1) { transform: rotateY(0deg)   translateZ(120px); }
.wheel-node:nth-child(2) { transform: rotateY(90deg)  translateZ(120px); }
.wheel-node:nth-child(3) { transform: rotateY(180deg) translateZ(120px); }
.wheel-node:nth-child(4) { transform: rotateY(270deg) translateZ(120px); }
.wheel-node-icon { font-size: 1.6rem; }
.wheel-node-label { font-family: var(--font-body); font-size: 0.62rem; font-weight: 700; color: var(--text-mid); letter-spacing: 0.08em; text-transform: uppercase; text-align: center; }
.wheel-center-glow {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 80px; height: 80px; border-radius: 50%;
  background: radial-gradient(circle, rgba(198,165,22,0.3) 0%, transparent 70%);
  animation: glow-pulse 3s ease-in-out infinite; pointer-events: none;
}
@keyframes glow-pulse {
  0%,100% { opacity: 0.5; transform: translate(-50%,-50%) scale(1); }
  50%      { opacity: 1;   transform: translate(-50%,-50%) scale(1.3); }
}
.wheel-active-label {
  text-align: center; margin-top: 24px;
  font-family: var(--font-body); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); min-height: 20px;
}

/* ===== PROBLEMA ===== */
#problema { background: var(--bg-mid); }
.problem-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.problem-card {
  background: rgba(6,30,56,0.7);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(198,165,22,0.12);
  border-radius: var(--radius-lg); padding: 48px 36px;
  position: relative; overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s ease;
}
.problem-card::before {
  content: ''; position: absolute; top: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0; transition: opacity 0.4s ease;
}
.problem-card:hover::before { opacity: 1; }
.problem-card:hover { box-shadow: 0 24px 48px rgba(0,0,0,0.4), 0 0 0 1px rgba(198,165,22,0.2); }
.card-watermark {
  position: absolute; bottom: -20px; right: -10px;
  font-family: var(--font-heading); font-size: 180px; font-weight: 800;
  color: rgba(198,165,22,0.04); line-height: 1; pointer-events: none; user-select: none;
}
.pcard-icon { width: 56px; height: 56px; margin-bottom: 24px; display: flex; align-items: center; justify-content: center; }
.pcard-icon svg { width: 48px; height: 48px; stroke: var(--gold); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.problem-card h3 { color: var(--text); margin-bottom: 8px; }
.problem-card p  { font-size: 0.95rem; line-height: 1.65; }

/* ===== SISTEMA ===== */
#sistema {
  background: var(--bg-deep);
  padding: 60px 0; /* reduced from global 80px — section felt vertically bloated */
}
/* Override global .section-header margin only inside #sistema */
#sistema .section-header {
  margin-bottom: 40px; /* down from 64px — closes the dead-air gap above the map */
}
.sistema-map-wrapper {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  /* Subtle radial glow behind the map so it doesn't float in a void */
  background: radial-gradient(ellipse 72% 72% at 50% 50%, rgba(13,66,119,0.13) 0%, transparent 70%);
  border-radius: 50%;
}
.sistema-map { position: relative; width: 540px; height: 540px; margin: 0 auto; }
.sistema-connections { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.sistema-node {
  position: absolute; width: 110px; height: 110px;
  background: linear-gradient(135deg, rgba(13,66,119,0.85), rgba(6,30,56,0.9));
  border: 1px solid rgba(198,165,22,0.25); border-radius: 16px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  cursor: pointer; transition: transform 0.4s var(--ease), border-color 0.3s, box-shadow 0.3s; z-index: 2;
}
.sistema-node:hover, .sistema-node.active {
  transform: scale(1.12); border-color: var(--gold);
  box-shadow: 0 0 40px rgba(198,165,22,0.3), 0 16px 32px rgba(0,0,0,0.4);
}
.snode-icon { font-size: 1.8rem; }
.snode-label { font-family: var(--font-body); font-size: 0.62rem; font-weight: 700; color: var(--text-mid); text-transform: uppercase; letter-spacing: 0.08em; text-align: center; }
.sconnection { fill: none; stroke: rgba(198,165,22,0.2); stroke-width: 1.5; }
.sconnection-dot { fill: var(--gold); filter: drop-shadow(0 0 4px rgba(198,165,22,0.8)); }

.sistema-detail {
  position: absolute; top: 0; right: -290px; width: 270px;
  background: rgba(6,30,56,0.92);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(198,165,22,0.2); border-radius: var(--radius-lg);
  padding: 32px 24px; opacity: 0; pointer-events: none;
  transform: translateX(20px); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.sistema-detail.open { opacity: 1; pointer-events: all; transform: translateX(0); }
.sistema-detail-close { position: absolute; top: 12px; right: 12px; background: none; border: none; color: var(--text-dim); cursor: pointer; font-size: 1rem; transition: color 0.2s; padding: 4px; }
.sistema-detail-close:hover { color: var(--gold); }
.sdetail-icon { font-size: 2.5rem; margin-bottom: 12px; }
.sistema-detail h3 { font-family: var(--font-heading); font-size: 0.9rem; color: var(--gold); margin-bottom: 12px; text-transform: uppercase; }
.sistema-detail p { font-size: 0.82rem; line-height: 1.7; color: var(--text-mid); }

.sistema-list-fallback { display: none; flex-direction: column; gap: 12px; max-width: 480px; margin: 0 auto; }
.sistema-list-item {
  background: rgba(6,30,56,0.7); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(198,165,22,0.15); border-radius: var(--radius);
  padding: 20px 24px; display: flex; align-items: center; gap: 16px;
}
.sli-icon { font-size: 1.6rem; flex-shrink: 0; }
.sli-text h4 { font-family: var(--font-body); font-size: 0.85rem; font-weight: 700; color: var(--text); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 2px; }
.sli-text p { font-size: 0.8rem; color: var(--text-mid); line-height: 1.5; }

/* ===== COMPONENTES ===== */
#componentes { background: var(--bg-mid); }
.comp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.comp-card { perspective: 800px; height: 300px; }
.comp-card-inner { width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 0.7s var(--ease); position: relative; }
.comp-card:hover .comp-card-inner { transform: rotateY(180deg); }
.comp-card-front, .comp-card-back {
  position: absolute; inset: 0;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: var(--radius-lg); padding: 36px 28px; border: 1px solid var(--border);
}
.comp-card-front {
  background: rgba(6,30,56,0.7); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end;
}
.comp-card-back {
  background: linear-gradient(135deg, rgba(13,66,119,0.9), rgba(6,30,56,0.95));
  border-color: rgba(198,165,22,0.3); transform: rotateY(180deg);
  display: flex; flex-direction: column; justify-content: center;
}
.comp-card-back h3 { color: var(--gold); margin-bottom: 16px; font-size: 1rem; }
.comp-card-back ul { list-style: none; padding: 0; }
.comp-card-back li { color: var(--text-mid); font-size: 0.85rem; line-height: 1.6; padding: 6px 0 6px 20px; border-bottom: 1px solid rgba(198,165,22,0.1); position: relative; }
.comp-card-back li::before { content: '\2192'; position: absolute; left: 0; color: var(--gold); }
.comp-card-front h3 { color: var(--text); margin-bottom: 10px; }
.comp-card-front p  { font-size: 0.9rem; line-height: 1.65; min-height: 5.94rem; }
.comp-watermark { position: absolute; bottom: -10px; right: -10px; font-family: var(--font-heading); font-size: 160px; font-weight: 800; color: rgba(198,165,22,0.04); line-height: 1; pointer-events: none; user-select: none; }
.comp-card-front-number { position: absolute; top: 28px; left: 28px; font-family: var(--font-heading); font-size: 2.8rem; font-weight: 800; color: rgba(198,165,22,0.15); line-height: 1; pointer-events: none; }

/* ===== PROCESO ===== */
#proceso { background: var(--bg-deep); }
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.timeline::before {
  content: ''; position: absolute; top: 28px; left: 10%; right: 10%; height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--gold)); z-index: 0;
  transform-origin: left center; transform: scaleX(0);
  transition: transform 1.5s var(--ease) 0.3s;
}
.timeline.visible::before { transform: scaleX(1); }
.timeline-step { text-align: center; position: relative; z-index: 1; padding: 0 12px; }
.tstep-number {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue-glow));
  border: 2px solid rgba(198,165,22,0.3);
  box-shadow: 0 4px 20px rgba(13,66,119,0.4), 0 0 40px rgba(38,120,196,0.35);
  color: var(--white); font-family: var(--font-heading); font-size: 1.2rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 20px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.timeline-step:nth-child(3) .tstep-number {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  border-color: rgba(198,165,22,0.5);
  box-shadow: 0 4px 20px rgba(198,165,22,0.3), 0 0 40px rgba(198,165,22,0.4);
  color: var(--bg-deep);
}
.timeline-step:hover .tstep-number { transform: scale(1.1); }
.timeline-step h3 { color: var(--white); margin-bottom: 8px; }
.timeline-step p  { color: var(--text-mid); font-size: 0.88rem; line-height: 1.65; }
.step-metric { margin-top: 12px; font-family: var(--font-heading); font-size: 0.75rem; font-weight: 700; color: var(--gold); letter-spacing: 0.08em; opacity: 0.8; }
.step-metric .counter { font-size: 1.1rem; }
.step-metric-static { margin-top: 12px; font-family: var(--font-heading); font-size: 0.75rem; font-weight: 700; color: var(--gold); letter-spacing: 0.08em; opacity: 0.8; }

/* ===== PRUEBA SOCIAL ===== */
#prueba { background: var(--bg-mid); }
.metrics-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 64px; }
.metric-card {
  background: rgba(13,66,119,0.15); border: 1px solid rgba(198,165,22,0.15);
  border-radius: var(--radius-lg); padding: 36px 24px; text-align: center;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.metric-value {
  font-family: var(--font-heading); font-size: clamp(2.5rem, 5vw, 3.5rem); font-weight: 800;
  color: var(--gold); text-shadow: 0 0 20px rgba(198,165,22,0.4); margin-bottom: 8px; line-height: 1;
}
.metric-label { font-size: 0.82rem; color: var(--text-mid); line-height: 1.5; }
.logos-carousel-wrapper {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.logos-carousel-track { display: flex; gap: 20px; width: max-content; animation: logos-marquee 40s linear infinite; }
.logos-carousel-track:hover { animation-play-state: paused; }
@keyframes logos-marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.logo-item {
  flex-shrink: 0; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius); padding: 20px 32px; display: flex; align-items: center; justify-content: center;
  min-width: 160px; transition: border-color var(--transition), background var(--transition);
}
.logo-item img { max-height: 48px; width: auto; object-fit: contain; display: block; }
.logo-text { font-family: var(--font-heading); font-size: 0.95rem; font-weight: 700; color: rgba(255,255,255,0.35); letter-spacing: 0.02em; text-align: center; transition: color var(--transition); }
.logo-item:hover { border-color: rgba(198,165,22,0.3); background: rgba(198,165,22,0.05); }
.logo-item:hover .logo-text { color: rgba(198,165,22,0.8); }

/* ===== CTA FINAL ===== */
#cta-final {
  background: radial-gradient(ellipse 70% 70% at 50% 50%, rgba(13,66,119,0.25) 0%, transparent 70%), #010810;
  padding: 80px 0;
}
.cta-box {
  text-align: center; max-width: 680px; margin: 0 auto;
  background: rgba(6,30,56,0.6); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(198,165,22,0.15); border-radius: var(--radius-lg); padding: 72px 56px;
}
.cta-box h2 { color: var(--white); margin-bottom: 40px; }
.highlight-gold { color: var(--gold); text-shadow: 0 0 20px rgba(198,165,22,0.4); }
.step-question { color: var(--text-mid); margin-bottom: 24px; font-size: 1.05rem; }
.challenge-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.challenge-opt {
  background: rgba(13,66,119,0.2); border: 1px solid rgba(198,165,22,0.15);
  border-radius: var(--radius); padding: 20px 16px; color: var(--text-mid);
  font-family: var(--font-body); font-size: 0.9rem; cursor: pointer; text-align: left; line-height: 1.4;
  transition: background 0.3s, border-color 0.3s, color 0.3s, transform 0.2s;
}
.challenge-opt:hover { background: rgba(198,165,22,0.1); border-color: rgba(198,165,22,0.4); color: var(--white); transform: translateY(-2px); }
.form-step { display: none; }
.form-step.active { display: block; animation: stepIn 0.4s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
.step-progress-label { font-size: 0.75rem; color: var(--gold); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 24px; }
.cta-form { display: flex; flex-direction: column; gap: 12px; text-align: left; }
.cta-form input {
  width: 100%; padding: 16px 20px; background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius);
  color: var(--white); font-family: var(--font-body); font-size: 1rem; transition: border-color 0.3s;
}
.cta-form input:focus { outline: none; border-color: var(--gold); }
.cta-form input::placeholder { color: rgba(255,255,255,0.3); }
.cta-form .btn-primary { margin-top: 8px; width: 100%; border: none; cursor: pointer; font-size: 1rem; padding: 18px 24px; }
.step-back { background: none; border: none; color: var(--text-dim); font-size: 0.82rem; cursor: pointer; margin-top: 16px; font-family: var(--font-body); transition: color 0.2s; display: block; }
.step-back:hover { color: var(--gold); }
.success-icon { margin: 0 auto 24px; width: 60px; }
.check-path { stroke-dasharray: 60; stroke-dashoffset: 60; animation: check-draw 0.8s var(--ease) 0.3s forwards; }
@keyframes check-draw { to { stroke-dashoffset: 0; } }
#form-success h3 { color: var(--gold); font-size: 1.5rem; margin-bottom: 12px; }
#form-success p  { color: var(--text-mid); }
.cta-sub { color: var(--text-dim); font-size: 0.85rem; margin-top: 24px; }

/* ===== FOOTER ===== */
footer {
  background: linear-gradient(180deg, var(--bg-mid) 0%, var(--bg-deep) 100%);
  padding: 0;
  border-top: 1px solid;
  border-image: linear-gradient(90deg, transparent, var(--gold) 30%, var(--gold) 70%, transparent) 1;
}
footer .container { padding-top: 0; padding-bottom: 0; }
.footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}
.footer-logo-link { display: flex; align-items: center; flex-shrink: 0; }
.footer-logo-img { height: 64px; width: auto; filter: brightness(0) invert(1) opacity(0.7); }
.footer-logo-text { font-family: var(--font-heading); font-size: 0.9rem; font-weight: 800; color: var(--white); }
.footer-logo-text span { color: var(--gold); }
.footer-copy { color: var(--text-dim); font-size: 0.73rem; text-align: center; flex: 1; line-height: 1.5; margin: 0 16px; }
.footer-social { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.footer-follow { color: var(--text-dim); font-size: 0.73rem; white-space: nowrap; }
.footer-social a {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim); transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.footer-social a:hover { background: var(--gold); color: var(--bg-deep); border-color: var(--gold); }

/* ===== SECTION CTA ===== */
.section-cta { text-align: center; margin-top: 2.5rem; }

/* ===== SCROLL REVEAL ===== */
.reveal       { opacity: 0; transform: translateY(32px);  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal-left  { opacity: 0; transform: translateX(-48px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal-right { opacity: 0; transform: translateX(48px);  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.visible, .reveal-left.visible, .reveal-right.visible { opacity: 1; transform: none; }

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  #hero-particles { display: none; }
  .wheel { animation: none !important; }
  .logos-carousel-track { animation: none !important; }
}

/* ===== TABLET (max 900px) ===== */
@media (max-width: 900px) {
  .hero-grid        { max-width: 100%; }
  .problem-cards    { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .comp-grid        { grid-template-columns: repeat(2, 1fr); }
  .timeline         { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .timeline::before { display: none; }
  .metrics-row      { grid-template-columns: 1fr 1fr; }
  .metrics-row .metric-card:last-child { grid-column: span 2; }
  .footer-bar       { flex-wrap: wrap; justify-content: center; text-align: center; gap: 8px; }
  .footer-copy      { flex-basis: 100%; order: 2; }
  .footer-logo-link { order: 1; }
  .footer-social    { order: 3; }
  /* 540px * 0.75 = 405px rendered height; lost 135px → pull back 68px top + 68px bottom ≈ -68px bottom */
  .sistema-map { transform: scale(0.75); transform-origin: top center; margin-bottom: -68px; }
  .sistema-map-wrapper { overflow: visible; }
  .sistema-detail { position: fixed; right: 20px; top: 50%; transform: translateY(-50%) translateX(20px); width: calc(100vw - 40px); max-width: 300px; }
  .sistema-detail.open { opacity: 1; pointer-events: all; transform: translateY(-50%) translateX(0); }
}

/* ===== MOBILE (max 600px) ===== */
@media (max-width: 600px) {
  section    { padding: 80px 0; }
  #hero      { padding: 120px 0 80px; min-height: auto; }
  .container { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-cta .btn-primary { display: none; }
  .hamburger { display: flex; }
  .hero-content   { text-align: center; }
  .hero-content h1 { max-width: none; }
  .hero-sub      { margin-left: auto; margin-right: auto; text-align: center; }
  .hero-badge    { margin-left: auto; margin-right: auto; }
  .hero-ctas     { flex-wrap: wrap; justify-content: center; }
  .wheel-scene   { transform: scale(0.75); transform-origin: center center; }
  .sistema-map-wrapper .sistema-map { display: none; }
  .sistema-connections { display: none; }
  .sistema-detail { display: none !important; }
  .sistema-list-fallback { display: flex; }
  .comp-grid { grid-template-columns: 1fr; }
  .comp-card { height: auto; perspective: none; }
  .comp-card-inner { transform: none !important; transform-style: flat; }
  .comp-card-front { position: relative; inset: auto; backface-visibility: visible; -webkit-backface-visibility: visible; height: auto; display: flex; flex-direction: column; justify-content: flex-start; padding: 28px 24px; }
  .comp-card-back { display: none; }
  .comp-watermark { font-size: 100px; }
  .timeline { grid-template-columns: 1fr; gap: 24px; max-width: 320px; margin: 0 auto; }
  .metrics-row { grid-template-columns: 1fr; }
  .metrics-row .metric-card:last-child { grid-column: span 1; }
  .logo-item  { padding: 14px 20px; min-width: 130px; }
  .logo-text  { font-size: 0.82rem; }
  .cta-box    { padding: 40px 24px; border-radius: 16px; }
  .challenge-options { grid-template-columns: 1fr; }
  .footer-bar       { flex-wrap: wrap; justify-content: center; text-align: center; gap: 8px; }
  .footer-copy      { flex-basis: 100%; }
  .footer-bottom p  { text-align: center; }
}

@media print {
  body { background: white; color: black; }
  #navbar, .hamburger, .mobile-nav, .hero-visual, #hero-particles { display: none !important; }
  section { padding: 32px 0; }
}

/* ═══════════════════════════════════
   TUBELIGHT NAVBAR
═══════════════════════════════════ */
.tubelight-nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(13,66,119,0.06);
  border: 1px solid rgba(13,66,119,0.12);
  backdrop-filter: blur(12px);
  padding: 4px;
  border-radius: 100px;
}

/* The sliding lamp indicator */
.tl-lamp {
  position: absolute;
  top: 0;
  height: 100%;
  border-radius: 100px;
  background: rgba(198,165,22,0.06);
  pointer-events: none;
  transition: left 0.45s cubic-bezier(0.34,1.56,0.64,1), width 0.45s cubic-bezier(0.34,1.56,0.64,1);
  z-index: 0;
}

/* The lamp bar on top */
.tl-lamp-bar {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 2px;
  background: var(--gold);
  border-radius: 0 0 4px 4px;
}

/* Glow layers */
.tl-lamp-glow-1 {
  position: absolute;
  top: -8px; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 20px;
  background: radial-gradient(ellipse at top, rgba(198,165,22,0.35) 0%, transparent 70%);
  border-radius: 50%;
}
.tl-lamp-glow-2 {
  position: absolute;
  top: -4px; left: 50%;
  transform: translateX(-50%);
  width: 40px; height: 16px;
  background: radial-gradient(ellipse at top, rgba(198,165,22,0.25) 0%, transparent 70%);
  border-radius: 50%;
}
.tl-lamp-glow-3 {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 24px; height: 12px;
  background: radial-gradient(ellipse at top, rgba(198,165,22,0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.tl-item {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dim);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.25s ease;
  cursor: pointer;
}
.tl-item:hover { color: var(--text); }
.tl-item.active { color: var(--gold); }

.tl-icon {
  width: 16px; height: 16px;
  flex-shrink: 0;
  display: none;
}

@media (max-width: 860px) {
  .tubelight-nav {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    top: auto;
    z-index: 1100;
    background: rgba(2,13,26,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-color: rgba(255,255,255,0.08);
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  }
  .tl-label { display: none; }
  .tl-icon  { display: block; }
  .tl-item  { padding: 10px 14px; }
}

/* ≤600px: hamburger menu takes over — hide the floating icon bar to avoid dual-nav confusion */
@media (max-width: 600px) {
  .tubelight-nav { display: none; }
}

/* ═══════════════════════════════════
   LIGHT MODE
═══════════════════════════════════ */
:root.light {
  --bg-deep:    #f3f6fb;
  --bg-mid:     #e8eef7;
  --bg-surface: rgba(13,66,119,0.06);
  --text:       rgba(10,30,60,0.92);
  --text-mid:   rgba(10,30,60,0.6);
  --text-dim:   rgba(10,30,60,0.35);
  --border:     rgba(13,66,119,0.15);
  --border-blue:rgba(13,66,119,0.12);
}
:root.light body {
  background: var(--bg-deep);
  color: var(--text);
}
:root.light body::before {
  background-image:
    linear-gradient(rgba(13,66,119,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13,66,119,0.04) 1px, transparent 1px);
}
:root.light #navbar {
  background: rgba(243,246,251,0.9);
  border-bottom-color: rgba(13,66,119,0.1);
}
:root.light .tubelight-nav {
  background: rgba(13,66,119,0.06);
  border-color: rgba(13,66,119,0.12);
}
:root.light .mobile-nav {
  background: rgba(243,246,251,0.97);
  border-bottom-color: rgba(13,66,119,0.1);
  box-shadow: 0 12px 40px rgba(13,66,119,0.15);
}
@media (max-width: 860px) {
  :root.light .tubelight-nav {
    background: rgba(243,246,251,0.92);
    border-color: rgba(13,66,119,0.15);
    box-shadow: 0 8px 32px rgba(13,66,119,0.15);
  }
}
:root.light #hero {
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(13,66,119,0.1) 0%, transparent 70%),
              radial-gradient(ellipse 50% 50% at 50% 70%, rgba(198,165,22,0.04) 0%, transparent 60%),
              var(--bg-deep);
}
:root.light .problem-card,
:root.light .comp-card-front,
:root.light .comp-card-back,
:root.light .sistema-node,
:root.light .metric-card {
  background: rgba(255,255,255,0.85);
  border-color: rgba(13,66,119,0.12);
}
:root.light .logo-item {
  background: rgba(255,255,255,0.8);
  border-color: rgba(13,66,119,0.1);
}
:root.light .logo-text { color: rgba(13,66,119,0.5); }
:root.light .cta-box {
  background: rgba(255,255,255,0.8);
  border-color: rgba(13,66,119,0.15);
}
:root.light .cta-form input {
  background: rgba(13,66,119,0.04);
  border-color: rgba(13,66,119,0.15);
  color: var(--text);
}
:root.light .cta-form input::placeholder { color: var(--text-dim); }
:root.light .challenge-opt {
  background: rgba(13,66,119,0.06);
  border-color: rgba(13,66,119,0.15);
  color: var(--text-mid);
}
:root.light footer {
  background: linear-gradient(180deg, var(--bg-mid) 0%, #d8e3f0 100%);
}
:root.light .nav-logo-img { filter: none; }
:root.light .footer-logo-img { filter: none; }


/* ═══════════════════════════════════
   FAQ — AEO SECTION
═══════════════════════════════════ */
#faq { padding: 80px 0; }

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid rgba(198,165,22,0.1);
}

.faq-item:first-child {
  border-top: 1px solid rgba(198,165,22,0.1);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 4px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  transition: color 0.25s;
  line-height: 1.4;
}

.faq-q:hover { color: var(--gold); }

.faq-q span { flex: 1; }

.faq-chevron {
  flex-shrink: 0;
  color: var(--text-mid);
  transition: transform 0.35s var(--ease), color 0.25s;
}

.faq-open .faq-q { color: var(--gold); }
.faq-open .faq-chevron {
  transform: rotate(180deg);
  color: var(--gold);
}

.faq-a {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s var(--ease);
  /* hidden attr hides it until opened, then we animate via max-height */
}

.faq-a[hidden] {
  /* Override default hidden display:none — let JS control via max-height */
  display: block !important;
  visibility: hidden;
  pointer-events: none;
}

.faq-open .faq-a,
.faq-a:not([hidden]) {
  visibility: visible;
  pointer-events: auto;
}

.faq-a p {
  padding: 0 4px 22px;
  color: var(--text-mid);
  font-size: 0.95rem;
  line-height: 1.75;
  margin: 0;
}

/* Highlight active item with left gold bar */
.faq-open {
  position: relative;
}

.faq-open::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gold);
  border-radius: 2px;
  opacity: 0.7;
}

@media (max-width: 768px) {
  .faq-open::before { display: none; }
  .faq-q { font-size: 0.92rem; padding: 18px 4px; }
}

/* ===== HERO H1 HIGHLIGHT ===== */
.hero-h1-cycle {
  color: var(--gold);
  text-shadow: 0 0 28px rgba(198,165,22,0.45);
}

/* ===== BLOG PREVIEW (homepage) ===== */
#blog-preview { padding: 80px 0; }

.blog-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

/* Reuse post-card styles from blog — define here for homepage */
#blog-preview .post-card {
  background: rgba(6,30,56,0.6);
  border: 1px solid rgba(198,165,22,0.1);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.3s;
  cursor: pointer;
}
#blog-preview .post-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  border-color: rgba(198,165,22,0.25);
}
#blog-preview .post-card-img {
  height: 160px;
  display: flex; align-items: center; justify-content: center;
}
#blog-preview .post-card-img-icon { font-size: 2.5rem; opacity: 0.6; }
#blog-preview .post-card-body { padding: 24px; }
#blog-preview .post-category {
  font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--gold); margin-bottom: 10px; display: block;
}
#blog-preview .post-card h3 {
  font-size: 1rem; color: var(--white); margin-bottom: 10px;
  font-weight: 700; text-transform: uppercase; line-height: 1.3;
}
#blog-preview .post-card p {
  font-size: 0.85rem; color: rgba(255,255,255,0.55);
  line-height: 1.6; margin-bottom: 16px;
}
#blog-preview .post-read-more {
  font-size: 0.8rem; font-weight: 700;
  color: var(--gold); letter-spacing: 0.05em;
  display: inline-flex; align-items: center; gap: 4px;
  text-decoration: none; transition: gap 0.2s ease;
}
#blog-preview .post-card:hover .post-read-more { gap: 8px; }
#blog-preview .post-card-cover-img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

@media (max-width: 768px) {
  .blog-preview-grid { grid-template-columns: 1fr; }
}
