/* =========================================================================
   Tenenzorio — sistema de diseño
   Tema oscuro cálido + acento cobre (referencia al cobre chileno)
   Tipografías locales: Space Grotesk (títulos) + Inter (texto)
   ========================================================================= */

/* ── Tokens ─────────────────────────────────────────────────────────────── */
:root {
  --bg:            #14110e;
  --surface:       #1c1814;
  --surface-2:     #241f19;
  --surface-3:     #2c2620;
  --border:        #372f26;
  --border-soft:   #2c2620;
  --text:          #f3ebe1;
  --text-muted:    #b3a795;
  --text-faint:    #8f8577;
  --accent:        #e0884f;
  --accent-hover:  #eda06c;
  --accent-tint:   rgba(224, 136, 79, .13);
  --accent-line:   rgba(224, 136, 79, .32);
  --ok:            #8fbf9c;
  --ok-tint:       rgba(143, 191, 156, .12);
  --bad:           #d9714f;
  --bad-tint:      rgba(217, 113, 79, .12);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  --shadow-sm: 0 1px 2px rgba(10, 8, 6, .5), 0 2px 8px rgba(10, 8, 6, .35);
  --shadow-md: 0 1px 3px rgba(10, 8, 6, .55), 0 10px 28px rgba(10, 8, 6, .38);
  --shadow-lg: 0 2px 6px rgba(10, 8, 6, .6), 0 24px 56px rgba(10, 8, 6, .5);

  --font-display: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;

  --container: 1200px;
  --header-h: 72px;
}

@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/spacegrotesk-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/spacegrotesk-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ── Reset y base ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; }
html:focus-within { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, iframe, video, canvas { max-width: 100%; display: block; }
iframe { border: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.01em;
  color: var(--text);
  overflow-wrap: break-word;
}
h1 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); }
h2 { font-size: clamp(1.45rem, 2.8vw, 2.1rem); }
h3 { font-size: 1.18rem; line-height: 1.3; }
h4 { font-size: 1.02rem; }

p + p { margin-top: .8em; }
ul, ol { padding-left: 1.3em; }
li + li { margin-top: .35em; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

strong { color: var(--text); font-weight: 600; }

/* ── Utilidades de layout ───────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 40px);
}

.section { padding-block: clamp(56px, 8vw, 96px); }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }

.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-bottom: .5em; }
.section-head .lead { color: var(--text-muted); font-size: 1.06rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 200;
  background: var(--accent);
  color: #1c140d;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  transition: top .18s ease;
}
.skip-link:focus { top: 12px; color: #1c140d; }

/* ── Botones ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1;
  padding: 15px 28px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--accent);
  color: #1c140d;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
  background: var(--accent-hover);
  color: #1c140d;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn--primary:active { transform: translateY(0); }
.btn--secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn--secondary:hover {
  border-color: var(--accent-line);
  background: var(--accent-tint);
  color: var(--text);
  transform: translateY(-2px);
}
.btn--sm { padding: 11px 20px; font-size: .92rem; }
.btn--block { width: 100%; }
.btn--lg { padding: 18px 34px; font-size: 1.05rem; }

/* ── Logo ───────────────────────────────────────────────────────────────── */
.logo { display: inline-flex; align-items: center; gap: 11px; }
.logo__text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.32rem;
  letter-spacing: -.015em;
  color: var(--text);
}

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: rgba(20, 17, 14, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
  transition: box-shadow .2s ease, background .2s ease;
}
.site-header.is-scrolled {
  background: rgba(18, 15, 12, .95);
  box-shadow: var(--shadow-md);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: var(--header-h);
}
.site-nav { margin-inline-end: auto; }
.site-nav__list { display: flex; align-items: center; gap: 4px; list-style: none; padding: 0; margin: 0; }
.site-nav__trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 0;
  color: var(--text);
  font-family: var(--font-body);
  font-size: .95rem;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.site-nav__trigger:hover, .site-nav__trigger[aria-expanded="true"] { background: var(--surface-2); }
.site-nav__caret { transition: transform .18s ease; color: var(--text-faint); }
.site-nav__trigger[aria-expanded="true"] .site-nav__caret { transform: rotate(180deg); color: var(--accent); }
.site-nav__link { color: var(--text); font-size: .95rem; padding: 10px 12px; border-radius: var(--radius-sm); display: inline-block; }
.site-nav__link:hover { background: var(--surface-2); }

