.afr-ft-notice {
  margin: 12px 0;
  padding: 12px 14px;
  border: 1px solid #c83232;
  border-left-width: 4px;
  border-radius: 8px;
  background: #fff4f4;
  color: #7d1515;
  font-size: .95rem;
  line-height: 1.45;
}

.afr-ft-invalid {
  border-color: #c83232 !important;
  box-shadow: 0 0 0 2px rgba(200, 50, 50, .14) !important;
}

.afr-ft-field-note {
  display: block;
  margin-top: 6px;
  color: #655d6e;
  font-size: .79rem;
  line-height: 1.35;
}

body.afr-tool-page #primary {
  width: min(100%, 1240px) !important;
  max-width: 1240px !important;
  margin-inline: auto !important;
  float: none !important;
}

body.afr-tool-page #primary > article,
body.afr-tool-page #primary .entry-content {
  width: 100% !important;
  max-width: none !important;
}

body.afr-tool-page .elementor {
  width: calc(100% - 32px) !important;
  max-width: 1200px !important;
  margin-inline: auto !important;
}

body.page-id-596 .pf-compare,
body.page-id-596 .goal-calc {
  width: 100% !important;
  max-width: 1080px !important;
  margin-inline: auto !important;
}

body.page-id-717 .cheque-calculadora {
  width: 100% !important;
  max-width: 1000px !important;
  margin-inline: auto !important;
}

.afr-ft-chart-frame {
  position: relative;
  width: 100%;
  height: clamp(310px, 38vw, 430px);
  min-height: 310px;
  max-height: 430px;
  margin-top: 12px;
}

.afr-ft-chart-frame canvas {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 430px !important;
}

.afr-ft-methodology {
  margin: 18px 0 28px;
  border: 1px solid rgba(35, 20, 68, .14);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.afr-ft-methodology summary {
  padding: 14px 18px;
  color: #24143f;
  font-weight: 700;
  cursor: pointer;
  background: #f8f6fb;
}

.afr-ft-methodology > div {
  padding: 4px 18px 16px;
  color: #3f3a48;
  line-height: 1.55;
}

.afr-ft-methodology li {
  margin: 7px 0;
}

.afr-ft-methodology a {
  color: #5e2b97;
  font-weight: 650;
}

.afr-ft-updated,
.afr-ft-result-note {
  color: #6d6676;
  font-size: .88rem;
}

.afr-ft-unreachable {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-height: 76px;
  justify-content: center;
  padding: 13px;
  border-radius: 9px;
  background: #fff8e1;
  color: #5a4300;
}

.afr-ft-cost-panel {
  margin: 18px 0;
  padding: 18px;
  border: 1px solid rgba(35, 20, 68, .14);
  border-radius: 12px;
  background: #f9f8fb;
}

.afr-ft-cost-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  color: #24143f;
}

.afr-ft-cost-heading span {
  color: #6d6676;
  font-size: .85rem;
}

.afr-ft-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.afr-cheque-main-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
  margin-bottom: 20px;
}

.afr-cheque-main-fields .form-row {
  margin: 0 !important;
}

.afr-cheque-main-fields input {
  width: 100% !important;
}

.afr-ft-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #3f3a48;
  font-size: .9rem;
  font-weight: 650;
}

.afr-ft-grid input,
.afr-ft-grid select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #cbc5d2;
  border-radius: 8px;
  background: #fff;
}

.afr-ft-sgr-panel {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #ddd6e5;
}

.afr-ft-sgr-panel[hidden],
#afr-guarantee-field[hidden] {
  display: none !important;
}

.afr-ft-cost-panel > p {
  margin: 13px 0 0;
  color: #6d6676;
  font-size: .86rem;
  line-height: 1.45;
}

.segmento-btn[aria-pressed="true"] {
  box-shadow: 0 0 0 3px rgba(94, 43, 151, .18);
}

.afr-ft-cheque-result {
  margin-top: 22px;
  padding: 0 !important;
  border: 1px solid rgba(35, 20, 68, .14);
  border-radius: 14px !important;
  background: #fff !important;
  overflow: hidden;
}

.afr-ft-result-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  padding: 20px;
  background: linear-gradient(135deg, #24143f, #5e2b97);
  color: #fff;
}

