/* =============================================
   Kipn — Shared Stylesheet
   ============================================= */

:root {
  --primary: #0057FF;
  --primary-dark: #0040CC;
  --cta: #00C48C;
  --cta-dark: #00A876;
  --bg: #FAFAFA;
  --bg-alt: #F0F4FF;
  --text: #1A1A2E;
  --text-muted: #5A5A7A;
  --border: #DDE2F0;
  --radius: 10px;
  --max-w: 1080px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

/* =============================================
   Layout
   ============================================= */

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 72px 0;
}

/* =============================================
   Nav
   ============================================= */

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 250, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
  text-decoration: none;
}

.nav-logo:hover {
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.nav-links a:hover {
  color: var(--primary);
  text-decoration: none;
}

/* =============================================
   Buttons
   ============================================= */

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.18s, transform 0.12s;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-cta {
  background: var(--cta);
  color: #fff;
}

.btn-cta:hover {
  background: var(--cta-dark);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--bg-alt);
}

/* =============================================
   Hero
   ============================================= */

.hero {
  background: linear-gradient(135deg, #EEF3FF 0%, #F5FFF9 100%);
  padding: 96px 0 80px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  color: var(--text);
  max-width: 760px;
  margin: 0 auto 20px;
}

.hero h1 span {
  color: var(--primary);
}

.hero p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 36px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* =============================================
   Trust bar
   ============================================= */

.trust-bar {
  padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #fff;
  text-align: center;
}

.trust-bar p {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* =============================================
   Section headings
   ============================================= */

.section-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 560px;
}

/* =============================================
   How it works
   ============================================= */

.how-it-works {
  background: var(--bg-alt);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.step {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--border);
  position: relative;
}

.step-number {
  display: inline-flex;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.step h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.step p {
  font-size: 15px;
  color: var(--text-muted);
}

/* =============================================
   Channels
   ============================================= */

.channels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.channel-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  transition: box-shadow 0.18s, transform 0.18s;
}

.channel-card:hover {
  box-shadow: 0 8px 30px rgba(0, 87, 255, 0.1);
  transform: translateY(-3px);
}

.channel-icon {
  font-size: 40px;
  margin-bottom: 16px;
}

.channel-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.channel-card p {
  font-size: 15px;
  color: var(--text-muted);
}

/* =============================================
   Para quién
   ============================================= */

.segments {
  background: var(--bg-alt);
}

.segments-header {
  margin-bottom: 40px;
}

.segment-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  list-style: none;
}

.segment-list li {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 12px;
}

.segment-list li::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cta);
  flex-shrink: 0;
}

/* =============================================
   Contact form
   ============================================= */

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

@media (max-width: 720px) {
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.contact-info p {
  color: var(--text-muted);
  margin-top: 16px;
  font-size: 15px;
}

.contact-email {
  margin-top: 24px;
  font-size: 17px;
  font-weight: 600;
  color: var(--primary);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  font-family: var(--font);
  font-size: 15px;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* =============================================
   Footer
   ============================================= */

footer {
  background: var(--text);
  color: #B0B0C8;
  padding: 40px 0;
  font-size: 14px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: #B0B0C8;
}

.footer-links a:hover {
  color: #fff;
}

.footer-meta {
  text-align: right;
}

@media (max-width: 600px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  .footer-meta {
    text-align: center;
  }
}

/* =============================================
   Legal pages
   ============================================= */

.legal-header {
  background: var(--bg-alt);
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--border);
}

.legal-header h1 {
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.legal-header p {
  font-size: 15px;
  color: var(--text-muted);
}

.legal-body {
  padding: 56px 0;
}

.legal-content {
  max-width: 760px;
}

.legal-content h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 40px 0 12px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.legal-content h2:first-of-type {
  margin-top: 0;
  border-top: none;
}

.legal-content p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.75;
}

.legal-content ul, .legal-content ol {
  padding-left: 20px;
  margin-bottom: 12px;
}

.legal-content li {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 4px;
}

.legal-content strong {
  color: var(--text);
}

.legal-content a {
  color: var(--primary);
}

/* Third-party table */
.third-party-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 16px 0;
  overflow-x: auto;
  display: block;
}

.third-party-table th {
  background: var(--bg-alt);
  color: var(--text);
  font-weight: 700;
  padding: 10px 14px;
  text-align: left;
  border: 1px solid var(--border);
}

.third-party-table td {
  padding: 10px 14px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  vertical-align: top;
}

.third-party-table tr:hover td {
  background: #F8F9FF;
}

/* Notice box */
.notice-box {
  background: #EEF5FF;
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  margin: 20px 0;
}

.notice-box p {
  color: var(--text);
  margin: 0;
  font-size: 14px;
}

/* =============================================
   Responsive
   ============================================= */

@media (max-width: 640px) {
  .steps {
    grid-template-columns: 1fr;
  }

  .channels-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    gap: 16px;
  }

  section {
    padding: 48px 0;
  }
}
