/* ============================================================
   STYLE.CSS — BASE DESIGN SYSTEM
   Accent colors injected via config.js into CSS variables
   ============================================================ */

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

:root {
  /* Brand colors — overridden by main.js from CONFIG */
  --accent:      #7a9db5;
  --accent-2:    #a8c4d4;
  --accent-glow: rgba(122, 157, 181, 0.2);

  /* Background — dark charcoal matching physical brand cards */
  --bg:           #0a0c0f;
  --bg-secondary: #0f1215;
  --bg-card:      rgba(255,255,255,0.03);
  --text:         #e8edf2;
  --text-muted:   #7a8a96;
  --text-subtle:  #3a4550;
  --border:       rgba(255,255,255,0.07);
  --glass:        rgba(255,255,255,0.04);

  /* Typography */
  --font: 'Inter', system-ui, -apple-system, sans-serif;

  /* Spacing */
  --radius:     12px;
  --radius-lg:  20px;
  --section-py: 120px;
  --max-w:      1200px;
}

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

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

/* ── ACCESSIBILITY ── */
.skip-link {
  position: absolute; top: -100px; left: 1rem;
  background: var(--accent); color: #fff; padding: 0.5rem 1rem;
  border-radius: var(--radius); z-index: 9999; transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ── TYPOGRAPHY ── */
h1 { font-size: clamp(2.8rem, 5.5vw, 4.5rem); font-weight: 800; line-height: 1.08; letter-spacing: -0.03em; margin-bottom: 1.25rem; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 600; }
p  { color: var(--text-muted); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem; border-radius: var(--radius);
  font-size: 0.95rem; font-weight: 600; font-family: var(--font);
  text-decoration: none; border: none; cursor: pointer;
  transition: all 0.2s ease; white-space: nowrap; min-height: 44px;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 0 30px var(--accent-glow); }
.btn-primary:hover { filter: brightness(1.12); transform: translateY(-2px); box-shadow: 0 0 50px var(--accent-glow); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--glass); border-color: rgba(255,255,255,0.15); }
.btn-whatsapp { background: #25D366; color: #fff; }
.btn-whatsapp:hover { filter: brightness(1.05); transform: translateY(-2px); }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }

/* ── NAVBAR ── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.3s, backdrop-filter 0.3s;
}
#navbar.scrolled {
  background: rgba(10,12,15,0.9);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 1.25rem 2rem;
  display: flex; align-items: center; gap: 2rem;
}
.nav-logo { text-decoration: none; }
.nav-logo-text { font-size: 1.2rem; font-weight: 700; color: var(--text); letter-spacing: -0.01em; }
.nav-links { display: flex; gap: 1.5rem; margin-left: auto; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { margin-left: 1rem; }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; }
.nav-mobile-menu { display: none; flex-direction: column; gap: 1rem; padding: 1.5rem 2rem; background: var(--bg-secondary); border-top: 1px solid var(--border); }

/* ── HERO ── */
#hero {
  min-height: 200vh;
  position: relative;
}

/* Ambient background glow */
#hero::before {
  content: '';
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse 80% 60% at 65% 40%, rgba(122,157,181,0.12) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 20% 70%, rgba(168,196,212,0.07) 0%, transparent 60%);
  pointer-events: none; z-index: 0;
}

.hero-inner {
  position: sticky; top: 0;
  height: 100vh; overflow: hidden;
  display: grid; grid-template-columns: 55% 45%;
  align-items: center; gap: 3rem;
  max-width: var(--max-w); margin: 0 auto;
  padding: 5rem 2rem 2rem;
  z-index: 1;
}

.hero-content { z-index: 2; display: flex; flex-direction: column; }

.badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(122,157,181,0.1); border: 1px solid rgba(122,157,181,0.3);
  border-radius: 100px; font-size: 0.78rem; color: var(--accent-2);
  margin-bottom: 1.75rem; width: fit-content;
}
.badge::before { content: ''; width: 6px; height: 6px; background: var(--accent-2); border-radius: 50%; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

.hero-sub { font-size: 1.05rem; line-height: 1.7; margin-bottom: 2.5rem; max-width: 460px; color: var(--text-muted); }

.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }

/* Stats bar — clean separation, 3 columns */
.hero-stats {
  display: flex; gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--glass);
  overflow: hidden;
  width: fit-content;
}
.stat-item {
  padding: 0.85rem 1.5rem;
  border-right: 1px solid var(--border);
  text-align: left; min-width: 110px;
}
.stat-item:last-child { border-right: none; }
.stat-value { font-size: 1.4rem; font-weight: 800; color: var(--text); line-height: 1.1; letter-spacing: -0.02em; display: block; }
.stat-label { font-size: 0.7rem; color: var(--text-muted); margin-top: 0.25rem; white-space: nowrap; display: block; }

/* Canvas wrapper */
.hero-canvas-wrapper {
  position: relative; align-self: center;
  display: flex; align-items: center; justify-content: center;
}
.hero-canvas-wrapper::before {
  content: '';
  position: absolute; inset: -20px;
  background: radial-gradient(ellipse at center, rgba(122,157,181,0.2) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none;
}
#scroll-canvas {
  width: 100%; height: auto;
  border-radius: var(--radius-lg);
  position: relative; z-index: 1;
}
.hero-static-image { display: none; }
.hero-static-image img { width: 100%; border-radius: var(--radius-lg); }

.client-logos { margin-top: 1.5rem; }
.logos-label { font-size: 0.75rem; color: var(--text-subtle); margin-bottom: 0.75rem; display: block; text-transform: uppercase; letter-spacing: 0.08em; }
.logos-row { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.logos-row img { height: 26px; width: auto; opacity: 0.4; filter: grayscale(1); transition: opacity 0.2s; }
.logos-row img:hover { opacity: 0.8; }

/* ── PARTNERS ── */
#partners { padding: 2.5rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); overflow: hidden; }
.partners-label { text-align: center; font-size: 0.72rem; color: var(--text-subtle); margin-bottom: 1.5rem; text-transform: uppercase; letter-spacing: 0.12em; }
.marquee-container { overflow: hidden; mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent); }
.marquee-track { display: flex; gap: 3rem; align-items: center; width: max-content; animation: marquee 30s linear infinite; }
.marquee-track:hover { animation-play-state: paused; }
.marquee-item { display: flex; align-items: center; gap: 0.5rem; opacity: 0.45; transition: opacity 0.2s; white-space: nowrap; }
.marquee-item:hover { opacity: 1; }
.marquee-item img { height: 18px; width: auto; }
.marquee-item span { font-size: 0.85rem; font-weight: 500; color: var(--text-muted); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── SECTIONS ── */
.section-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }
section:not(#hero):not(#partners) { padding: var(--section-py) 0; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-eyebrow { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--accent); font-weight: 600; display: block; margin-bottom: 0.75rem; }
.section-header h2 { margin-bottom: 1rem; }
.section-header p { max-width: 560px; margin: 0 auto; }

/* ── SOLUTIONS ── */
#solutions { background: var(--bg-secondary); }
.tabs-nav { display: flex; gap: 0.5rem; justify-content: center; margin-bottom: 3rem; flex-wrap: wrap; }
.tab-btn {
  padding: 0.5rem 1.25rem; border-radius: 100px;
  background: var(--glass); border: 1px solid var(--border);
  color: var(--text-muted); font-size: 0.875rem; cursor: pointer;
  transition: all 0.2s; font-family: var(--font);
}
.tab-btn:hover { color: var(--text); border-color: rgba(255,255,255,0.15); }
.tab-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 0 20px var(--accent-glow); }
.tab-content { display: none; }
.tab-content.active { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.tab-text h3 { margin-bottom: 0.75rem; }
.tab-text .tab-sub { margin-bottom: 1.5rem; font-size: 1rem; }
.tab-badges { display: flex; gap: 0.5rem; margin-bottom: 2rem; }
.tab-badge { padding: 0.25rem 0.75rem; background: rgba(122,157,181,0.1); border: 1px solid rgba(122,157,181,0.25); border-radius: 100px; font-size: 0.78rem; color: var(--accent-2); }
.tab-features { list-style: none; display: flex; flex-direction: column; gap: 0.875rem; margin-bottom: 2rem; }
.tab-features li { display: flex; align-items: center; gap: 0.75rem; color: var(--text-muted); font-size: 0.95rem; }
.tab-features li::before { content: "✓"; color: var(--accent); font-weight: 700; flex-shrink: 0; font-size: 0.875rem; }
.tab-more { font-size: 0.85rem; color: var(--text-subtle); margin-bottom: 2rem; }

/* Tab visual panel */
.tab-visual {
  border-radius: var(--radius-lg); overflow: hidden;
  min-height: 360px; display: flex; align-items: center; justify-content: center;
  position: relative;
  background: linear-gradient(135deg, rgba(122,157,181,0.08) 0%, rgba(7,6,15,0.8) 100%);
  border: 1px solid rgba(122,157,181,0.15);
}
.tab-visual::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(122,157,181,0.2) 0%, transparent 65%);
  pointer-events: none;
}
.tab-visual-img {
  width: 90%; height: auto;
  border-radius: var(--radius);
  animation: tabFloat 7s ease-in-out infinite;
  filter: drop-shadow(0 8px 32px rgba(122,157,181,0.35));
  position: relative; z-index: 1;
}
@keyframes tabFloat { 0%,100% { transform: translateY(0px); } 50% { transform: translateY(-12px); } }

