/* =============================================
   VÍCTOR PUIGGRÒS — Design System
   puiggros.info
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  --bg:          #09090b;
  --bg-2:        #0f0f12;
  --surface:     #18181b;
  --surface-2:   #1f1f24;
  --surface-3:   #27272a;
  --border:      rgba(255,255,255,0.07);
  --border-md:   rgba(255,255,255,0.12);
  --border-str:  rgba(255,255,255,0.18);
  --accent:      #7c3aed;
  --accent-2:    #6d28d9;
  --accent-glow: rgba(124,58,237,0.25);
  --accent-light:rgba(124,58,237,0.1);
  --accent-bd:   rgba(124,58,237,0.3);
  --gradient:    linear-gradient(135deg, #7c3aed 0%, #6366f1 55%, #06b6d4 100%);
  --gradient-r:  linear-gradient(135deg, #06b6d4 0%, #6366f1 55%, #7c3aed 100%);
  --text:        #fafafa;
  --muted:       #a1a1aa;
  --muted-2:     #71717a;
  --success:     #10b981;
  --danger:      #ef4444;
  --warn:        #f59e0b;
  --radius:      16px;
  --radius-sm:   10px;
  --radius-xs:   6px;
  --shadow:      0 4px 32px rgba(0,0,0,0.5);
  --shadow-lg:   0 20px 60px rgba(0,0,0,0.6);
  --shadow-acc:  0 12px 32px rgba(124,58,237,0.35);
  --nav-h:       68px;
}

/* ---- RESET ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ---- TYPOGRAPHY ---- */
h1,h2,h3,h4,h5 { font-family: 'Outfit', sans-serif; line-height: 1.18; font-weight: 700; }
.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- LAYOUT ---- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 28px; }
.container-sm { max-width: 740px; margin: 0 auto; padding: 0 28px; }
.section { padding: 100px 0; }
.section-sm { padding: 64px 0; }

/* ---- BADGES / TAGS ---- */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  background: var(--accent-light);
  border: 1px solid var(--accent-bd);
  border-radius: 99px;
  color: #c4b5fd;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.8px;
  text-transform: uppercase;
}
.tag-green {
  background: rgba(16,185,129,0.1); border-color: rgba(16,185,129,0.3); color: #6ee7b7;
}
.tag-orange {
  background: rgba(245,158,11,0.1); border-color: rgba(245,158,11,0.3); color: #fcd34d;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.92rem;
  transition: all 0.25s ease;
  border: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient);
  color: #fff;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-acc);
}
.btn-outline {
  background: transparent; color: var(--text);
  border: 1px solid var(--border-md);
}
.btn-outline:hover { background: var(--surface); border-color: var(--accent-bd); }
.btn-ghost { background: transparent; color: var(--muted); padding: 10px 16px; }
.btn-ghost:hover { color: var(--text); }
.btn-lg { padding: 16px 34px; font-size: 1rem; }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }

/* ---- NAV ---- */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(9,9,11,0.82);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 28px;
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1.05rem;
}
.nav-logo-icon {
  width: 36px; height: 36px;
  background: var(--gradient);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.82rem; font-weight: 800; color: #fff;
  flex-shrink: 0;
}
.nav-links {
  display: flex; align-items: center; gap: 6px;
}
.nav-links a {
  padding: 7px 14px; border-radius: var(--radius-xs);
  color: var(--muted); font-size: 0.88rem; font-weight: 500;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--surface); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 6px;
}
.nav-burger span {
  width: 22px; height: 2px; background: var(--text);
  border-radius: 2px; transition: all 0.3s;
  display: block;
}
.nav-mobile {
  display: none; position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 20px 28px; z-index: 99;
  flex-direction: column; gap: 4px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  padding: 12px 16px; border-radius: var(--radius-xs);
  color: var(--muted); font-size: 0.95rem; font-weight: 500;
  transition: all 0.2s;
}
.nav-mobile a:hover { color: var(--text); background: var(--surface-3); }
.nav-mobile .btn { margin-top: 12px; width: 100%; justify-content: center; }

/* ---- CARDS ---- */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.card:hover {
  border-color: var(--accent-bd);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.card-icon {
  width: 48px; height: 48px;
  background: var(--accent-light);
  border: 1px solid var(--accent-bd);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 18px;
}
.card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.9rem; line-height: 1.6; }

/* ---- SECTION HEADER ---- */
.section-header { text-align: center; margin-bottom: 56px; }
.section-header .tag { margin-bottom: 16px; }
.section-header h2 { font-size: clamp(2rem, 4.5vw, 2.8rem); margin-bottom: 16px; }
.section-header p {
  color: var(--muted); font-size: 1.05rem; line-height: 1.7;
  max-width: 580px; margin: 0 auto;
}

/* ---- GRIDS ---- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }

/* ---- DIVIDER ---- */
hr.divider { border: none; border-top: 1px solid var(--border); margin: 0; }

/* ---- PILL STAT ---- */
.stat-pill {
  display: flex; flex-direction: column;
  align-items: center; gap: 4px;
  padding: 20px 28px;
}
.stat-pill .num {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem; font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-pill .label { color: var(--muted); font-size: 0.85rem; text-align: center; }

/* ---- CHECK / CROSS LIST ---- */
.check-list { display: flex; flex-direction: column; gap: 10px; }
.check-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.92rem; line-height: 1.5;
}
.check-list li::before {
  content: '✓'; color: var(--success);
  font-weight: 700; flex-shrink: 0; margin-top: 1px;
}
.check-list.cross li::before { content: '✗'; color: var(--danger); }

