/*==========================================================
    CRÉDITO BÁSICO
    Hero
==========================================================*/

:root {
  --credit-primary: #198754;
  --credit-primary-dark: #0f6b43;
  --credit-light: #f7faf8;
  --credit-text: #1f2937;
  --credit-gray: #6b7280;
}

/*==========================================================
    HERO
==========================================================*/
.nav {
  position: relative;

  overflow: hidden;

  padding: 10px 10px 10px 10px;
}
.credit-hero {
  position: relative;

  overflow: hidden;

  padding: 50px 0 80px;

  background:
    radial-gradient(
      circle at top left,
      rgba(25, 135, 84, 0.08),
      transparent 40%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(234, 147, 33, 0.08),
      transparent 35%
    ),
    rgb(245, 255, 246);
}
/*=================================
            HERO 
=================================*/

.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;

  background: linear-gradient(135deg, #0f8b4c, #33a852);

  color: white;
  padding: 140px 0 180px;
}
.hero .container {
  position: relative;

  z-index: 2;
}
.hero-wave {
  position: absolute;

  left: 0;

  bottom: -2px;

  width: 100%;

  line-height: 0;
}
.hero-wave svg {
  width: 100%;

  height: 120px;

  display: block;
}
.hero h1 {
  font-size: 3.8rem;

  line-height: 1.2;

  margin: 25px 0;
}

.hero h1 span {
  color: #fff;
}

.hero p {
  font-size: 1.2rem;
}
.hero::before {
  content: "";

  position: absolute;

  width: 700px;

  height: 700px;

  background: rgba(255, 255, 255, 0.08);

  border-radius: 50%;

  top: -250px;

  right: -150px;

  filter: blur(40px);
}

.hero-badge {
  display: inline-block;

  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);

  padding: 10px 18px;

  border-radius: 30px;

  font-weight: 700;
}

.hero-list div {
  margin-bottom: 12px;

  font-weight: 600;
}

.hero-list i {
  color: #ffd54f;

  margin-right: 10px;
}

.hero-image {
  position: relative;

  text-align: center;
}

.hero-image img {
  border-radius: 30px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.18);
  transition: 0.4s ease;
}

.hero-image img:hover {
  transform: scale(1.02);
}
.hero-image::before {
  content: "";

  position: absolute;

  width: 420px;

  height: 420px;

  border: 2px dashed rgba(255, 255, 255, 0.2);

  border-radius: 50%;

  top: 40px;

  left: 50%;

  transform: translateX(-50%);

  animation: spin 40s linear infinite;
}
.hero-image::before {
  content: "";

  position: absolute;

  width: 420px;

  height: 420px;

  border: 2px dashed rgba(255, 255, 255, 0.2);

  border-radius: 50%;

  top: 40px;

  left: 50%;

  transform: translateX(-50%);

  animation: spin 40s linear infinite;
}
@keyframes spin {
  from {
    transform: translateX(-50%) rotate(0deg);
  }

  to {
    transform: translateX(-50%) rotate(360deg);
  }
}
.hero::after {
  content: "";

  position: absolute;

  inset: 0;

  background-image: radial-gradient(
    rgba(255, 255, 255, 0.08) 2px,
    transparent 2px
  );

  background-size: 35px 35px;

  opacity: 0.35;
}
.hero-photo {
  border-radius: 35px;

  overflow: hidden;

  transform: rotate(-2deg);

  transition: 0.4s;
}

.hero-photo:hover {
  transform: rotate(0deg) scale(1.02);
}

.hero-photo img {
  width: 100%;

  display: block;
}
.floating-card {
  position: absolute;

  display: flex;

  align-items: center;

  gap: 15px;

  background: rgba(255, 255, 255, 0.96);

  padding: 16px 20px;

  border-radius: 18px;

  backdrop-filter: blur(15px);

  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);

  transition: 0.35s;

  animation: float 5s ease-in-out infinite;
}

/*==========================================================
    TEXTO
==========================================================*/

.credit-content h1 {
  font-size: clamp(2.8rem, 4vw, 4.4rem);

  font-weight: 800;

  line-height: 1.1;

  color: var(--credit-text);

  margin: 20px 0;
}

.credit-content p {
  font-size: 1.15rem;

  color: var(--credit-gray);

  line-height: 1.9;

  margin-bottom: 35px;
}

.credit-badge {
  display: inline-flex;

  align-items: center;

  gap: 10px;

  padding: 10px 22px;

  border-radius: 50px;

  background: #e8f8ee;

  color: var(--credit-primary);

  font-weight: 700;

  letter-spacing: 0.5px;
}

