@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@600;700;800&display=swap");

:root {
  --ink: #14221c;
  --muted: #66736d;
  --forest: #12372a;
  --green: #176b4d;
  --mint: #e7f4eb;
  --cream: #f6f3eb;
  --amber: #d99438;
  --line: #dce3de;
  --white: #fff;
  --shadow: 0 16px 50px rgba(18, 55, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fbfcfa;
  font-family: "DM Sans", sans-serif;
}

button,
input,
select {
  font: inherit;
}

a {
  color: inherit;
}

.site-header {
  height: 76px;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  display: flex;
  align-items: center;
  gap: 48px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font: 800 21px "Manrope", sans-serif;
}

.brand > span:last-child > span {
  color: var(--green);
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--forest);
  font-size: 20px;
}

nav {
  display: flex;
  gap: 30px;
}

nav a {
  color: #53615b;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

nav a:hover {
  color: var(--green);
}

.live-pill {
  margin-left: auto;
  padding: 8px 12px;
  border-radius: 999px;
  color: #37614f;
  background: var(--mint);
  font-size: 12px;
  font-weight: 700;
}

.live-pill i {
  width: 7px;
  height: 7px;
  margin-right: 6px;
  display: inline-block;
  border-radius: 50%;
  background: #31a46c;
  box-shadow: 0 0 0 4px rgba(49, 164, 108, 0.12);
}

main,
footer {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.hero {
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  position: relative;
}

.hero::after {
  content: "";
  width: 330px;
  height: 330px;
  border-radius: 50%;
  position: absolute;
  right: 70px;
  z-index: -1;
  background:
    radial-gradient(circle at center, transparent 45%, rgba(23, 107, 77, 0.05) 46% 47%, transparent 48%),
    repeating-radial-gradient(circle, rgba(23, 107, 77, 0.05) 0 1px, transparent 1px 17px);
}

.hero-copy {
  max-width: 740px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 20px;
  font: 800 clamp(40px, 5.2vw, 68px)/1.06 "Manrope", sans-serif;
  letter-spacing: -0.045em;
}

h1 em {
  color: var(--green);
  font-style: normal;
}

.hero-description {
  max-width: 610px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.hero-date {
  min-width: 230px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.hero-date span,
.hero-date strong {
  display: block;
}

.hero-date span {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
}

.hero-date strong {
  margin-bottom: 14px;
  font-size: 14px;
}

.hero-date button {
  padding: 0;
  border: 0;
  color: var(--green);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.hero-date button:disabled {
  opacity: 0.5;
  cursor: wait;
}

.market-section,
.chilean-units {
  margin-bottom: 80px;
}

.section-heading {
  margin-bottom: 26px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}

.section-heading h2,
.converter-header h2 {
  margin: 0;
  font: 800 clamp(26px, 3vw, 36px)/1.15 "Manrope", sans-serif;
  letter-spacing: -0.035em;
}

.section-heading > p {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 13px;
}

.rate-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.rate-card {
  min-height: 150px;
  padding: 22px;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rate-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.rate-card.featured {
  border-color: #cae3d2;
  background: linear-gradient(145deg, #f5fbf7, #eaf6ee);
}

.rate-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #31584a;
  background: var(--mint);
  font-size: 13px;
  font-weight: 800;
}

.rate-icon.eur {
  color: #626140;
  background: #f6f0d9;
  font-size: 20px;
}

.rate-icon.uf {
  color: white;
  background: var(--green);
}

.rate-icon.utm {
  color: white;
  background: var(--amber);
  font-size: 10px;
}

.rate-card span,
.rate-card strong,
.rate-card small {
  display: block;
}

.rate-card span {
  margin: 2px 0 9px;
  color: var(--muted);
  font-size: 12px;
}

.rate-card strong {
  margin-bottom: 9px;
  font: 800 20px "Manrope", sans-serif;
  letter-spacing: -0.025em;
}

.rate-card small {
  color: #8b9690;
  font-size: 10px;
}

.converter-layout {
  margin-bottom: 80px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}

.converter-card {
  padding: 38px;
  border-radius: 22px;
  color: white;
  background:
    linear-gradient(130deg, rgba(18, 55, 42, 0.96), rgba(23, 107, 77, 0.93)),
    var(--forest);
  box-shadow: 0 22px 55px rgba(18, 55, 42, 0.18);
}

.converter-card .eyebrow {
  color: #9dd5b8;
}

.converter-header {
  margin-bottom: 30px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

.clp-tag {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #cde5d8;
  font-size: 11px;
  font-weight: 700;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 15px;
}

.field-row label > span,
.unit-card label > span {
  margin-bottom: 8px;
  display: block;
  color: #c9d9d1;
  font-size: 11px;
  font-weight: 600;
}

.field-row input,
.field-row select {
  width: 100%;
  height: 54px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 11px;
  outline: 0;
  color: white;
  background: rgba(255, 255, 255, 0.09);
}

.field-row input:focus,
.field-row select:focus {
  border-color: #8fd0ad;
  box-shadow: 0 0 0 3px rgba(143, 208, 173, 0.14);
}

.field-row select option {
  color: var(--ink);
}

.conversion-result {
  margin-top: 22px;
  padding: 24px;
  border-radius: 14px;
  color: var(--ink);
  background: white;
}

.conversion-result span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.conversion-result strong {
  margin: 4px 0;
  display: block;
  color: var(--forest);
  font: 800 clamp(30px, 4vw, 43px) "Manrope", sans-serif;
  letter-spacing: -0.04em;
}

.conversion-result p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 11px;
}

.chilean-units {
  padding: 64px;
  border-radius: 24px;
  background: var(--cream);
}

.unit-converters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.unit-card {
  padding: 28px;
  border: 1px solid #e4e0d6;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
}

.unit-top {
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.unit-top p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.unit-badge {
  min-width: 42px;
  height: 30px;
  padding-inline: 8px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: white;
  background: var(--green);
  font-size: 11px;
  font-weight: 800;
}

.unit-badge.amber {
  background: var(--amber);
}

.unit-card label > span {
  color: var(--muted);
}

.unit-card input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: 0;
  background: white;
}

.unit-card input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(23, 107, 77, 0.1);
}

.unit-result {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.unit-result span,
.unit-result strong {
  display: block;
}

.unit-result span {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 11px;
}

.unit-result strong {
  color: var(--forest);
  font: 800 26px "Manrope", sans-serif;
}

.tools-section {
  margin-bottom: 80px;
  padding: 46px;
  border: 1px solid rgba(18, 55, 42, 0.08);
  border-radius: 26px;
  background: linear-gradient(180deg, #fbfcfa 0%, var(--cream) 100%);
}

.tools-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}

.tool-card {
  min-width: 0;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 14px 34px rgba(18, 55, 42, 0.07);
}

.chart-card {
  grid-column: 1 / -1;
}

.tool-card-header {
  margin-bottom: 24px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.tool-card-header h3 {
  margin-bottom: 6px;
  font: 800 21px "Manrope", sans-serif;
}

.tool-card-header p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.tool-field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.chart-controls {
  grid-template-columns: 1fr 1fr 190px;
  align-items: end;
}

.tool-field-grid label > span {
  margin-bottom: 8px;
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.tool-field-grid input,
.tool-field-grid select {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: 0;
  color: var(--ink);
  background: #fff;
}

.tool-field-grid input:focus,
.tool-field-grid select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(23, 107, 77, 0.1);
}

.tool-button {
  width: 100%;
  height: 48px;
  margin-top: 15px;
  border: 0;
  border-radius: 10px;
  color: white;
  background: var(--forest);
  cursor: pointer;
  font-weight: 800;
}

.tool-button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.tool-result {
  margin-top: 18px;
  padding: 18px;
  border-radius: 14px;
  background: var(--mint);
}

.tool-result span,
.tool-result strong,
.tool-result p {
  display: block;
}

.tool-result span {
  color: var(--muted);
  font-size: 11px;
}

.tool-result strong {
  margin: 4px 0;
  color: var(--forest);
  font: 800 28px "Manrope", sans-serif;
}

.tool-result p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
}

.chart-shell {
  margin-top: 20px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfcfa;
  overflow-x: auto;
  position: relative;
}

.chart-shell svg {
  width: 100%;
  min-width: 680px;
  height: auto;
  display: block;
}

.chart-bg {
  fill: #fbfcfa;
}

.chart-grid-line {
  stroke: #dfe7e2;
  stroke-width: 1;
}

.chart-axis {
  stroke: #aebbb5;
  stroke-width: 1.2;
}

.chart-tick {
  stroke: #aebbb5;
  stroke-width: 1;
}

.chart-axis-label,
.chart-empty {
  fill: var(--muted);
  font: 600 12px "DM Sans", sans-serif;
}

.chart-line {
  fill: none;
  stroke: var(--green);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.chart-point {
  fill: white;
  stroke: var(--green);
  stroke-width: 3;
}

.chart-point.end {
  fill: var(--green);
}

.chart-hover-dot {
  fill: transparent;
  stroke: transparent;
  pointer-events: all;
}

.chart-cursor-line,
.chart-cursor-point {
  opacity: 0;
  pointer-events: none;
}

.chart-shell:hover .chart-cursor-line,
.chart-shell:hover .chart-cursor-point {
  opacity: 1;
}

.chart-cursor-line {
  stroke: rgba(18, 55, 42, 0.28);
  stroke-dasharray: 4 5;
  stroke-width: 1.4;
}

.chart-cursor-point {
  fill: white;
  stroke: var(--forest);
  stroke-width: 3;
}

.chart-tooltip {
  min-width: 150px;
  padding: 10px 12px;
  border-radius: 12px;
  position: absolute;
  z-index: 2;
  color: white;
  background: rgba(18, 55, 42, 0.95);
  box-shadow: 0 12px 24px rgba(18, 55, 42, 0.18);
  pointer-events: none;
  transform: translateY(6px);
  opacity: 0;
  transition: opacity 0.12s ease, transform 0.12s ease;
}

.chart-tooltip.show {
  transform: translateY(0);
  opacity: 1;
}

.chart-tooltip strong,
.chart-tooltip span {
  display: block;
}

.chart-tooltip strong {
  font: 800 15px "Manrope", sans-serif;
}

.chart-tooltip span {
  margin-top: 2px;
  color: #cde5d8;
  font-size: 11px;
}

.chart-summary {
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--mint);
}

.chart-summary > strong {
  display: block;
  color: var(--forest);
  font: 800 15px "Manrope", sans-serif;
}

.chart-stat-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.chart-stat-grid span {
  padding: 10px 12px;
  border-radius: 10px;
  color: #3f5b50;
  background: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 700;
}

.info-section {
  margin: 0 0 70px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.info-section article {
  padding: 42px 32px 20px 0;
}

.info-section article + article {
  padding-left: 32px;
  border-left: 1px solid var(--line);
}

.info-number {
  color: var(--green);
  font: 800 11px "Manrope", sans-serif;
}

.info-section h3 {
  margin: 16px 0 10px;
  font: 800 17px "Manrope", sans-serif;
}

.info-section p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.faq-section {
  max-width: 900px;
  margin: 0 auto 90px;
}

.seo-links {
  margin-bottom: 80px;
}

.learning-section {
  margin-bottom: 90px;
}

.learning-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.learning-card {
  min-height: 230px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 14px 34px rgba(18, 55, 42, 0.06);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.learning-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.learning-card span,
.learning-card strong,
.learning-card p {
  display: block;
}

.learning-card span {
  margin-bottom: 18px;
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.learning-card strong {
  margin-bottom: 12px;
  color: var(--forest);
  font: 800 20px/1.25 "Manrope", sans-serif;
}

.learning-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.seo-link-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.seo-link-grid a {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  text-decoration: none;
}

.seo-link-grid strong,
.seo-link-grid span {
  display: block;
}

.seo-link-grid strong {
  margin-bottom: 6px;
  font: 800 15px "Manrope", sans-serif;
}

.seo-link-grid span {
  color: var(--muted);
  font-size: 12px;
}

.indicator-page {
  max-width: 900px;
  padding: 80px 0;
}

.indicator-page h1 {
  max-width: 820px;
  margin-bottom: 16px;
  font-size: clamp(40px, 6vw, 64px);
}

.page-lead {
  max-width: 680px;
  margin-bottom: 42px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.indicator-hero {
  margin-bottom: 56px;
  padding: 34px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  border-radius: 22px;
  color: white;
  background: linear-gradient(135deg, var(--forest), var(--green));
}

.indicator-hero > div:first-child {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.indicator-hero span,
.indicator-hero small {
  color: #cde5d8;
  font-size: 12px;
}

.indicator-hero > div:first-child > strong {
  margin: 8px 0;
  font: 800 clamp(30px, 5vw, 46px) "Manrope", sans-serif;
}

.quick-converter {
  padding: 24px;
  border-radius: 14px;
  color: var(--ink);
  background: white;
}

.quick-converter label,
.quick-converter span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.quick-converter input {
  width: 100%;
  height: 48px;
  margin: 8px 0 18px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.quick-converter strong {
  margin-top: 4px;
  display: block;
  color: var(--forest);
  font: 800 28px "Manrope", sans-serif;
}

.guide-content {
  max-width: 760px;
}

.guide-content .page-lead {
  margin-bottom: 34px;
}

.guide-content h2 {
  margin: 40px 0 10px;
  font: 800 25px "Manrope", sans-serif;
}

.guide-content h3 {
  margin: 28px 0 8px;
  font: 800 18px "Manrope", sans-serif;
}

.guide-content ul,
.guide-content ol {
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.75;
}

.guide-content li + li {
  margin-top: 8px;
}

.guide-content p {
  color: var(--muted);
  line-height: 1.8;
}

.guide-callout {
  margin: 34px 0;
  padding: 24px;
  border-radius: 16px;
  color: var(--forest);
  background: var(--mint);
}

.guide-callout strong {
  display: block;
  margin-bottom: 8px;
  font: 800 18px "Manrope", sans-serif;
}

.guide-table {
  width: 100%;
  margin: 28px 0;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.guide-table th,
.guide-table td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.guide-table th {
  color: var(--forest);
  background: var(--cream);
  font: 800 13px "Manrope", sans-serif;
}

.guide-table td {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.guide-table tr:last-child td {
  border-bottom: 0;
}

.source-box {
  margin-top: 42px;
  padding: 22px;
  border-left: 4px solid var(--green);
  background: var(--mint);
}

.source-box p {
  margin: 6px 0 0;
}

.source-box a {
  color: var(--green);
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  padding: 22px 44px 22px 0;
  position: relative;
  cursor: pointer;
  list-style: none;
  font: 700 16px "Manrope", sans-serif;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  position: absolute;
  right: 0;
  top: 17px;
  border-radius: 50%;
  color: var(--green);
  background: var(--mint);
  font-size: 20px;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  max-width: 760px;
  margin: -4px 0 22px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

footer {
  padding: 42px 0;
  display: flex;
  justify-content: space-between;
  gap: 50px;
  border-top: 1px solid var(--line);
}

.footer-brand {
  margin-bottom: 10px;
}

footer p {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.footer-note {
  max-width: 540px;
  text-align: right;
}

.footer-note a {
  color: var(--green);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a {
  color: var(--green);
}

.toast {
  max-width: calc(100% - 32px);
  padding: 12px 16px;
  border-radius: 10px;
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 20;
  color: white;
  background: var(--forest);
  box-shadow: var(--shadow);
  font-size: 12px;
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: 0.2s ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.legal-page {
  max-width: 760px;
  min-height: calc(100vh - 76px);
  padding: 80px 0;
}

.legal-page h1 {
  margin-bottom: 14px;
  font-size: clamp(38px, 6vw, 60px);
}

.legal-page h2 {
  margin: 42px 0 10px;
  font: 800 21px "Manrope", sans-serif;
}

.legal-page p {
  color: var(--muted);
  line-height: 1.75;
}

.legal-page a {
  color: var(--green);
  font-weight: 700;
}

.data-notice {
  padding: 14px 18px;
  border-left: 3px solid var(--green);
  background: var(--cream);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
}

.history-chart { margin-top: 24px; }
.history-chart h2, .guide-content .tool-card h2 { margin-top: 0; }
.chart-source { margin: 16px 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.secondary-button { background: var(--mint); color: var(--forest); }
.chart-data { margin-top: 18px; }
.chart-data summary { cursor: pointer; padding: 12px 0; font-weight: 700; }
.table-scroll { overflow: auto; max-height: 420px; }
.table-scroll caption { padding: 12px; text-align: left; font-size: 13px; color: var(--muted); }
.table-scroll th { position: sticky; top: 0; }
.table-scroll td { font-variant-numeric: tabular-nums; }
.tool-field-grid > label { min-width: 0; }
.comparison-card { margin: 32px 0; }
.comparison-card h2 { margin-top: 0; }
.comparison-card p { line-height: 1.7; }
.comparison-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.comparison-card .tool-button { margin-top: 16px; }

@media (max-width: 900px) {
  .site-header {
    height: auto;
    min-height: 76px;
    flex-wrap: wrap;
    gap: 12px;
    padding-block: 12px;
  }

  .site-header nav {
    display: flex;
    width: 100%;
    order: 3;
    overflow-x: auto;
    white-space: nowrap;
    gap: 20px;
    padding-block: 6px;
  }

  .hero {
    min-height: 430px;
  }

  .hero-date {
    display: none;
  }

  .rate-grid {
    grid-template-columns: 1fr 1fr;
  }

  .converter-layout {
    grid-template-columns: 1fr;
  }

  .chilean-units {
    padding: 42px;
  }

  .tools-grid {
    grid-template-columns: 1fr;
  }

  .seo-link-grid {
    grid-template-columns: 1fr 1fr;
  }

  .learning-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    height: auto;
    padding-inline: 18px;
  }

  .live-pill {
    font-size: 0;
  }

  .live-pill i {
    margin: 0;
  }

  main,
  footer {
    width: min(100% - 32px, 1180px);
  }

  .hero {
    min-height: 390px;
  }

  h1 {
    font-size: 40px;
  }

  .hero-description {
    font-size: 15px;
  }

  .market-section,
  .converter-layout,
  .chilean-units {
    margin-bottom: 56px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .rate-grid,
  .unit-converters,
  .info-section {
    grid-template-columns: 1fr;
  }

  .seo-link-grid,
  .indicator-hero {
    grid-template-columns: 1fr;
  }

  .indicator-page {
    padding-top: 60px;
  }

  .rate-card {
    min-height: 125px;
  }

  .converter-card {
    padding: 26px 20px;
  }

  .tools-section {
    padding: 30px 20px;
    margin-inline: -16px;
    border-radius: 0;
  }

  .converter-header {
    display: block;
  }

  .clp-tag {
    margin-top: 14px;
    display: inline-block;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .tool-field-grid {
    grid-template-columns: 1fr;
  }

  .chart-controls {
    grid-template-columns: 1fr;
  }

  .chart-stat-grid {
    grid-template-columns: 1fr;
  }

  .chilean-units {
    padding: 32px 20px;
    margin-inline: -16px;
    border-radius: 0;
  }

  .info-section article,
  .info-section article + article {
    padding: 30px 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .faq-section {
    margin-bottom: 60px;
  }

  footer {
    flex-direction: column;
  }

  .footer-note {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
