/* Ecuador shares NSR-10's design; these rules cover its own content. */
.nec-page .nsr-hero h1 { font-size: clamp(42px, 5.7vw, 78px); letter-spacing: -.06em; }
.ecuador-mark { width: 17px; height: 12px; flex-shrink: 0; background: linear-gradient(#ffce54 50%, #3674b6 50%, #3674b6 75%, #e66464 75%); border-radius: 2px; }
.nec-page .mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.nec-page .text-link { font-size: 13px; font-weight: 650; }
.nec-page .nsr-section .nec-source-note { font-size: 11px; line-height: 1.8; margin-top: 18px; color: var(--muted); }
.nec-page .nsr-section .section-kicker { font-size: 11px; }
.nec-search-results ul { display: grid; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.nec-search-results a { display: block; padding: 10px 13px; background: white; border: 1px solid var(--line); border-radius: 6px; font-size: 12px; font-weight: 600; }
.nec-search-results p { margin-bottom: 8px; }
.nec-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 26px; }
.nec-facts > div { border-top: 2px solid #a2bdb0; padding-top: 14px; }
.nec-facts .mono { font-size: 9px; color: var(--muted); }
.nec-facts strong { display: block; font-size: 15px; line-height: 1.5; margin-top: 7px; }
.nec-page .nec-facts p { font-size: 12px; margin: 8px 0 0; }
.nec-page .nec-pdf-panel { grid-template-columns: 112px minmax(0, 1fr); align-items: start; }
.nec-pdf-cover { display: block; width: 112px; height: auto; border-radius: 3px; box-shadow: 0 6px 16px #12243a20; grid-row: 1 / span 2; }
.nec-page .nec-pdf-panel .pdf-actions { margin-top: 0; }
.nec-document-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-block: 24px; }
.nec-document-list > div { padding: 19px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.nec-document-list .mono { display: inline-block; padding: 4px 8px; border-radius: 4px; color: var(--green); background: #edf3ee; font-size: 11px; margin-bottom: 12px; }
.nec-page .nec-document-list p { font-size: 12px; margin-bottom: 0; }
.nec-elements { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; margin-top: 23px; }
.nec-elements > div { display: flex; gap: 14px; padding: 20px; border: 1px solid var(--line); border-radius: 9px; background: white; }
.nec-elements .mono { flex: 0 0 38px; display: flex; justify-content: center; align-items: center; height: 35px; border-radius: 5px; background: #edf3ee; color: var(--green); font-size: 12px; }
.nec-elements > div:last-child { grid-column: 1/-1; }
.nec-page .nec-elements h3 { margin-top: 0; }
.nec-page .nec-elements p { font-size: 12px; margin: 7px 0 11px; }
.nec-elements a { font-size: 11px; font-weight: 650; }
.nec-inline-callout { display: flex; justify-content: space-between; align-items: center; gap: 24px; border-left: 3px solid #86a88e; background: #edf3ee; padding: 22px; margin-block: 25px; border-radius: 0 7px 7px 0; }
.nec-page .nec-inline-callout h3 { margin: 0; }
.nec-page .nec-inline-callout p { font-size: 12px; margin-bottom: 0; }
.nec-inline-callout a { flex-shrink: 0; }
.nec-calculators { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 24px; align-items: start; }
.nec-calculator { min-width: 0; border: 1px solid var(--line); border-radius: 10px; background: white; overflow: hidden; scroll-margin-top: 100px; }
.nec-calculator-heading { padding: 23px 22px 18px; border-bottom: 1px solid var(--line); }
.nec-calculator-heading .mono { display: block; font-size: 10px; color: var(--green); margin-bottom: 9px; }
.nec-page .nec-calculator-heading h3 { font-size: 18px; }
.nec-page .nec-calculator-heading p { font-size: 12px; margin: 8px 0 0; }
.nec-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; padding: 22px; }
.nec-form-grid label { min-width: 0; }
.nec-form-grid label > span { display: block; font-size: 11px; font-weight: 650; margin-bottom: 7px; }
.nec-form-grid label:nth-child(3) { grid-column: 1/-1; }
.nec-form-grid input, .nec-form-grid select { width: 100%; min-width: 0; min-height: 44px; border: 1px solid #b9cac0; border-radius: 6px; background: white; padding: 10px 12px; color: var(--ink); font-size: 14px; }
.nec-form-grid input[aria-invalid="true"] { border-color: #aa4545; background: #fff6f4; }
.nec-calculator-results { grid-column: 1/-1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 3px; }
.nec-result { min-width: 0; padding: 14px; border-radius: 7px; background: #edf3ee; overflow-wrap: anywhere; }
.nec-result b { display: block; color: var(--muted); font-size: 10px; font-weight: 550; }
.nec-result strong { display: block; color: var(--ink); font-size: 18px; font-variant-numeric: tabular-nums; line-height: 1.4; margin-top: 7px; }
.nec-result:only-child { grid-column: 1/-1; }
.nec-page .nec-calculator-note { padding: 0 22px 20px; font-size: 11px; line-height: 1.7; margin: 0; }
.nec-page .nec-formula { margin: 0 22px 16px; padding: 13px 14px; background: #fafbfd; border-left: 2px solid var(--line); font-family: ui-monospace, monospace; font-size: 11px; line-height: 1.8; }
.nec-page .nec-error { grid-column: 1/-1; color: #8d3434; background: #fff4f0; border: 1px solid #edc9c2; border-radius: 6px; padding: 12px; font-size: 12px; margin: 0; }
.nec-checklist-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-block: 24px 12px; font-size: 12px; }
.nec-checklist-toolbar > span { padding: 5px 11px; border-radius: 20px; color: #325442; background: #edf3ee; }
.nec-checklist-toolbar button { color: var(--muted); background: white; border: 1px solid var(--line); border-radius: 6px; padding: 7px 12px; font-size: 11px; }
.nec-checklist-toolbar button:hover { border-color: #86a88e; color: var(--green); }
.nec-checklist { border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: white; }
.nec-checklist label { display: flex; align-items: flex-start; gap: 12px; padding: 15px 18px; font-size: 13px; line-height: 1.65; cursor: pointer; }
.nec-checklist label + label { border-top: 1px solid var(--line); }
.nec-checklist input { width: 17px; height: 17px; margin: 3px 0 0; flex-shrink: 0; accent-color: var(--green); }
.nec-checklist label:has(input:checked) { background: #f0f6ee; }
.nec-checklist input:checked + span { color: #4b6c58; }
.nec-page #fuentes ul { list-style: none; margin: 22px 0 0; padding: 0; }
.nec-page #fuentes li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.nec-page #fuentes li:last-child { border-bottom: 0; }
@media (max-width: 1050px) {
  .nec-document-list { grid-template-columns: 1fr; }
  .nec-document-list > div { display: flex; align-items: start; gap: 16px; }
  .nec-document-list .mono { flex-shrink: 0; }
  .nec-calculators { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nec-page .nsr-hero h1 { font-size: clamp(39px, 10.6vw, 64px); }
  .nec-page .nsr-hero h1 span { font-size: 29px; }
  .nec-elements { grid-template-columns: 1fr; }
  .nec-elements > div { padding: 17px; }
  .nec-inline-callout { display: block; }
  .nec-inline-callout a { display: inline-block; margin-top: 12px; }
  .nec-page .nec-pdf-panel { grid-template-columns: 75px minmax(0, 1fr); }
  .nec-pdf-cover { width: 75px; grid-row: auto; }
  .nec-page .nec-pdf-panel .pdf-actions { grid-column: 1/-1; }
  .nec-form-grid input, .nec-form-grid select { font-size: 16px; }
  .nec-checklist label { padding: 14px; font-size: 12px; }
  .nec-page .nsr-footer nav { row-gap: 12px; }
}
@media (max-width: 420px) {
  .nec-facts { grid-template-columns: 1fr; gap: 16px; }
  .nec-facts strong { margin-top: 3px; }
  .nec-page .nec-facts p { margin-top: 4px; }
  .nec-form-grid { padding: 18px; gap: 12px; }
  .nec-result { padding: 12px; }
  .nec-result strong { font-size: 17px; }
}
@media print {
  .nec-page .guide-sidebar, .nec-page .hero-cta-row, .nec-page .quick-links, .nec-page #buscar, .nec-page #structacad, .nec-page .pdf-actions { display: none; }
  .nec-page .guide-layout { display: block; }
  .nec-page .nec-calculators { display: block; }
  .nec-page .nec-calculator { break-inside: avoid; margin-top: 18px; }
}
