/* ============================================================
   Pimienta Menta — Landing Oportunidad de Inversión · v1.0
   Diseño dark premium, paleta verde menta + coral pimienta.
   ============================================================ */

:root {
  --bg:           #0a0a0c;
  --bg-soft:      #121217;
  --bg-card:      rgba(18, 18, 23, 0.6);
  --bg-elevated:  #1b1b24;
  --border:       rgba(255, 255, 255, 0.07);
  --border-glow:  rgba(62, 207, 160, 0.2);

  --text:         #f3f4f6;
  --text-secondary: #a1a1aa;
  --text-muted:   #52525b;

  --accent:       #3ECFA0;      /* Verde menta */
  --accent-soft:  rgba(62, 207, 160, 0.1);
  --accent-glow:  rgba(62, 207, 160, 0.25);
  
  --coral:        #FF6B6B;      /* Coral */
  --coral-soft:   rgba(255, 107, 107, 0.1);
  --coral-glow:   rgba(255, 107, 107, 0.25);

  --amber:        #fbbf24;
  --red:          #ef4444;

  --font-sans:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Space Grotesk', sans-serif;

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 20px;
  --radius-xl: 32px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.2);
  --shadow:    0 8px 32px rgba(0,0,0,0.5);
  --shadow-lg: 0 20px 48px rgba(0,0,0,0.7);

  --container: 1200px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.25s;
}

button, select, input, textarea {
  font-family: inherit;
  outline: none;
}

/* Noise overlay */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.03;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100'><filter id='n'><feTurbulence baseFrequency='0.8' numOctaves='3' /></filter><rect width='100%25' height='100%25' filter='url(%23n)' /></svg>");
}

/* ─── Ambient Glow Blobs ─── */
.ambient-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.glow-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.08;
  mix-blend-mode: screen;
}

.glow-1 {
  width: 600px;
  height: 600px;
  background: var(--accent);
  top: -100px;
  left: -200px;
}

.glow-2 {
  width: 500px;
  height: 500px;
  background: var(--coral);
  top: 30%;
  right: -150px;
}

.glow-3 {
  width: 700px;
  height: 700px;
  background: #6366f1; /* Indigo */
  bottom: -200px;
  left: 20%;
}

/* ─── Layout helpers ─── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

.container-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}

section {
  padding: 8rem 0;
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,0.02);
}

.section-header-center {
  text-align: center;
  margin-bottom: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 1rem;
  padding: 0.4rem 1rem;
  background: var(--accent-soft);
  border: 1px solid var(--border-glow);
  border-radius: 999px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
  margin-bottom: 1.25rem;
  max-width: 800px;
}

.section-lead {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 680px;
  line-height: 1.6;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, #7eeec8 50%, var(--accent) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer-text 6s linear infinite;
}

@keyframes shimmer-text {
  to { background-position: 200% center; }
}

/* Glassmorphism Panel */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--accent);
  color: #0a0a0c;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
  background: #50e4b4;
  box-shadow: 0 6px 24px rgba(62, 207, 160, 0.4);
}

.btn-secondary {
  background: var(--bg-soft);
  color: #ffffff;
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.03);
}

.btn-xl {
  padding: 1.1rem 2.2rem;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

.btn-full {
  width: 100%;
}

/* ─── NAVIGATION ─── */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  background: rgba(10, 10, 12, 0.8);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: all 0.3s;
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
}

.logo-text {
  color: #ffffff;
}

.logo-text .highlight {
  color: var(--accent);
}

.badge-partner {
  background: linear-gradient(135deg, var(--coral), #ff8888);
  color: #0a0a0c;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  gap: 2.2rem;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-cta {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: #ffffff;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.25s;
}

.nav-cta:hover {
  border-color: var(--coral);
  color: var(--coral);
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.15);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.burger span {
  width: 24px;
  height: 2px;
  background-color: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ─── HERO SECTION ─── */
#hero {
  padding: 10rem 0 6rem;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4rem;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 2rem;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.25); }
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