.hero-buttons a {
  background-color: #ffffff;
}
/*==========================================================
    BOTONES
==========================================================*/
.hero-buttons-cb {
  display: flex;

  gap: 18px;

  flex-wrap: wrap;

  margin-bottom: 40px;
}
.hero-buttons-cb .btn {
  padding: 15px 34px;

  border-radius: 50px;

  font-size: 1rem;

  font-weight: 600;

  transition: 0.35s;
}
.hero-buttons-cb .btn-success {
  background: var(--credit-primary-dark);

  border: none;
}
.hero-buttons-cb .btn-outline-success {
  background: #fec720;
  color: #ffffff;
  border: none;
}
.hero-buttons-cb .btn-success:hover {
  transform: translateY(-4px);

  background: var(--credit-primary-dark);

  box-shadow: 0 18px 35px rgba(25, 135, 84, 0.25);
}
.hero-buttons-cb .btn-outline-success:hover {
  transform: translateY(-4px);
}

.credit-actions {
  display: flex;

  gap: 18px;

  flex-wrap: wrap;

  margin-bottom: 40px;
}

.credit-actions .btn {
  padding: 15px 34px;

  border-radius: 50px;

  font-size: 1rem;

  font-weight: 600;

  transition: 0.35s;
}

.credit-actions .btn-success {
  background: var(--credit-primary);

  border: none;
}

.credit-actions .btn-success:hover {
  transform: translateY(-4px);

  background: var(--credit-primary-dark);

  box-shadow: 0 18px 35px rgba(25, 135, 84, 0.25);
}

.credit-actions .btn-outline-success:hover {
  transform: translateY(-4px);
}

/*==========================================================
    BENEFICIOS
==========================================================*/

.credit-benefits {
  display: flex;

  flex-direction: column;

  gap: 18px;
}

.credit-benefits div {
  display: flex;

  align-items: center;

  gap: 15px;

  font-size: 1.05rem;

  color: #374151;
}

.credit-benefits i {
  width: 34px;

  height: 34px;

  display: flex;

  justify-content: center;

  align-items: center;

  border-radius: 50%;

  background: #e8f8ee;

  color: var(--credit-primary);

  font-size: 1rem;
}

/*==========================================================
    IMAGEN
==========================================================*/

.credit-photo {
  position: relative;

  border-radius: 35px;

  overflow: hidden;

  transform: rotate(-2deg);

  transition: 0.5s;

  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.15);
}

.credit-photo img {
  width: 100%;

  display: block;
}

.credit-photo:hover {
  transform: rotate(0deg) scale(1.02);
}

/*==========================================================
    TARJETAS FLOTANTES
==========================================================*/

.card-money {
  top: 30px;

  left: -50px;
}

.card-payment {
  right: -45px;

  top: 45%;

  transform: translateY(-50%);
}

.card-state {
  left: 10px;

  bottom: 25px;
}

@media (max-width: 991px) {
  .credit-image {
    margin-top: 50px;
  }

  .card-money {
    left: 10px;

    top: 15px;
  }

  .card-payment {
    right: 10px;

    top: 45%;
  }

  .card-state {
    left: 10px;

    bottom: 10px;
  }
}

/*==========================================================
    POSICIONES
==========================================================*/

.card-money {
  top: 40px;

  left: -10px;
}

.card-payment {
  right: -60px;

  top: 30%;

  transform: translateY(-50%);
}

.card-state {
  left: 25px;

  bottom: -5px;
}
/*==========================================================
    DECORACIÓN
==========================================================*/

.credit-photo::before {
  content: "";

  position: absolute;

  width: 140px;

  height: 140px;

  border: 2px dashed rgba(255, 255, 255, 0.55);

  border-radius: 50%;

  top: -50px;

  right: -50px;

  animation: spin 18s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0);
  }

  to {
    transform: rotate(360deg);
  }
}

/*==========================================================
    RESPONSIVE
==========================================================*/

@media (max-width: 991px) {
  .credit-hero {
    padding: 130px 0 80px;

    text-align: center;
  }

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

  .credit-benefits {
    align-items: center;
  }

  .credit-photo {
    margin-top: 60px;

    transform: none;
  }

  .card-money {
    left: 10px;
  }

  .card-payment {
    right: 10px;
  }

  .card-state {
    left: 10px;
  }
}
/*==========================================================
    SECCIONES
==========================================================*/

.credit-section {
  padding: 30px 0;

  position: relative;
}

.credit-section-light {
  background: #f8fafc;
}

.credit-title {
  font-size: clamp(2rem, 3vw, 3rem);

  font-weight: 800;

  color: #1f2937;

  margin-bottom: 20px;
}

.credit-subtitle {
  max-width: 700px;

  margin: auto;

  color: #6b7280;

  font-size: 1.1rem;

  line-height: 1.8;
}

/*==========================================================
    ¿QUÉ ES EL CRÉDITO?
==========================================================*/

.credit-about-image {
  position: relative;
}

.credit-about-image img {
  width: 100%;

  border-radius: 28px;

  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12);
}