.site-nav__dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 264px;
  max-width: min(320px, calc(100vw - 32px));
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 8px;
  opacity: 0;
  transform: translateY(4px);
  visibility: hidden;
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
  z-index: 40;
}
.site-nav__item { position: relative; }
.site-nav__item.is-open > .site-nav__dropdown,
.site-nav__item:focus-within > .site-nav__dropdown {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}
.site-nav__dropdown-list { list-style: none; margin: 0; padding: 0; max-height: min(420px, 62vh); overflow-y: auto; }
.site-nav__dropdown-link {
  display: block;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: .93rem;
  transition: background .14s ease, color .14s ease;
}
.site-nav__dropdown-link:hover { background: var(--accent-tint); color: var(--text); }
.site-nav__item:last-child .site-nav__dropdown { left: auto; right: 0; }

.site-header__actions { display: flex; align-items: center; gap: 12px; }

.nav-burger {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 7px;
  color: var(--text);
  cursor: pointer;
}
.nav-burger__icon--close { display: none; }
.nav-burger[aria-expanded="true"] .nav-burger__icon--open { display: none; }
.nav-burger[aria-expanded="true"] .nav-burger__icon--close { display: block; }

.mobile-menu {
  display: none;
  border-top: 1px solid var(--border-soft);
  background: var(--bg);
  padding-block: 14px 22px;
}
.mobile-menu.is-open { display: block; }
.mobile-menu__group { border-bottom: 1px solid var(--border-soft); }
.mobile-menu__group-title {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 2px;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--text);
  font-size: 1.02rem;
}
.mobile-menu__group-title::-webkit-details-marker { display: none; }
.mobile-menu__group[open] > .mobile-menu__group-title { color: var(--accent); }
.mobile-menu__links { list-style: none; padding: 2px 0 14px; margin: 0; display: grid; gap: 2px; }
.mobile-menu__links a {
  display: block;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: .95rem;
}
.mobile-menu__links a:hover { background: var(--surface-2); color: var(--text); }
.mobile-menu__cta { margin-top: 18px; }

/* ── Breadcrumbs ────────────────────────────────────────────────────────── */
.breadcrumbs { border-bottom: 1px solid var(--border-soft); background: var(--surface); }
.breadcrumbs__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  padding: 13px 0;
  margin: 0;
  font-size: .84rem;
  color: var(--text-faint);
}
.breadcrumbs__item + .breadcrumbs__item::before { content: "\203A"; margin-right: 10px; color: var(--text-faint); }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs [aria-current] { color: var(--text-muted); }

/* ── Héroe interior (páginas con formulario) ────────────────────────────── */
.hero {
  position: relative;
  overflow: clip;
  background:
    radial-gradient(1100px 520px at 12% -8%, rgba(224, 136, 79, .16), transparent 62%),
    radial-gradient(900px 480px at 96% 12%, rgba(143, 191, 156, .07), transparent 55%),
    var(--bg);
  border-bottom: 1px solid var(--border-soft);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Cpath d='M28 0H0v28' fill='none' stroke='%23372f26' stroke-opacity='.4' stroke-width='.6'/%3E%3C/svg%3E");
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.55), transparent 78%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.55), transparent 78%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 480px);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
  padding-block: clamp(48px, 6vw, 84px);
}
.hero__copy h1 { margin-bottom: 18px; }
.hero__copy .hero__text { color: var(--text-muted); font-size: 1.05rem; max-width: 58ch; }
.hero__aside { position: relative; z-index: 2; }

.page-hero__visual {
  position: absolute;
  right: -40px;
  bottom: -30px;
  width: min(360px, 34vw);
  opacity: .5;
  color: var(--accent);
  z-index: 0;
  pointer-events: none;
}

/* ── Héroe de portada ───────────────────────────────────────────────────── */
.hero--home .hero__inner { padding-block: clamp(48px, 6.5vw, 92px); }
.hero-motif {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-motif__grid { position: absolute; inset: 0; }
.hero-motif__canvas { position: absolute; right: -3%; top: 4%; width: 46%; min-width: 380px; height: 82%; opacity: .95; }
.hero-motif__static { position: absolute; right: 2%; top: 6%; width: 42%; min-width: 320px; opacity: .8; }

.hero-flags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
  font-size: .9rem;
  color: var(--text-muted);
}
.hero-flags__label { margin-right: 2px; }
.hero-flags__flag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px 7px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  font-size: .86rem;
  color: var(--text);
}
.flag {
  width: 26px;
  height: 18px;
  border-radius: 3px;
  overflow: hidden;
  display: inline-block;
  flex: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}
