/* Customer page - pencil-welcome design */
:root {
  --customer-primary: #002b4b;
  --customer-primary-hover: #0a1f2e;
  --customer-secondary: #4fa4b5;
  --customer-secondary-light: #e3f0f3;
  --customer-secondary-hover: #3b8e9e;
  --customer-dark: #0b2434;
  --customer-bg-light: #f8fbfc;
  --customer-bg-extra: #fafcfd;
  --customer-bg-section: #e5f3fe;
  --customer-bg-uncertainty: #4d6b81;
  --customer-bg-uncertainty-gradient-start: #5a7689;
  --customer-bg-uncertainty-gradient-end: #3d5a6b;
  --customer-text-dark: #002b4b;
  --customer-text-muted: #4a5568;
  --customer-green: #2cd46b;
  --customer-white: #fff;
  --customer-whatsapp: #25d366;
  --customer-whatsapp-hover: #20bd5a;
  --customer-accent: #ff4b55;
  --customer-icon-muted: #485467;
  --customer-icon-border: #324155;
  --customer-step-bg: #ecf7f8;
  --customer-step-border: #b9dbe1;
  --customer-step-number: #33556f;
  --customer-app-blue: #2e96eb;
  --customer-brand-bg: #e3f0f3;
  --customer-footer-bg: #f8f8f8;
  --customer-card-border: rgba(0, 43, 75, 0.15);
  --customer-shadow: 0 4px 22px rgba(0, 0, 0, 0.07);
  --customer-radius-card: 12px;
  --customer-radius-pill: 26px;
}

/* Utilidades: backgrounds */
.bg-customer-light {
  background-color: var(--customer-bg-light);
}
.bg-customer-secondary-light {
  background-color: var(--customer-secondary-light);
}
.bg-customer-extra {
  background-color: var(--customer-bg-extra);
}
.bg-customer-section {
  background-color: var(--customer-bg-section);
}
.bg-customer-primary {
  background-color: var(--customer-primary);
}
.bg-customer-secondary {
  background-color: var(--customer-secondary);
}
.bg-customer-dark {
  background-color: var(--customer-dark);
}
.bg-customer-white {
  background-color: var(--customer-white);
}
.bg-customer-icon {
  background-color: var(--customer-icon-muted);
}
.bg-customer-step {
  background-color: var(--customer-step-bg);
}
.bg-customer-consent {
  background-color: #32a071;
}
.bg-customer-form {
  background-color: #f6f7f9;
}
.bg-customer-brand {
  background-color: var(--customer-brand-bg);
}
.bg-customer-whatsapp {
  background-color: var(--customer-whatsapp);
}
.bg-customer-whatsapp:hover {
  background-color: var(--customer-whatsapp-hover);
}

/* Utilidades: colores de texto */
.text-customer-primary {
  color: var(--customer-primary);
}
.text-customer-secondary {
  color: var(--customer-secondary);
}
.text-customer-dark {
  color: var(--customer-dark);
}
.text-customer-white {
  color: var(--customer-white);
}
.text-customer-muted {
  color: var(--customer-text-muted);
}
.text-customer-green {
  color: var(--customer-green);
}
.text-customer-accent {
  color: var(--customer-accent);
}
.text-customer-step-number {
  color: var(--customer-step-number);
}

.customer-page {
  padding-top: 76px; /* navbar height */
}

