/* CTA compacto en sidebar */
.cn-fundae-interest-cta {
  margin: 16px 0 20px;
  padding: 14px;
  border: 1px solid #d7e2f7;
  border-radius: 12px;
  background: #fef2d5;
}

.cn-fundae-interest-cta__text {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.45;
  color: #22324d;
}

.cn-fundae-interest-cta__button {
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: #e2a71b;
  color: #fff;
  font-size: 15px;
  line-height: 1.2;
  padding: 12px 14px;
  cursor: pointer;
}

.cn-fundae-interest-cta__button:hover,
.cn-fundae-interest-cta__button:focus {
  background: #616f5c;
}

/* Modal flotante real */
.cn-fundae-interest-modal,
[data-cn-fundae-interest-modal] {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
}

.cn-fundae-interest-modal.is-open,
[data-cn-fundae-interest-modal].is-open {
  display: block;
}

.cn-fundae-interest-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 24, 48, 0.55);
}

.cn-fundae-interest-modal__viewport {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  padding: 24px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cn-fundae-interest-modal__dialog {
  position: relative;
  width: min(100%, 640px);
  max-height: min(92vh, 860px);
  overflow: auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
  padding: 28px 26px 24px;
}

.cn-fundae-interest-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: #eef3ff;
  color: #1f2c42;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.cn-fundae-interest-modal__title {
  margin: 0 36px 12px 0;
  font-size: 24px;
  line-height: 1.25;
  color: #142138;
}

.cn-fundae-interest-modal__intro {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.55;
  color: #2a3a52;
}

.cn-fundae-interest-field {
  margin: 0 0 12px;
}

.cn-fundae-interest-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #1c2d47;
}

.cn-fundae-interest-field input {
  width: 100%;
  border: 1px solid #c6d2e8;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 15px;
  line-height: 1.3;
  color: #122033;
}

.cn-fundae-interest-field__help {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: #4d5f79;
}

.cn-fundae-interest-feedback,
[data-cn-fundae-interest-feedback] {
  display: none;
  margin-top: 12px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.45;
}

.cn-fundae-interest-feedback[data-state="success"],
[data-cn-fundae-interest-feedback][data-state="success"] {
  background: #ecfdf3;
  border: 1px solid #16a34a;
  color: #14532d;
}

.cn-fundae-interest-feedback[data-state="error"],
[data-cn-fundae-interest-feedback][data-state="error"] {
  background: #fef2f2;
  border: 1px solid #dc2626;
  color: #7f1d1d;
}

[data-cn-fundae-interest-submit] {
  margin-top: 8px;
  min-height: 42px;
}

[data-cn-fundae-interest-submit][data-processing="true"] {
  opacity: .7;
  cursor: wait;
}

body.cn-fundae-interest-modal-open {
  overflow: hidden;
}

@media (max-width: 767px) {
  .cn-fundae-interest-modal__viewport {
    padding: 16px;
  }

  .cn-fundae-interest-modal__dialog {
    width: calc(100vw - 32px);
    padding: 22px 18px 18px;
  }

  .cn-fundae-interest-modal__title {
    font-size: 21px;
  }
}

.cn-fundae-interest-field--checkbox {
  margin-top: 14px;
}

.cn-fundae-interest-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.cn-fundae-interest-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex: 0 0 auto;
}

.cn-fundae-interest-checkbox span {
  font-size: 13px;
  line-height: 1.45;
  color: #22324d;
}

.cn-sidebar-price-card {
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #f4d58d;
  background: linear-gradient(135deg, #fff8e8 0%, #fff2cb 100%);
}

.cn-sidebar-price-card__label {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #6e4f15;
}