/* ── METRICS ── */
#metrics { background: var(--bg); }
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.metric-card {
  background: linear-gradient(135deg, rgba(122,157,181,0.06) 0%, var(--bg-card) 100%);
  border: 1px solid rgba(122,157,181,0.12);
  border-radius: var(--radius-lg); padding: 2rem 1.5rem;
  text-align: center; transition: border-color 0.2s, transform 0.2s;
}
.metric-card:hover { border-color: rgba(122,157,181,0.3); transform: translateY(-3px); }
.metric-value { font-size: 2.75rem; font-weight: 800; color: var(--text); line-height: 1; margin-bottom: 0.5rem; letter-spacing: -0.02em; }
.metric-label { font-size: 0.875rem; color: var(--text); font-weight: 600; margin-bottom: 0.5rem; }
.metric-desc { font-size: 0.78rem; color: var(--text-muted); line-height: 1.5; }

/* ── TESTIMONIALS ── */
#testimonials { background: var(--bg-secondary); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 3rem; }
.testimonial-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  transition: transform 0.2s, border-color 0.2s;
}
.testimonial-card:hover { transform: translateY(-4px); border-color: rgba(122,157,181,0.2); }
.testimonial-quote { font-size: 0.92rem; color: var(--text-muted); line-height: 1.75; margin-bottom: 1.5rem; font-style: italic; }
.testimonial-author { font-weight: 600; color: var(--text); font-size: 0.9rem; }
.testimonial-company { font-size: 0.75rem; color: var(--accent-2); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 0.25rem; }
.testimonials-footer { text-align: center; }
.testimonials-footer p { margin-bottom: 1.5rem; }