/* Hero section */
.customer-hero {
  position: relative;
  width: 100%;
  margin: 0 auto;
  height: 521px;
  overflow: hidden;
  background-image:
    linear-gradient(to right, var(--customer-primary), rgba(95, 95, 95, 0)),
    url("/static/img/customer/hero.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.customer-hero-content {
  max-width: 608px;
}

.customer-hero .btn-pill {
  min-width: 223px;
  height: 39px;
  font-size: 15px;
  border-radius: var(--customer-radius-pill);
  text-decoration: none;
}

.customer-hero .btn-hero-primary:hover {
  background-color: var(--customer-secondary-hover);
  border-color: var(--customer-secondary-hover);
}

.customer-hero .btn-hero-green:hover {
  background-color: #25b85d;
  border-color: #25b85d;
}

/* Beyond financing section */
.customer-beyond {
  border-radius: var(--customer-radius-card);
  margin: 0 auto;
  max-width: 1192px;
}

.customer-beyond-card {
  border-radius: var(--customer-radius-card);
  border: 1px solid var(--customer-card-border);
}

.customer-beyond-card .icon-circle {
  width: 63px;
  height: 62px;
  border: 3px solid var(--customer-icon-border);
  border-radius: 50%;
}

.customer-cta-bar .btn-cta-white {
  border-radius: var(--customer-radius-pill);
  font-size: 18px;
  white-space: nowrap;
}

/* Financing section */
.customer-financing {
  max-width: 1280px;
  margin: 0 auto;
}

.customer-financing .btn-register-now {
  border-radius: var(--customer-radius-pill);
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
}

.customer-financing .btn-register-now:hover {
  background: var(--customer-bg-light);
  color: var(--customer-dark);
  border-color: #b8c4ce;
}

.customer-financing .btn-whatsapp {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  text-decoration: none;
}

.customer-financing-card {
  border-radius: var(--customer-radius-card);
  border: 1px solid var(--customer-card-border);
  box-shadow: var(--customer-shadow);
}

.customer-financing-card .icon-badge {
  width: 56px;
  height: 56px;
  border-radius: 10px;
}

.customer-financing .btn-empieza-ahora {
  border-radius: var(--customer-radius-pill);
  font-size: 18px;
  text-decoration: none;
}

.customer-financing .btn-empieza-ahora:hover {
  background: var(--customer-primary-hover);
  color: var(--customer-white);
}

/* Navbar customer */
.customer-navbar {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

/* Header CTAs - segmented button group */
.btn-customer-primary {
  background-color: var(--customer-primary);
  color: var(--customer-white);
  border-color: var(--customer-primary);
}

.btn-customer-primary:hover {
  background-color: var(--customer-primary-hover);
  border-color: var(--customer-primary-hover);
  color: var(--customer-white);
}

.btn-customer-section {
  background-color: var(--customer-bg-section);
  color: var(--customer-text-dark);
  border-color: var(--customer-bg-section);
}

.btn-customer-section:hover {
  background-color: #d4ecf9;
  border-color: #d4ecf9;
  color: var(--customer-text-dark);
}

.customer-header-cta-group .btn {
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.375rem 1rem;
}

/* Botones del header */
.customer-navbar .customer-header-cta-group {
  flex-shrink: 0;
}

.customer-navbar .customer-header-cta-group .btn {
  white-space: nowrap;
}

/* Botones de crédito en móvil: dentro del menú colapsado */
@media (max-width: 991.98px) {
  .customer-navbar .navbar-collapse .customer-header-cta-group {
    flex-direction: column;
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
  }

  .customer-navbar .navbar-collapse .customer-header-cta-group .btn {
    width: 100%;
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }

  .customer-navbar
    .navbar-collapse
    .customer-header-cta-group
    .btn-customer-section {
    margin-left: 0 !important;
    padding-left: 1rem !important;
  }
}

/* Uncertainty section */
.customer-uncertainty {
  background: linear-gradient(
    to bottom,
    var(--customer-bg-uncertainty-gradient-start),
    var(--customer-bg-uncertainty-gradient-end)
  );
  margin: 0 auto;
}

.customer-uncertainty-inner {
  max-width: 1192px;
  margin: 0 auto;
}

.customer-uncertainty-card {
  border-radius: var(--customer-radius-card);
  box-shadow: var(--customer-shadow);
  flex: 1;
  min-height: 0;
}

.customer-uncertainty-card .gradient {
  background-color: var(--customer-bg-uncertainty-gradient-start);
}

.customer-uncertainty-card .icon-wrapper {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background-color: transparent;
  border: 2px solid var(--customer-secondary);
  border-radius: 50%;
}

.customer-uncertainty-image {
  border-radius: var(--customer-radius-card);
  overflow: hidden;
  box-shadow: var(--customer-shadow);
}

.customer-uncertainty-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.customer-uncertainty-solution {
  border-radius: var(--customer-radius-card);
  box-shadow: var(--customer-shadow);
}

.customer-uncertainty-solution .highlight-green {
  font-weight: 700;
}

/* Process section */
.customer-process-inner {
  max-width: 900px;
  margin: 0 auto;
}

.customer-process-badge {
  font-size: 14px;
  border-radius: 20px;
}

.customer-process-steps {
  position: relative;
}

.customer-process-steps::before {
  content: "";
  position: absolute;
  top: 48px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 180px);
  height: 2px;
  background: linear-gradient(
    to right,
    transparent 0%,
    var(--customer-step-border) 20%,
    var(--customer-step-border) 80%,
    transparent 100%
  );
  z-index: 0;
}

.customer-process-step {
  flex: 1;
  max-width: 260px;
  position: relative;
  z-index: 1;
}

.customer-process-step-circle {
  width: 96px;
  height: 96px;
  border: 2px solid var(--customer-step-border);
  border-radius: 50%;
  position: relative;
}

.customer-process-step-number {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 28px;
  height: 28px;
  background-color: var(--customer-step-border);
  font-size: 14px;
  font-weight: 700;
  border-radius: 50%;
}

.customer-process-step-icon {
  font-size: 32px;
}

/* App section */
.customer-app {
  position: relative;
  overflow: visible;
}

.customer-app-bg {
  position: absolute;
  inset: 0;
  background-color: var(--customer-app-blue);
  z-index: 0;
}

.customer-app-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/static/img/customer/background-app.png");
  background-size: cover;
  background-position: center;
  opacity: 0.25;
  z-index: 0;
  transform: scaleX(-1);
}

.customer-app-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(46, 150, 235, 0.95) 0%,
    rgba(46, 150, 235, 0.7) 50%,
    transparent 100%
  );
  z-index: 1;
}

.customer-app-inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
}

.customer-app-title {
  font-size: 30.09px;
  max-width: 800px;
}