.afr-ft-result-head div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.afr-ft-result-head small,
.afr-ft-result-head span {
  color: rgba(255, 255, 255, .82);
}

.afr-ft-result-head strong {
  color: #fff;
  font-size: clamp(1.55rem, 4vw, 2.15rem);
}

.afr-ft-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: #e8e3ee;
}

.afr-ft-result-grid > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 15px 18px;
  background: #fff;
}

.afr-ft-result-grid small {
  color: #6d6676;
}

.afr-ft-cheque-result h4,
.afr-ft-breakdown,
.afr-ft-result-note {
  margin-left: 20px;
  margin-right: 20px;
}

.afr-ft-cheque-result h4 {
  margin-top: 22px;
  color: #24143f;
}

.afr-ft-breakdown {
  margin-bottom: 18px;
}

.afr-ft-breakdown > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid #eeeaf2;
}

.afr-ft-breakdown dt,
.afr-ft-breakdown dd {
  margin: 0;
}

.afr-ft-breakdown dd {
  font-weight: 700;
  text-align: right;
}

.afr-ft-breakdown .afr-ft-total {
  margin-top: 4px;
  border-bottom: 0;
  color: #24143f;
  font-size: 1.02rem;
}

.afr-ft-result-note {
  margin-bottom: 20px;
}

@media (max-width: 700px) {
  body.afr-tool-page .elementor {
    width: calc(100% - 20px) !important;
  }

  .afr-ft-chart-frame {
    height: 290px;
    min-height: 290px;
  }

  .afr-cheque-main-fields,
  .afr-ft-grid,
  .afr-ft-result-grid {
    grid-template-columns: 1fr;
  }

  .afr-ft-cost-heading,
  .afr-ft-result-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Calculadoras de préstamos y opciones */
body.afr-ft-loan-page #content > .ast-container,
body.afr-ft-options-page #content > .ast-container {
  display: block;
  width: 100%;
  max-width: none;
  padding: 0 20px;
}

body.afr-ft-loan-page #primary,
body.afr-ft-options-page #primary {
  width: 100% !important;
  max-width: 1320px !important;
  margin: 34px auto !important;
  padding: 0 !important;
  float: none !important;
}

body.afr-ft-loan-page #primary > article,
body.afr-ft-options-page #primary > article,
body.afr-ft-loan-page #primary .entry-content,
body.afr-ft-options-page #primary .entry-content {
  width: 100% !important;
  max-width: none !important;
}

body.afr-ft-loan-page .entry-content,
body.afr-ft-options-page .entry-content {
  padding: clamp(16px, 2.6vw, 34px) !important;
}

.afr-ft-app {
  --afr-ft-purple: #31064c;
  --afr-ft-purple-2: #5e2b97;
  --afr-ft-gold: #f5c65b;
  --afr-ft-ink: #261e31;
  --afr-ft-muted: #6d6676;
  --afr-ft-line: #e5deeb;
  width: 100%;
  color: var(--afr-ft-ink);
  font: inherit;
  line-height: 1.55;
}

.afr-ft-app * {
  box-sizing: border-box;
}

.afr-ft-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(30px, 5vw, 58px);
  border-radius: 24px;
  background: radial-gradient(circle at 92% 4%, rgba(127, 67, 159, .82), transparent 38%), var(--afr-ft-purple);
  color: #fff;
}

.afr-ft-hero::after {
  position: absolute;
  width: 260px;
  height: 260px;
  right: -105px;
  bottom: -150px;
  border: 1px solid rgba(245, 198, 91, .45);
  border-radius: 50%;
  content: "";
}

.afr-ft-hero h1 {
  max-width: 820px;
  margin: 12px 0 14px !important;
  color: #fff !important;
  font-size: clamp(2rem, 4vw, 3.35rem) !important;
  letter-spacing: -.035em;
}

.afr-ft-hero p {
  max-width: 790px;
  margin: 0;
  color: #eadff0;
  font-size: clamp(1rem, 1.7vw, 1.16rem);
}

.afr-ft-back {
  display: inline-block;
  margin-bottom: 25px;
  color: #fff !important;
  font-size: .84rem;
  font-weight: 750;
  text-decoration: none !important;
}

.afr-ft-eyebrow,
.afr-ft-section-title span {
  color: var(--afr-ft-gold);
  font-size: .7rem;
  font-weight: 850;
  letter-spacing: .13em;
}