/* ── CONTACT ── */
#contact { background: var(--bg); text-align: center; position: relative; overflow: hidden; }
#contact::before {
  content: '';
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse at center, rgba(122,157,181,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.contact-inner { max-width: 600px; margin: 0 auto; position: relative; z-index: 1; }
#contact h2 { margin-bottom: 1rem; }
#contact p { margin-bottom: 2.5rem; }
.contact-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── FOOTER ── */
footer { padding: 2rem 4rem; border-top: 1px solid var(--border); background: var(--bg); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 2rem; max-width: 1200px; margin: 0 auto; }
.footer-left { display: flex; flex-direction: column; gap: 0.25rem; }
.footer-name { font-size: 0.9rem; font-weight: 700; color: var(--text); letter-spacing: 0.05em; text-transform: uppercase; }
.footer-tagline { font-size: 0.78rem; color: var(--text-muted); }
.footer-location { font-size: 0.72rem; color: var(--text-subtle); }
.footer-right { display: flex; flex-direction: column; align-items: flex-end; gap: 0.25rem; }
.footer-email { font-size: 0.82rem; color: var(--accent); text-decoration: none; transition: opacity 0.2s; }
.footer-email:hover { opacity: 0.75; }
.footer-copy { font-size: 0.78rem; color: var(--text-subtle); }
@media (max-width: 600px) {
  footer { padding: 2rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .footer-right { align-items: flex-start; }
}

/* ── WHATSAPP FLOATING ── */
.wa-float {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 999;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,0.55); }

/* ── PROCESO ── */
#proceso { background: var(--bg-secondary); }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-top: 3rem; }
.process-step {
  background: var(--glass); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem 1.5rem;
  position: relative; transition: border-color 0.2s, transform 0.2s;
}
.process-step:hover { border-color: var(--accent); transform: translateY(-4px); }
.process-num {
  font-size: 2.5rem; font-weight: 800; color: var(--accent);
  opacity: 0.25; line-height: 1; margin-bottom: 1rem; display: block;
  letter-spacing: -0.04em;
}
.process-step h3 { font-size: 1.05rem; margin-bottom: 0.75rem; color: var(--text); }
.process-step p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.65; }

/* ── TESTIMONIALS mejorados ── */
.testimonial-stars { color: #f59e0b; font-size: 1rem; letter-spacing: 0.1em; margin-bottom: 1rem; }
.testimonial-meta { display: flex; align-items: center; gap: 0.75rem; margin-top: 1.25rem; }
.testimonial-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem; font-weight: 700; color: var(--bg);
}

/* ── FAQ ── */
#faq { background: var(--bg); }
.faq-list { max-width: 760px; margin: 3rem auto 0; display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--glass); }
.faq-question {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 1.25rem 1.5rem; background: none; border: none; cursor: pointer;
  color: var(--text); font-size: 0.95rem; font-weight: 500; text-align: left; gap: 1rem;
  transition: color 0.2s;
}
.faq-question:hover { color: var(--accent); }
.faq-icon { flex-shrink: 0; color: var(--accent); transition: transform 0.3s; }
.faq-item.open .faq-icon { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.3s; }
.faq-item.open .faq-answer { max-height: 200px; }
.faq-answer p { padding: 0 1.5rem 1.25rem; font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; }

/* ── SCROLL REVEAL ── */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
[data-reveal].visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .tab-content.active { gap: 3rem; }
}

@media (max-width: 768px) {
  :root { --section-py: 80px; }
  .hero-inner { grid-template-columns: 1fr; padding-top: 5rem; align-items: start; }
  #scroll-canvas { display: none; }
  .hero-static-image { display: block; }
  .hero-stats { width: 100%; overflow: visible; }
  .stat-item { flex: 1; text-align: center; min-width: 0; padding: 0.85rem 0.75rem; }
  .tab-content.active { grid-template-columns: 1fr; }
  .tab-visual { display: none; }
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; margin-left: auto; }
  .nav-mobile-menu.open { display: flex; }
  .contact-ctas { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .process-grid { grid-template-columns: 1fr; }
  .wa-float { bottom: 1.25rem; right: 1.25rem; width: 50px; height: 50px; }
  .metrics-grid { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .hero-stats { flex-direction: column; gap: 0; width: 100%; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); min-width: 0; padding: 0.75rem 1rem; }
  .stat-item:last-child { border-bottom: none; }
}