.hero-sub strong {
  color: #ffffff;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}

.hero-metrics-summary {
  display: flex;
  gap: 2.5rem;
  border-top: 1px solid var(--border);
  padding-top: 2rem;
}

.metric-item {
  display: flex;
  flex-direction: column;
}

.m-val {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
}

.m-lbl {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.2rem;
}

/* Floating Dashboard Graphic */
.hero-graphic {
  position: relative;
  display: flex;
  justify-content: center;
  perspective: 1000px;
}

.dashboard-mockup {
  width: 100%;
  max-width: 440px;
  background: #111116;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 6px;
  box-shadow: var(--shadow-lg), 0 0 60px rgba(62, 207, 160, 0.08);
  transform: rotateY(-8deg) rotateX(4deg) rotateZ(-1deg);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.dashboard-mockup:hover {
  transform: rotateY(0deg) rotateX(0deg) rotateZ(0deg) translateY(-5px);
  box-shadow: var(--shadow-lg), 0 0 80px rgba(62, 207, 160, 0.15);
}

.mockup-header {
  display: flex;
  align-items: center;
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

.mockup-header .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 5px;
}

.mockup-header .dot.red { background-color: var(--coral); }
.mockup-header .dot.yellow { background-color: var(--amber); }
.mockup-header .dot.green { background-color: var(--accent); }

.mockup-title {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-left: 0.5rem;
  font-family: monospace;
}

.mockup-body {
  padding: 1.25rem;
}

.summary-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.m-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: var(--radius);
  padding: 0.85rem;
}

.card-label {
  display: block;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

.card-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 0.25rem;
}

.m-card.text-accent .card-value { color: var(--accent); }
.m-card.text-coral .card-value { color: var(--coral); }

.card-value small {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* Mini Bar Chart Graphic */
.chart-container-mini {
  background: rgba(255,255,255,0.01);
  border: 1px solid rgba(255,255,255,0.03);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1.25rem;
}

.bar-chart-placeholder {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  height: 80px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding-bottom: 2px;
}

.bar-bar {
  width: 32px;
  background: linear-gradient(to top, var(--accent-soft), var(--accent));
  border-radius: 4px 4px 0 0;
  position: relative;
  cursor: pointer;
  transition: opacity 0.2s;
}

.bar-bar:nth-child(1) { background: linear-gradient(to top, rgba(255,107,107,0.1), var(--coral)); }
.bar-bar:nth-child(2) { background: linear-gradient(to top, rgba(251,191,36,0.1), var(--amber)); }

.bar-bar::before {
  content: attr(data-val);
  position: absolute;
  bottom: 105%;
  left: 50%;
  transform: translateX(-50%) scale(0.85);
  background: rgba(0,0,0,0.85);
  border: 1px solid rgba(255,255,255,0.1);
  color: #ffffff;
  font-size: 0.6rem;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
}

.bar-bar:hover::before {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.chart-labels {
  display: flex;
  justify-content: space-around;
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

.mockup-footer-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  color: var(--text-secondary);
  border-top: 1px solid rgba(255,255,255,0.04);
  padding-top: 0.85rem;
}

/* ─── OPPORTUNITY & MARKET ─── */
#oportunidad {
  background: linear-gradient(to bottom, var(--bg) 0%, var(--bg-soft) 100%);
}

.market-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
  margin-bottom: 5rem;
  align-items: center;
}

.market-stats {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.stat-box {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  transition: all 0.3s;
}

.stat-box:hover {
  border-color: rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.04);
  transform: translateX(5px);
}

.stat-number {
  font-size: 2.2rem;
  color: #ffffff;
  line-height: 1;
  font-family: var(--font-display);
}

#stat-tam .stat-number { color: #818cf8; }
#stat-sam .stat-number { color: var(--amber); }
#stat-som .stat-number { color: var(--accent); }

.stat-label {
  font-weight: 600;
  font-size: 1rem;
  margin-top: 0.4rem;
  color: #ffffff;
}

.stat-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.market-chart-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
}