.customer-app-buttons .store-btn {
  width: 100%;
  max-width: 223px;
  border-radius: 8px;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition:
    box-shadow 0.2s,
    transform 0.2s;
  text-decoration: none;
}

.customer-app-buttons .store-btn:hover,
.customer-app-buttons .store-btn:focus,
.customer-app-buttons .store-btn:active {
  text-decoration: none;
}

.customer-app-buttons .store-btn:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.customer-app-buttons .store-btn i {
  font-size: 28px;
}

.customer-app-image {
  position: absolute;
  right: 0;
  z-index: 2;
}

.customer-app-image img {
  width: 350px;
}

/* Form section */
.customer-form-wrapper {
  max-width: 569px;
  margin: 0 auto;
  border-radius: var(--customer-radius-card);
  border: 1px solid #ccd5db;
  box-shadow: var(--customer-shadow);
}

.customer-form-section .form-control {
  height: 50px;
  border-radius: 9px;
  border: 1px solid #bdbdbd;
  font-size: 12px;
}

.customer-form-section .form-control::placeholder {
  color: #828282;
}

.customer-form-section .btn-submit {
  width: 100%;
  height: 44px;
  border-radius: var(--customer-radius-pill);
  font-size: 18px;
  border: 2px solid var(--customer-primary);
}

.customer-form-consent {
  border-radius: 9px;
}

.customer-form-consent p {
  font-size: 16px;
  margin: 0;
  line-height: 1.08;
}

/* Brands section */
.customer-brands {
  border-bottom: 1px solid var(--customer-card-border);
}

.customer-brands-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.customer-brands-title {
  font-family:
    "Segoe UI",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  font-size: 18px;
  line-height: 100%;
}
/* Brands: desktop -- max-width 300px */
@media (min-width: 768px) {
  .customer-brands-title {
    max-width: 300px;
  }
}

.customer-brands-logos img {
  max-height: 42px;
  max-width: 170px;
  height: auto;
  object-fit: contain;
  object-position: center;
}

/* Brands: mobile – título arriba, logos en 2 columnas */
@media (max-width: 767px) {
  .customer-brands-logos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
}

/* Footer */
.customer-footer {
  position: relative;
  z-index: 3;
}

.customer-footer-security {
  background: linear-gradient(to bottom, #e8f4fc, #f0f5f7);
}

.bg-customer-footer {
  background-color: var(--customer-footer-bg);
}

.customer-footer-logo svg {
  color: var(--customer-primary);
  width: 90px;
  height: auto;
}

.customer-footer-links .customer-footer-col a:hover {
  color: var(--customer-primary);
}

.customer-footer-phone {
  text-decoration: underline;
}

.customer-footer-flag {
  font-size: 1rem;
}

.customer-footer-bottom-bar {
  height: 8px;
  background-color: #343a40;
}

/* Footer desktop */
@media (min-width: 993px) {
  .customer-footer-main-lg {
    background-color: var(--customer-white);
    padding: 88px 103px;
    border-top: 1px solid #e3f0f3;
  }
}

/* Responsive */
@media (max-width: 992px) {
  .customer-hero {
    padding: 32px 24px;
    height: 521px;
  }

  .customer-hero h1 {
    font-size: 32px;
  }

  .customer-hero p {
    font-size: 16px;
  }

  .customer-financing-title {
    font-size: 26px;
  }

  .customer-uncertainty {
    padding: 48px 24px;
  }

  .customer-uncertainty-title {
    font-size: 24px;
  }

  .customer-process-steps::before {
    display: none;
  }

  .customer-process-step {
    max-width: 100%;
  }

  .customer-process-title {
    font-size: 26px;
  }

  .customer-app-image {
    position: relative;
    margin-bottom: -24px;
  }
}

@media (max-width: 768px) {
  .customer-hero {
    padding: 24px 16px;
    height: 521px;
  }

  .customer-hero h1 {
    font-size: 28px;
  }

  .customer-hero .btn-hero-primary,
  .customer-hero .btn-hero-green {
    width: 100%;
    min-width: unset;
  }

  .customer-beyond {
    padding: 32px 20px;
  }

  .customer-beyond-header h2 {
    font-size: 24px;
  }

  .customer-cta-bar {
    flex-direction: column;
    text-align: center;
  }

  .customer-cta-bar p {
    text-align: justify;
    font-size: 0.9375rem;
  }

  .customer-process-title {
    font-size: 22px;
  }

  .customer-process-subtitle {
    font-size: 16px;
  }

  .customer-app {
    padding: 48px 20px 56px;
  }

  .customer-app-title {
    font-size: 24px;
  }

  .customer-app-desc {
    font-size: 16px;
  }

  .customer-app-buttons .store-btn {
    width: 100%;
    max-width: 100%;
    justify-content: center;
  }
  .customer-app-image img {
    max-height: 380px;
    object-fit: contain;
  }
}
section[id] {
  scroll-margin-top: 75px; /* Ajusta este valor según la altura de tu navbar */
}

.custom-card {
  border-radius: 20px !important;
  transition: transform 0.3s ease;
  text-align: left;
}

.icon-box {
  background-color: #4fa4b5;
  color: white;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 2rem;
}