.afr-ft-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.afr-ft-hero-tags span {
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, .27);
  border-radius: 999px;
  color: #f4edf7;
  font-size: .76rem;
}

.afr-ft-workspace {
  display: grid;
  grid-template-columns: minmax(320px, .82fr) minmax(0, 1.18fr);
  gap: 22px;
  margin: 24px 0;
}

.afr-ft-input-panel,
.afr-ft-output-panel,
.afr-ft-wide-panel {
  min-width: 0;
  padding: clamp(20px, 2.5vw, 30px);
  border: 1px solid var(--afr-ft-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 15px 40px rgba(49, 6, 76, .07);
}

.afr-ft-output-panel {
  background: #fbf9fc;
}

.afr-ft-wide-panel {
  margin: 24px 0;
}

.afr-ft-section-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.afr-ft-section-title h2,
.afr-ft-section-title h3 {
  margin: 4px 0 0 !important;
  color: var(--afr-ft-purple) !important;
  line-height: 1.2;
}

.afr-ft-section-title h2 {
  font-size: clamp(1.35rem, 2.1vw, 1.75rem) !important;
}

.afr-ft-section-title h3 {
  font-size: 1.2rem !important;
}

.afr-ft-section-title p {
  max-width: 350px;
  margin: 2px 0 0;
  color: var(--afr-ft-muted);
  font-size: .82rem;
  text-align: right;
}

.afr-ft-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.afr-ft-form-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  color: #44394e;
  font-size: .84rem;
  font-weight: 720;
}

.afr-ft-form-grid input,
.afr-ft-form-grid select {
  width: 100%;
  min-height: 46px;
  margin: 0;
  padding: 9px 11px;
  border: 1px solid #cfc5d6 !important;
  border-radius: 8px;
  background: #fff;
  color: var(--afr-ft-ink);
  font: inherit;
}

.afr-ft-form-grid input:focus,
.afr-ft-form-grid select:focus {
  border-color: var(--afr-ft-purple-2) !important;
  box-shadow: 0 0 0 3px rgba(94, 43, 151, .13);
  outline: none;
}

.afr-ft-span-2 {
  grid-column: 1 / -1;
}

.afr-ft-input-details {
  margin: 18px 0;
  border: 1px solid var(--afr-ft-line);
  border-radius: 11px;
  background: #f8f5fa;
}

.afr-ft-input-details summary {
  padding: 13px 15px;
  color: var(--afr-ft-purple);
  font-size: .9rem;
  font-weight: 780;
  cursor: pointer;
}

.afr-ft-input-details .afr-ft-form-grid {
  padding: 5px 15px 15px;
}

.afr-ft-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 0 15px 16px;
  color: #514858;
  font-size: .83rem;
}

.afr-ft-check input {
  width: 17px;
  height: 17px;
  margin: 3px 0 0;
  flex: 0 0 auto;
}

.afr-ft-actions {
  display: flex;
  gap: 9px;
  margin-top: 18px;
}

.afr-ft-app button {
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 8px !important;
  font: inherit;
  font-size: .88rem;
  font-weight: 780;
  cursor: pointer;
}

.afr-ft-primary {
  border: 1px solid var(--afr-ft-purple) !important;
  background: var(--afr-ft-purple) !important;
  color: #fff !important;
}

.afr-ft-primary:hover {
  background: var(--afr-ft-purple-2) !important;
}

.afr-ft-secondary,
.afr-ft-text-button {
  border: 1px solid #d5c9de !important;
  background: #fff !important;
  color: var(--afr-ft-purple) !important;
}

.afr-ft-text-button {
  min-height: auto !important;
  padding: 7px 10px !important;
  font-size: .77rem !important;
}

.afr-ft-fine {
  margin: 14px 0 0;
  color: var(--afr-ft-muted);
  font-size: .78rem;
}

.afr-ft-summary-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 22px;
}

.afr-ft-summary-cards article {
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--afr-ft-line);
  border-radius: 11px;
  background: #fff;
}

.afr-ft-summary-cards small,
.afr-ft-summary-cards strong,
.afr-ft-summary-cards span {
  display: block;
}