.market-chart-card h3 {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  text-align: center;
  color: var(--text-secondary);
  font-weight: 500;
}

.chart-wrapper {
  position: relative;
  width: 100%;
  height: 280px;
}

.usp-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.usp-card {
  background: rgba(255,255,255,0.015);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.8rem;
  transition: all 0.3s;
}

.usp-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: 0 8px 24px rgba(62, 207, 160, 0.04);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 1.2rem;
  color: var(--accent);
}

.usp-card h4 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.usp-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ─── FINANCIAL SIMULATOR ─── */
.simulator-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 3.5rem;
  align-items: start;
}

.simulator-controls {
  padding: 2.5rem;
}

.simulator-controls h3 {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: 0.75rem;
}

.control-group {
  margin-bottom: 1.8rem;
}

.control-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.6rem;
}

.control-label span {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.control-label strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--accent);
}

.readout-mix-premium {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  text-align: right;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--coral);
}

.help-text {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
  line-height: 1.4;
}

/* Custom Slider Styles */
.custom-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 5px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

.custom-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: 3px solid #000;
  box-shadow: 0 0 10px var(--accent-glow);
  transition: transform 0.15s;
}

.custom-slider::-webkit-slider-thumb:hover {
  transform: scale(1.25);
}

.slider-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

.simulator-outputs {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.kpi-output-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.kpi-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.kpi-card.highlight-accent {
  background: linear-gradient(135deg, rgba(62,207,160,0.04) 0%, rgba(18, 18, 23, 0.6) 100%);
  border-color: rgba(62,207,160,0.18);
}

.kpi-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.kpi-card h4 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: #ffffff;
}

.kpi-card h4 small {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.kpi-card h4.text-accent {
  color: var(--accent);
}

.simulator-chart-card {
  padding: 2.2rem;
}

.simulator-chart-card h3 {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

/* ─── ARCHITECTURE TECHNICAL TOUR ─── */
#arquitectura {
  background: linear-gradient(to bottom, var(--bg-soft) 0%, var(--bg) 100%);
}

.arch-explorer-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  margin-bottom: 5rem;
  align-items: center;
}

.arch-layers {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.layer-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 1.75rem;
  background: rgba(255,255,255,0.015);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.layer-item:hover {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.15);
  transform: translateX(4px);
}

.layer-item.active {
  background: linear-gradient(90deg, rgba(62,207,160,0.08) 0%, rgba(255,255,255,0.02) 100%);
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(62, 207, 160, 0.05);
}

.layer-num {
  width: 32px;
  height: 32px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 0.9rem;
  transition: all 0.3s;
}

.layer-item.active .layer-num {
  background: var(--accent);
  color: #0a0a0c;
  border-color: var(--accent);
}

.layer-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.3s;
}

.layer-item.active .layer-name {
  color: #ffffff;
}

