/* ==========================================================================
   ABC TRADERS — WEB INSTITUCIONAL
   Sistema de Diseño: Modern Minimal con Delimitación Definida (v1.1)
   Inspiración: SpotGamma (estructura & jerarquía) + tweakcn (delimitación de bloques)
   ========================================================================== */

/* --- GOOGLE FONTS --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=JetBrains+Mono:wght@400;500&display=swap');

/* --- DESIGN TOKENS --- */
:root {
  /* Paleta Oficial */
  --bg-base: #0A0A0A;
  --bg-surface: #141414;
  --bg-elevated: #1F1F1F;
  --text-primary: #F2F0EB;    /* Blanco hueso */
  --text-secondary: #9A9A9A;  /* Gris neutro */
  --border: #2A2A2A;          /* Separadores y bordes de cards */
  --accent: #B87333;          /* Cobre apagado institucional */
  --accent-hover: #D18B4A;    /* Cobre claro al hover */
  --success: #26A69A;
  --danger: #EF5350;

  /* Tipografía */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Geometría y Delimitación (Matiz Modern Minimal) */
  --border-width: 2px;
  --radius: 0px; /* Sin radius para sobriedad institucional */
  --shadow-hard: 4px 4px 0px #000000;
  --shadow-card: 3px 3px 0px #000000;
  
  /* Layout */
  --container-max: 1240px;
  --section-pad-y: 120px;
  --section-pad-y-mobile: 64px;
}

/* --- RESET & BASE --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  line-height: 1.6;
  overflow-x: hidden;
  background-color: var(--bg-base);
}

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

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

/* --- TIPOGRAFÍA INSTITUCIONAL --- */
h1, h2, h3, h4, .font-serif {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.5rem, 5vw + 1rem, 4.5rem); /* 72px desktop / 40px móvil */
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 3.5vw + 0.5rem, 3rem); /* 48px desktop / 32px móvil */
  letter-spacing: -0.015em;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: clamp(1.5rem, 2vw + 0.5rem, 2rem); /* 32px desktop / 24px móvil */
  letter-spacing: -0.01em;
}

p.body-lead {
  font-size: clamp(1.125rem, 1.2vw, 1.25rem); /* 18px */
  color: var(--text-secondary);
  line-height: 1.7;
}

p.body-text {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.caption {
  font-size: 0.875rem; /* 14px */
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.mono-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-transform: uppercase;
}

/* --- CONTENEDORES & ESTRUCTURA --- */
.container {
  width: 90%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
}

.section {
  padding-top: var(--section-pad-y);
  padding-bottom: var(--section-pad-y);
  position: relative;
}

.section-divider {
  width: 100%;
  height: 2px;
  background-color: var(--border);
}

/* --- BOTONES (Modern Minimal con Delimitación) --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.9rem 1.8rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--accent);
  color: #0A0A0A;
  border: 2px solid #0A0A0A;
  box-shadow: var(--shadow-hard);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px #000000;
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border);
  box-shadow: var(--shadow-card);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0px #000000;
}

.btn-sm {
  padding: 0.55rem 1.2rem;
  font-size: 0.85rem;
}

/* --- NAVBAR INSTITUCIONAL --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background-color: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.brand-badge {
  display: inline-block;
  width: 10px;
  height: 10px;
  background-color: var(--accent);
  border: 1px solid var(--text-primary);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 0.25rem 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-market-link {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-market-link:hover {
  color: var(--accent-hover);
}

/* --- HERO (SPOTGAMMA STYLE) --- */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  background-color: var(--bg-base);
  overflow: hidden;
  border-bottom: 2px solid var(--border);
}

/* Video Background Duotono */
.hero-video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  opacity: 0.35;
  filter: grayscale(100%) contrast(120%);
}

.hero-video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 60% 40%, rgba(10, 10, 10, 0.4) 0%, #0A0A0A 85%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 860px;
}

.hero-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  margin-bottom: 1.8rem;
}

.hero-title {
  margin-bottom: 1.75rem;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2.75rem;
  max-width: 680px;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* --- SECCIÓN 2: MANIFIESTO (SPOTGAMMA FORMULA) --- */
.manifesto-section {
  background-color: var(--bg-base);
}

.manifesto-header {
  margin-bottom: 4rem;
}

.manifesto-lead {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.2vw, 2.2rem);
  line-height: 1.5;
  color: var(--text-primary);
  margin-bottom: 2.5rem;
  padding-left: 2rem;
  border-left: 3px solid var(--accent);
}

.manifesto-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3.5rem;
  margin-top: 2rem;
}

.manifesto-col p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