.hero-trust__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text);
  font-size: .92rem;
  font-weight: 500;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.hero-trust__link:hover {
  border-color: var(--accent-line);
  background: var(--accent-tint);
  color: var(--text);
  transform: translateY(-2px);
}
.hero-trust__link .icon-badge { width: 38px; height: 38px; border-radius: 10px; }

.hero-form-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 14px;
  font-size: .86rem;
  color: var(--text-muted);
}
.hero-form-note svg { flex: none; color: var(--accent); margin-top: 2px; }

/* ── Bloque de formulario ───────────────────────────────────────────────── */
.form-slot { position: relative; z-index: 2; }
.form-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: clamp(20px, 3vw, 32px);
  position: relative;
  z-index: 2;
}
.form-block__intro {
  color: var(--text-muted);
  font-size: .93rem;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--border);
}
.form-block__title { font-size: 1.12rem; margin-bottom: 14px; }
.form-block .bff { width: 100%; }
.form-legal {
  margin-top: 14px;
  font-size: .8rem;
  color: var(--text-faint);
  line-height: 1.55;
}
.form-legal a { color: var(--text-muted); text-decoration: underline; text-underline-offset: 2px; }
.form-legal a:hover { color: var(--accent); }

/* ── Icon badges y tarjetas ─────────────────────────────────────────────── */
.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex: none;
  background: var(--accent-tint);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-md);
  color: var(--accent);
}
.icon-badge--ok { background: var(--ok-tint); border-color: rgba(143,191,156,.3); color: var(--ok); }
.icon-badge--soft { background: var(--surface-3); border-color: var(--border); color: var(--text-muted); }
.icon-badge--round { border-radius: 999px; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 18px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-line);
}
.card h3 { margin: 14px 0 8px; }
.card p { color: var(--text-muted); font-size: .95rem; }
.card .icon-badge { margin-top: 2px; }
.card--link { display: block; color: var(--text); }
.card--link:hover { color: var(--text); }

/* ── Pasos numerados ────────────────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 18px;
  counter-reset: paso;
}
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.step:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--accent);
  color: #1c140d;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  margin-bottom: 14px;
}
.step h3 { margin-bottom: 8px; font-size: 1.06rem; }
.step p { color: var(--text-muted); font-size: .93rem; }

/* ── Tablas ─────────────────────────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  background: var(--surface);
  -webkit-overflow-scrolling: touch;
}
.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  font-size: .94rem;
}
.table-wrap th, .table-wrap td {
  text-align: left;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: top;
}
.table-wrap thead th {
  background: var(--surface-2);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .88rem;
  letter-spacing: .02em;
  color: var(--text);
  white-space: nowrap;
}
.table-wrap tbody tr:last-child td { border-bottom: 0; }
.table-wrap tbody tr:nth-child(even) { background: rgba(255, 255, 255, .015); }

.mark-yes { color: var(--ok); font-weight: 600; }
.mark-no  { color: var(--bad); font-weight: 600; }

.compare-table td:first-child { color: var(--text-muted); }
.compare-table .col-brand { background: var(--accent-tint); }
.compare-table thead .col-brand { color: var(--accent); }

/* ── Logos de exchanges ─────────────────────────────────────────────────── */
.exchanges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
}
.exchanges__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: .9rem;
  transition: color .18s ease, border-color .18s ease, transform .18s ease;
}
.exchanges__item:hover { color: var(--text); border-color: var(--accent-line); transform: translateY(-2px); }
.exchanges__item svg { color: var(--text-faint); }
.exchanges__item:hover svg { color: var(--accent); }

/* ── Reseñas ────────────────────────────────────────────────────────────── */
.reviews {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 18px;
}
.review {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.review:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.review__head { display: flex; align-items: center; gap: 14px; }
.review__avatar {
  border-radius: 999px;
  overflow: hidden;
  flex: none;
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}
.review__avatar svg { color: var(--text); opacity: .85; }
.review__name { font-family: var(--font-display); font-weight: 500; }
.review__meta { font-size: .82rem; color: var(--text-faint); }
.review__text { color: var(--text-muted); font-size: .94rem; flex: 1; }
.review__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  border-top: 1px dashed var(--border);
  padding-top: 14px;
}
.review__stat b { display: block; font-family: var(--font-display); font-size: .98rem; color: var(--text); font-weight: 500; }
.review__stat span { font-size: .74rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: .06em; }

