/*
Theme Name: CrediOne+
Theme URI: https://credioneplus.com
Author: CrediOne+
Description: Tema oficial de CrediOne+ - Ecosistema SaaS financiero para microfinancieras y cooperativas.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: credioneplus
*/

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue-primary: #2563EB;
  --blue-dark: #1D3A8A;
  --blue-hero: linear-gradient(135deg, #1E3A8A 0%, #2563EB 60%, #3B82F6 100%);
  --navy-bg: #0F172A;
  --navy-card: #111827;
  --white: #FFFFFF;
  --gray-50: #F8FAFC;
  --gray-100: #EEF2FF;
  --gray-200: #E2E8F0;
  --gray-400: #94A3B8;
  --gray-600: #475569;
  --gray-800: #1E293B;
  --text-dark: #0F172A;
  --text-muted: #64748B;
  --text-blue: #2563EB;
  --radius-card: 16px;
  --radius-btn: 50px;
  --shadow-card: 0 2px 16px rgba(0,0,0,0.07);
  --font: 'Inter', 'Segoe UI', Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* =============================================
   TOP BAR
   ============================================= */
.topbar {
  background: var(--navy-bg);
  color: #CBD5E1;
  font-size: 13px;
  padding: 8px 0;
}
.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: flex-end;
  gap: 24px;
}
.topbar a {
  color: #CBD5E1;
  transition: color 0.2s;
}
.topbar a:hover { color: var(--white); }

/* =============================================
   HEADER / NAV
   ============================================= */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  white-space: nowrap;
}
.site-logo svg { width: 28px; height: 28px; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-600);
  padding: 8px 16px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.main-nav a:hover,
.main-nav a.current { color: var(--blue-primary); background: #EEF2FF; }

.header-cta {
  display: inline-flex;
  align-items: center;
  background: var(--blue-primary);
  color: var(--white) !important;
  font-weight: 600;
  font-size: 15px;
  padding: 10px 22px;
  border-radius: var(--radius-btn);
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}
.header-cta:hover { background: #1D4ED8; transform: translateY(-1px); }

/* Hamburger */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text-dark); margin: 5px 0; border-radius: 2px; transition: 0.3s; }

/* =============================================
   HERO SECTION (gradient blue)
   ============================================= */
.hero-section {
  background: var(--blue-hero);
  background-image: linear-gradient(135deg, #1E3A8A 0%, #2563EB 60%, #3B82F6 100%);
  position: relative;
  overflow: hidden;
  padding: 80px 24px 90px;
}
.hero-section::before {
  content: '';
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255,255,255,0.03) 0px,
    rgba(255,255,255,0.03) 1px,
    transparent 1px,
    transparent 40px
  );
  pointer-events: none;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 1;
}
.hero-content { flex: 1; }
.hero-content h1 {
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 20px;
}
.hero-content h1 span { color: rgba(255,255,255,0.45); }
.hero-content p {
  font-size: 17px;
  color: rgba(255,255,255,0.88);
  max-width: 480px;
  margin-bottom: 32px;
  line-height: 1.7;
}
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50px;
  padding: 7px 16px;
  font-size: 14px;
  font-weight: 500;
}
.hero-image { flex: 1; max-width: 520px; }
.hero-image img { border-radius: 16px; box-shadow: 0 24px 60px rgba(0,0,0,0.35); }

/* =============================================
   BUTTONS
   ============================================= */
