/* ============================================================
   LEONARDOBARONG.COM — Global Styles (Dark Theme)
   Brand: Directo, profesional, callejero con clase
   Inspired by Portiq landing design
   ============================================================ */

:root {
  /* Dark palette — inspired by Portiq manual-tactico landing */
  --bg-primary: #0c1220;
  --bg-secondary: #111927;
  --bg-card: #162032;
  --bg-card-hover: #1c2940;
  --border-color: #1e3048;
  --border-light: #243a54;

  /* Accent — Magenta Rose */
  --accent: #FF0080;
  --accent-hover: #FF3399;
  --accent-glow: rgba(255, 0, 128, 0.15);
  --accent-soft: rgba(255, 0, 128, 0.08);

  /* Secondary accents */
  --amber: #f59e0b;
  --red-soft: #ef4444;
  --green-check: #22c55e;

  /* Text */
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-accent: #FF0080;

  /* Gradients */
  --gradient-hero: linear-gradient(160deg, #0c1220 0%, #0f1a2e 40%, #132a3e 100%);
  --gradient-cta: linear-gradient(160deg, #0a2540 0%, #0c1220 100%);
  --gradient-top-bar: linear-gradient(90deg, #FF0080 0%, #FF3399 100%);

  /* System */
  --radius: 12px;
  --radius-sm: 8px;
  --radius-pill: 100px;
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.4);
  --shadow-accent: 0 4px 20px rgba(255, 0, 128, 0.2);
  --transition: all 0.3s ease;
  --max-width: 1200px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

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

body {
  font-family: var(--font);
  color: var(--text-secondary);
  background: var(--bg-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5 {
  color: var(--text-primary);
  line-height: 1.2;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); }
p { margin-bottom: 1rem; }

.text-accent { color: var(--accent); }
.text-white { color: var(--text-primary); }
.text-center { text-align: center; }
.text-sm { font-size: 0.9rem; color: var(--text-muted); }

/* Section label (Portiq style: emoji + uppercase green) */
.section-label {
  display: inline-block;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--bg-secondary);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(12, 18, 32, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.nav-logo span { color: var(--accent); }

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

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

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

.nav-links a.nav-cta {
  background: var(--accent);
  color: var(--bg-primary);
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.nav-links a.nav-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-accent);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.nav-hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-align: center;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-primary);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.btn-secondary:hover {
  background: var(--accent);
  color: var(--bg-primary);
}

.btn-white {
  background: var(--text-primary);
  color: var(--bg-primary);
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-lg {
  padding: 18px 40px;
  font-size: 1.1rem;
  border-radius: var(--radius-pill);
}

.btn-full {
  width: 100%;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--gradient-hero);
  color: var(--text-primary);
  padding-top: 70px;
}

/* Hero background image — containers/port */
.hero-bg-img {
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1578575437130-527eed3abbec?w=1920&q=80') center center / cover no-repeat;
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
}

.hero-badge {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 0, 128, 0.2);
}

.hero h1 {
  color: var(--text-primary);
  margin-bottom: 20px;
}

.hero h1 .highlight {
  color: var(--accent);
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.6;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 20%, rgba(255, 0, 128, 0.06) 0%, transparent 60%);
}

/* Subtle grid pattern */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,0,128,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,0,128,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* ============================================================
   CARDS (Quiz / Services)
   ============================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 40px 32px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border-color);
  text-align: center;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
  background: var(--bg-card-hover);
}

.card-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 20px;
  background: var(--accent-soft);
  border: 1px solid rgba(255, 0, 128, 0.15);
}

.card h3 {
  margin-bottom: 12px;
  font-size: 1.3rem;
}

.card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.card .btn { margin-top: auto; }

/* ============================================================
   STATS ROW
   ============================================================ */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  text-align: center;
}

.stat-item h3 {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 4px;
}

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

/* ============================================================
   STEPS (How it works)
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  counter-reset: step;
}

.step {
  text-align: center;
  padding: 32px 20px;
}

.step-number,
.step::before {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg-primary);
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 auto 16px;
}

.step::before {
  counter-increment: step;
  content: counter(step);
}

/* If .step-number is used, hide ::before */
.step:has(.step-number)::before {
  display: none;
}

.step h3 { margin-bottom: 8px; font-size: 1.15rem; }
.step p { font-size: 0.9rem; color: var(--text-secondary); }

/* ============================================================
   CATEGORIES GRID
   ============================================================ */
.categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  text-align: center;
}

.category {
  padding: 28px 16px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.category:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
}

