/* ============================================
   HERIC TRADING - Sistema de Diseño Premium
   Paleta: Negro + Rojo + Blanco + Dorado
   Tipografía: Bebas Neue + Barlow Condensed + Inter
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Barlow+Condensed:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --negro: #0D0D0D;
  --negro-2: #161616;
  --negro-3: #1E1E1E;
  --rojo: #D91C24;
  --rojo-oscuro: #A8141B;
  --rojo-glow: rgba(217,28,36,0.18);
  --dorado: #C8A84B;
  --blanco: #FFFFFF;
  --gris-claro: #F5F5F5;
  --gris-medio: #9CA3AF;
  --gris-borde: rgba(255,255,255,0.08);
  --font-title: 'Bebas Neue', 'Barlow Condensed', sans-serif;
  --font-label: 'Barlow Condensed', sans-serif;
  --font-body: 'Inter', sans-serif;
  --shadow-rojo: 0 0 32px rgba(217,28,36,0.3);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--negro);
  color: var(--blanco);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--negro-2); }
::-webkit-scrollbar-thumb { background: var(--rojo); border-radius: 99px; }

/* ================================================
   NAVBAR — Desktop + Mobile de primer nivel
   ================================================ */

#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

/* Barra superior fina con datos de contacto rápido */
.nav-topbar {
  background: var(--rojo);
  padding: 0 5%;
  display: flex; align-items: center; justify-content: flex-end; gap: 2rem;
  height: 34px;
  transition: height 0.4s ease, opacity 0.4s ease;
  overflow: hidden;
}
#navbar.scrolled .nav-topbar {
  height: 0; opacity: 0; pointer-events: none;
}
.nav-topbar a {
  font-family: var(--font-title); font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.9); text-decoration: none;
  display: flex; align-items: center; gap: 5px;
  transition: color 0.2s;
}
.nav-topbar a:hover { color: #fff; }

/* Barra principal */
.nav-bar {
  background: rgba(13,13,13,0.0);
  backdrop-filter: blur(0px);
  border-bottom: 1px solid transparent;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
  padding: 0 5%;
}
#navbar.scrolled .nav-bar {
  background: rgba(10,10,10,0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 4px 40px rgba(0,0,0,0.6);
}

.nav-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 84px;
}

/* Logo */
.nav-logo { flex-shrink: 0; display: flex; align-items: center; }
.nav-logo img { height: 68px; width: auto; display: block; transition: opacity 0.2s; }
.nav-logo:hover img { opacity: 0.85; }

/* Links desktop */
.nav-links {
  display: flex; align-items: center; gap: 0.25rem;
  list-style: none; margin: 0; padding: 0;
}
.nav-links > li > a {
  font-family: var(--font-label); font-size: 0.9rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.78);
  text-decoration: none;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  transition: color 0.25s, background 0.25s;
  position: relative;
  display: block;
}
.nav-links > li > a:hover {
  color: var(--blanco);
  background: rgba(255,255,255,0.06);
}
.nav-links > li > a.active {
  color: var(--blanco);
}

/* Separador vertical entre links y CTA */
.nav-sep {
  width: 1px; height: 20px;
  background: rgba(255,255,255,0.12);
  margin: 0 0.75rem;
  flex-shrink: 0;
}

/* Botón WhatsApp nav */
.nav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: #25D366;
  color: #fff !important;
  font-family: var(--font-label); font-size: 0.82rem; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.52rem 1.2rem 0.52rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
  line-height: 1;
}
.nav-cta svg { flex-shrink: 0; width: 14px; height: 14px; }
.nav-cta:hover {
  background: #1aad55;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(37,211,102,0.35);
  color: #fff !important;
}