.btn-primary {
  display: inline-flex;
  align-items: center;
  background: var(--blue-primary);
  color: var(--white);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 28px;
  border-radius: var(--radius-btn);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: #1D4ED8; transform: translateY(-1px); color: var(--white); }

.btn-dark {
  display: inline-flex;
  align-items: center;
  background: var(--text-dark);
  color: var(--white);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-dark:hover { background: #374151; color: var(--white); }

/* =============================================
   SECTION HELPERS
   ============================================= */
.section-eyebrow {
  font-size: 14px;
  font-weight: 600;
  color: var(--blue-primary);
  margin-bottom: 12px;
  display: block;
}
.section-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-dark);
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 48px;
  line-height: 1.7;
}
.section-center { text-align: center; }

/* =============================================
   LOGOS STRIP
   ============================================= */
.logos-section { padding: 20px 24px 40px; background: var(--white); }
.logos-label {
  text-align: center;
  font-size: 13px;
  color: var(--text-blue);
  font-weight: 500;
  margin-bottom: 20px;
}
.logos-strip {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px 48px;
}
.logos-strip span {
  font-size: 15px;
  color: #94A3B8;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* =============================================
   WHY SECTION
   ============================================= */
.why-section { padding: 80px 24px; background: var(--white); }
.why-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 80px;
}
.why-left { flex: 1; }
.why-left .section-eyebrow { margin-bottom: 16px; }
.why-left h2 { font-size: clamp(28px, 3.5vw, 44px); font-weight: 800; line-height: 1.15; }
.why-left h2 strong { font-style: italic; }
.why-right { flex: 1; }
.why-right p { font-size: 16px; color: var(--text-muted); margin-bottom: 28px; line-height: 1.75; }

/* =============================================
   STATS BAR
   ============================================= */
.stats-bar {
  background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 100%);
  padding: 40px 24px;
}
.stats-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  gap: 32px;
  flex-wrap: wrap;
}
.stat-item { text-align: left; }
.stat-number {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label { font-size: 14px; color: rgba(255,255,255,0.75); max-width: 180px; }

/* =============================================
   MODULES GRID
   ============================================= */
.modules-section { padding: 80px 24px; background: var(--gray-100); }
.modules-inner { max-width: 1200px; margin: 0 auto; }
.modules-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.module-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s, box-shadow 0.2s;
}
.module-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0,0,0,0.1); }
.module-icon {
  width: 48px; height: 48px;
  background: #EEF2FF;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.module-icon svg { width: 24px; height: 24px; color: var(--blue-primary); }
.module-card h3 { font-size: 16px; font-weight: 700; color: var(--text-dark); margin-bottom: 10px; }
.module-card p { font-size: 14px; color: var(--text-blue); line-height: 1.6; }

/* =============================================
   IMPLEMENTATION PAGE HERO
   ============================================= */
.page-hero {
  background: var(--blue-hero);
  background-image: linear-gradient(135deg, #1E3A8A 0%, #2563EB 60%, #3B82F6 100%);
  position: relative;
  overflow: hidden;
  padding: 80px 24px;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.03) 0px, rgba(255,255,255,0.03) 1px, transparent 1px, transparent 40px);
  pointer-events: none;
}
.page-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative; z-index: 1;
}
.page-hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  max-width: 600px;
  margin-bottom: 16px;
}
.page-hero p {
  font-size: 17px;
  color: rgba(255,255,255,0.85);
  max-width: 520px;
  line-height: 1.7;
}

/* =============================================
   STEPS SECTION
   ============================================= */
.steps-section { padding: 80px 24px; background: var(--white); }
.steps-inner { max-width: 1200px; margin: 0 auto; }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.step-item {}
.step-icon-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.step-circle {
  width: 52px; height: 52px;
  background: var(--blue-primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.step-circle svg { width: 22px; height: 22px; color: var(--white); }
.step-num {
  font-size: 28px;
  font-weight: 800;
  color: #CBD5E1;
  line-height: 1;
}
.step-item h3 { font-size: 15px; font-weight: 700; color: var(--text-dark); margin-bottom: 10px; }
.step-item p { font-size: 14px; color: var(--text-blue); line-height: 1.6; }

/* =============================================
   PRICING PAGE
   ============================================= */
.pricing-section { padding: 80px 24px; background: var(--gray-100); }
.pricing-inner { max-width: 1200px; margin: 0 auto; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.pricing-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
}
.pricing-card h3 { font-size: 20px; font-weight: 800; color: var(--text-dark); margin-bottom: 12px; }
.pricing-card .card-desc { font-size: 14px; color: var(--text-blue); margin-bottom: 20px; line-height: 1.6; }
.pricing-card .card-divider { border: none; border-top: 1px solid var(--gray-200); margin: 20px 0; }
.pricing-feature {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--text-dark);
  margin-bottom: 12px;
}
.pricing-feature svg { width: 16px; height: 16px; color: var(--blue-primary); flex-shrink: 0; }

/* =============================================
   WHAT'S INCLUDED SECTION
   ============================================= */
.included-section { padding: 60px 24px 80px; background: var(--gray-100); }
.included-label {
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 32px;
}
.included-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.included-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 36px 40px;
  box-shadow: var(--shadow-card);
}
.included-card.dark {
  background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 100%);
  color: var(--white);
}
.included-badge {
  display: inline-block;
  background: #EEF2FF;
  color: var(--blue-primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 20px;
}
.included-card.dark .included-badge {
  background: rgba(255,255,255,0.2);
  color: var(--white);
}
.included-card h3 { font-size: 28px; font-weight: 800; margin-bottom: 12px; }
.included-card .card-sub { font-size: 15px; color: var(--text-blue); margin-bottom: 24px; }
.included-card.dark .card-sub { color: rgba(255,255,255,0.8); }
.check-list li {
  display: flex; align-items: center; gap: 10px;
  font-size: 15px; color: var(--text-dark);
  margin-bottom: 12px;
}
.included-card.dark .check-list li { color: var(--white); }
.check-list li::before {
  content: '✓';
  color: var(--blue-primary);
  font-weight: 700;
  font-size: 14px;
}
.included-card.dark .check-list li::before { color: rgba(255,255,255,0.9); }
.included-note {
  text-align: center;
  font-size: 14px;
  color: var(--text-blue);
  margin-top: 32px;
}

/* =============================================
   CTA SECTION
   ============================================= */
.cta-section { padding: 40px 24px 60px; background: var(--white); }
.cta-box {
  max-width: 1000px;
  margin: 0 auto;
  background: var(--navy-bg);
  border-radius: 20px;
  padding: 60px 48px;
  text-align: center;
}
.cta-box h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; color: var(--white); margin-bottom: 16px; line-height: 1.2; }
.cta-box p { font-size: 16px; color: rgba(255,255,255,0.7); margin-bottom: 32px; max-width: 520px; margin-left: auto; margin-right: auto; }

