/* ── Meza Calculator ──────────────────────────────────── */
.meza-calc {
  font-family: inherit;
  color: var(--dark, #14301e);
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem 3rem;
}

/* layout */
.mc-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 768px) {
  .mc-layout { grid-template-columns: 1fr; }
}

/* ── tipo de crédito ─────────────────────────────────── */
.mc-type-learn {
  display: inline-flex;
  align-self: flex-start;
  margin-top: 6px;
  font-size: .78rem;
  padding: 10px 16px;
}
.mc-type-learn.is-hidden { display: none; }

.mc-field--type label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--dark, #14301e);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.mc-type-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .35rem;
}

.mc-pill {
  padding: .4rem .9rem;
  border: 1.5px solid #d1d5db;
  border-radius: 999px;
  background: #fff;
  color: #6b7280;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .18s;
  font-family: inherit;
  white-space: nowrap;
}
.mc-pill:hover {
  border-color: var(--green, #2d6a3f);
  color: var(--green, #2d6a3f);
}
.mc-pill.active {
  background: var(--green, #2d6a3f);
  border-color: var(--green, #2d6a3f);
  color: #fff;
}

.mc-type-note {
  margin: .5rem 0 0;
  font-size: .8rem;
  color: #6b7280;
  line-height: 1.5;
  min-height: 1.2em;
}

/* ── inputs ──────────────────────────────────────────── */
.mc-inputs { display: flex; flex-direction: column; gap: 1.1rem; }

.mc-field { display: flex; flex-direction: column; gap: .35rem; }
.mc-field.is-hidden,
.mc-breakdown__row.is-hidden { display: none; }

.mc-field label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--dark, #14301e);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.mc-field-hint {
  margin: .3rem 0 0;
  font-size: .76rem;
  color: #9ca3af;
  line-height: 1.5;
}

.mc-hint {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: #6b7280;
  font-size: .8rem;
}

.mc-input-wrap {
  display: flex;
  align-items: center;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  transition: border-color .2s;
}
.mc-input-wrap:focus-within {
  border-color: var(--green, #2d6a3f);
  box-shadow: 0 0 0 3px rgba(45,106,63,.12);
}

.mc-input-wrap span {
  padding: 0 .75rem;
  background: #f3f4f6;
  color: #6b7280;
  font-size: .9rem;
  font-weight: 600;
  border-right: 1.5px solid #d1d5db;
  white-space: nowrap;
  align-self: stretch;
  display: flex;
  align-items: center;
}
.mc-input-wrap.mc-suffix span {
  border-right: none;
  border-left: 1.5px solid #d1d5db;
}

.mc-input-wrap input,
.mc-field select {
  border: none;
  outline: none;
  padding: .6rem .75rem;
  font-size: 1rem;
  width: 100%;
  background: transparent;
  color: var(--dark, #14301e);
  font-family: inherit;
}
.mc-field select {
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  padding: .6rem .75rem;
  background: #fff;
  cursor: pointer;
  transition: border-color .2s;
}
.mc-field select:focus {
  outline: none;
  border-color: var(--green, #2d6a3f);
  box-shadow: 0 0 0 3px rgba(45,106,63,.12);
}

.mc-down-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}

/* print button */
.mc-btn-print {
  margin-top: .5rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem 1.25rem;
  border: 2px solid var(--green, #2d6a3f);
  border-radius: 8px;
  background: transparent;
  color: var(--green, #2d6a3f);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, color .2s;
  font-family: inherit;
}
.mc-btn-print:hover {
  background: var(--green, #2d6a3f);
  color: #fff;
}

/* ── result card ──────────────────────────────────────── */
.mc-result { position: sticky; top: 6rem; }

.mc-result__card {
  background: var(--green, #2d6a3f);
  color: #fff;
  border-radius: 16px;
  padding: 2rem 1.75rem;
  box-shadow: 0 8px 32px rgba(45,106,63,.22);
}

.mc-result__label {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  opacity: .8;
  margin: 0 0 .35rem;
}
.mc-result__amount {
  font-size: 2.4rem;
  font-weight: 800;
  margin: 0 0 1.5rem;
  line-height: 1.1;
}
.mc-result__amount small {
  font-size: 1rem;
  font-weight: 400;
  opacity: .75;
}

.mc-breakdown { border-top: 1px solid rgba(255,255,255,.2); padding-top: 1rem; }

.mc-breakdown__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .45rem 0;
  font-size: .9rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.mc-breakdown__row:last-child { border-bottom: none; }
.mc-breakdown__row span { opacity: .85; }
.mc-breakdown__row strong { font-weight: 700; }
.mc-breakdown__row--total {
  margin-top: .5rem;
  padding-top: .75rem;
  border-top: 1px solid rgba(255,255,255,.3);
  font-size: .95rem;
}
.mc-breakdown__row--total strong { font-size: 1rem; }

.mc-disclaimer {
  margin: 1.25rem 0 0;
  font-size: .72rem;
  opacity: .65;
  line-height: 1.5;
}

/* ── CTA debajo del resultado ─────────────────────────── */
.mc-result-cta {
  margin-top: 1.25rem;
  background: var(--cream, #f5f0e8);
  border: 1.5px solid var(--green, #2d6a3f);
  border-radius: 14px;
  padding: 1.5rem 1.75rem;
  text-align: center;
}
.mc-result-cta h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark, #14301e);
  margin: 0 0 .5rem;
}
.mc-result-cta p {
  font-size: .88rem;
  color: #4b5563;
  margin: 0 0 1.1rem;
  line-height: 1.55;
}
.mc-cta-btn {
  display: inline-block;
  padding: .65rem 1.75rem;
  background: var(--red, #7b1a1a);
  color: #fff;
  border-radius: 8px;
  font-size: .92rem;
  font-weight: 700;
  text-decoration: none;
  transition: opacity .2s;
}
.mc-cta-btn:hover { opacity: .88; color: #fff; }

/* ── glossary (oculto — descripciones movidas a los campos) ── */
.mc-glossary { display: none; }

/* ── glossary ─────────────────────────────────────────── */
.mc-glossary {
  margin-top: 3rem;
  border-top: 2px solid var(--green, #2d6a3f);
  padding-top: 2rem;
}
.mc-glossary h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 1rem;
  color: var(--dark, #14301e);
}

.mc-gloss-item {
  border-bottom: 1px solid #e5e7eb;
}
.mc-gloss-btn {
  width: 100%;
  background: none;
  border: none;
  padding: .9rem .25rem;
  text-align: left;
  font-size: .95rem;
  font-weight: 600;
  color: var(--dark, #14301e);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: inherit;
  transition: color .2s;
}
.mc-gloss-btn:hover { color: var(--green, #2d6a3f); }
.mc-gloss-icon {
  font-size: 1.3rem;
  line-height: 1;
  color: var(--green, #2d6a3f);
  transition: transform .2s;
}
.mc-gloss-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.mc-gloss-panel p {
  margin: 0;
  padding: 0 .25rem .85rem;
  font-size: .9rem;
  color: #4b5563;
  line-height: 1.6;
}

/* área de impresión — solo se usa como contenedor para jsPDF, no se muestra */
.mc-print-only { display: none; }