.afr-ft-summary-cards small {
  color: var(--afr-ft-muted);
  font-size: .72rem;
}

.afr-ft-summary-cards strong {
  margin: 7px 0 4px;
  color: var(--afr-ft-purple);
  font-size: clamp(1.02rem, 2vw, 1.32rem);
  overflow-wrap: anywhere;
}

.afr-ft-summary-cards span {
  color: #766e7c;
  font-size: .7rem;
  line-height: 1.35;
}

.afr-ft-two-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.afr-ft-two-columns h3,
.afr-ft-greeks h3 {
  color: var(--afr-ft-purple);
  font-size: 1rem;
}

.afr-ft-two-columns .afr-ft-breakdown {
  margin: 0;
}

.afr-ft-limit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 22px;
}

.afr-ft-limit-grid > div {
  padding: 14px 15px;
  border-radius: 10px;
  background: #eee8f3;
}

.afr-ft-limit-grid small,
.afr-ft-limit-grid strong {
  display: block;
}

.afr-ft-limit-grid small {
  color: var(--afr-ft-muted);
  font-size: .72rem;
}

.afr-ft-limit-grid strong {
  margin-top: 5px;
  color: var(--afr-ft-purple);
  font-size: 1.15rem;
}

.afr-ft-warning {
  padding: 12px 14px;
  border-left: 4px solid #c28a00;
  border-radius: 7px;
  background: #fff7dc;
  color: #5c4500;
  font-size: .82rem;
}

.afr-ft-greeks {
  margin-top: 22px;
  padding-top: 19px;
  border-top: 1px solid var(--afr-ft-line);
}

.afr-ft-table-scroll {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--afr-ft-line);
  border-radius: 11px;
  background: #fff;
}

.afr-ft-table-scroll table {
  display: table !important;
  width: 100%;
  min-width: 760px;
  margin: 0;
  border: 0;
  border-collapse: collapse;
  white-space: nowrap;
}

.afr-ft-table-scroll th,
.afr-ft-table-scroll td {
  padding: 12px 11px;
  border: 0;
  border-bottom: 1px solid #eee9f1;
  font-size: .78rem;
  text-align: right;
}

.afr-ft-table-scroll th {
  background: #f7f3f9;
  color: #5f5467;
  font-size: .68rem;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.afr-ft-table-scroll th:first-child,
.afr-ft-table-scroll td:first-child {
  text-align: left;
}

.afr-ft-greeks .afr-ft-table-scroll table {
  min-width: 580px;
  white-space: normal;
}

.afr-ft-greeks .afr-ft-table-scroll th,
.afr-ft-greeks .afr-ft-table-scroll td {
  text-align: left;
}

.afr-ft-greeks .afr-ft-table-scroll td:nth-child(2) {
  color: var(--afr-ft-purple);
  font-weight: 800;
  white-space: nowrap;
}

.afr-ft-greeks .afr-ft-table-scroll th span {
  color: var(--afr-ft-purple-2);
}

.afr-ft-option-chart {
  height: clamp(330px, 38vw, 470px);
  max-height: 470px;
  margin-top: 8px;
}

.afr-ft-app + .afr-newsletter {
  margin-top: 46px;
}

@media (max-width: 980px) {
  .afr-ft-workspace {
    grid-template-columns: 1fr;
  }

  .afr-ft-two-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  body.afr-ft-loan-page #content > .ast-container,
  body.afr-ft-options-page #content > .ast-container {
    padding: 0 10px;
  }

  body.afr-ft-loan-page #primary,
  body.afr-ft-options-page #primary {
    margin: 18px auto !important;
  }

  .afr-ft-hero {
    padding: 28px 22px;
    border-radius: 17px;
  }

  .afr-ft-back {
    margin-bottom: 20px;
  }

  .afr-ft-form-grid,
  .afr-ft-summary-cards,
  .afr-ft-limit-grid {
    grid-template-columns: 1fr;
  }

  .afr-ft-span-2 {
    grid-column: auto;
  }

  .afr-ft-actions {
    flex-direction: column;
  }

  .afr-ft-actions button {
    width: 100%;
  }

  .afr-ft-section-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .afr-ft-section-title p {
    max-width: none;
    text-align: left;
  }

  .afr-ft-result-head {
    align-items: flex-start;
    flex-direction: column;
  }
}
