/* ═══════════════════════════════════════════════════════════
   Flow Collective Studio — Design System v2.0
   Paradigm Pulse Platform — Shared Styles
   ═══════════════════════════════════════════════════════════ */

:root {
  /* Colores */
  --green-500: #3beb64;
  --green-600: #2fd954;
  --green-400: #72f18b;
  --green-300: #99f4a8;
  --green-200: #b8f7c3;
  --charcoal: #0f2c24;
  --black: #06221a;
  --darkgreen: #14382e;
  --cream: #f7f5f3;
  --offwhite: #f0eee9;
  --almostwhite: #f8f9f9;
  --border: #cfd5d3;
  --tertiary: #9faba7;
  --secondary: #768782;

  /* Sombras */
  --shadow-sm: 0 2px 4px rgba(15,44,36,0.06);
  --shadow-md: 0 4px 12px rgba(15,44,36,0.08);
  --shadow-lg: 0 8px 24px rgba(15,44,36,0.12);

  /* Bordes */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Transiciones */
  --transition: 0.25s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--cream);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* ── Container ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Tipografía ── */
h1 { font-size: 3rem; font-weight: 900; letter-spacing: -0.03em; line-height: 1.1; }
h2 { font-size: 1.8rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
h3 { font-size: 1.25rem; font-weight: 700; line-height: 1.3; }
h4 { font-size: 1.05rem; font-weight: 700; }
p  { font-size: 0.95rem; color: var(--secondary); }

.label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green-500);
}

/* ── Botones ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--green-500);
  color: var(--charcoal);
}
.btn-primary:hover {
  background: var(--green-600);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--green-400);
  border: 1.5px solid var(--green-400);
}
.btn-secondary:hover {
  background: rgba(59,235,100,0.08);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--secondary);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--charcoal);
  color: var(--charcoal);
}

.btn-lg { padding: 16px 40px; font-size: 1.05rem; }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* ── Cards ── */
.card {
  background: white;
  border: 1px solid var(--border);
  padding: 28px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
}
.card:hover {
  border-color: var(--green-400);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  background: var(--offwhite);
  margin-bottom: 16px;
  flex-shrink: 0;
}

.card-featured {
  background: linear-gradient(135deg, var(--charcoal), var(--darkgreen));
  border-color: var(--green-400);
  color: var(--cream);
}
.card-featured p { color: var(--tertiary); }

/* ── Grids ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.card-grid-wide {
  grid-template-columns: repeat(auto-fill, minmax(440px, 1fr));
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

/* ── Color strip ── */
.color-strip {
  display: flex; height: 5px;
}
.color-strip .cs-cream  { flex: 7; background: var(--cream); }
.color-strip .cs-dark   { flex: 2; background: var(--darkgreen); }
.color-strip .cs-accent { flex: 1; background: var(--green-500); }

/* ── Nav sticky ── */
.nav-sticky {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247,245,243,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-size: 1rem; font-weight: 900;
  color: var(--charcoal); text-decoration: none;
  letter-spacing: -0.02em;
}
.nav-logo span { color: var(--green-500); }

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--charcoal) 0%, var(--darkgreen) 60%, #1a4d3a 100%);
  color: var(--cream);
  padding: 100px 40px 80px;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.hero::before {
  content: '';
  position: absolute; top: -40%; right: -10%;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59,235,100,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute; bottom: -30%; left: -5%;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59,235,100,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero h1 span { color: var(--green-500); }
.hero-subtitle {
  font-size: 1.2rem; font-weight: 300;
  color: var(--tertiary); margin-top: 20px;
  max-width: 640px; margin-left: auto; margin-right: auto;
}
.hero-meta {
  display: flex; align-items: center; justify-content: center;
  gap: 24px; margin: 28px 0;
  flex-wrap: wrap;
}
.hero-meta-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.88rem; color: var(--tertiary);
}
.hero-meta-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green-500);
  flex-shrink: 0;
}

/* ── Secciones ── */
.section {
  padding: 80px 0;
}
.section-dark {
  background: var(--charcoal);
  color: var(--cream);
}
.section-dark h2 { color: var(--cream); }
.section-dark p  { color: var(--tertiary); }
.section-offwhite { background: var(--offwhite); }

.section-header {
  text-align: center; margin-bottom: 56px;
}
.section-header h2 { margin-top: 12px; }
.section-header p {
  max-width: 560px; margin: 16px auto 0;
  font-size: 1rem;
}

/* ── Step number ── */
.step-number {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--green-500);
  color: var(--charcoal);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 0.9rem;
  flex-shrink: 0;
  margin-bottom: 16px;
}

/* ── Badge ── */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.badge-green {
  background: rgba(59,235,100,0.12);
  color: var(--green-500);
  border: 1px solid rgba(59,235,100,0.25);
}
.badge-dark {
  background: rgba(15,44,36,0.08);
  color: var(--charcoal);
}

/* ── Metric ── */
.metric-number {
  font-size: 2.8rem; font-weight: 900;
  color: var(--charcoal); line-height: 1;
}
.metric-number span { color: var(--green-500); }
.metric-label {
  font-size: 0.82rem; color: var(--secondary); margin-top: 6px;
}

/* ── Footer ── */
.footer {
  background: var(--charcoal);
  color: var(--tertiary);
  padding: 48px 0 32px;
}
.footer-logo {
  font-size: 1.1rem; font-weight: 900;
  color: var(--cream); letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.footer-logo span { color: var(--green-500); }
.footer-copy { font-size: 0.82rem; }
.footer-link {
  color: var(--tertiary); text-decoration: none;
  font-size: 0.82rem; transition: color var(--transition);
}
.footer-link:hover { color: var(--green-400); }

/* ── Form shared ── */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: 0.85rem; font-weight: 700;
  color: var(--charcoal); margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-family: inherit; font-size: 0.95rem;
  color: var(--charcoal); background: white;
  transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(59,235,100,0.12);
}
.form-group input::placeholder { color: var(--tertiary); }
.field-error { font-size: 0.8rem; color: #e53935; margin-top: 4px; display: none; }
.field-error.visible { display: block; }
.required { color: var(--green-500); }

/* ── Alert ── */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 20px;
}
.alert-success { background: rgba(59,235,100,0.1); border: 1px solid rgba(59,235,100,0.3); color: var(--charcoal); }
.alert-error   { background: rgba(229,57,53,0.08); border: 1px solid rgba(229,57,53,0.25); color: #b71c1c; }
.alert-info    { background: rgba(15,44,36,0.06); border: 1px solid var(--border); color: var(--charcoal); }

/* ── Loading spinner ── */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid rgba(15,44,36,0.15);
  border-top-color: var(--charcoal);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Responsive ── */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .hero { padding: 60px 24px 48px; }
  .section { padding: 56px 0; }
  .card-grid, .card-grid-wide, .steps-grid { grid-template-columns: 1fr; }
  .hero-meta { gap: 16px; }
  .btn-lg { padding: 14px 28px; }
}
