/* ===== SECCIÓN CRÉDITOS – CAÑAR LTDA. ===== */

.creditos-wrapper {
  padding: 60px 6% 70px;
  background: radial-gradient(circle at top left, #e8f8ef 0%, #ffffff 45%, #f3faf5 100%);
}

/* Encabezado */
.creditos-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 40px;
}

.creditos-header h2 {
  font-size: 2.4rem;
  color: #2f7c3f;
  margin-bottom: 8px;
}

.creditos-header p {
  color: #4a4a4a;
  font-size: 1.05rem;
}

/* GRID de tarjetas */
.creditos-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  max-width: 1200px;
  margin: 0 auto 40px;
}

/* Tarjeta */
.credit-card {
  background: #ffffff;
  border-radius: 50px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

/* Imagen superior */
.credit-img {
  width: 100%;
  height: 380px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 8px;
}

.credit-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.03);
  transition: transform 0.35s ease;
}

.credit-card:hover .credit-img img {
  transform: scale(1.08);
}

/* Hover tarjeta */
.credit-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}

/* Texto tarjeta */
.credit-card h3 {
  font-size: 1.25rem;
  color: #246b36;
  margin-bottom: 3px;
}

.credit-short {
  font-size: 0.98rem;
  color: #555;
}

.credit-uses {
  margin: 4px 0 10px;
  padding-left: 18px;
  color: #4b4b4b;
  font-size: 0.95rem;
}

.credit-uses li {
  margin-bottom: 3px;
}

/* Botón */
.btn-info {
  margin-top: auto;
  align-self: flex-start;
  background-color: #2f7c3f;
  color: #ffffff;
  border: none;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background-color 0.25s ease, transform 0.2s ease,
    box-shadow 0.25s ease;
  box-shadow: 0 4px 10px rgba(47, 124, 63, 0.3);
}

.btn-info::after {
  content: "›";
  font-size: 1.1rem;
}

.btn-info:hover {
  background-color: #256637;
  transform: translateX(3px);
  box-shadow: 0 6px 15px rgba(47, 124, 63, 0.4);
}

/* Panel detalle */
.credit-detail {
  max-width: 1200px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 22px;
  padding: 24px 24px 26px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  border-top: 5px solid #2f7c3f;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.credit-detail.hidden {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

/* Encabezado del panel */
.detail-header h3 {
  font-size: 1.4rem;
  color: #246b36;
  margin-bottom: 4px;
}

.detail-header p {
  font-size: 0.98rem;
  color: #444;
}

/* Grid interior */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.detail-item {
  background: #f4faf6;
  border-radius: 14px;
  padding: 10px 12px;
}

.detail-item span {
  display: block;
  font-size: 0.82rem;
  text-transform: uppercase;
  color: #5d7f61;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.detail-item p {
  font-size: 0.97rem;
  color: #333;
}

/* Nota final */
.detail-note {
  margin-top: 14px;
  font-size: 0.88rem;
  color: #666;
}

/* Responsivo */
@media (max-width: 1100px) {
  .creditos-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .creditos-wrapper {
    padding: 40px 4% 50px;
  }

  .creditos-grid {
    grid-template-columns: 1fr;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }
}
/* ===== SECCIÓN CRÉDITOS – CAÑAR LTDA. ===== */

.creditos-wrapper {
  padding: 60px 6% 70px;
  background: radial-gradient(circle at top left, #e8f8ef 0%, #ffffff 45%, #f3faf5 100%);
}

/* Encabezado */
.creditos-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 40px;
}

.creditos-header h2 {
  font-size: 2.4rem;
  color: #2f7c3f;
  margin-bottom: 8px;
}

.creditos-header p {
  color: #4a4a4a;
  font-size: 1.05rem;
}

/* GRID de tarjetas */
.creditos-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  max-width: 1200px;
  margin: 0 auto 40px;
}

/* Tarjeta */
.credit-card {
  background: #ffffff;
  border-radius: 50px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

/* Imagen superior */
.credit-img {
  width: 100%;
  height: 380px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 8px;
}

.credit-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.03);
  transition: transform 0.35s ease;
}

.credit-card:hover .credit-img img {
  transform: scale(1.08);
}

/* Hover tarjeta */
.credit-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}

/* Texto tarjeta */
.credit-card h3 {
  font-size: 1.25rem;
  color: #246b36;
  margin-bottom: 3px;
}

.credit-short {
  font-size: 0.98rem;
  color: #555;
}

.credit-uses {
  margin: 4px 0 10px;
  padding-left: 18px;
  color: #4b4b4b;
  font-size: 0.95rem;
}

.credit-uses li {
  margin-bottom: 3px;
}

/* Botón */
.btn-info {
  margin-top: auto;
  align-self: flex-start;
  background-color: #2f7c3f;
  color: #ffffff;
  border: none;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background-color 0.25s ease, transform 0.2s ease,
    box-shadow 0.25s ease;
  box-shadow: 0 4px 10px rgba(47, 124, 63, 0.3);
}

.btn-info::after {
  content: "›";
  font-size: 1.1rem;
}

.btn-info:hover {
  background-color: #256637;
  transform: translateX(3px);
  box-shadow: 0 6px 15px rgba(47, 124, 63, 0.4);
}

/* Panel detalle */
.credit-detail {
  max-width: 1200px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 22px;
  padding: 24px 24px 26px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  border-top: 5px solid #2f7c3f;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.credit-detail.hidden {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

/* Encabezado del panel */
.detail-header h3 {
  font-size: 1.4rem;
  color: #246b36;
  margin-bottom: 4px;
}

.detail-header p {
  font-size: 0.98rem;
  color: #444;
}

/* Grid interior */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.detail-item {
  background: #f4faf6;
  border-radius: 14px;
  padding: 10px 12px;
}

.detail-item span {
  display: block;
  font-size: 0.82rem;
  text-transform: uppercase;
  color: #5d7f61;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.detail-item p {
  font-size: 0.97rem;
  color: #333;
}

/* Bloque asesor WhatsApp */
.asesor-box {
  margin-top: 22px;
  background: #f4fdf7;
  border-radius: 14px;
  padding: 16px 18px;
  border-left: 5px solid #2f7c3f;
}

.asesor-box h4 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  color: #1b5e20;
  font-weight: 700;
}

.asesor-box p {
  margin: 0 0 12px;
  font-size: 0.95rem;
  color: #444;
}

.btn-wpp-asesor {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #25d366;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.98rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
  transition: background 0.2s ease, transform 0.2s ease,
    box-shadow 0.2s ease;
}

.btn-wpp-asesor::before {
  content: "";
  font-size: 1.1rem;
}

.btn-wpp-asesor:hover {
  background: #1ebe57;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

/* Nota final */
.detail-note {
  margin-top: 14px;
  font-size: 0.88rem;
  color: #666;
}

/* Responsivo */
@media (max-width: 1100px) {
  .creditos-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .creditos-wrapper {
    padding: 40px 4% 50px;
  }

  .creditos-grid {
    grid-template-columns: 1fr;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }
}
