/* ==========================================================================
   IC SIMULADOR DE CRÉDITO – Estilos
   ========================================================================== */

/* ── Variables del simulador ── */
.ics-wrapper,
.ics-plan-body {
  --ics-primary: #005BBB;
  --ics-secondary: #28ABE1;
  --ics-accent: #FF6319;
  --ics-dark: #27235F;
  --ics-gray: #6b7280;
  --ics-gray-light: #f1f5f9;
  --ics-white: #ffffff;
  --ics-border: #e2e8f0;
  --ics-radius: 14px;
  --ics-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
  --ics-font-heading: 'MetronicPro', 'Lato', sans-serif;
  --ics-font-body: 'Lato', sans-serif;
}

/* ── Reset Wrapper ── */
.ics-wrapper {
  max-width: 480px;
  margin: 0 auto;
  font-family: var(--ics-font-body);
  color: #1e293b;
  -webkit-font-smoothing: antialiased;
}

.ics-wrapper *,
.ics-wrapper *::before,
.ics-wrapper *::after {
  box-sizing: border-box;
}

/* ══════════════════════════════════════════
   CARD BASE
   ══════════════════════════════════════════ */
.ics-card {
  background: var(--ics-white);
  border-radius: var(--ics-radius);
  padding: 28px 24px;
  box-shadow: var(--ics-shadow);
  border: 1px solid var(--ics-border);
}



.ics-results-card {
  margin-top: 18px;
  border-top: 4px solid var(--ics-secondary);
  animation: icsSlideUp 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes icsSlideUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ══════════════════════════════════════════
   FORM ELEMENTS
   ══════════════════════════════════════════ */
.ics-title {
  margin: 0 0 22px 0;
  line-height: 1.2;
}

.ics-field {
  margin-bottom: 18px;
}

.ics-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
  font-family: var(--ics-font-heading);
}

.ics-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--ics-white);
  border: 1.5px solid var(--ics-border);
  border-radius: 10px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.ics-input-wrap:focus-within {
  border-color: var(--ics-primary);
  box-shadow: 0 0 0 3px rgba(0, 91, 187, 0.1);
}

.ics-input-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 42px;
  height: 100%;
  color: var(--ics-gray);
  font-size: 15px;
  font-weight: 700;
  pointer-events: none;
}

.ics-input {
  flex: 1;
  border: none !important;
  background: transparent;
  padding: 13px 14px 13px 0 !important;
  font-size: 16px;
  font-weight: 600;
  outline: none;
  width: 100%;
  -moz-appearance: textfield;
}

.ics-input::-webkit-outer-spin-button,
.ics-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.ics-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* ══════════════════════════════════════════
   BUTTON – SIMULAR
   ══════════════════════════════════════════ */
.ics-btn-simular {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 6px;
  padding: 15px 24px;
  border: none;
  border-radius: 999px;
  background: var(--color-primary);
  color: var(--color-white);
  /* font-family: var(--ics-font-heading); */
  font-size: var(--fs-h6);
  font-weight: 800;
  /* letter-spacing: 0.5px; */
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 16px rgba(0, 91, 187, 0.35);
}

.ics-btn-simular:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 91, 187, 0.45);
}

.ics-btn-simular:active {
  transform: translateY(0);
}

.ics-btn-arrow {
  font-size: 18px;
  transition: transform 0.2s ease;
}

.ics-btn-simular:hover .ics-btn-arrow {
  transform: translateX(3px);
}

/* ══════════════════════════════════════════
   RESULTS
   ══════════════════════════════════════════ */
.ics-results-title {
  font-family: var(--ics-font-heading);
  font-size: 17px;
  font-weight: 800;
  color: var(--ics-dark);
  margin: 0 0 18px 0;
  text-align: center;
}