.arch-detail {
  padding: 2.5rem;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.arch-detail h3 {
  font-size: 1.3rem;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.arch-detail p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.detail-bullets {
  list-style: none;
}

.detail-bullets li {
  padding: 0.4rem 0;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.detail-bullets li::before {
  content: '➔';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.detail-bullets li strong {
  color: #ffffff;
}

/* Flow Simulator section */
.flow-simulator-wrap {
  margin-top: 6rem;
  border-top: 1px solid rgba(255,255,255,0.03);
  padding-top: 5rem;
  text-align: center;
}

.flow-simulator-wrap h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.section-lead-small {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
}

.flow-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.flow-tab-btn {
  padding: 0.7rem 1.4rem;
  background: var(--bg-soft);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
}

.flow-tab-btn:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.flow-tab-btn.active {
  background: var(--accent);
  color: #0a0a0c;
  border-color: var(--accent);
  box-shadow: 0 4px 16px var(--accent-glow);
}

.flow-visualizer {
  padding: 3rem 2rem;
  min-height: 280px;
  text-align: left;
}

.flow-scene {
  display: none;
}

.flow-scene.active {
  display: block;
  animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.flow-steps-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
  margin-bottom: 2.5rem;
}

.flow-step-card {
  background: rgba(255,255,255,0.015);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: relative;
}

.flow-step-card.highlight {
  background: linear-gradient(135deg, rgba(62,207,160,0.04) 0%, rgba(255,255,255,0.01) 100%);
  border-color: rgba(62,207,160,0.25);
}

.step-badge {
  width: 24px;
  height: 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.85rem;
}

.flow-step-card.highlight .step-badge {
  background: var(--accent);
  color: #0a0a0c;
  border-color: var(--accent);
}

.flow-step-card h5 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.flow-step-card p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.flow-arrow {
  font-size: 1.5rem;
  color: var(--text-muted);
  text-align: center;
  animation: pulse-arrow 2s infinite ease-in-out;
}

@keyframes pulse-arrow {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.15); opacity: 0.8; }
}

.flow-technical-note {
  background: rgba(255,255,255,0.01);
  border-left: 3px solid var(--accent);
  padding: 1rem 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.flow-technical-note strong {
  color: #ffffff;
}

/* ─── EFFICIENCY & SECURITY ─── */
.metrics-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: start;
}

.metrics-column {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.metrics-column h3, .security-features-box h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.perf-metric-bar {
  background: rgba(255,255,255,0.015);
  border: 1px solid var(--border);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
}

.perf-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.6rem;
}

.perf-title span {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.perf-title strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--accent);
}

.progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 99px;
  margin-bottom: 0.6rem;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  border-radius: 99px;
}

.progress-bar.accent {
  background: linear-gradient(90deg, var(--accent), #7eeec8);
  box-shadow: 0 0 10px var(--accent-glow);
}

.perf-desc {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Security list box */
.security-features-box {
  padding: 2.5rem;
}

.sec-item {
  display: flex;
  gap: 1.25rem;
  margin-top: 1.8rem;
  align-items: flex-start;
}

.sec-icon {
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.sec-text h5 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.sec-text p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* ─── GROWTH TIMELINE ROADMAP ─── */
.timeline-container {
  margin-top: 4rem;
}

.timeline-tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 800px;
  margin: 0 auto 3.5rem;
  position: relative;
}

.timeline-btn {
  background: var(--bg-soft);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.8rem;
  text-align: center;
  cursor: pointer;
  z-index: 5;
  transition: all 0.3s;
  min-width: 160px;
}

.timeline-btn:hover {
  border-color: rgba(255,255,255,0.2);
}

.timeline-btn.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  box-shadow: 0 0 24px var(--accent-glow);
}

.timeline-btn .m-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
}

.timeline-btn .m-status {
  display: block;
  font-size: 0.72rem;
  color: var(--text-secondary);
  margin-top: 0.15rem;
}

.timeline-btn.active .m-num {
  color: var(--accent);
}

.timeline-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin: 0 -5px;
  z-index: 1;
}

.timeline-details-panel {
  padding: 3rem;
}

.timeline-header-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: 1.25rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.timeline-header-meta h3 {
  font-size: 1.4rem;
}

.badge-accent {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--border-glow);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 99px;
}

.timeline-stats-display {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.t-stat {
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,0.01);
  border: 1px solid rgba(255,255,255,0.03);
  padding: 1.25rem;
  border-radius: var(--radius);
}

.t-label {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}

.t-stat strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
}

.t-stat strong.text-accent {
  color: var(--accent);
}

.timeline-strategy-box {
  background: rgba(255,255,255,0.015);
  border: 1px solid var(--border);
  padding: 1.5rem;
  border-radius: var(--radius);
}

.timeline-strategy-box h5 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.timeline-strategy-box p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ─── RISKS AND MITIGATIONS ─── */
.risks-matrix-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  perspective: 1200px;
}

.risk-card-container {
  height: 290px;
  position: relative;
}