.reviews-note {
  margin-top: 20px;
  font-size: .8rem;
  color: var(--text-faint);
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
}

/* ── Bloque empresa ─────────────────────────────────────────────────────── */
.company-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}
.company-facts {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}
.company-fact {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}
.company-fact svg { color: var(--accent); flex: none; margin-top: 2px; }
.company-fact b { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; color: var(--text-faint); font-weight: 500; margin-bottom: 3px; }
.company-fact span { font-size: .94rem; color: var(--text); }
.company-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 14px; }

/* ── FAQ ────────────────────────────────────────────────────────────────── */
.faq-list { display: grid; gap: 12px; max-width: 860px; margin-inline: auto; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color .18s ease;
}
.faq-item[open] { border-color: var(--accent-line); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 17px 20px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary svg { flex: none; color: var(--accent); transition: transform .18s ease; }
.faq-item[open] summary svg { transform: rotate(180deg); }
.faq-item__body { padding: 0 20px 18px; color: var(--text-muted); font-size: .95rem; }
.faq-item__body p + p { margin-top: .7em; }

/* ── Calculadora ────────────────────────────────────────────────────────── */
.calc-section { position: relative; }
.calc-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(760px 340px at 88% 20%, rgba(224, 136, 79, .1), transparent 60%),
    linear-gradient(180deg, transparent 0%, rgba(28, 24, 20, .9) 26%, rgba(28, 24, 20, .9) 74%, transparent 100%);
  pointer-events: none;
}
.calc-section .container { position: relative; z-index: 1; }
.calc-chart {
  width: 100%;
  height: 120px;
  margin-top: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  opacity: 0;
  transition: opacity .5s ease;
}
.calc-chart.is-visible { opacity: 1; }
@media (max-width: 767px) { .calc-chart { display: none; } }

/* ── Prosa de páginas ───────────────────────────────────────────────────── */
.prose { max-width: 820px; }
.prose > section, .doc-section { margin-bottom: clamp(30px, 4vw, 44px); }
.doc-section h2 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
}
.doc-section h2 .sec-num {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--accent);
  color: #1c140d;
  font-size: .88rem;
  font-weight: 700;
  transform: translateY(4px);
}
.doc-section p { color: var(--text-muted); margin-bottom: .8em; }
.doc-section p:last-child { margin-bottom: 0; }
.doc-section strong { color: var(--text); }
.doc-section ul, .doc-section ol { color: var(--text-muted); margin: .6em 0 .9em; }
.doc-section a { text-decoration: underline; text-underline-offset: 2px; }

.callout {
  display: flex;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--accent-line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin: 18px 0;
  color: var(--text-muted);
  font-size: .95rem;
}
.callout svg { flex: none; color: var(--accent); margin-top: 3px; }

.info-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 16px;
  margin: 18px 0;
}

/* ── Mapa ───────────────────────────────────────────────────────────────── */
.map-embed {
  width: 100%;
  max-width: 860px;
  aspect-ratio: 16 / 9;
  min-height: 320px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--surface);
}
@media (max-width: 640px) { .map-embed { min-height: 240px; } }
.map-embed iframe { width: 100%; height: 100%; }

/* ── Artículos ──────────────────────────────────────────────────────────── */
.article-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 28px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--accent-line); }
.article-card + .article-card { margin-top: 20px; }
.article-card h2 { font-size: 1.35rem; margin: 14px 0 10px; }
.article-card p { color: var(--text-muted); }
.article-card .read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-weight: 600;
  font-size: .92rem;
}

/* ── Decoración de secciones ────────────────────────────────────────────── */
.band {
  position: relative;
  border-block: 1px solid var(--border-soft);
  background:
    radial-gradient(900px 420px at 6% 0%, rgba(224, 136, 79, .08), transparent 58%),
    radial-gradient(700px 380px at 94% 100%, rgba(143, 191, 156, .05), transparent 55%),
    var(--surface);
}
.band--dots::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(243, 235, 225, .05) 1px, transparent 1.4px);
  background-size: 22px 22px;
  mask-image: linear-gradient(115deg, rgba(0,0,0,.8) 0%, transparent 45%);
  -webkit-mask-image: linear-gradient(115deg, rgba(0,0,0,.8) 0%, transparent 45%);
  pointer-events: none;
}
.band--nodes::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 320px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='none' stroke='%23e0884f' stroke-opacity='.16' stroke-width='1'%3E%3Cpath d='M20 20 70 50M70 50 120 26M70 50 50 110M50 110 118 128M120 26 118 128'/%3E%3C/g%3E%3Cg fill='%23e0884f' fill-opacity='.28'%3E%3Ccircle cx='20' cy='20' r='3'/%3E%3Ccircle cx='70' cy='50' r='3.5'/%3E%3Ccircle cx='120' cy='26' r='3'/%3E%3Ccircle cx='50' cy='110' r='3'/%3E%3Ccircle cx='118' cy='128' r='3'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat-y;
  mask-image: linear-gradient(to left, rgba(0,0,0,.7), transparent);
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,.7), transparent);
  pointer-events: none;
}
.band .container { position: relative; z-index: 1; }