/* ---- HAMBURGER ---- */
.nav-toggle {
  display: none;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; width: 44px; height: 44px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  cursor: pointer; padding: 0;
  transition: background 0.2s, border-color 0.2s;
  flex-shrink: 0;
}
.nav-toggle:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); }
.nav-toggle .bar {
  display: block; width: 20px; height: 2px;
  background: var(--blanco); border-radius: 2px;
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1), opacity 0.25s, width 0.3s;
  transform-origin: center;
}
.nav-toggle.open .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open .bar:nth-child(2) { opacity: 0; width: 0; }
.nav-toggle.open .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ================================================
   MOBILE MENU — Full screen de primer nivel
   ================================================ */
.nav-mobile-overlay {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(0,0,0,0.0);
  pointer-events: none;
  transition: background 0.4s ease;
}
.nav-mobile-overlay.open {
  background: rgba(0,0,0,0.6);
  pointer-events: auto;
}

.nav-mobile-panel {
  position: fixed; top: 0; right: 0; bottom: 0;
  z-index: 1000;
  width: min(360px, 88vw);
  background: var(--negro-2);
  border-left: 1px solid rgba(255,255,255,0.06);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
  box-shadow: -20px 0 60px rgba(0,0,0,0.7);
  overflow-y: auto;
}
.nav-mobile-panel.open {
  transform: translateX(0);
}

.nav-mobile-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}
.nav-mobile-header img { height: 44px; }
.nav-mobile-close {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1);
  color: var(--blanco); font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background 0.2s;
}
.nav-mobile-close:hover { background: rgba(217,28,36,0.2); }

.nav-mobile-links {
  list-style: none; padding: 1.5rem; flex: 1;
  display: flex; flex-direction: column; gap: 0.25rem;
}
.nav-mobile-links a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem;
  font-family: var(--font-label); font-size: 1.15rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.8); text-decoration: none;
  border-radius: 12px;
  transition: background 0.2s, color 0.2s, padding-left 0.2s;
}
.nav-mobile-links a:hover {
  background: rgba(255,255,255,0.05);
  color: var(--blanco);
  padding-left: 1.5rem;
}
.nav-mobile-links a .arrow {
  font-size: 0.8rem; opacity: 0.4; transition: opacity 0.2s, transform 0.2s;
}
.nav-mobile-links a:hover .arrow { opacity: 1; transform: translateX(3px); }

.nav-mobile-links li:last-child a {
  margin-top: 0.5rem;
  background: var(--rojo);
  color: #fff;
  justify-content: center;
}
.nav-mobile-links li:last-child a:hover {
  background: var(--rojo-oscuro);
  padding-left: 1.25rem;
}
.nav-mobile-links li:last-child a .arrow { display: none; }

.nav-mobile-footer {
  padding: 1.25rem 1.5rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}
.nav-mobile-social {
  display: flex; gap: 0.6rem; margin-bottom: 1rem;
  justify-content: center;
}
.nav-mobile-social a {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.5);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.nav-mobile-social a:nth-child(1):hover { background: rgba(225,48,108,0.15); border-color: rgba(225,48,108,0.4); color: #E1306C; }
.nav-mobile-social a:nth-child(2):hover { background: rgba(24,119,242,0.15); border-color: rgba(24,119,242,0.4); color: #1877F2; }
.nav-mobile-social a:nth-child(3):hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); color: #fff; }
.nav-mobile-copy {
  font-size: 0.68rem; color: rgba(255,255,255,0.2);
  text-align: center; font-family: var(--font-title); letter-spacing: 0.08em; text-transform: uppercase;
}

/* ================================================
   HERO — Cinematográfico, único, de primer nivel
   ================================================ */
#hero {
  position: relative;
  min-height: 100vh;
  background: var(--negro);
  overflow: hidden;
  display: flex;
  align-items: stretch;
}

