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

/* ══════════════════════════════════════════
   VARIABLES
══════════════════════════════════════════ */
:root {
  --purple: #7C3AED;
  --purple-light: #A855F7;
  --purple-soft: #C4B5FD;
  --purple-glow: rgba(124, 58, 237, 0.18);
  --purple-dark: #4B0082;
  --purple-deep: #3a007a;

  --bg-base: #FAFAFA;
  --bg-card: #FFFFFF;
  --bg-card-2: #F5F3FF;
  --bg-section-alt: #EEF2FF;
  --bg-section-altf: #F5F3FF;

  --dark: #1E1B4B;
  --text-primary: #1E1B4B;
  --text-secondary: #5B21B6;
  --text-muted: #7C3AED;
  --text-white: #FFFFFF;

  --border: rgba(124, 58, 237, 0.20);
  --border-light: rgba(124, 58, 237, 0.10);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(160deg, #FFFFFF 0%, #F5F3FF 30%, #EDE9FE 60%, #DDD6FE 85%, #C4B5FD 100%);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* noise sutil */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: .2;
}

/* ══════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════ */
.navbar-kredy {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  transition: padding .3s, background .3s;
  box-shadow: 0 2px 20px rgba(124, 58, 237, 0.08);
}

.navbar-kredy.scrolled {
  padding: 12px 0;
  background: rgba(255, 255, 255, 0.94);
}

.navbar-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
  display: block;
}

.navbar-kredy.scrolled .navbar-logo {
  height: 34px;
}

.navbar-wordmark {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--dark);
  letter-spacing: -0.02em;
  line-height: 1;
}

.navbar-wordmark span {
  color: var(--purple);
}

.navbar-kredy .nav-link {
  color: var(--text-secondary) !important;
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .03em;
  padding: 6px 14px !important;
  transition: color .2s;
}

.navbar-kredy .nav-link:hover {
  color: var(--purple) !important;
}

.btn-nav-cta {
  background: linear-gradient(135deg, var(--purple), var(--purple-light));
  color: #fff !important;
  border-radius: 8px;
  padding: 8px 20px !important;
  transition: opacity .2s, box-shadow .2s !important;
  box-shadow: 0 4px 14px var(--purple-glow);
}

.btn-nav-cta:hover {
  opacity: .88;
  box-shadow: 0 6px 24px rgba(124, 58, 237, .35) !important;
}

.navbar-toggler {
  border-color: var(--border) !important;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%287C3AED,1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* ══════════════════════════════════════════
   BOTONES
══════════════════════════════════════════ */
.btn-kredy-primary {
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-light) 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px 30px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .02em;
  transition: opacity .2s, box-shadow .2s, transform .15s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  box-shadow: 0 6px 20px var(--purple-glow);
}

.btn-kredy-primary:hover {
  opacity: .88;
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(124, 58, 237, .32);
  color: #fff;
}

.btn-kredy-outline {
  background: rgba(255, 255, 255, 0.70);
  color: var(--purple);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 13px 28px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: .95rem;
  transition: border-color .2s, color .2s, background .2s, box-shadow .2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  backdrop-filter: blur(8px);
}

.btn-kredy-outline:hover {
  border-color: var(--purple);
  color: #fff;
  background: var(--purple);
  box-shadow: 0 6px 20px var(--purple-glow);
}

.btn-kredy-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 10px;
  padding: 13px 28px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: .95rem;
  transition: background .2s, border-color .2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  backdrop-filter: blur(6px);
}

.btn-kredy-ghost:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

/* ══════════════════════════════════════════
   SECCIONES COMUNES
══════════════════════════════════════════ */
.section-pad {
  padding: 96px 0;
}

.section-pad-sm {
  padding: 60px 0;
}

.section-label {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 14px;
  background: rgba(124, 58, 237, 0.10);
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid rgba(124, 58, 237, 0.18);
}

.section-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--dark);
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 540px;
  line-height: 1.7;
}

/* ══════════════════════════════════════════
   CARDS
══════════════════════════════════════════ */
.kredy-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 28px;
  transition: border-color .25s, transform .25s, box-shadow .25s;
  height: 100%;
  box-shadow: 0 4px 24px rgba(124, 58, 237, 0.06);
}

.contact-info p {
  margin-bottom: 8px;
  font-size: 15px;
}



.kredy-card:hover {
  border-color: var(--purple-soft);
  transform: translateY(-4px);
  box-shadow: 0 16px 50px rgba(124, 58, 237, 0.14);
}

.kredy-card:hover .icon-wrap {
  transform: scale(1.08) rotate(5deg);
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-light) 100%);
  color: #fff !important;
  border-color: transparent;
  box-shadow: 0 6px 16px var(--purple-glow);
}

.kredy-card:hover .icon-wrap svg {
  stroke: #fff !important;
}

.kredy-card h5 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--dark);
}

.kredy-card p {
  color: var(--text-secondary);
  font-size: .9rem;
  margin: 0;
}

.icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.10), rgba(168, 85, 247, 0.18));
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--purple-light);
  margin-bottom: 18px;
  flex-shrink: 0;
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.icon-wrap svg {
  transition: stroke 0.3s ease;
}

/* Iconos PNG en tarjetas de proceso */
.step-icon-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--purple-dark);
  padding: 3px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

