/* =============================================================================
   styles.css — Cumplify Landing Page
   Secciones: Variables → Reset → Tipografía → Nav → Hero → Secciones
              → Precios → Contacto → Footer → Modales
   ============================================================================= */


:root {
  --red: #EA4335;
  --blue: #4285F4;
  --green: #34A853;
  --black: #0A0A0A;
  --dark: #111827;
  --gray: #6B7280;
  --light: #F9FAFB;
  --white: #FFFFFF;
  --font-display: 'Bricolage Grotesque', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--white);
  overflow-x: hidden;
}

/* ===== NAV ===== */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 48px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo svg { width: 40px; height: 46px; }
.nav-wordmark {
  display: flex; align-items: baseline; gap: 3px;
  font-family: var(--font-display); font-weight: 800;
  font-size: 22px; color: var(--black); letter-spacing: -0.5px;
}
.nav-domain { font-size: 11px; color: var(--green); font-weight: 700; font-family: var(--font-body); padding-bottom: 2px; }

.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--gray);
  text-decoration: none; transition: color 0.2s;
}
.nav-links a:hover { color: var(--black); }

.nav-cta {
  background: var(--black); color: white;
  padding: 10px 22px; border-radius: 100px;
  font-size: 14px; font-weight: 600;
  text-decoration: none; transition: all 0.2s;
  font-family: var(--font-body);
}
.nav-cta:hover { background: var(--blue); transform: translateY(-1px); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 120px 48px 80px;
  position: relative;
  overflow: hidden;
}