/* Foto de Heric — ocupa mitad derecha, sangra al borde */
.hero-foto-panel {
  position: absolute;
  top: 0; right: 0;
  width: 52%;
  height: 100%;
  z-index: 1;
}
.hero-foto-panel img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
/* Degradado sobre la foto: izquierda negro sólido, derecha transparente */
.hero-foto-panel::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to right, var(--negro) 0%, rgba(13,13,13,0.55) 45%, rgba(13,13,13,0.0) 100%);
  z-index: 2;
}
/* Degradado inferior para fundir con stats */
.hero-foto-panel::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 35%;
  background: linear-gradient(to top, var(--negro) 0%, transparent 100%);
  z-index: 2;
}

/* Línea roja decorativa vertical */
.hero-redline {
  position: absolute;
  left: calc(48% - 1px);
  top: 15%; bottom: 15%;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--rojo) 30%, var(--rojo) 70%, transparent);
  z-index: 3;
  opacity: 0.6;
}

/* Contenido izquierdo */
.hero-content-wrap {
  position: relative; z-index: 4;
  width: 100%; max-width: 1280px;
  margin: 0 auto;
  padding: 0 5%;
  display: flex;
  align-items: center;
  padding-top: 84px; /* altura navbar */
}
.hero-content {
  max-width: 560px;
  padding: 3rem 0;
}

/* Badge superior */
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 2rem;
}
.hero-badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--rojo);
  box-shadow: 0 0 0 3px rgba(217,28,36,0.25);
  animation: pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse-dot {
  0%,100% { box-shadow: 0 0 0 3px rgba(217,28,36,0.25); }
  50%      { box-shadow: 0 0 0 7px rgba(217,28,36,0.08); }
}
.hero-badge-text {
  font-family: var(--font-label); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

/* Título principal — Bebas Neue puro */
.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(4rem, 7vw, 7rem);
  font-weight: 400; /* Bebas solo tiene regular */
  line-height: 0.92;
  letter-spacing: 0.02em;
  color: var(--blanco);
  margin-bottom: 1.75rem;
}
.hero-title .line-normal { display: block; }
.hero-title .line-accent {
  display: block;
  color: var(--rojo);
}
.hero-title .line-small {
  display: block;
  font-family: var(--font-label);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.6);
  margin-top: 0.6rem;
  text-transform: uppercase;
}

/* Separador con precio */
.hero-divider {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 1.75rem;
}
.hero-divider-line {
  flex: 1; max-width: 48px; height: 1px;
  background: var(--rojo); opacity: 0.7;
}
.hero-divider-text {
  font-family: var(--font-body); font-size: 0.88rem;
  color: rgba(255,255,255,0.55); line-height: 1.6;
  flex: 1;
}
.hero-divider-text strong {
  color: var(--blanco); font-weight: 600;
}

/* Chips de beneficios */
.hero-chips {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-bottom: 2.5rem;
}
.hero-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  padding: 0.4rem 0.85rem;
  font-family: var(--font-label); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  transition: border-color 0.2s, color 0.2s;
}
.hero-chip svg { color: var(--rojo); flex-shrink: 0; }
.hero-chip:hover { border-color: rgba(217,28,36,0.4); color: var(--blanco); }

/* Botones CTA */
.hero-actions {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.btn-hero-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--rojo); color: #fff;
  font-family: var(--font-label); font-size: 0.9rem; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.85rem 2rem; border-radius: 6px;
  text-decoration: none; transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  border: none; cursor: pointer; white-space: nowrap;
}
.btn-hero-primary:hover {
  background: var(--rojo-oscuro); transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(217,28,36,0.4); color: #fff;
}
.btn-hero-primary .btn-icon {
  width: 26px; height: 26px; border-radius: 4px;
  background: rgba(0,0,0,0.2);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.btn-hero-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: rgba(255,255,255,0.65);
  font-family: var(--font-label); font-size: 0.88rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.85rem 1.5rem; border-radius: 6px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.15);
  transition: border-color 0.2s, color 0.2s, background 0.2s; white-space: nowrap;
}
.btn-hero-ghost:hover {
  border-color: rgba(255,255,255,0.4); color: #fff; background: rgba(255,255,255,0.05);
}