/* ---- PROCESS STEP ---- */
.process-step {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 24px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
}
.step-num {
  width: 40px; height: 40px; flex-shrink: 0;
  background: var(--gradient); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1rem; color: #fff;
}
.step-content h4 { font-size: 1rem; margin-bottom: 6px; }
.step-content p { color: var(--muted); font-size: 0.88rem; line-height: 1.6; }

/* ---- FAQ ---- */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}
.faq-item:last-child { border-bottom: none; }
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; cursor: pointer; width: 100%;
  background: none; border: none; text-align: left;
  color: var(--text);
}
.faq-q span { font-size: 1rem; font-weight: 600; line-height: 1.4; }
.faq-icon {
  width: 28px; height: 28px; flex-shrink: 0;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: var(--muted); transition: all 0.3s;
}
.faq-item.open .faq-icon { background: var(--accent-light); color: #c4b5fd; transform: rotate(45deg); }
.faq-a {
  display: none; padding-top: 14px;
  color: var(--muted); font-size: 0.92rem; line-height: 1.7;
}
.faq-item.open .faq-a { display: block; }

/* ---- CTA BANNER ---- */
.cta-banner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 60px 48px;
  text-align: center;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 700px; height: 300px;
  background: radial-gradient(ellipse, rgba(124,58,237,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.cta-banner h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 16px; }
.cta-banner p { color: var(--muted); font-size: 1.05rem; max-width: 500px; margin: 0 auto 32px; }
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---- FOOTER ---- */
footer {
  background: var(--surface); border-top: 1px solid var(--border);
  padding: 60px 0 40px;
}
.footer-grid {
  display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 48px;
}
.footer-brand p { color: var(--muted); font-size: 0.88rem; line-height: 1.7; margin: 14px 0 20px; }
.footer-social { display: flex; gap: 10px; }
.social-btn {
  width: 36px; height: 36px; background: var(--surface-3);
  border: 1px solid var(--border); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; color: var(--muted);
  transition: all 0.2s;
}
.social-btn:hover { background: var(--accent-light); border-color: var(--accent-bd); color: #c4b5fd; }
.footer-col h4 {
  font-size: 0.78rem; font-weight: 700; color: var(--muted-2);
  letter-spacing: 1px; text-transform: uppercase; margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { color: var(--muted); font-size: 0.88rem; transition: color 0.2s; }
.footer-col ul a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.82rem; color: var(--muted-2);
}

/* ---- ANIMATIONS ---- */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: none; }
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* ---- GLOW BG ---- */
.glow-bg {
  position: absolute; pointer-events: none;
  border-radius: 50%; filter: blur(80px);
}

/* ---- PAGE HERO ---- */
.page-hero {
  padding: 80px 0 60px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin: 16px 0 20px; }
.page-hero p { color: var(--muted); font-size: 1.1rem; max-width: 600px; margin: 0 auto; line-height: 1.7; }

/* ---- SERVICE CARD ---- */
.service-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
  transition: all 0.3s;
  display: flex; flex-direction: column;
}
.service-card:hover { border-color: var(--accent-bd); transform: translateY(-4px); box-shadow: var(--shadow); }
.service-card .sc-tag { margin-bottom: 20px; }
.service-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.service-card .sc-desc { color: var(--muted); font-size: 0.9rem; line-height: 1.65; margin-bottom: 20px; flex: 1; }
.service-card .sc-outcomes { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.service-card .sc-outcomes li {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 0.86rem; color: var(--muted);
}
.service-card .sc-outcomes li::before { content: '→'; color: #c4b5fd; flex-shrink: 0; }

/* ---- TESTIMONIAL ---- */
.testimonial {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
}
.testimonial .stars { color: #fbbf24; margin-bottom: 14px; font-size: 0.9rem; }
.testimonial blockquote { font-size: 0.93rem; color: var(--muted); line-height: 1.65; margin-bottom: 20px; font-style: italic; }
.testimonial .author { display: flex; align-items: center; gap: 12px; }
.testimonial .author-avatar {
  width: 40px; height: 40px; background: var(--gradient);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem; color: #fff;
}
.testimonial .author-info { line-height: 1.3; }
.testimonial .author-name { font-size: 0.9rem; font-weight: 600; }
.testimonial .author-role { font-size: 0.8rem; color: var(--muted-2); }

/* ---- BLOG CARD ---- */
.blog-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; transition: all 0.3s;
  display: flex; flex-direction: column;
}
.blog-card:hover { border-color: var(--accent-bd); transform: translateY(-3px); }
.blog-card-img {
  height: 180px; background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; border-bottom: 1px solid var(--border);
}
.blog-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.blog-card-body .tag { margin-bottom: 12px; }
.blog-card-body h3 { font-size: 1rem; margin-bottom: 8px; line-height: 1.4; }
.blog-card-body p { color: var(--muted); font-size: 0.86rem; line-height: 1.6; flex: 1; margin-bottom: 16px; }
.blog-card-meta { font-size: 0.8rem; color: var(--muted-2); display: flex; gap: 12px; }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 700px) {
  .section { padding: 70px 0; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .nav-links, .nav-right .btn { display: none; }
  .nav-burger { display: flex; }
  .cta-banner { padding: 40px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .container { padding: 0 20px; }
}