.risk-card {
  width: 100%;
  height: 100%;
  position: absolute;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.risk-card.flipped {
  transform: rotateY(180deg);
}

.card-side {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.8rem;
  display: flex;
  flex-direction: column;
}

.card-side.front {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  z-index: 2;
}

.card-side.back {
  background: linear-gradient(135deg, rgba(62,207,160,0.05) 0%, rgba(18,18,23,0.95) 100%);
  border: 1px solid var(--border-glow);
  transform: rotateY(180deg);
  z-index: 1;
}

.risk-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.risk-badge {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.badge-high {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-medium {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-low {
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.risk-cat {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-side h4 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.risk-teaser {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.45;
  flex: 1;
}

.risk-detail {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.45;
  flex: 1;
}

.flip-hint {
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 600;
  margin-top: 1rem;
}

.card-side.back .flip-hint {
  color: var(--coral);
}

/* ─── CONTACT SECTION ─── */
#contacto {
  background: linear-gradient(to bottom, var(--bg) 0%, #060608 100%);
}

.contact-form-wrap {
  padding: 3rem;
}

.contact-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.contact-header h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.contact-header p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.investor-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

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

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.form-group input, .form-group select, .form-group textarea {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: #ffffff;
  padding: 0.85rem 1.1rem;
  font-size: 0.92rem;
  transition: all 0.25s;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--accent);
  background: rgba(255,255,255,0.04);
  box-shadow: 0 0 12px var(--accent-glow);
}

.form-group select option {
  background-color: var(--bg-soft);
  color: #ffffff;
}

.contact-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 2rem 0;
}

.contact-divider::before, .contact-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.contact-divider:not(:empty)::before {
  margin-right: 1.25rem;
}

.contact-divider:not(:empty)::after {
  margin-left: 1.25rem;
}

.direct-channels {
  display: flex;
  justify-content: center;
}

.wa-direct-btn {
  display: inline-flex;
  align-items: center;
  background: rgba(37, 211, 102, 0.08);
  border: 1px solid rgba(37, 211, 102, 0.3);
  color: #25d366;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.9rem 1.8rem;
  border-radius: var(--radius);
  transition: all 0.25s;
}

.wa-direct-btn:hover {
  background: rgba(37, 211, 102, 0.15);
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.15);
  transform: translateY(-1px);
}

/* ─── FOOTER ─── */
#footer {
  padding: 4rem 0;
  background-color: #060608;
  border-top: 1px solid rgba(255,255,255,0.02);
}

.footer-bottom-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  justify-content: center;
}

.footer-logo span {
  color: #ffffff;
}

.footer-logo .highlight {
  color: var(--accent);
}

.footer-slogan {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.footer-links-row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(255,255,255,0.03);
  padding-top: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ─── MODAL ─── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.success-modal {
  max-width: 460px;
  width: 90%;
  padding: 3rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.active .success-modal {
  transform: translateY(0);
}

.success-icon {
  width: 56px;
  height: 56px;
  background: rgba(62, 207, 160, 0.1);
  border: 1.5px solid var(--accent);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.success-modal h3 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.success-modal p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 2rem;
}

/* ─── Responsive Adjustments ─── */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero-graphic {
    order: -1;
  }
  .market-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .simulator-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .arch-explorer-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .metrics-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .flow-steps-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .flow-arrow {
    transform: rotate(90deg);
    margin: 0.5rem 0;
  }
  .timeline-tabs {
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
  }
  .timeline-line {
    display: none;
  }
}

@media (max-width: 600px) {
  html {
    font-size: 15px;
  }
  .nav-inner {
    padding: 1rem;
  }
  .nav-links, .nav-cta {
    display: none;
  }
  .burger {
    display: flex;
  }
  .hero-metrics-summary {
    flex-direction: column;
    gap: 1.25rem;
  }
  .kpi-output-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .timeline-details-panel {
    padding: 1.5rem;
  }
  .timeline-stats-display {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .contact-form-wrap {
    padding: 1.5rem;
  }
}

/* ─── Honeypot anti-spam (invisible to humans) ─── */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ─── Respect user motion preferences ─── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .ambient-glow,
  .glow-blob,
  .noise {
    animation: none !important;
  }
}