/* Stats inline hero */
.hero-stats-row {
  display: flex; align-items: center; margin-top: 3rem;
  border-top: 1px solid rgba(255,255,255,0.07); padding-top: 2rem;
}
.hero-stat { flex: 1; padding-right: 1.5rem; }
.hero-stat + .hero-stat {
  padding-left: 1.5rem; padding-right: 0;
  border-left: 1px solid rgba(255,255,255,0.07);
}
.hero-stat-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.8rem; font-weight: 400;
  color: var(--blanco); line-height: 1; letter-spacing: 0.02em;
}
.hero-stat-num span { color: var(--rojo); font-size: 1.4rem; }
.hero-stat-label {
  font-family: var(--font-label); font-size: 0.7rem; font-weight: 600;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.12em; text-transform: uppercase; margin-top: 0.2rem;
}

/* Número de WhatsApp flotante sobre la foto */
.hero-wa-tag {
  position: absolute;
  bottom: 2.5rem; right: 2.5rem;
  z-index: 5;
  background: rgba(13,13,13,0.85);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  border-radius: 10px;
  padding: 0.85rem 1.25rem;
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}
.hero-wa-tag:hover {
  border-color: rgba(37,211,102,0.4);
  transform: translateY(-2px);
}
.hero-wa-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hero-wa-label { font-size: 0.65rem; color: rgba(255,255,255,0.45); letter-spacing: 0.06em; text-transform: uppercase; font-family: var(--font-title); font-weight: 700; }
.hero-wa-num { font-family: var(--font-title); font-size: 0.88rem; font-weight: 800; color: var(--blanco); letter-spacing: 0.02em; }

/* ---- HERO RESPONSIVE ---- */
@media (max-width: 1024px) {
  .hero-foto-panel { width: 46%; }
  .hero-title { font-size: clamp(2.6rem, 6vw, 4rem); }
}

@media (max-width: 768px) {
  #hero { min-height: 100svh; align-items: flex-end; }

  .hero-foto-panel { width: 100%; height: 100%; top: 0; right: 0; }
  .hero-foto-panel img { object-position: center top; }
  .hero-foto-panel::before {
    background: linear-gradient(to top,
      rgba(13,13,13,1) 0%,
      rgba(13,13,13,0.92) 38%,
      rgba(13,13,13,0.45) 62%,
      rgba(13,13,13,0.1) 100%
    );
  }
  .hero-foto-panel::after { height: 50%; }
  .hero-redline { display: none; }

  .hero-content-wrap {
    align-items: flex-end;
    padding-bottom: 1.5rem;
    padding-top: 84px;
  }
  .hero-content {
    max-width: 100%;
    padding: 1.5rem 0 0.5rem;
  }

  .hero-badge { margin-bottom: 1rem; }

  .hero-title { font-size: clamp(2.6rem, 10vw, 3.4rem); margin-bottom: 1rem; }

  /* Divider más compacto en mobile */
  .hero-divider { margin-bottom: 1.25rem; }
  .hero-divider-text { font-size: 0.82rem; }

  /* Botones en fila en mobile */
  .hero-actions {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0.6rem;
  }
  .btn-hero-primary {
    flex: 1;
    padding: 0.75rem 1rem;
    font-size: 0.78rem;
    justify-content: center;
  }
  .btn-hero-ghost {
    flex: 1;
    padding: 0.75rem 1rem;
    font-size: 0.78rem;
    justify-content: center;
  }
  .btn-hero-primary .btn-icon { display: none; }

  .hero-stats-row {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
  }
  .hero-stat-num { font-size: 2rem; }
  .hero-stat-num span { font-size: 1rem; }
  .hero-stat-label { font-size: 0.6rem; }

  .hero-wa-tag { display: none; }
  .hero-chips { display: none; }
}
