/* ============================================================
   PINEAPPLE STUDIO — Design System
   ============================================================ */

@import url('components/Header.css');
@import url('components/Hero.css');
@import url('components/Clients.css');
@import url('components/Portfolio.css');
@import url('components/Why.css');
@import url('components/Audience.css');
@import url('components/Process.css');
@import url('components/FAQ.css');
@import url('components/LeadMagnets.css');
@import url('components/CTA.css');
@import url('components/Footer.css');
@import url('components/Lightbox.css');

/* ── Tokens ──────────────────────────────────────────────── */
:root {
  --c-black:       #000000;
  --c-surface:     #0a0a0a;
  --c-card:        #111111;
  --c-border:      #1c1c1c;
  --c-border-mid:  #2a2a2a;
  --c-yellow:      #FFD700;
  --c-yellow-dim:  rgba(255, 215, 0, 0.08);
  --c-white:       #EDEDED;
  --c-muted:       #666666;
  --c-muted-light: #999999;

  --f-sans: 'nimbus-sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --f-mono: 'SF Mono', 'Fira Code', monospace;

  --text-xs:   0.72rem;
  --text-sm:   0.85rem;
  --text-base: 1rem;
  --text-lg:   1.25rem;
  --text-xl:   1.75rem;
  --text-2xl:  2.5rem;
  --text-3xl:  3.5rem;
  --text-4xl:  clamp(3rem, 7vw, 5.5rem);

  --sp-1:  4px;  --sp-2:  8px;  --sp-3:  12px; --sp-4:  16px;
  --sp-6:  24px; --sp-8:  32px; --sp-12: 48px; --sp-16: 64px;
  --sp-24: 96px; --sp-32: 128px;

  --ease:     cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --dur-fast: 0.18s;
  --dur-mid:  0.32s;
  --dur-slow: 0.6s;
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--f-sans);
  background: var(--c-black);
  color: var(--c-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── Layout ──────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--sp-8);
}

/* ── Typography ──────────────────────────────────────────── */
.label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-yellow);
}
.section-title {
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--c-white);
}
.section-body {
  font-size: var(--text-base);
  font-weight: 300;
  color: var(--c-muted-light);
  line-height: 1.75;
  max-width: 560px;
}

/* ── Visually hidden — SEO + Accesibilidad ───────────────── */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 13px 26px;
  border-radius: 6px;
  font-size: var(--text-sm);
  font-weight: 600;
  transition: all var(--dur-mid) var(--ease);
  white-space: nowrap;
  cursor: pointer;
}
.btn--primary {
  background: var(--c-yellow);
  color: var(--c-black);
  border: 1px solid var(--c-yellow);
}
.btn--primary:hover {
  background: transparent;
  color: var(--c-yellow);
  transform: translateY(-2px);
}
.btn--ghost {
  background: transparent;
  color: var(--c-muted-light);
  border: 1px solid var(--c-border-mid);
}
.btn--ghost:hover {
  border-color: rgba(255,255,255,0.25);
  color: var(--c-white);
  transform: translateY(-2px);
}

/* ── Sections ────────────────────────────────────────────── */
.section        { padding: var(--sp-32) 0; }
.section--tight { padding: var(--sp-24) 0; }

/* ── Global ──────────────────────────────────────────────── */
::selection { background: var(--c-yellow); color: var(--c-black); }
::-webkit-scrollbar       { width: 4px; }
::-webkit-scrollbar-track { background: var(--c-black); }
::-webkit-scrollbar-thumb { background: var(--c-border-mid); border-radius: 2px; }

/* ── Skip link (accesibilidad) ───────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--sp-4);
  background: var(--c-yellow);
  color: var(--c-black);
  padding: var(--sp-2) var(--sp-4);
  border-radius: 0 0 6px 6px;
  font-size: var(--text-sm);
  font-weight: 600;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ── WhatsApp FAB (mobile) — Conversión ─────────────────── */
.whatsapp-fab {
  display: none;
  position: fixed;
  bottom: var(--sp-8);
  right: var(--sp-6);
  z-index: 900;
  background: #25D366;
  color: #fff;
  border-radius: 50px;
  padding: 14px 20px;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-sm);
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
  transition: transform var(--dur-mid) var(--ease), box-shadow var(--dur-mid) var(--ease);
  text-decoration: none;
}
.whatsapp-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.45);
}
@media (max-width: 768px) {
  .whatsapp-fab { display: flex; }
}

/* ── Hero trust bar — Conversión ────────────────────────── */
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4) var(--sp-8);
  margin-top: var(--sp-6);
}
.hero__trust-item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-sm);
  color: var(--c-muted-light);
}

/* ── Animations ───────────────────────────────────────────── */
.animate-fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}
.animate-fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── CTA: Disponibilidad + WhatsApp ─────────────────────── */
.cta__availability {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-6);
  font-size: var(--text-sm);
  color: var(--c-muted-light);
}
.cta__availability-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #25D366;
  flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
  50%       { box-shadow: 0 0 0 6px rgba(37, 211, 102, 0); }
}
.cta__availability strong { color: var(--c-white); }

.cta__whatsapp {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-6);
  font-size: var(--text-sm);
  color: #25D366;
  transition: opacity var(--dur-fast) var(--ease);
}
.cta__whatsapp:hover { opacity: 0.8; }

/* ── Testimonials: Stats + Stars + Avatares ─────────────── */
.testimonials__stats {
  display: flex;
  gap: var(--sp-12);
  margin-bottom: var(--sp-12);
  padding: var(--sp-8) 0;
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}
.testimonials__stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.testimonials__stat-n {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--c-yellow);
  letter-spacing: -0.03em;
  line-height: 1;
  display: inline;
}
.testimonials__stat-suffix {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--c-yellow);
}
.testimonials__stat-l {
  font-size: var(--text-xs);
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.testimonials__stars {
  display: flex;
  gap: 3px;
  margin-bottom: var(--sp-4);
}

.testimonials__author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--c-border-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--c-yellow);
  flex-shrink: 0;
  border: 1px solid var(--c-border-mid);
}

@media (max-width: 640px) {
  .testimonials__stats {
    gap: var(--sp-8);
    flex-wrap: wrap;
  }
  .hero__trust {
    flex-direction: column;
    gap: var(--sp-2);
  }
  .whatsapp-fab__label { display: none; }
  .whatsapp-fab { padding: 16px; border-radius: 50%; }
}