/* =============================================
   CONTACT PAGE
   ============================================= */
.contact-section { padding: 60px 24px 80px; background: var(--white); }
.contact-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 32px;
  align-items: start;
}
.contact-form-box {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-card);
  padding: 40px 40px;
}
.contact-form-box h2 { font-size: 24px; font-weight: 800; color: var(--text-dark); margin-bottom: 28px; }
.form-group { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-size: 15px;
  font-family: var(--font);
  color: var(--text-dark);
  background: var(--white);
  transition: border-color 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--blue-primary); }
.form-group textarea { resize: vertical; min-height: 120px; }
.btn-submit {
  width: 100%;
  background: var(--blue-primary);
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
  padding: 14px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s;
  font-family: var(--font);
}
.btn-submit:hover { background: #1D4ED8; }

.contact-info-box {
  background: var(--gray-100);
  border-radius: var(--radius-card);
  padding: 36px 32px;
}
.contact-info-box h3 { font-size: 20px; font-weight: 700; color: var(--text-dark); margin-bottom: 24px; }
.info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}
.info-icon {
  width: 40px; height: 40px;
  background: #EEF2FF;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.info-icon svg { width: 18px; height: 18px; color: var(--blue-primary); }
.info-item strong { display: block; font-size: 15px; font-weight: 700; color: var(--text-dark); margin-bottom: 2px; }
.info-item span { font-size: 14px; color: var(--text-muted); display: block; line-height: 1.5; }

/* =============================================
   FOOTER
   ============================================= */
.site-footer { background: var(--navy-bg); padding: 60px 24px 32px; }
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .site-logo { color: var(--white); margin-bottom: 16px; }
.footer-brand p { font-size: 14px; color: #94A3B8; max-width: 300px; line-height: 1.7; }
.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #94A3B8;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 15px; color: #CBD5E1; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--white); }
.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.footer-contact-item svg { width: 16px; height: 16px; color: #94A3B8; flex-shrink: 0; margin-top: 2px; }
.footer-contact-item span { font-size: 14px; color: #CBD5E1; line-height: 1.5; }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom span { font-size: 13px; color: #64748B; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .modules-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(3, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { flex-direction: column; }
  .hero-image { max-width: 100%; }
}

@media (max-width: 768px) {
  .main-nav { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--gray-200); padding: 16px; gap: 4px; }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .header-cta { font-size: 14px; padding: 8px 16px; }
  .why-inner { flex-direction: column; gap: 32px; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .included-grid { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .stats-inner { flex-direction: column; gap: 24px; }
  .modules-grid { grid-template-columns: 1fr; }
  .cta-box { padding: 40px 24px; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .topbar-inner { gap: 16px; font-size: 12px; }
  .steps-grid { grid-template-columns: 1fr; }
  .hero-tags { display: none; }
}