/*==========================================================
    TARJETAS
==========================================================*/

.feature-card {
  background: #fff;

  padding: 28px;

  border-radius: 22px;

  height: 100%;

  transition: 0.35s;

  border: 1px solid #eef2f7;

  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
  transform: translateY(-8px);

  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.12);
}

.feature-icon {
  width: 70px;

  height: 70px;

  border-radius: 18px;

  display: flex;

  justify-content: center;

  align-items: center;

  margin-bottom: 22px;

  background: #e8f8ee;

  color: #198754;

  font-size: 30px;
}

.feature-card h5 {
  font-weight: 700;

  margin-bottom: 12px;

  color: #1f2937;
}

.feature-card p {
  margin: 0;

  color: #6b7280;

  line-height: 1.8;
}

/*==========================================================
    FINANCIAMIENTO
==========================================================*/

.finance-card {
  background: #fff;

  border-radius: 25px;

  padding: 35px 25px;

  text-align: center;

  height: 100%;

  transition: 0.35s;

  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.06);
}

.finance-card:hover {
  transform: translateY(-10px);

  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12);
}

.finance-card i {
  width: 90px;

  height: 90px;

  margin: auto;

  display: flex;

  justify-content: center;

  align-items: center;

  border-radius: 50%;

  background: #e8f8ee;

  color: #198754;

  font-size: 2.2rem;

  margin-bottom: 25px;
}

.finance-card h4 {
  font-weight: 700;

  margin-bottom: 15px;
}

.finance-card p {
  color: #6b7280;

  margin: 0;
}
/*==========================================================
    CARACTERÍSTICAS
==========================================================*/

.credit-spec-card {
  background: #fff;

  border-radius: 28px;

  padding: 35px;

  height: 100%;

  transition: 0.35s;

  border: 1px solid #eef2f7;

  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
}

.credit-spec-card:hover {
  transform: translateY(-10px);

  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}