.category-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.category h3 {
  font-size: 1rem;
  font-weight: 600;
}

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.faq-item {
  border-bottom: 1px solid var(--border-color);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  background: none;
  border: none;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
  font-family: var(--font);
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--accent);
  transition: var(--transition);
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item.active .faq-question::after {
  content: '−';
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer p {
  padding-bottom: 20px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

/* ============================================================
   FORMS
   ============================================================ */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.form-control {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: var(--font);
  transition: var(--transition);
  background: var(--bg-primary);
  color: var(--text-primary);
}

.form-control::placeholder {
  color: var(--text-muted);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

select.form-control option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

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

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.testimonial {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.testimonial:hover {
  border-color: var(--border-light);
}

.testimonial-stars {
  color: var(--amber);
  font-size: 1rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testimonial-text {
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 16px;
  position: relative;
  padding-left: 20px;
  border-left: 3px solid var(--accent);
}

.testimonial-author {
  font-weight: 600;
  color: var(--text-primary);
}

.testimonial-role {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ============================================================
   PRICING HIGHLIGHT
   ============================================================ */
.price-box {
  background: var(--bg-card);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.price-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-top-bar);
}

.price-amount {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-primary);
}

.price-detail {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  background: var(--gradient-cta);
  color: var(--text-primary);
  text-align: center;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border-color);
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-top-bar);
}

.cta-section h2 { color: var(--text-primary); margin-bottom: 16px; }
.cta-section p { color: var(--text-secondary); margin-bottom: 32px; font-size: 1.1rem; }

/* ============================================================
   TWO COLUMNS
   ============================================================ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

/* ============================================================
   CONTACT CARD (dark)
   ============================================================ */
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 32px;
}

.contact-card h4 {
  margin-bottom: 8px;
  color: var(--text-primary) !important;
}

.contact-card a {
  color: var(--accent) !important;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg-primary);
  color: var(--text-secondary);
  padding: 60px 0 30px;
  border-top: 1px solid var(--border-color);
}

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

.footer h4 {
  color: var(--text-primary);
  margin-bottom: 16px;
  font-size: 1rem;
}

.footer p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.footer-links a {
  display: block;
  padding: 4px 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

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

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  font-size: 1.1rem;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
  font-size: 0.85rem;
}

.footer-bottom a { color: var(--accent); }

/* ============================================================
   LINK IN BIO PAGE (dark)
   ============================================================ */
.linkinbio {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-hero);
  padding: 40px 20px;
  position: relative;
}

.linkinbio::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 30%, rgba(255,0,128,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.linkinbio-card {
  width: 100%;
  max-width: 420px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.linkinbio-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  margin: 0 auto 16px;
  overflow: hidden;
  background: var(--bg-card);
}

.linkinbio-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.linkinbio-name {
  color: var(--text-primary);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.linkinbio-bio {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 32px;
}

.linkinbio-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.linkinbio-btn {
  display: block;
  padding: 16px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  text-align: center;
}

.linkinbio-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.linkinbio-btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg-primary);
}

.linkinbio-btn.primary:hover {
  background: var(--accent-hover);
  box-shadow: var(--shadow-accent);
}

.linkinbio-desc {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 4px;
  margin-bottom: 8px;
}

/* ============================================================
   LEAD QUALIFICATION RESULTS (JS-driven)
   ============================================================ */
.lead-result {
  margin-top: 32px;
  padding: 32px;
  border-radius: var(--radius);
  text-align: center;
  animation: fadeIn 0.4s ease;
}

.lead-result.qualified {
  background: rgba(255, 0, 128, 0.08);
  border: 1px solid rgba(255, 0, 128, 0.3);
}

.lead-result.not-qualified {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.lead-result h3 {
  margin-bottom: 12px;
}

.lead-result p {
  color: var(--text-secondary);
}

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

/* ============================================================
   WHATSAPP FLOATING BUTTON
   Shows only on importadora.html (via JS class on body)
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: var(--transition);
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: #ffffff;
}

.whatsapp-float .tooltip {
  position: absolute;
  right: 72px;
  background: var(--bg-card);
  color: var(--text-primary);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.whatsapp-float:hover .tooltip {
  opacity: 1;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    padding: 24px;
    box-shadow: var(--shadow);
    gap: 16px;
    border-bottom: 1px solid var(--border-color);
  }
  .nav-hamburger { display: flex; }

  .hero { min-height: 80vh; padding-top: 90px; }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }

  .section { padding: 60px 0; }

  .cards-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .steps { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .testimonials-grid { grid-template-columns: 1fr; }

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

  .btn-lg { padding: 16px 32px; font-size: 1rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .stat-item h3 { font-size: 2rem; }
}