/* --- SECCIÓN 3: QUÉ HACEMOS (MODERN MINIMAL CARDS) --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background-color: var(--bg-surface);
  border: 2px solid var(--border);
  box-shadow: var(--shadow-card);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 340px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.service-number {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --- SECCIÓN 4: GANCHO BALLENA EDITORIAL (LAB EXPERIMENTAL A vs C) --- */
.hook-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-color: var(--bg-base);
  border-top: 2px solid var(--border);
  border-bottom: 2px solid var(--border);
  overflow: hidden;
}

/* Barra de control para Diego (Switch A vs C) */
.hook-switcher-bar {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 50;
  background: var(--bg-surface);
  border: 2px solid var(--border);
  box-shadow: var(--shadow-card);
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hook-switcher-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.switch-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 0.35rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  cursor: pointer;
}

.switch-btn.active {
  background: var(--accent);
  color: #0A0A0A;
  border-color: var(--accent);
  font-weight: 700;
}

/* Contenedor del Test A vs C */
.hook-container {
  width: 100%;
  height: 100%;
}

/* Dirección A: Asimétrica, serena, editorial */
.hook-view-a {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  width: 90%;
  max-width: var(--container-max);
  margin: 0 auto;
}

.hook-text-block {
  max-width: 520px;
}

.hook-media-block {
  position: relative;
  border: 2px solid var(--border);
  box-shadow: var(--shadow-hard);
  background: var(--bg-surface);
  overflow: hidden;
}

.hook-media-block img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  filter: grayscale(100%) contrast(110%);
}

/* Dirección C: Salto Épico — Layout Cinematográfico */
.hook-view-c {
  display: none; /* Activado por JS */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
}

/* Imagen de fondo de la ballena (cinematic) */
.hook-c-whale-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.hook-c-whale-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: grayscale(100%) contrast(130%) brightness(0.45);
  transform: scale(1.05);
  transition: transform 8s ease-out;
}

.hook-view-c:hover .hook-c-whale-bg img {
  transform: scale(1.0);
}

/* Overlay degradado para legibilidad */
.hook-c-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  background:
    linear-gradient(180deg,
      rgba(10, 10, 10, 0.7) 0%,
      rgba(10, 10, 10, 0.3) 35%,
      rgba(10, 10, 10, 0.2) 50%,
      rgba(10, 10, 10, 0.5) 75%,
      rgba(10, 10, 10, 0.95) 100%
    );
}

/* Canvas de velas animadas sobre la imagen */
.candles-canvas {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 55%;
  pointer-events: none;
  z-index: 3;
  mask-image: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
}

/* Contenido de texto sobre todo */
.hook-view-c-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  padding: 6rem 2rem 4rem 2rem;
}

/* Línea decorativa animada tipo TradingView */
.hook-c-chart-line {
  position: absolute;
  bottom: 15%;
  left: 0;
  width: 100%;
  height: 120px;
  z-index: 4;
  pointer-events: none;
}

/* Partículas de "splash" sutil */
.hook-c-particles {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  z-index: 3;
  pointer-events: none;
}

/* --- SECCIÓN 6: WAITLIST BOOTCAMP (SPOTGAMMA FORMULA) --- */
.waitlist-section {
  background-color: var(--bg-surface);
  border-bottom: 2px solid var(--border);
}

.waitlist-box {
  max-width: 760px;
  margin: 0 auto;
  border: 2px solid var(--border);
  box-shadow: var(--shadow-hard);
  background-color: var(--bg-base);
  padding: 3.5rem 3rem;
}

.waitlist-box h2 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.waitlist-box p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.waitlist-form {
  display: flex;
  gap: 0.75rem;
}

.waitlist-input {
  flex: 1;
  background-color: var(--bg-surface);
  border: 2px solid var(--border);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 0.9rem 1.2rem;
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.2s ease;
}

.waitlist-input:focus {
  border-color: var(--accent);
}

.waitlist-note {
  font-size: 0.85rem;
  color: #666666;
  margin-top: 1rem;
}

/* --- FOOTER INSTITUCIONAL --- */
.footer {
  background-color: var(--bg-base);
  padding-top: 5rem;
  padding-bottom: 3rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 4rem;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-brand {
  max-width: 380px;
}

.footer-links {
  display: flex;
  gap: 3.5rem;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.75rem;
}

.footer-col a {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.footer-col a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #666666;
}

/* --- RESPONSIVE BREAKPOINTS --- */
@media (max-width: 992px) {
  .manifesto-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .hook-view-a {
    grid-template-columns: 1fr;
  }
  .hook-media-block img {
    height: 350px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-pad-y: var(--section-pad-y-mobile);
  }
  .nav-menu {
    display: none;
  }
  .waitlist-form {
    flex-direction: column;
  }
  .footer-top {
    flex-direction: column;
  }
  .footer-links {
    flex-direction: column;
    gap: 2rem;
  }
}