/* Fondo con círculos de color suave */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 20% 50%, rgba(66,133,244,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 500px 350px at 80% 30%, rgba(234,67,53,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 400px 300px at 60% 80%, rgba(52,168,83,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #F0FDF4; border: 1px solid #BBF7D0;
  padding: 6px 16px; border-radius: 100px;
  font-size: 12px; font-weight: 600; color: #16A34A;
  letter-spacing: 0.5px; margin-bottom: 32px;
  animation: fadeUp 0.6s ease both;
}
.hero-badge span { width: 6px; height: 6px; border-radius: 50%; background: #16A34A; display: inline-block; animation: pulse 2s infinite; }

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -3px;
  color: var(--black);
  max-width: 900px;
  margin-bottom: 28px;
  animation: fadeUp 0.6s 0.1s ease both;
}

.hero h1 .accent-red { color: var(--red); }
.hero h1 .accent-blue { color: var(--blue); }
.hero h1 .accent-green { color: var(--green); }

.hero p {
  font-size: clamp(17px, 2vw, 21px);
  color: var(--gray);
  max-width: 600px;
  line-height: 1.65;
  margin-bottom: 48px;
  animation: fadeUp 0.6s 0.2s ease both;
  font-weight: 400;
}

.hero-actions {
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap; justify-content: center;
  animation: fadeUp 0.6s 0.3s ease both;
  margin-bottom: 72px;
}

.btn-primary {
  background: var(--black); color: white;
  padding: 16px 36px; border-radius: 100px;
  font-size: 16px; font-weight: 700;
  text-decoration: none; transition: all 0.25s;
  font-family: var(--font-body);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.btn-primary:hover { background: var(--blue); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(66,133,244,0.3); }

.btn-secondary {
  color: var(--dark); font-size: 15px; font-weight: 600;
  text-decoration: none; display: flex; align-items: center; gap: 8px;
  transition: gap 0.2s;
}
.btn-secondary:hover { gap: 12px; }
.btn-secondary::after { content: '→'; }

/* Stat pills */
.hero-stats {
  display: flex; gap: 12px; flex-wrap: wrap; justify-content: center;
  animation: fadeUp 0.6s 0.4s ease both;
}
.stat-pill {
  background: white; border: 1px solid #E5E7EB;
  padding: 10px 20px; border-radius: 100px;
  font-size: 13px; font-weight: 600; color: var(--dark);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.stat-pill strong { color: var(--black); }

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

/* ===== HOW IT WORKS ===== */
.how {
  padding: 72px 48px;
  background: var(--light);
}
.section-label {
  font-size: 11px; letter-spacing: 4px; text-transform: uppercase;
  color: var(--blue); font-weight: 700; margin-bottom: 16px;
  display: block;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 54px);
  font-weight: 800; letter-spacing: -2px;
  color: var(--black); line-height: 1.1;
  max-width: 600px; margin-bottom: 72px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
  max-width: 1100px; margin: 0 auto;
}
.steps::before {
  content: '';
  position: absolute;
  top: 28px; left: 10%; right: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--red), var(--blue), var(--green));
  z-index: 0;
}
.step {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 0 16px;
  position: relative; z-index: 1;
}
.step-num {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 20px;
  color: white; margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.step:nth-child(1) .step-num { background: var(--red); }
.step:nth-child(2) .step-num { background: #E8601A; }
.step:nth-child(3) .step-num { background: var(--blue); }
.step:nth-child(4) .step-num { background: #2A9E5A; }
.step:nth-child(5) .step-num { background: var(--green); }

.step h3 {
  font-family: var(--font-display); font-size: 17px; font-weight: 700;
  color: var(--black); margin-bottom: 10px; letter-spacing: -0.3px;
}
.step p { font-size: 13px; color: var(--gray); line-height: 1.6; }

/* ===== FEATURES ===== */
.features {
  padding: 72px 48px;
  max-width: 1200px; margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  border: 1px solid #E5E7EB;
  border-radius: 24px;
  padding: 36px 32px;
  transition: all 0.25s;
  position: relative; overflow: hidden;
}
.feature-card:hover {
  border-color: transparent;
  box-shadow: 0 8px 40px rgba(0,0,0,0.10);
  transform: translateY(-4px);
}
.feature-card.featured {
  background: var(--black); border-color: transparent;
  grid-column: span 2;
}

.feature-icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 20px;
}
.icon-red { background: #FEE2E2; }
.icon-blue { background: #DBEAFE; }
.icon-green { background: #DCFCE7; }
.icon-dark { background: #1F2937; }
.icon-yellow { background: #FEF9C3; }
.icon-purple { background: #EDE9FE; }

.feature-card h3 {
  font-family: var(--font-display); font-size: 20px; font-weight: 700;
  color: var(--black); margin-bottom: 10px; letter-spacing: -0.3px;
}
.feature-card.featured h3 { color: white; }
.feature-card p { font-size: 14px; color: var(--gray); line-height: 1.7; }
.feature-card.featured p { color: #9CA3AF; }

.feature-tag {
  display: inline-block; margin-top: 16px;
  background: #F3F4F6; color: var(--dark);
  font-size: 11px; font-weight: 700; letter-spacing: 1px;
  padding: 4px 10px; border-radius: 6px; text-transform: uppercase;
}
.feature-card.featured .feature-tag { background: #1F2937; color: #6B7280; }

/* ===== PROBLEM ===== */
.problem {
  padding: 72px 48px;
  background: var(--black);
  text-align: center;
}
.problem .section-label { color: var(--red); }
.problem .section-title { color: white; margin: 0 auto 72px; }

.stats-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2px; max-width: 900px; margin: 0 auto 72px;
}
.stat-box {
  padding: 48px 32px;
  background: #111827;
  text-align: center;
}
.stat-box:first-child { border-radius: 24px 0 0 24px; }
.stat-box:last-child { border-radius: 0 24px 24px 0; }
.stat-num {
  font-family: var(--font-display); font-size: 64px; font-weight: 800;
  line-height: 1; margin-bottom: 12px; letter-spacing: -3px;
}
.stat-box:nth-child(1) .stat-num { color: var(--red); }
.stat-box:nth-child(2) .stat-num { color: var(--blue); }
.stat-box:nth-child(3) .stat-num { color: var(--green); }
.stat-desc { font-size: 14px; color: #6B7280; line-height: 1.5; }

.problem-note {
  font-size: 18px; color: #9CA3AF; max-width: 600px; margin: 0 auto;
  line-height: 1.7;
}
.problem-note strong { color: white; }

/* ===== PRICING ===== */
.pricing {
  padding: 72px 48px;
  max-width: 1200px; margin: 0 auto;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px; align-items: start;
}

.plan {
  border: 1px solid #E5E7EB;
  border-radius: 24px; padding: 36px 28px;
  position: relative;
}
.plan.popular {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(66,133,244,0.1);
}
.plan-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--blue); color: white;
  font-size: 11px; font-weight: 700; letter-spacing: 1px;
  padding: 4px 14px; border-radius: 100px; text-transform: uppercase;
  white-space: nowrap;
}
.plan-name {
  font-family: var(--font-display); font-size: 20px; font-weight: 800;
  color: var(--black); margin-bottom: 4px;
}
.plan-employees { font-size: 13px; color: var(--gray); margin-bottom: 24px; }
.plan-price {
  font-family: var(--font-display); font-size: 48px; font-weight: 800;
  color: var(--black); letter-spacing: -2px; line-height: 1;
  margin-bottom: 4px;
}
.plan-price span { font-size: 20px; font-weight: 500; color: var(--gray); }
.plan-period { font-size: 13px; color: var(--gray); margin-bottom: 8px; }
.plan-annual { font-size: 12px; color: var(--green); font-weight: 600; margin-bottom: 28px; }
.plan-divider { height: 1px; background: #F3F4F6; margin-bottom: 24px; }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.plan-features li {
  font-size: 13px; color: var(--dark); display: flex; align-items: flex-start; gap: 10px;
}
.plan-features li::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; margin-top: 1px; }
.plan-features li.no { color: #D1D5DB; }
.plan-features li.no::before { content: '—'; color: #E5E7EB; }

.plan-btn {
  display: block; text-align: center;
  padding: 13px; border-radius: 12px;
  font-size: 14px; font-weight: 700;
  text-decoration: none; transition: all 0.2s;
  font-family: var(--font-body);
}
.btn-outline {
  border: 2px solid #E5E7EB; color: var(--dark);
}
.btn-outline:hover { border-color: var(--dark); }
.btn-filled {
  background: var(--blue); color: white; border: 2px solid var(--blue);
}
.btn-filled:hover { background: #2563EB; }

.trial-note {
  text-align: center; margin-top: 32px;
  font-size: 14px; color: var(--gray);
}
.trial-note strong { color: var(--green); }

/* ===== DOCUMENT ===== */
.document {
  padding: 72px 48px;
  background: var(--light);
}
.doc-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
  max-width: 1100px; margin: 0 auto;
}
.doc-visual {
  background: white; border-radius: 24px;
  padding: 40px; box-shadow: 0 20px 60px rgba(0,0,0,0.10);
  border: 1px solid #E5E7EB;
}
.doc-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px; padding-bottom: 20px;
  border-bottom: 2px solid #F3F4F6;
}
.doc-logo-mini { display: flex; align-items: center; gap: 8px; }
.doc-title { font-family: var(--font-display); font-size: 14px; font-weight: 700; color: var(--black); }
.doc-stamp {
  background: #DCFCE7; color: #16A34A;
  font-size: 10px; font-weight: 700; letter-spacing: 1px;
  padding: 4px 10px; border-radius: 6px; text-transform: uppercase;
}
.doc-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0; border-bottom: 1px solid #F9FAFB;
}
.doc-label { font-size: 12px; color: var(--gray); font-weight: 500; }
.doc-value { font-size: 13px; font-weight: 600; color: var(--black); }
.risk-badge {
  font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 100px;
}
.risk-low { background: #DCFCE7; color: #16A34A; }
.risk-med { background: #FEF9C3; color: #A16207; }
.risk-high { background: #FEE2E2; color: #DC2626; }

.doc-content { }
.doc-content .section-title { margin-bottom: 24px; }
.doc-content p { font-size: 16px; color: var(--gray); line-height: 1.7; margin-bottom: 28px; }
.doc-checklist { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.doc-checklist li {
  display: flex; align-items: flex-start; gap: 14px;
  font-size: 15px; color: var(--dark);
}
.check-icon {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: white; margin-top: 1px;
}
.check-red { background: var(--red); }
.check-blue { background: var(--blue); }
.check-green { background: var(--green); }

/* ===== TESTIMONIAL / RISK ===== */
.risk-section {
  padding: 72px 48px;
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.risk-content .section-title { margin-bottom: 24px; }
.risk-content p { font-size: 16px; color: var(--gray); line-height: 1.7; margin-bottom: 32px; }
.risk-list { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.risk-list li {
  display: flex; gap: 14px; align-items: flex-start;
  font-size: 15px; color: var(--dark); line-height: 1.5;
}
.risk-list li strong { color: var(--red); display: block; font-size: 13px; font-weight: 700; margin-bottom: 2px; }

.risk-card {
  background: var(--black); border-radius: 28px;
  padding: 48px 40px; color: white;
}
.risk-card-label { font-size: 11px; letter-spacing: 3px; color: #6B7280; text-transform: uppercase; font-weight: 600; margin-bottom: 24px; }
.risk-amount {
  font-family: var(--font-display); font-size: 72px; font-weight: 800;
  color: var(--red); line-height: 1; letter-spacing: -3px; margin-bottom: 12px;
}
.risk-amount-sub { font-size: 14px; color: #6B7280; margin-bottom: 40px; }
.risk-vs {
  font-size: 13px; color: #9CA3AF; margin-bottom: 12px; font-weight: 500;
}
.risk-our {
  font-family: var(--font-display); font-size: 48px; font-weight: 800;
  color: var(--green); line-height: 1; letter-spacing: -2px; margin-bottom: 8px;
}
.risk-our-sub { font-size: 14px; color: #6B7280; }

/* ===== CTA ===== */
.cta-section {
  padding: 72px 48px; text-align: center;
  background: var(--light);
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 700px 400px at 30% 50%, rgba(66,133,244,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 500px 350px at 70% 50%, rgba(52,168,83,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.cta-section h2 {
  font-family: var(--font-display); font-size: clamp(40px, 5vw, 68px);
  font-weight: 800; letter-spacing: -2.5px; color: var(--black);
  max-width: 800px; margin: 0 auto 24px; line-height: 1.05;
}
.cta-section p {
  font-size: 18px; color: var(--gray); max-width: 500px;
  margin: 0 auto 48px; line-height: 1.65;
}

/* ===== FOOTER ===== */
footer {
  padding: 60px 48px;
  border-top: 1px solid #E5E7EB;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 24px;
}
.footer-logo { display: flex; align-items: center; gap: 10px; }
.footer-name {
  font-family: var(--font-display); font-weight: 800; font-size: 18px;
  color: var(--black); letter-spacing: -0.5px;
}
.footer-domain { font-size: 11px; color: var(--green); font-weight: 700; }
.footer-links { display: flex; gap: 32px; list-style: none; }
.footer-links a { font-size: 13px; color: var(--gray); text-decoration: none; }
.footer-links a:hover { color: var(--black); }
.footer-copy { font-size: 13px; color: #9CA3AF; }

/* ===== LOGO SVG INLINE ===== */
.logo-svg { flex-shrink: 0; }

@media (max-width: 900px) {
  nav { padding: 16px 24px; }
  .nav-links { display: none; }
  .hero { padding: 100px 24px 60px; }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .steps::before { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .feature-card.featured { grid-column: span 1; }
  .stats-row { grid-template-columns: 1fr; gap: 2px; }
  .stat-box:first-child { border-radius: 24px 24px 0 0; }
  .stat-box:last-child { border-radius: 0 0 24px 24px; }
  .pricing-grid { grid-template-columns: 1fr 1fr; }
  .doc-grid, .risk-section { grid-template-columns: 1fr; gap: 40px; }
  .how, .features, .pricing, .document, .risk-section, .cta-section { padding: 80px 24px; }
  footer { padding: 40px 24px; flex-direction: column; align-items: flex-start; }
}