.credit-spec-icon {
  width: 72px;

  height: 72px;

  border-radius: 20px;

  display: flex;

  justify-content: center;

  align-items: center;

  margin-bottom: 25px;

  background: linear-gradient(135deg, #198754, #39b96a);

  color: #fff;

  font-size: 32px;

  transition: 0.35s;
}

.credit-spec-card:hover .credit-spec-icon {
  transform: rotate(-8deg) scale(1.08);
}

.credit-spec-card span {
  display: block;

  color: #6b7280;

  font-weight: 600;

  margin-bottom: 10px;
}

.credit-spec-card h3 {
  font-size: 2rem;

  font-weight: 800;

  color: #1f2937;

  margin-bottom: 6px;
}

.credit-spec-card small {
  color: #8b95a5;

  font-size: 0.95rem;
}
/*==========================================================
    REQUISITOS
==========================================================*/

.credit-accordion {
  border-radius: 25px;

  overflow: hidden;

  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.credit-accordion .accordion-button {
  padding: 22px 28px;

  font-size: 1.05rem;

  font-weight: 600;

  background: #fff;
}

.credit-accordion .accordion-button:not(.collapsed) {
  background: #e8f8ee;

  color: #198754;
}

.credit-accordion .accordion-body {
  padding: 30px;

  background: #fff;
}
/*==========================================================
    FAQ
==========================================================*/

.credit-faq {
  max-width: 950px;

  margin: auto;
}

.credit-faq .accordion-item {
  margin-bottom: 18px;

  border: none;

  border-radius: 20px;

  overflow: hidden;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
}

.credit-faq .accordion-button {
  padding: 24px;

  font-weight: 600;
}
/*==========================================================
    CTA
==========================================================*/

.credit-cta {
  padding: 90px 0;
}

.credit-cta-box {
  background: linear-gradient(135deg, #198754, #2cb463);

  border-radius: 35px;

  padding: 70px;

  color: #fff;

  overflow: hidden;

  position: relative;
}

.credit-cta-box::before {
  content: "";

  position: absolute;

  width: 300px;

  height: 300px;

  border-radius: 50%;

  background: rgba(255, 255, 255, 0.08);

  top: -120px;

  right: -120px;
}

.credit-cta h2 {
  font-size: clamp(2rem, 3vw, 3.3rem);

  font-weight: 800;
}

.credit-cta p {
  color: rgba(255, 255, 255, 0.82);

  margin-top: 20px;
}
/*==========================================================
    ANIMACIONES
==========================================================*/

.fade-up {
  opacity: 0;

  transform: translateY(40px);

  transition: 1s;
}

.fade-up.show {
  opacity: 1;

  transform: none;
}
/*==========================================================
    RESPONSIVE
==========================================================*/

@media (max-width: 991px) {
  .credit-info {
    grid-template-columns: 1fr;

    gap: 40px;
  }

  .credit-info-list {
    grid-template-columns: 1fr;
  }

  .feature-row {
    flex-direction: column;

    gap: 8px;
  }

  .credit-cta-box {
    padding: 45px 30px;

    text-align: center;
  }
}
/*==========================================================
    CONTENEDOR IMAGEN
==========================================================*/

.credit-image {
  position: relative;

  display: inline-block;

  width: 100%;
}

/*==========================
      TARJETAS FLOTANTES
==========================*/

.floating-card-credito {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 15px;
  background: #fff;
  padding: 18px 22px;
  border-radius: 18px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
  max-width: 260px;
}

.floating-card-credito i {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #1b6b46;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.4rem;
}

.floating-card-credito strong {
  display: block;
  color: #183b2d;
  font-size: 1rem;
}

.floating-card-credito span {
  color: #6b7280;
  font-size: 0.9rem;
}

/*==========================================================
    FOTO
==========================================================*/

.credit-photo {
  border-radius: 30px;

  overflow: hidden;

  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

.credit-photo img {
  width: 100%;

  display: block;
}

/*==========================================================
    TARJETAS
==========================================================*/
.text-muted {
  color: #6b7280 !important;
}
.credit-floating-card {
  position: absolute;

  display: flex;

  align-items: center;

  gap: 15px;

  background: #fff;

  padding: 18px 22px;

  border-radius: 18px;

  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);

  min-width: 220px;

  z-index: 20;
}

.credit-floating-card strong {
  display: block;

  font-size: 18px;

  color: #222;
}

.credit-floating-card small {
  color: #777;
}

.credit-icon {
  width: 55px;

  height: 55px;

  border-radius: 50%;

  display: flex;

  justify-content: center;

  align-items: center;

  background: #198754;

  color: #fff;

  font-size: 22px;
}
.credit-spec-card::before {
  content: "";

  display: block;

  width: 60px;

  height: 5px;

  border-radius: 10px;

  background: #198754;

  margin-bottom: 20px;
}
/*==========================================================
    MÓVIL
==========================================================*/

@media (max-width: 768px) {
  .credit-spec-card {
    padding: 20px;

    border-radius: 18px;
  }

  .credit-spec-icon {
    width: 55px;

    height: 55px;

    border-radius: 14px;

    font-size: 24px;

    margin-bottom: 15px;
  }

  .credit-spec-card span {
    font-size: 0.85rem;
  }

  .credit-spec-card h3 {
    font-size: 1.25rem;

    margin-bottom: 4px;
  }

  .credit-spec-card small {
    font-size: 0.75rem;
  }
}
/*==========================================================
    MÓVIL
==========================================================*/

@media (max-width: 768px) {
  .credit-spec-card {
    padding: 20px;

    border-radius: 18px;
  }

  .credit-spec-icon {
    width: 55px;

    height: 55px;

    border-radius: 14px;

    font-size: 24px;

    margin-bottom: 15px;
  }

  .credit-spec-card span {
    font-size: 0.85rem;
  }

  .credit-spec-card h3 {
    font-size: 1.25rem;

    margin-bottom: 4px;
  }

  .credit-spec-card small {
    font-size: 0.75rem;
  }
}
/*==========================================================
    AVISO
==========================================================*/

.credit-note {
  display: flex;

  align-items: flex-start;

  gap: 25px;

  padding: 30px;

  background: #f5fbf7;

  border-left: 6px solid #198754;

  border-radius: 20px;

  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
}

.credit-note-icon {
  width: 65px;

  height: 65px;

  min-width: 65px;

  display: flex;

  justify-content: center;

  align-items: center;

  border-radius: 50%;

  background: #198754;

  color: #fff;

  font-size: 28px;
}

.credit-note h5 {
  font-weight: 700;

  color: #1f2937;

  margin-bottom: 10px;
}

.credit-note p {
  margin: 0;

  color: #6b7280;

  line-height: 1.8;
}
@media (max-width: 768px) {
  .credit-note {
    flex-direction: column;

    text-align: center;

    align-items: center;
  }
}
.materials-section {
  padding: 80px 0;
}

.material-card {
  display: flex;

  align-items: center;

  gap: 25px;

  padding: 30px;

  background: #fff;

  border-radius: 24px;

  border: 1px solid #e8ecef;

  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);

  transition: 0.35s;
}

.material-card:hover {
  transform: translateY(-5px);

  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.1);
}

.material-icon {
  width: 70px;

  height: 70px;

  border-radius: 20px;

  background: linear-gradient(135deg, #ea9321, #f3ae3d);

  display: flex;

  justify-content: center;

  align-items: center;

  color: #fff;

  font-size: 30px;

  flex-shrink: 0;
}

.material-content {
  flex: 1;
}

.material-content h4 {
  margin-bottom: 10px;

  color: #163020;

  font-weight: 700;
}

.material-content p {
  margin: 0;

  color: #6b7280;
}
