/* ==========================================================================
   appname (CMG): estilos
   ========================================================================== */

:root {
  --red: #f24333;
  --red-hover: #db3626;
  --teal: #119da4;
  --teal-text: #0c7f85;
  --white: #ffffff;
  --bg: #f5f5f5;
  --ink: #030a0d;
  --ink-2: rgba(3, 10, 13, 0.72);
  --line: #e1e5e6;
  --pale: #eaf5f6;
  --sky-top: #146b8f;
  --font: "Google Sans Flex", "Google Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

h1, h2 {
  font-weight: 600;
  letter-spacing: -0.025em;
  word-spacing: 0.08em;
  font-variation-settings: "opsz" 120;
  text-wrap: balance;
}

h1 { font-size: 56px; line-height: 1.05; }
h2 { font-size: 40px; line-height: 1.1; }
h3 { font-size: 18px; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; }

.container { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 12px 18px; border-radius: 12px; background: var(--ink); color: #fff;
}
.skip-link:focus { top: 12px; }

.ph {
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: #e0e0e0; color: #4e4a4c; border: 1px dashed #b5b5b5; border-radius: 16px;
  font-size: 12px; font-weight: 500; line-height: 1.3; padding: 8px; user-select: none;
}
.ph--logo { width: 36px; height: 36px; border-radius: 10px; font-size: 9px; padding: 2px; flex: none; }
.brand__logo { display: block; flex: none; width: 36px; height: 36px; border-radius: 8px; object-fit: cover; }

.fine { font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.fine--center { text-align: center; margin-top: 18px; }
.lead { margin-top: 14px; font-size: 18px; line-height: 1.5; color: var(--ink-2); }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; border: 0; border-radius: 999px; white-space: nowrap;
}
.btn--red {
  height: 52px; padding: 0 28px; background: var(--red); color: #fff;
  font-size: 18px; font-weight: 700; line-height: 1;
  transition: background-color 0.15s ease;
}
.btn--red:hover { background: var(--red-hover); }
.btn--red:focus-visible { outline: 3px solid #fff; box-shadow: 0 0 0 6px var(--ink); outline-offset: 0; }
.btn--pale {
  height: 48px; padding: 0 24px; background: var(--pale); color: var(--ink);
  font-size: 16px; font-weight: 600;
  transition: background-color 0.15s ease;
}
.btn--pale:hover { background: #dceeef; }
.btn--block { display: flex; width: 100%; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  margin-bottom: calc(var(--header-h) * -1);
  background: transparent; color: #fff;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}
.site-header.is-solid, .site-header.menu-open {
  background: #fff; color: var(--ink);
  box-shadow: 0 1px 0 var(--line), 0 6px 18px rgba(3, 10, 13, 0.06);
}
.site-header__inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__name { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.site-nav { display: flex; align-items: center; gap: 32px; margin-inline: auto; }
.site-nav a:not(.btn) {
  position: relative; text-decoration: none; font-size: 16px; font-weight: 500; padding: 8px 0;
}
.site-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px;
  background: currentColor; transform: scaleX(0); transition: transform 0.2s ease;
}
.site-nav a[aria-current="true"]::after, .site-nav a:not(.btn):hover::after { transform: scaleX(1); }
.site-header.is-solid .site-nav a[aria-current="true"]::after,
.site-header.menu-open .site-nav a[aria-current="true"]::after { background: var(--teal); }
.nav-cta { display: none; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 12px;
  align-items: center; justify-content: center; color: inherit;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block; width: 22px; height: 2.5px; border-radius: 2px; background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative; z-index: 3;
  padding: calc(var(--header-h) + 48px) 0 0;
  background: linear-gradient(180deg, #146b8f 0%, #0a8aa6 28%, #029eb2 46%, #9ed9df 74%, #f5f5f5 100%);
  text-align: center; color: #fff;
}
.hero__art { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.hero__inner { position: relative; z-index: 2; }
.hero h1 { max-width: 820px; margin-inline: auto; }
.hero__lead { max-width: 640px; margin: 14px auto 0; font-size: 18px; line-height: 1.5; color: rgba(255, 255, 255, 0.9); }

.art { display: block; object-fit: contain; }
.art.is-missing { object-fit: unset; }
.hero { --art-w: 290px; --art-gap: 56px; }
.art--hero-left,
.art--hero-right { position: absolute; width: var(--art-w); height: var(--art-w); }
/* 320px = половина карточки калькулятора; --art-gap = зазор между объектом и карточкой */
.art--hero-left { left: calc(50% - 320px - var(--art-w) - var(--art-gap)); top: 300px; }
.art--hero-right { right: calc(50% - 320px - var(--art-w) - var(--art-gap)); top: 270px; }

.calc {
  position: relative; z-index: 3;
  max-width: 640px; margin: 40px auto -56px; padding: 28px 32px;
  background: #fff; color: var(--ink); text-align: left;
  border-radius: 28px; box-shadow: 0 18px 40px rgba(3, 10, 13, 0.18);
}
.calc__title { font-size: 15px; font-weight: 600; letter-spacing: 0; margin-bottom: 14px; color: var(--ink-2); font-variation-settings: normal; }
.calc__row { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.calc__amount { flex: 1 1 auto; min-width: 0; }
.calc__rate { flex: none; }
.field-label { display: block; margin: 0 0 4px; font-size: 13px; line-height: 1.3; color: var(--ink-2); font-weight: 400; padding: 0; }

.value-input {
  width: 100%; border: 1.5px solid transparent; background: transparent; border-radius: 14px;
  padding: 2px 8px; margin-left: -8px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink);
}
.value-input:hover { border-color: #d6dcde; }
.value-input:focus { outline: none; border-color: var(--teal); background: #fff; box-shadow: 0 0 0 4px rgba(17, 157, 164, 0.18); }
.value-input--lg { font-size: 32px; line-height: 1.2; }
.value-input--md { width: 92px; margin-left: 0; text-align: center; font-size: 28px; line-height: 1.2; padding-inline: 4px; }
.value-input.is-invalid { border-color: var(--red); }
.stepper { display: flex; align-items: center; gap: 4px; margin-top: 4px; }
.stepper__btn {
  width: 36px; height: 36px; flex: none; border-radius: 50%; border: 1.5px solid #d6dcde; background: #fff;
  font-size: 20px; line-height: 1; display: grid; place-items: center; padding: 0;
}
.stepper__btn:hover { border-color: var(--teal); color: var(--teal-text); }
.field-error { margin-top: 8px; font-size: 13px; color: #b42318; }

.slider { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 26px; margin: 12px 0 0; background: transparent; --fill: 40%; }
.slider::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(to right, var(--teal) var(--fill), #e3eef0 var(--fill)); }
.slider::-moz-range-track { height: 6px; border-radius: 3px; background: #e3eef0; }
.slider::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--teal); }
.slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 26px; height: 26px; margin-top: -10px; border-radius: 50%; background: #fff; border: 3px solid var(--teal); box-shadow: 0 2px 6px rgba(3, 10, 13, 0.2); cursor: pointer; }
.slider::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 3px solid var(--teal); box-shadow: 0 2px 6px rgba(3, 10, 13, 0.2); cursor: pointer; }
.slider:focus-visible { outline: none; }
.slider:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(17, 157, 164, 0.35); }
.slider:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px rgba(17, 157, 164, 0.35); }
.slider-scale { display: flex; justify-content: space-between; margin-top: 2px; font-size: 13px; color: var(--ink-2); }

.chips { border: 0; margin: 18px 0 0; padding: 0; min-width: 0; }
.chips__row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.chip span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 48px; height: 40px; padding: 0 16px;
  border-radius: 999px; background: #f1f5f6; font-size: 15px; font-weight: 500;
  transition: background-color 0.15s ease;
}
.chip:hover span { background: #e4eced; }
.chip input:checked + span { background: var(--teal); color: #fff; font-size: 16px; font-weight: 700; }
.chip input:focus-visible + span { outline: 3px solid var(--teal); outline-offset: 2px; }
.chips__unit { margin-left: 4px; font-size: 15px; color: var(--ink-2); }

.results {
  display: grid; grid-template-columns: 1fr auto; column-gap: 20px; row-gap: 8px; align-items: end;
  margin-top: 18px; padding: 18px 20px; background: var(--bg); border-radius: 20px;
}
.results__label { font-size: 13px; color: var(--ink-2); }
.results__big { font-size: 32px; line-height: 1.1; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.results__side { text-align: right; }
.results__mid { font-size: 20px; line-height: 1.2; font-weight: 600; font-variant-numeric: tabular-nums; }
.results__interest { grid-column: 1 / -1; font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.results__interest span { color: var(--ink); font-weight: 600; }
.calc .fine { margin-top: 12px; }
.calc .btn--block { margin-top: 16px; }

/* ---------- secciones ---------- */
.section { padding: 96px 0; }
.section--compare { padding-top: calc(96px + 56px); background: var(--bg); position: relative; z-index: 1; }
.section--white { background: #fff; }
.section--gray { background: var(--bg); }
.section--seguridad { background: var(--bg); padding-top: 24px; }
.section--cta { background: var(--bg); padding-top: 24px; }
.section-head { text-align: center; }
.section-head .lead { max-width: 560px; margin-inline: auto; }

/* comparar */
.compare {
  position: relative; max-width: 760px; margin: 36px auto 0; padding: 28px 32px;
  background: #fff; border-radius: 28px; box-shadow: 0 12px 30px rgba(3, 10, 13, 0.08);
}
.art--compare { position: absolute; right: 22px; top: -56px; width: 110px; height: 110px; }
.compare__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.loan { background: var(--bg); border-radius: 20px; padding: 20px; }
.loan h3 { margin-bottom: 16px; }
.loan__field { margin-bottom: 14px; }
.loan .field-label { margin-bottom: 6px; }
.loan .value-input,
.select {
  display: block; width: 100%; height: 48px; margin: 0; padding: 0 14px;
  border: 1.5px solid #e1e5e6; border-radius: 14px; background-color: #fff;
  font-size: 18px; font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; color: var(--ink);
}
.select {
  -webkit-appearance: none; appearance: none; padding-right: 46px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%230c7f85' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 20px 20px;
}
.select:hover { border-color: #d6dcde; }
.select:focus-visible { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(17, 157, 164, 0.18); }
.select option { font-weight: 500; }
.loan__out { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.loan__out div { margin-bottom: 12px; }
.loan__out div:last-child { margin-bottom: 0; }
.loan__out dt { font-size: 13px; color: var(--ink-2); }
.loan__out dd { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.loan__out .loan__pago { font-size: 22px; color: var(--teal-text); letter-spacing: -0.02em; }
.compare__summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line);
}
.compare__text p { font-size: 15px; line-height: 1.5; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.compare__text strong { color: var(--ink); font-weight: 600; }
.compare__verdict { margin-top: 6px; color: var(--ink) !important; font-weight: 600; }
.compare__note { margin-top: 4px; font-size: 13px !important; }
.compare > .fine { margin-top: 12px; }

/* oferta */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 36px; }
.tile { background: var(--bg); border-radius: 22px; padding: 24px; }
.tile__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--red); margin-bottom: 18px; }
.tile h3 { margin-bottom: 8px; }
.tile p { font-size: 15px; color: var(--ink-2); }

/* seguridad */
.security {
  position: relative; padding: 56px 48px 44px; border-radius: 30px; color: #fff;
  background: linear-gradient(180deg, #146b8f 0%, #0a8aa6 55%, #029eb2 100%);
}
.art--security { position: absolute; right: 32px; top: -16px; width: 150px; height: 150px; }
.security__head { max-width: 520px; }
.security__head h2 { font-size: 36px; }
.security .lead { color: rgba(255, 255, 255, 0.9); }
.rules { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-top: 32px; }
.rule { grid-column: span 2; background: #fff; color: var(--ink); border-radius: 20px; padding: 20px 22px; }
.rule--wide { grid-column: span 3; }
.rule h3 { font-size: 16px; margin-bottom: 8px; }
.rule p { font-size: 14px; color: var(--ink-2); }
.security__note { margin-top: 28px; font-size: 14px; color: #fff; max-width: 720px; }
.security__note a { color: #fff; text-underline-offset: 3px; }

/* conceptos */
.glossary { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 36px; padding: 20px; background: var(--bg); border-radius: 28px; align-items: start; }
.glossary__col { display: flex; flex-direction: column; gap: 10px; }
.term { background: #fff; border-radius: 18px; }
.term summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 16px 20px;
  font-size: 16px; font-weight: 600; cursor: pointer; list-style: none;
}
.term summary::-webkit-details-marker { display: none; }
.term summary::after {
  content: ""; flex: none; width: 24px; height: 24px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14' fill='none' stroke='%230c7f85' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.term[open] summary::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14' fill='none' stroke='%230c7f85' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");
}
.term p { padding: 0 20px 18px; font-size: 15px; color: var(--ink-2); }

/* transparencia */
.trans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 32px; }
.trans__col { border-top: 3px solid var(--teal); padding-top: 0; }
.trans__icon { width: 80px; height: 80px; margin: 18px 0 14px; object-fit: contain; }
.trans__col h3 { margin-bottom: 8px; }
.trans__col p { color: var(--ink-2); }

/* cta */
.cta {
  position: relative; overflow: hidden; padding: 72px 48px; border-radius: 30px; text-align: center; color: #fff;
  background: linear-gradient(180deg, #146b8f 0%, #0a8aa6 55%, #7dced6 100%);
}
.cta h2 { max-width: 640px; margin-inline: auto; }
.cta .lead { color: rgba(255, 255, 255, 0.92); }
.cta .btn { margin-top: 28px; }
.art--cta-left { position: absolute; left: 32px; bottom: -16px; width: 150px; height: 150px; }
.art--cta-right { position: absolute; right: 32px; top: -16px; width: 150px; height: 150px; }
.cta > :not(.art) { position: relative; z-index: 1; }

/* footer */
.footer { background: var(--ink); color: #fff; padding: 64px 0 32px; margin-top: 24px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
.footer-tag { margin-top: 14px; max-width: 28ch; font-size: 15px; color: #b9c3c6; }
.footer-label { font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.footer-links li + li { margin-top: 10px; }
.footer-links a, .footer-meta a { color: #b9c3c6; text-decoration: none; font-size: 15px; }
.footer-links a:hover, .footer-links a[aria-current="page"], .footer-meta a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-disclaimer { margin-top: 40px; max-width: 72ch; font-size: 13px; line-height: 1.6; color: rgba(255, 255, 255, 0.6); }
.footer-meta { margin-top: 16px; font-size: 13px; color: #b9c3c6; }
.footer-meta a { font-size: 13px; }
.footer-copy { margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 13px; color: rgba(255, 255, 255, 0.6); }

/* ---------- adaptive ---------- */
@media (max-width: 1379px) {
  .hero { --art-w: 240px; --art-gap: 40px; }
}

@media (max-width: 1259px) {
  .hero { --art-w: 190px; --art-gap: 24px; }
}

@media (max-width: 1099px) {
  .hero { --art-w: 130px; --art-gap: 20px; }
}

@media (max-width: 979px) {
  h1 { font-size: 46px; }
  h2 { font-size: 34px; }
  .security__head h2 { font-size: 32px; }
  .art--hero-left, .art--hero-right { display: none; }
  .section { padding: 72px 0; }
  .section--compare { padding-top: calc(72px + 56px); }

  .nav-toggle { display: inline-flex; }
  .site-header__inner { gap: 12px; }
  .brand { margin-right: auto; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: var(--header-h);
    display: none; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 4px 24px 20px;
    background: #fff; color: var(--ink); box-shadow: 0 14px 24px rgba(3, 10, 13, 0.1);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { padding: 0; min-height: 56px; display: flex; align-items: center; border-bottom: 1px solid var(--line); font-size: 17px; }
  .site-nav a:not(.btn)::after { display: none; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .rules { grid-template-columns: 1fr 1fr; }
  .rule, .rule--wide { grid-column: span 1; }
  .rule:last-child { grid-column: 1 / -1; }
  .trans { grid-template-columns: 1fr; gap: 28px; }
  .trans__icon { width: 72px; height: 72px; margin-top: 14px; }
}

@media (max-width: 719px) {
  .compare__grid { grid-template-columns: 1fr; gap: 14px; }
  .loan { padding: 18px; }
  .art--compare, .art--security, .art--cta-left, .art--cta-right { display: none; }
  .compare { padding: 22px 18px; }
  .compare__summary { flex-direction: column; align-items: stretch; }
  .compare__summary .btn { width: 100%; }
  .glossary { grid-template-columns: 1fr; padding: 14px; }
  .security { padding: 36px 20px 28px; }
  .cta { padding: 48px 20px; }
}

@media (max-width: 599px) {
  .container { width: calc(100% - 32px); }
  h1 { font-size: 34px; }
  h2 { font-size: 28px; }
  .security__head h2 { font-size: 28px; }
  .lead, .hero__lead { font-size: 16px; }
  .section { padding: 56px 0; }
  .section--compare { padding-top: calc(56px + 56px); }
  .header-cta { display: none; }
  .nav-cta { display: inline-flex; margin-top: 16px; height: 52px; }
  .calc { padding: 22px 18px; margin-top: 32px; }
  .calc__row { flex-direction: column; align-items: stretch; gap: 14px; }
  .calc__rate { align-self: flex-start; }
  .value-input--lg { font-size: 28px; }
  .results__big { font-size: 28px; }
  .tiles { grid-template-columns: 1fr; }
  .tile { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; row-gap: 4px; padding: 20px; }
  .tile__icon { grid-row: 1 / span 2; margin-bottom: 0; }
  .rules { grid-template-columns: 1fr; }
  .rule:last-child { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 419px) {
  .results { grid-template-columns: 1fr; padding: 16px; }
  .results__side { text-align: left; }
  .chips__row { gap: 6px; }
  .chip span { min-width: 44px; padding: 0 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* ==========================================================================
   Páginas legales (/privacidad/ y /terminos/)
   ========================================================================== */

.legal-hero {
  position: relative;
  padding: calc(var(--header-h) + 48px) 0 104px;
  background: linear-gradient(180deg, #146b8f 0%, #0a8aa6 55%, #029eb2 100%);
  color: #fff;
}
.legal-hero h1 { max-width: 16em; }
.legal-hero__lead { max-width: 62ch; margin-top: 16px; font-size: 18px; line-height: 1.5; color: rgba(255, 255, 255, 0.92); }
.crumbs { margin-bottom: 22px; font-size: 14px; color: rgba(255, 255, 255, 0.85); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.crumbs span[aria-hidden] { margin: 0 8px; opacity: 0.7; }
.legal-date {
  display: inline-block; margin-top: 24px; padding: 8px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.32); font-size: 14px;
}

.legal-wrap { position: relative; z-index: 2; margin-top: -52px; padding-bottom: 96px; }
.legal-layout { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 28px; align-items: start; }

.toc {
  position: sticky; top: 92px; max-height: calc(100vh - 116px); overflow: auto;
  padding: 22px 18px 18px 20px; background: #fff; border-radius: 24px;
  box-shadow: 0 12px 30px rgba(3, 10, 13, 0.08);
}
.toc__title { margin-bottom: 12px; font-size: 14px; font-weight: 700; letter-spacing: 0; }
.toc ol { counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a {
  display: block; padding: 7px 10px 7px 12px; margin-left: -12px; border-left: 3px solid transparent;
  border-radius: 0 10px 10px 0; font-size: 14px; line-height: 1.35; color: var(--ink-2); text-decoration: none;
}
.toc a::before { content: counter(toc) ". "; color: var(--teal-text); font-weight: 600; }
.toc a:hover { background: var(--bg); color: var(--ink); }
.toc a.is-current { border-left-color: var(--teal); background: var(--pale); color: var(--ink); font-weight: 600; }
.toc--mobile { display: none; }

.legal-card { padding: 52px 56px 48px; background: #fff; border-radius: 28px; box-shadow: 0 12px 30px rgba(3, 10, 13, 0.08); min-width: 0; }

.legal-summary { margin-bottom: 44px; padding: 26px 30px; background: var(--pale); border-radius: 22px; }
.legal-summary h2 { margin-bottom: 14px; font-size: 22px; line-height: 1.2; letter-spacing: -0.02em; font-variation-settings: "opsz" 40; word-spacing: 0; }
.legal-summary ul { display: grid; gap: 10px; }
.legal-summary li { position: relative; padding-left: 20px; font-size: 16px; line-height: 1.55; color: var(--ink); }
.legal-summary li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }

.lsec { margin-top: 52px; scroll-margin-top: 96px; }
.lsec:first-of-type { margin-top: 0; }
.lsec h2 {
  display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px;
  font-size: 26px; line-height: 1.22; letter-spacing: -0.02em; word-spacing: 0; font-variation-settings: "opsz" 48;
}
.lsec h2 .num {
  flex: none; display: grid; place-items: center; width: 36px; height: 36px; margin-top: -1px;
  border-radius: 50%; background: var(--teal-text); color: #fff; font-size: 16px; font-weight: 700; letter-spacing: 0;
}
.lsec h3 { margin: 26px 0 8px; font-size: 18px; line-height: 1.35; }
.lsec p { margin-bottom: 14px; font-size: 16.5px; line-height: 1.7; color: rgba(3, 10, 13, 0.86); }
.lsec p:last-child { margin-bottom: 0; }
.lsec ul, .lsec ol { margin: 0 0 16px; padding-left: 22px; list-style: revert; }
.lsec li { margin-bottom: 9px; padding-left: 4px; font-size: 16.5px; line-height: 1.65; color: rgba(3, 10, 13, 0.86); }
.lsec li::marker { color: var(--teal); font-weight: 600; }
.lsec strong { font-weight: 600; color: var(--ink); }
.lsec a { color: var(--teal-text); text-underline-offset: 3px; }
.lsec a:hover { color: #095f64; }
.lkey { margin: 4px 0 18px; padding: 18px 22px; background: var(--bg); border-left: 4px solid var(--teal); border-radius: 0 16px 16px 0; }
.lkey p { margin: 0; color: var(--ink); }

.legal-back { margin-top: 32px; text-align: right; font-size: 14px; }
.legal-back a { color: var(--teal-text); text-underline-offset: 3px; }
.legal-help {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 24px;
  margin-top: 36px; padding: 28px 30px; background: var(--bg); border-radius: 22px;
}
.legal-help h2 { font-size: 22px; line-height: 1.2; letter-spacing: -0.02em; word-spacing: 0; font-variation-settings: "opsz" 40; }
.legal-help p { margin-top: 6px; font-size: 15px; color: var(--ink-2); }
.legal-help__actions { display: flex; flex-wrap: wrap; gap: 12px; min-width: 0; }
.legal-help__actions .btn { height: auto; min-height: 52px; padding-top: 12px; padding-bottom: 12px; line-height: 1.2; white-space: normal; text-align: center; }
.btn--line { height: 52px; padding: 0 24px; border: 2px solid var(--ink); color: var(--ink); background: transparent; font-size: 16px; font-weight: 600; }
.btn--line:hover { background: var(--ink); color: #fff; }

@media (max-width: 979px) {
  .legal-hero { padding-bottom: 88px; }
  .legal-layout { grid-template-columns: 1fr; gap: 18px; }
  .toc--desk { display: none; }
  .toc--mobile { display: block; position: static; max-height: none; padding: 0; background: #fff; border-radius: 20px; box-shadow: 0 8px 22px rgba(3, 10, 13, 0.08); }
  .toc--mobile summary {
    display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 14px 20px;
    font-size: 16px; font-weight: 600; cursor: pointer; list-style: none;
  }
  .toc--mobile summary::-webkit-details-marker { display: none; }
  .toc--mobile summary::after {
    content: ""; width: 22px; height: 22px; transition: transform 0.2s ease;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%230c7f85' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  }
  .toc--mobile[open] summary::after { transform: rotate(180deg); }
  .toc--mobile ol { padding: 0 14px 14px 20px; max-height: 52vh; overflow: auto; }
  .legal-card { padding: 34px 28px 32px; }
  .lsec h2 { font-size: 23px; }
}

@media (max-width: 599px) {
  .legal-hero { padding-bottom: 72px; }
  .legal-card { padding: 26px 18px 26px; border-radius: 24px; }
  .legal-summary { padding: 20px 18px; margin-bottom: 32px; }
  .lsec { margin-top: 40px; }
  .lsec h2 { font-size: 21px; gap: 12px; }
  .lsec h2 .num { width: 32px; height: 32px; font-size: 14px; }
  .lsec p, .lsec li { font-size: 16px; }
  .legal-help { flex-direction: column; align-items: stretch; padding: 22px 18px; }
  .legal-help__actions .btn { width: 100%; }
}

@media print {
  .site-header, .toc, .legal-help, .legal-back, .footer, .skip-link { display: none !important; }
  .legal-hero { padding: 0 0 16px; background: none; color: #000; }
  .legal-hero__lead, .crumbs, .legal-date { color: #000; border-color: #999; background: none; }
  .legal-wrap { margin-top: 0; padding-bottom: 0; }
  .legal-layout { display: block; }
  .legal-card { padding: 0; box-shadow: none; }
  .lsec { break-inside: avoid-page; }
}

/* ==========================================================================
   Página de contacto (/contacto/), sin formulario
   ========================================================================== */

.contact-stack { display: grid; gap: 28px; }

.contact-main {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px;
  padding: 44px 48px; background: #fff; border-radius: 28px; box-shadow: 0 12px 30px rgba(3, 10, 13, 0.08);
}
.contact-main h2 { font-size: 30px; line-height: 1.15; word-spacing: 0; font-variation-settings: "opsz" 48; }
.contact-main__lead { margin-top: 14px; font-size: 17px; line-height: 1.6; color: rgba(3, 10, 13, 0.82); }
.contact-mail { display: block; margin-top: 24px; font-size: 22px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); overflow-wrap: anywhere; }
.contact-mail a { color: var(--teal-text); text-underline-offset: 4px; }
.contact-main .btn { margin-top: 22px; }
.contact-data { position: relative; align-self: start; padding: 26px 28px; background: var(--bg); border-radius: 22px; }
.contact-data h3 { margin-bottom: 14px; }
.art--contact { position: absolute; right: 16px; top: -30px; width: 104px; height: 104px; }
.contact-data dl { display: grid; gap: 14px; }
.contact-data dt { font-size: 13px; color: var(--ink-2); }
.contact-data dd { margin-top: 2px; font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; }
.contact-data a { color: var(--teal-text); text-underline-offset: 3px; }

.contact-h2 { margin: 12px 0 18px; font-size: 30px; line-height: 1.15; word-spacing: 0; font-variation-settings: "opsz" 48; }
.topics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.topic { display: flex; flex-direction: column; padding: 28px; background: #fff; border-radius: 24px; box-shadow: 0 12px 30px rgba(3, 10, 13, 0.08); }
.topic .tile__icon { margin-bottom: 18px; }
.topic h3 { margin-bottom: 8px; }
.topic p { margin-bottom: 20px; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.topic .btn { margin-top: auto; align-self: flex-start; }

.contact-notes { padding: 36px 40px; background: var(--pale); border-radius: 28px; }
.contact-notes h2 { font-size: 26px; line-height: 1.2; word-spacing: 0; font-variation-settings: "opsz" 40; }
.contact-notes ul { display: grid; gap: 12px; margin-top: 18px; }
.contact-notes li { position: relative; padding-left: 22px; font-size: 16.5px; line-height: 1.6; color: var(--ink); }
.contact-notes li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.contact-notes a { color: var(--teal-text); text-underline-offset: 3px; }
.contact-notes__foot { margin-top: 20px; font-size: 15px; color: var(--ink-2); }

@media (max-width: 979px) {
  .contact-main { grid-template-columns: 1fr; gap: 28px; padding: 32px 28px; }
  .contact-data { margin-top: 18px; }
  .art--contact { top: -34px; width: 88px; height: 88px; }
}
@media (max-width: 719px) {
  .topics { grid-template-columns: 1fr; }
  .contact-notes { padding: 28px 22px; }
}
@media (max-width: 599px) {
  .contact-main { padding: 26px 18px; border-radius: 24px; }
  .contact-main h2, .contact-h2 { font-size: 25px; }
  .contact-mail { font-size: 19px; }
  .contact-main .btn, .topic .btn { width: 100%; }
  .topic { padding: 22px 18px; }
  .contact-data { padding: 20px 18px; }
}
@media print {
  .contact-main .btn, .topic .btn { display: none !important; }
}