/* icon-wrap que contiene imagen — sin gradiente de fondo */
.icon-wrap:has(.step-icon-img) {
  background: transparent;
  border-color: transparent;
}

/* Overlay hero compartido y estilos de HERO */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  /* mueve el contenido a la derecha */
  overflow: hidden;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: right;
  padding: 120px 100px 80px 24px;
  max-width: 880px;
  margin-left: auto;
  /* empuja el bloque hacia la derecha */
  margin-right: 0;
}

.hero-tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--purple-soft);
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.1);
  padding: 5px 16px;
  border-radius: 100px;
  border: 1px solid rgba(196, 181, 253, 0.35);
}

.hero-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #fff;
  margin-bottom: 20px;
}

.hero-title-accent {
  background: linear-gradient(135deg, var(--purple-soft) 0%, #e879f9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.65;
  margin-bottom: 36px;
}

.hero-subtitle strong {
  color: #fff;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  /* botones alineados a la derecha */
  flex-wrap: wrap;
}


.kredy-card--icon {
  display: flex;
  flex-direction: column;
}

.card-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(168, 85, 247, 0.20));
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--purple-light);
  flex-shrink: 0;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--purple);
  font-size: .85rem;
  font-weight: 700;
  text-decoration: none;
  margin-top: auto;
  padding-top: 14px;
  transition: color .2s;
}

.card-link:hover {
  color: var(--purple-light);
}

.step-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: var(--purple-light);
  opacity: .3;
  margin-bottom: 12px;
  line-height: 1;
}

/* ══════════════════════════════════════════
   STAT BOX
══════════════════════════════════════════ */
.stat-box {
  background: linear-gradient(135deg, #FFFFFF 60%, #F5F3FF 100%);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 22px 24px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.08);
}

.stat-box .num {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--purple), var(--purple-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
  line-height: 1;
}

.stat-box .lbl {
  font-size: .8rem;
  color: var(--text-secondary);
  margin-top: 5px;
}

/* ══════════════════════════════════════════
   DIVIDER
══════════════════════════════════════════ */
.divider-purple {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--purple-soft), var(--purple), var(--purple-soft), transparent);
  border: none;
  margin: 0;
  opacity: .5;
}

/* ══════════════════════════════════════════
   CTA SECTION
══════════════════════════════════════════ */
.cta-section {
  position: relative;
  overflow: hidden;
  background: url('../assets/cta_bg.png') center/cover no-repeat;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(55, 0, 100, 0.68);
  z-index: 0;
}

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.site-footer {
  background: linear-gradient(160deg, var(--purple-dark) 0%, #6a00b8 45%, var(--purple-dark) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 56px 0 0;
  color: #EDE9FE;
}

.footer-top-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr 1fr;
  gap: 3rem;
  padding-bottom: 48px;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  height: 90px;
  width: auto;
  object-fit: contain;
  display: block;
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--purple-soft);
  margin-bottom: 14px;
}

.footer-brand-desc {
  font-size: .87rem;
  color: rgba(237, 233, 254, 0.78);
  line-height: 1.65;
}

.footer-divider-line {
  height: 1px;
  background: rgba(196, 181, 253, 0.2);
  margin-top: 20px;
}

.footer-col-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple-soft);
  margin-bottom: 14px;
}

.footer-heading {
  font-family: 'Montserrat', sans-serif;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--purple-soft);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col ul li a,
.site-footer a {
  color: rgba(237, 233, 254, 0.82);
  text-decoration: none;
  font-size: .88rem;
  transition: color .2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1.4;
}

.footer-col ul li a i,
.footer-col ul li a svg {
  font-size: 0.95rem;
  flex-shrink: 0;
  opacity: 0.85;
}

.footer-col ul li a:hover,
.site-footer a:hover {
  color: #fff;
}

.footer-security-text {
  font-size: .87rem;
  color: rgba(237, 233, 254, 0.75);
  line-height: 1.6;
}

.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.footer-social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #EDE9FE !important;
  font-size: 1rem;
  text-decoration: none !important;
  transition: background .2s, transform .2s, border-color .2s;
}

.footer-social-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  color: #fff !important;
}

.footer-website {
  display: inline-block;
  margin-top: 12px;
  font-size: .85rem;
  color: rgba(237, 233, 254, 0.7) !important;
  text-decoration: none !important;
  transition: color .2s;
}

.footer-website:hover {
  color: #fff !important;
}

.footer-hr {
  height: 1px;
  background: rgba(196, 181, 253, 0.18);
}

.footer-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 22px 0;
  font-size: .8rem;
  color: rgba(237, 233, 254, 0.55);
}

.footer-hashtag {
  font-family: 'Montserrat', sans-serif;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--purple-soft);
}

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 1100px) {
  .footer-top-row {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem 3rem;
  }
}

@media (max-width: 991px) {
  .navbar-collapse {
    background: rgba(255, 255, 255, 0.97);
    border-radius: 12px;
    padding: 12px 16px;
    margin-top: 8px;
    border: 1px solid var(--border-light);
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.12);
  }
}

@media (max-width: 768px) {
  .section-pad {
    padding: 64px 0;
  }

  .section-pad-sm {
    padding: 44px 0;
  }

  .footer-top-row {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom-row {
    justify-content: center;
    text-align: center;
  }

  .hero-content {
    padding: 120px 24px 80px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-title {
    letter-spacing: -0.03em;
  }
}