/* ── Vacantes ───────────────────────────────────────────────────────────── */
.vacancy {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 14px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.vacancy:hover { border-color: var(--accent-line); box-shadow: var(--shadow-md); }
.vacancy__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.vacancy__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.vacancy__tag {
  font-size: .76rem;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.vacancy p { color: var(--text-muted); font-size: .95rem; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border-soft);
  background:
    radial-gradient(800px 380px at 90% -10%, rgba(224, 136, 79, .06), transparent 60%),
    #100e0b;
  padding-top: clamp(44px, 6vw, 72px);
  margin-top: auto;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.2fr) repeat(4, minmax(150px, 1fr));
  gap: 30px 22px;
  padding-bottom: 40px;
}
.site-footer__tagline { color: var(--text-muted); font-size: .92rem; margin: 16px 0 18px; max-width: 34ch; }
.site-footer__contact {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .88rem;
  color: var(--text-muted);
  margin-top: 8px;
}
.site-footer__contact svg { color: var(--accent); flex: none; }
.site-footer__contact a { color: var(--text-muted); }
.site-footer__contact a:hover { color: var(--accent); }
.site-footer__heading {
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-faint);
  font-family: var(--font-display);
  font-weight: 500;
  margin-bottom: 14px;
}
.site-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer__links a { color: var(--text-muted); font-size: .9rem; }
.site-footer__links a:hover { color: var(--accent); }
.site-footer__disclaimer {
  border-top: 1px solid var(--border-soft);
  padding-block: 24px;
}
.site-footer__disclaimer-title { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-faint); font-family: var(--font-display); font-weight: 500; margin-bottom: 10px; }
.site-footer__disclaimer p { color: var(--text-faint); font-size: .8rem; line-height: 1.7; }
.site-footer__bottom {
  border-top: 1px solid var(--border-soft);
  padding-block: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  font-size: .8rem;
  color: var(--text-faint);
}
.site-footer__entity { text-align: right; }

/* ── Página 404 ─────────────────────────────────────────────────────────── */
.error-hero { text-align: center; padding-block: clamp(70px, 10vw, 130px); }
.error-hero .error-code {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(4.5rem, 14vw, 8rem);
  line-height: 1;
  color: var(--accent);
  letter-spacing: -.03em;
}
.error-hero h1 { margin: 12px 0 14px; }
.error-hero p { color: var(--text-muted); max-width: 52ch; margin-inline: auto; }
.error-hero .btn { margin-top: 26px; }

/* ── Special offer ──────────────────────────────────────────────────────── */
.urgency-strip {
  background: linear-gradient(90deg, #3a1f12, #57301a 45%, #3a1f12);
  border-bottom: 1px solid rgba(224, 136, 79, .4);
}
.urgency-strip__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 34px;
  padding-block: 10px;
  font-size: .84rem;
  font-weight: 600;
  color: #ffd9b8;
}
.urgency-strip__inner span { display: inline-flex; align-items: center; gap: 8px; }
.urgency-strip__inner svg { color: var(--accent); }

.offer-hero { background: radial-gradient(1000px 460px at 50% -10%, rgba(224, 136, 79, .2), transparent 65%), var(--bg); }
.offer-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-tint);
  border: 1px solid var(--accent-line);
  color: var(--accent);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.offer-countdown-inline { display: flex; align-items: center; gap: 10px; margin-top: 20px; color: var(--text-muted); font-size: .9rem; }

.cd {
  display: inline-flex;
  gap: 6px;
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
}
.cd__seg {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.cd__digits {
  display: inline-flex;
  gap: 3px;
  background: #171310;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 9px;
}
.cd__digit {
  min-width: 26px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}
.cd__label { font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); }
.cd__sep { align-self: flex-start; margin-top: 13px; color: var(--accent); font-weight: 700; }

.offer-benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 16px; }