.ics-results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.ics-result-item {
  background: var(--ics-gray-light);
  border-radius: 12px;
  padding: 16px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ics-result-label {
  font-size: 12px;
  color: var(--ics-gray);
  font-weight: 600;
  line-height: 1.3;
}

.ics-result-value {
  font-family: var(--ics-font-heading);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
}

.ics-val-accent {
  color: var(--ics-accent);
}

.ics-val-dark {
  color: var(--ics-dark);
}

.ics-disclaimer {
  text-align: center;
  font-size: 12px;
  font-style: italic;
  color: var(--ics-gray);
  margin: 16px 0 0;
}

/* ── Botón "Ver Plan de Pagos" ── */
.ics-btn-plan {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 16px;
  padding: 13px 20px;
  border: 2px solid var(--ics-secondary);
  border-radius: 999px;
  background: transparent;
  color: var(--ics-primary) !important;
  font-family: var(--ics-font-heading);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-decoration: none !important;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.ics-btn-plan:hover {
  background: var(--ics-secondary);
  color: var(--ics-white) !important;
  transform: translateY(-2px);
}

.ics-btn-plan svg {
  flex-shrink: 0;
}

/* ══════════════════════════════════════════
   RESPONSIVE – SHORTCODE
   ══════════════════════════════════════════ */
@media (max-width: 520px) {
  .ics-wrapper {
    max-width: 100%;
  }

  .ics-card {
    padding: 22px 18px;
  }

  .ics-result-value {
    font-size: 15px;
  }

  .ics-result-label {
    font-size: 11px;
  }
}


/* ══════════════════════════════════════════════════════════════════════════════
   PLAN DE PAGOS – PÁGINA COMPLETA
   ══════════════════════════════════════════════════════════════════════════════ */
.ics-plan-body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #f0f6fc 0%, #e8eef6 100%);
  font-family: var(--ics-font-body);
  color: #1e293b;
  -webkit-font-smoothing: antialiased;
}

.ics-plan-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

/* ── Header ── */
.ics-plan-header {
  padding: 28px 0;
  margin-bottom: 28px;
}

.ics-plan-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.ics-plan-logo {
  font-family: var(--ics-font-heading);
  font-size: 22px;
  font-weight: 800;
  color: var(--ics-primary);
  margin: 0;
}

.ics-plan-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 18px;
  border-radius: 999px;
  background: var(--ics-primary);
  color: var(--ics-white);
  font-family: var(--ics-font-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

/* ── Summary Cards ── */
.ics-plan-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

.ics-plan-summary-card {
  background: var(--ics-white);
  border-radius: 14px;
  padding: 20px 16px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--ics-border);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ics-plan-summary-highlight {
  background: linear-gradient(135deg, var(--ics-primary) 0%, var(--ics-dark) 100%);
  border-color: transparent;
}

.ics-plan-summary-highlight .ics-plan-summary-label {
  color: rgba(255, 255, 255, 0.8);
}

.ics-plan-summary-highlight .ics-plan-summary-value {
  color: var(--ics-white);
}

.ics-plan-summary-label {
  font-size: 12px;
  color: var(--ics-gray);
  font-weight: 600;
}

.ics-plan-summary-value {
  font-family: var(--ics-font-heading);
  font-size: 19px;
  font-weight: 800;
  color: var(--ics-dark);
}

/* ── Table ── */
.ics-plan-table-wrap {
  background: var(--ics-white);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
  border: 1px solid var(--ics-border);
  overflow: hidden;
}

.ics-plan-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.ics-plan-table thead {
  background: linear-gradient(135deg, var(--ics-primary) 0%, var(--ics-dark) 100%);
}

.ics-plan-table thead th {
  padding: 14px 18px;
  color: var(--ics-white);
  font-family: var(--ics-font-heading);
  font-weight: 700;
  font-size: 13px;
  text-align: right;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.ics-plan-table thead th:first-child {
  text-align: center;
  border-radius: 0;
}

.ics-plan-table tbody tr {
  transition: background 0.15s ease;
}

.ics-plan-table tbody tr:nth-child(even) {
  background: #f8fafc;
}

.ics-plan-table tbody tr:hover {
  background: #eef4fb;
}

.ics-plan-table tbody td {
  padding: 12px 18px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  border-bottom: 1px solid #f1f5f9;
}

.ics-plan-table tbody td.ics-col-num {
  text-align: center;
  font-weight: 700;
  color: var(--ics-primary);
}

.ics-plan-table tbody td.ics-col-cuota {
  font-weight: 700;
  color: var(--ics-accent);
}

.ics-plan-table tbody tr:last-child td {
  border-bottom: none;
}

/* ── Footer ── */
.ics-plan-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
  padding: 0 4px;
}

.ics-plan-footer p {
  font-size: 13px;
  font-style: italic;
  color: var(--ics-gray);
  margin: 0;
}

.ics-btn-print {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border: 2px solid var(--ics-primary);
  border-radius: 999px;
  background: transparent;
  color: var(--ics-primary);
  font-family: var(--ics-font-heading);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.ics-btn-print:hover {
  background: var(--ics-primary);
  color: var(--ics-white);
}

/* ── Responsive – Plan Page ── */
@media (max-width: 680px) {
  .ics-plan-summary {
    grid-template-columns: repeat(2, 1fr);
  }

  .ics-plan-summary-value {
    font-size: 16px;
  }

  .ics-plan-table thead th,
  .ics-plan-table tbody td {
    padding: 10px 10px;
    font-size: 12px;
  }

  .ics-plan-page {
    padding: 0 12px 40px;
  }
}

@media (max-width: 480px) {
  .ics-plan-summary {
    grid-template-columns: 1fr 1fr;
  }

  .ics-plan-table thead th,
  .ics-plan-table tbody td {
    padding: 8px 6px;
    font-size: 11px;
  }
}

/* ── Print ── */
@media print {
  .ics-plan-body {
    background: #fff;
  }

  .ics-plan-footer .ics-btn-print {
    display: none;
  }

  .ics-plan-table-wrap {
    box-shadow: none;
    border: 1px solid #ccc;
  }

  .ics-plan-summary-card {
    box-shadow: none;
    border: 1px solid #ccc;
  }

  .ics-plan-header {
    padding: 10px 0;
    margin-bottom: 16px;
  }
}