.cta-band {
  position: relative;
  overflow: clip;
  border-radius: var(--radius-xl);
  border: 1px solid var(--accent-line);
  background:
    radial-gradient(560px 240px at 12% 20%, rgba(224, 136, 79, .22), transparent 60%),
    linear-gradient(120deg, #2a1a10, #1c1814 60%);
  padding: clamp(32px, 5vw, 52px);
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { margin-bottom: 10px; }
.cta-band p { color: var(--text-muted); max-width: 56ch; margin-inline: auto; }
.cta-band .btn { margin-top: 22px; }

.exit-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.exit-modal.is-open { display: flex; }
.exit-modal__overlay { position: absolute; inset: 0; background: rgba(10, 8, 6, .78); backdrop-filter: blur(4px); }
.exit-modal__card {
  position: relative;
  z-index: 1;
  width: min(480px, 100%);
  background: var(--surface);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 30px 28px 26px;
  text-align: center;
  animation: modal-in .22s cubic-bezier(.2, .6, .2, 1);
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(14px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
.exit-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  color: var(--text);
  width: 36px;
  height: 36px;
  border-radius: 999px;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease, color .15s ease;
}
.exit-modal__close:hover { background: var(--accent); color: #1c140d; }
.exit-modal__art { margin: 0 auto 18px; width: 130px; color: var(--accent); }
.exit-modal__card h2 { font-size: 1.5rem; margin-bottom: 12px; }
.exit-modal__card p { color: var(--text-muted); font-size: .95rem; }
.exit-modal .cd { margin: 20px auto; }
.exit-modal .btn { width: 100%; }

/* ── Rendimiento: secciones bajo el pliegue se pintan al llegar ─────────── */
.section--cv { content-visibility: auto; contain-intrinsic-size: auto 560px; }
.no-cv { content-visibility: visible; }

/* ── Reveal / parallax ──────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .5s ease, transform .5s cubic-bezier(.2, .6, .2, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .site-footer__grid { grid-template-columns: repeat(3, 1fr); }
  .site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .site-nav { display: none; }
  .nav-burger { display: inline-flex; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__aside { max-width: 560px; }
  /* Portada en móvil: título → formulario → resto del texto (checklist CRO). */
  .hero--home .hero__inner { display: flex; flex-direction: column; }
  .hero--home .hero__copy { display: contents; }
  .hero--home .hero__copy > h1 { order: 1; }
  .hero--home .hero__aside { order: 2; width: 100%; max-width: 560px; }
  .hero--home .hero__lead { order: 3; margin-top: 28px; }
  .hero-motif__canvas, .hero-motif__static { opacity: .32; }
  .company-grid { grid-template-columns: 1fr; }
  .page-hero__visual { display: none; }
}
@media (max-width: 640px) {
  .site-header__actions .btn { display: none; }
  .hero-motif__canvas, .hero-motif__static { display: none; }
  .hero-motif::after {
    content: "";
    position: absolute;
    inset: auto 0 -60% 0;
    height: 60%;
    background: radial-gradient(360px 200px at 80% 100%, rgba(224, 136, 79, .14), transparent 70%);
  }
  .review__stats { grid-template-columns: 1fr 1fr; }
  .review__stat:last-child { grid-column: 1 / -1; }
  .site-footer__bottom { flex-direction: column; }
  .site-footer__entity { text-align: left; }
  .hero-trust__link { flex: 1 1 100%; }
}

/* ── Formulario inyectado (formFactory): ajustes de contraste/accesibilidad ── */
.form-block input[type="submit"],
.form-block button[type="submit"],
.calc-modal input[type="submit"],
.calc-modal button[type="submit"] {
  color: #1c140d !important;
  font-weight: 600 !important;
}
.form-block .iti--standard-dropdown,
.calc-modal .iti--standard-dropdown { background: transparent; }

/* ── Ticker inyectado por _beacon: contención responsive ────────────────── */
.tv-ticker-wrapper { max-width: 100%; }
.tv-ticker-host { max-width: 100%; max-width: 100vw; overflow: hidden; }

/* ── Movimiento reducido ────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-motif__canvas { display: none; }
}

/* Shared ticker and telephone field adjustments. */
.tv-ticker-wrapper {
    padding-top: 0 !important;
    height: 58px !important;
}

.iti__selected-country,
.iti__selected-dial-code {
    color: rgb(24, 33, 47) !important;
}

/* Home page */
.hero--regional,
.home-reviews {
    --home-edge: rgba(224, 136, 79, .33);
}

.hero--regional {
    border-bottom: 1px solid var(--home-edge);
}

.hero--regional h1 {
    text-wrap: balance;
}

.hero--regional .hero__inner {
    column-gap: clamp(32px, 5.2vw, 80px);
}

.home-reviews {
    gap: clamp(16px, 2vw, 28px);
}

.home-reviews .review,
.home-reviews .review-card {
    border-top: 2px solid var(--home-edge);
}

.home-reviews img.review__avatar,
.home-reviews img.review-avatar {
    display: block;
    width: 56px;
    height: 56px;
    object-fit: cover;
    border: 2px solid var(--home-edge);
    border-radius: 50%;
    flex: none;
}

/* Requested shared widget adjustments */
.tv-ticker-wrapper { padding-top: 0 !important; height: 58px !important; }
.iti__selected-country, .iti__selected-dial-code { color: rgb(24, 33, 47) !important; }

/* Homepage visual refinement */
.home-refresh { position:relative; isolation:isolate; overflow:hidden; background:rgb(23,19,15) !important; }
.home-refresh::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: linear-gradient(105deg, rgba(23,19,15, .91) 0%, rgba(23,19,15, .84) 32%, rgba(23,19,15, .40) 92%), url('../images/regional-finance.png');
    background-size: 100% 100%, 200% 300%;
    background-position: center, 100% 100%;
    pointer-events: none;
}
.home-refresh h1 { text-wrap:balance; letter-spacing:-.035em; line-height:1.12; }
.home-refresh .hero__copy { max-width:720px; }
.home-refresh .hero__lead, .home-refresh .hero__text { line-height:1.75; }
.home-refresh .hero__aside, .home-refresh .hero__form-col, .home-refresh .hero__form-wrap { filter:drop-shadow(0 18px 26px rgba(0,0,0,.14)); }
.home-refresh ~ .section .card { border-radius:18px; }
.home-reviews .review, .home-reviews .review-card { box-shadow:0 12px 30px rgba(0,0,0,.06); border-top:2px solid var(--accent); }
.review-photo { display:block; flex:0 0 56px; width:56px; height:56px; border-radius:50%; background-image:url('../images/review-portraits.png'); background-repeat:no-repeat; background-size:600% 300%; box-shadow:0 0 0 3px var(--accent-tint); }
@media (max-width: 700px) {
    .home-refresh::before {
        background-image: linear-gradient(110deg, rgba(23,19,15, .88), rgba(23,19,15, .69) 75%, rgba(23,19,15, .62)), url('../images/regional-finance.png');
    }
}
.review-photo-0 { background-position:0.000% 100%; }
.review-photo-1 { background-position:20.000% 100%; }
.review-photo-2 { background-position:40.000% 100%; }
.review-photo-3 { background-position:60.000% 100%; }
.review-photo-4 { background-position:100.000% 100%; }
.review-photo-5 { background-position:80.000% 100%; }

/* Homepage hero */
.home-refresh {
    --hero-edge: color-mix(in srgb, var(--accent) 27%, var(--border, var(--surface)));
    --hero-muted: color-mix(in srgb, var(--text) 86%, var(--surface));
    padding-block: clamp(40px, 5vw, 76px);
}

.home-refresh :is(.hero__grid, .hero-grid, .hero__inner) {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(340px, .9fr);
    gap: clamp(32px, 5vw, 76px);
    align-items: center;
    padding-block: 0;
}

.home-refresh :is(.hero__grid, .hero-grid, .hero__inner) > div {
    min-width: 0;
}

.home-refresh h1 {
    max-inline-size: 24ch;
    margin: 0 0 16px;
    font-size: clamp(2.25rem, 3.6vw, 3.125rem);
    letter-spacing: -.035em;
    line-height: 1.09;
    text-wrap: balance;
}

.home-refresh .hero__accent {
    color: var(--accent);
}

.home-refresh :is(p.hero__lead, .hero-sub, .hero__text) {
    max-inline-size: 55ch;
    margin: 0;
    color: var(--hero-muted);
    font-size: 1rem;
    line-height: 1.62;
}

.home-refresh :is(.hero__meta, .hero-meta, .hero__flags, .hero-flags) {
    margin-block: 20px 0;
    gap: 8px 12px;
}

.home-refresh :is(.hero__badges, .hero__links, .hero__trust, .hero-trust) {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-block: 14px 0;
}

.home-refresh :is(.hero__badge-link, .hero__link, .hero__trust-link, .trust-chip, .hero-trust-link, .trust-link, .hero-trust__link) {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-inline-size: 100%;
    min-block-size: 44px;
    padding: 6px 10px;
    border: 1px solid var(--hero-edge);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text);
    text-decoration: none;
    font-size: .875rem;
}

.home-refresh :is(.hero__badge-link, .hero__link, .hero__trust-link, .trust-chip, .hero-trust-link, .trust-link, .hero-trust__link):is(:hover, :focus-visible) {
    border-color: var(--accent);
}

.home-refresh .hero-registration {
    box-sizing: border-box;
    inline-size: 100%;
    max-inline-size: 470px;
    justify-self: end;
    padding: clamp(20px, 2.5vw, 32px);
    border: 1px solid var(--hero-edge);
    border-block-start: 3px solid var(--accent);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: 0 18px 48px rgba(0, 0, 0, .19);
}

.home-refresh .hero-registration :is(.form-slot, #registration-form, .hero-form-frame) {
    inline-size: 100%;
    max-inline-size: none;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.home-refresh .hero-registration :is(.form-heading, .form-block__heading, .form-block__title, .hero__form > h2, .form-block__intro:first-child) {
    margin: 0 0 16px;
    color: var(--text);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.25;
    text-wrap: pretty;
}

.home-refresh .hero-registration :is(.form-note, .form-block__note, .hero-form-note, .form-block__manager, .form-legal) {
    margin: 12px 0 0;
    color: var(--hero-muted);
    font-size: .8125rem;
    line-height: 1.5;
}

.home-refresh .hero-registration .form-legal {
    text-align: start;
}

.home-refresh .registration-form:has(> div:nth-child(5):last-child input[type="submit"]):not(:has(input[type="password"])) {
    grid-template: auto / repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.home-refresh .registration-form:has(> div:nth-child(5):last-child input[type="submit"]):not(:has(input[type="password"])) > div {
    grid-area: auto;
    min-width: 0;
}

.home-refresh .registration-form:has(> div:nth-child(5):last-child input[type="submit"]):not(:has(input[type="password"])) > div:nth-child(n + 3) {
    grid-column: 1 / -1;
}

.home-refresh .registration-form:has(> div:nth-child(5):last-child input[type="submit"]):not(:has(input[type="password"])) input:not([type="hidden"], .iti__search-input) {
    margin-block-end: 0;
}

.home-refresh .wpcf7-101 input:not([type="hidden"], [type="submit"], [type="checkbox"], [type="radio"], .iti__search-input) {
    min-height: 44px;
    border-radius: 9px;
}

.home-refresh .wpcf7-101 input[type="submit"] {
    min-height: 46px;
    border-radius: 9px;
    font-weight: 700;
}

.home-refresh .wpcf7-101 input:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.iti__country-name {color: #000!important}

@media (max-width: 840px) {
    .home-refresh {
        padding-block: 32px 40px;
    }

    .home-refresh :is(.hero__grid, .hero-grid, .hero__inner) {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
        align-items: start;
    }

    .home-refresh .hero__copy {
        display: block;
    }

    .home-refresh .hero-registration {
        order: 0;
        max-inline-size: 560px;
        justify-self: start;
    }

    .home-refresh h1 {
        max-inline-size: 27ch;
        margin-block-end: 12px;
        font-size: clamp(1.875rem, 6.5vw, 2.5rem);
        text-wrap: pretty;
    }

    .home-refresh :is(p.hero__lead, .hero-sub, .hero__text) {
        font-size: .9375rem;
        line-height: 1.55;
    }

    .home-refresh :is(.hero__badges, .hero__links, .hero__trust, .hero-trust) {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-inline-size: 420px;
    }

    .home-refresh :is(.hero__badge-link, .hero__link, .hero__trust-link, .trust-chip, .hero-trust-link, .trust-link, .hero-trust__link) {
        gap: 6px;
        padding-inline: 8px;
        font-size: .8125rem;
        line-height: 1.3;
    }

    .home-refresh :is(.hero__badges, .hero__links, .hero__trust, .hero-trust) :is(.icon-badge, .hero__trust-badge, .trust-chip__icon) {
        flex: 0 0 24px;
        inline-size: 24px !important;
        block-size: 24px !important;
    }

    .home-refresh .hero-registration :is(.form-heading, .form-block__heading, .form-block__title, .hero__form > h2, .form-block__intro:first-child) {
        margin-block-end: 14px;
        font-size: 1.125rem;
    }
}
