/* =========================================================
   The Proptech Master Servicios Residenciales — Hoja de estilos
   Paleta corporativa en variables CSS nativas (:root).
   ========================================================= */

/* ---------- 1. Variables y base ---------- */
:root {
  /* Paleta corporativa */
  --blue: #085dad; /* Azul The Proptech Master (primario) */
  --blue-dark: #064b8b;
  --green: #1aa13b; /* Verde éxito / certificación */
  --green-dark: #13832f;
  --ink: #172b40;
  --muted: #687c8e;
  --line: #e2e8f0;
  --danger: #c2410c;
  --surface: #ffffff; /* Fondo blanco */
  --mist: #f8fafc; /* Fondo gris tenue */
  /* Tipografía: Inter con respaldo en la fuente del sistema */
  --font-head: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 82px;
}
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
button,
input {
  font: inherit;
}
svg use {
  pointer-events: none;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}
/* ---------- 2. Encabezado y navegación ---------- */
.site-header {
  height: 78px;
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(8, 93, 173, 0.09);
  backdrop-filter: blur(16px);
}
.nav-wrap {
  max-width: 1320px;
  height: 100%;
  margin: auto;
  padding: 0 34px;
  display: flex;
  align-items: center;
  gap: 30px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
}
.brand-mark {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
}
.brand-mark svg {
  width: 100%;
  height: 100%;
}
.brand-mark-sm {
  width: 28px;
  height: 28px;
  flex: none;
}
.brand-copy {
  display: grid;
  gap: 2px;
}
.brand-copy strong {
  color: var(--blue);
  font: 800 15px var(--font-head);
  letter-spacing: 0.15px;
}
.brand-copy small {
  color: #607286;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(15px, 2.25vw, 30px);
  margin-left: auto;
}
.main-nav a {
  font-size: 12px;
  font-weight: 600;
  color: #4e6276;
  white-space: nowrap;
  transition: color 0.2s;
}
.main-nav a:hover,
.footer-col a:hover {
  color: var(--blue);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}
.button {
  border: 0;
  border-radius: 8px;
  min-height: 44px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 700;
  transition:
    transform 0.2s,
    background 0.2s,
    box-shadow 0.2s;
}
.button:hover {
  transform: translateY(-1px);
}
.button-outline {
  border: 1px solid #b7cee2;
  background: #fff;
  color: var(--blue);
}
.button-outline:hover {
  background: #f1f7fc;
  border-color: var(--blue);
}
.button-green {
  background: var(--green);
  color: #fff;
  box-shadow: 0 6px 16px rgba(26, 161, 59, 0.17);
}
.button-green:hover {
  background: var(--green-dark);
  box-shadow: 0 9px 20px rgba(26, 161, 59, 0.23);
}
.button-small {
  min-height: 41px;
  padding: 0 14px;
}
.menu-toggle {
  display: none;
}
/* ---------- 3. Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 128px 30px 78px;
  background: linear-gradient(110deg, #f7fbff 0%, #fff 60%, #f4fbf6 100%);
  min-height: 735px;
}
.hero-grid {
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(8, 93, 173, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 93, 173, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, #000, transparent 75%);
}
.hero:after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -180px;
  top: 65px;
  width: 570px;
  height: 570px;
  border: 1px solid rgba(8, 93, 173, 0.08);
  border-radius: 50%;
  box-shadow:
    0 0 0 55px rgba(8, 93, 173, 0.025),
    0 0 0 110px rgba(26, 161, 59, 0.02);
}
.hero-inner {
  max-width: 1240px;
  margin: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(440px, 500px);
  align-items: center;
  gap: clamp(35px, 6vw, 82px);
}
.hero-copy {
  padding: 20px 0;
}
.eyebrow {
  font-size: 11.5px;
  letter-spacing: 1.2px;
  font-weight: 800;
  color: var(--blue);
}
.hero-copy > .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(26, 161, 59, 0.12);
}
.hero h1 {
  max-width: 640px;
  margin: 20px 0 19px;
  color: #12304e;
  font: 800 clamp(42px, 5vw, 62px)/1.1 var(--font-head);
  letter-spacing: -2.9px;
}
.hero h1 em,
.section-heading h2 em,
.trades-heading h2 em,
.cert-copy h2 em,
.faq-intro h2 em {
  color: var(--blue);
  font-style: normal;
}
.hero-description {
  max-width: 550px;
  margin-bottom: 25px;
  color: #586d81;
  font-size: 14px;
  line-height: 1.8;
}
.hero-description strong {
  color: #334f69;
  font-weight: 700;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.hero-badges span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border: 1px solid #dce9e4;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.8);
  color: #436254;
  font-size: 11.5px;
  font-weight: 700;
}
.hero-badges b {
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e5f6e9;
  color: var(--green);
  font-size: 11.5px;
}
.institution-lockup {
  max-width: 470px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  padding-top: 19px;
  border-top: 1px solid #e2eaf0;
  color: #718195;
  font-size: 11.5px;
  line-height: 1.6;
}
.institution-lockup strong {
  display: block;
  color: #4c6074;
  font-size: 11.5px;
}
.institution-lockup strong b {
  color: var(--blue);
}
.mini-pixel {
  position: relative;
  width: 28px;
  height: 28px;
  display: block;
  flex: none;
}
.mini-pixel i {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--blue);
}
.mini-pixel i:nth-child(1) {
  left: 0;
  top: 9px;
}
.mini-pixel i:nth-child(2) {
  left: 9px;
  top: 0;
  background: var(--green);
}
.mini-pixel i:nth-child(3) {
  right: 0;
  top: 9px;
}
.mini-pixel i:nth-child(4) {
  left: 9px;
  top: 9px;
  background: var(--green);
}
.mini-pixel i:nth-child(5) {
  left: 9px;
  bottom: 0;
  background: var(--blue);
}
.pixel-decoration {
  position: absolute;
  display: grid;
  grid-template-columns: repeat(3, 12px);
  gap: 5px;
  opacity: 0.55;
}
.pixel-decoration i {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--blue);
}
.pixel-decoration i:nth-child(2n) {
  background: var(--green);
}
.pixel-hero {
  right: 3%;
  top: 15%;
  transform: rotate(-9deg);
}
/* ---------- 4. Tarjeta de registro (selector, formularios, wizard) ---------- */
.signup-card {
  position: relative;
  background: #fff;
  color: var(--ink);
  padding: 25px;
  border: 1px solid #e4ebf0;
  border-radius: 15px;
  box-shadow: 0 22px 65px rgba(19, 62, 99, 0.13);
  min-height: 524px;
}
.signup-card:before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, var(--blue), var(--green));
}
.signup-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin: 3px 0 16px;
}
.signup-card-heading .eyebrow {
  font-size: 11px;
}
.signup-card-heading h2 {
  margin: 6px 0 0;
  color: #163856;
  font: 750 19px var(--font-head);
  letter-spacing: -0.5px;
}
.secure-label {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 8px;
  background: #edf8ef;
  color: #238441;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}
.secure-label span {
  font-size: 14px;
}
.role-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 18px;
}
.role-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  text-align: left;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  transition: 0.2s;
  min-height: 62px;
}
.role-option:hover {
  border-color: #91b8dc;
  background: #fafcff;
}
.role-option.is-active {
  background: #f0f7fd;
  border-color: var(--blue);
  box-shadow: inset 0 0 0 1px rgba(8, 93, 173, 0.07);
}
.role-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex: none;
  background: #eef4f9;
  border-radius: 8px;
  color: var(--blue);
  font-size: 19px;
}
.role-option.is-active .role-icon {
  background: #dcecf9;
}
.role-option strong,
.role-option small {
  display: block;
}
.role-option strong {
  font-size: 11.5px;
  line-height: 1.3;
}
.role-option small {
  margin-top: 4px;
  color: #7d8d9b;
  font-size: 10px;
  line-height: 1.2;
}
.role-check {
  display: none;
  position: absolute;
  right: 6px;
  top: 6px;
  width: 15px;
  height: 15px;
  background: var(--green);
  color: white;
  border-radius: 50%;
  font-size: 11px;
  text-align: center;
  line-height: 15px;
}
.role-option.is-active .role-check {
  display: block;
}
.form-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 13px;
}
.form-title-row h3 {
  margin: 0;
  color: #173b5c;
  font: 750 15px var(--font-head);
  letter-spacing: -0.3px;
}
.form-title-row p {
  margin: 4px 0 0;
  color: #798a99;
  font-size: 11.5px;
}
.step-count {
  font: 800 11px var(--font-head);
  color: var(--blue);
}
.step-count i {
  font-style: normal;
  color: #95a2ad;
  font-weight: 500;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px 10px;
}
.field {
  display: block;
  color: #425a6e;
  font-size: 11px;
  font-weight: 700;
}
.field input {
  width: 100%;
  height: 37px;
  margin-top: 5px;
  padding: 0 10px;
  border: 1px solid #dfe7ed;
  border-radius: 6px;
  outline: 0;
  background: #fff;
  color: var(--ink);
  font-size: 11.5px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.field input::placeholder {
  color: #a1adb7;
}
.field input:focus {
  border-color: #5392c8;
  box-shadow: 0 0 0 3px rgba(8, 93, 173, 0.09);
}
.full-field {
  grid-column: 1/-1;
}
.form-submit {
  width: 100%;
  min-height: 41px;
  margin-top: 13px;
  font-size: 11px;
}
.form-submit span {
  font-size: 15px;
}
.form-footnote {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 10px 0 0;
  color: #87949f;
  font-size: 10px;
}
.is-hidden {
  display: none !important;
}
.worker-flow {
  min-height: 360px;
}
.step-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  margin: 3px 0 13px;
}
.step-track span {
  height: 3px;
  border-radius: 2px;
  background: #e7edf1;
}
.step-track span.is-current,
.step-track span.is-done {
  background: var(--green);
}
.worker-step {
  display: none;
}
.worker-step.is-current {
  display: block;
}
.worker-step .form-grid {
  gap: 10px;
}
.worker-step .field input {
  height: 39px;
}
.worker-step > .form-submit {
  margin-top: 14px;
}
.trade-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}
.trade-fieldset legend {
  color: #40596e;
  font-size: 11.5px;
  font-weight: 700;
}
.trade-fieldset > p {
  margin: 4px 0 9px;
  color: #8795a0;
  font-size: 11px;
}
.trade-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.trade-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 39px;
  padding: 5px 7px;
  border: 1px solid #e2e8ed;
  border-radius: 7px;
  color: #42596b;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
}
.trade-option:has(input:checked) {
  border-color: var(--green);
  background: #f1faf2;
  color: #25713b;
}
.trade-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.trade-icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: #f0f5f8;
  color: var(--blue);
  font-size: 13px;
  flex: none;
}
.trade-option:has(input:checked) .trade-icon {
  background: #dcf2e0;
  color: var(--green);
}
.step-buttons {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}
.step-buttons .button {
  min-width: 139px;
  min-height: 38px;
  font-size: 11.5px;
}
.text-button {
  border: 0;
  background: transparent;
  color: #55718a;
  font-size: 11.5px;
  font-weight: 700;
  padding: 8px;
}
.text-button:hover {
  color: var(--blue);
}
.upload-heading h4 {
  margin: 0;
  color: #40596e;
  font-size: 11px;
}
.upload-heading p {
  margin: 4px 0 10px;
  color: #8795a0;
  font-size: 11px;
}
.upload-list {
  display: grid;
  gap: 6px;
}
.upload-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 54px;
  padding: 7px;
  border: 1px solid #e2e8ed;
  border-radius: 7px;
  cursor: pointer;
}
.upload-row:hover {
  border-color: #84c997;
  background: #fbfefb;
}
.upload-symbol {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 7px;
  background: #eef7ef;
  color: var(--green);
  font-size: 15px;
}
.upload-copy {
  flex: 1;
  min-width: 0;
}
.upload-copy strong,
.upload-copy small {
  display: block;
}
.upload-copy strong {
  color: #40596e;
  font-size: 11px;
}
.upload-copy small {
  margin-top: 3px;
  color: #95a1aa;
  font-size: 10px;
}
.upload-action {
  position: relative;
  overflow: hidden;
  padding: 6px 8px;
  border: 1px solid #dce7de;
  border-radius: 5px;
  color: #21833b;
  font-size: 10px;
  font-weight: 700;
}
.upload-action input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.upload-footnote {
  margin-top: 8px;
}
.worker-review {
  padding: 2px 0 0;
}
.review-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 10px;
  display: grid;
  place-items: center;
  background: #e7f6ea;
  color: var(--green);
  border-radius: 50%;
  font-size: 20px;
  font-weight: 700;
}
.worker-review h3,
.client-success h3 {
  margin: 0 0 7px;
  color: #173b5c;
  font: 750 18px var(--font-head);
}
.worker-review > p,
.client-success > p {
  max-width: 330px;
  margin: 0 auto 10px;
  color: #738594;
  font-size: 11.5px;
  line-height: 1.6;
}
.worker-review .form-submit {
  margin-top: 7px;
}
.client-success {
  padding: 38px 8px 0;
  text-align: center;
}
.success-check {
  width: 48px;
  height: 48px;
  margin: 0 auto 13px;
  display: grid;
  place-items: center;
  background: #e6f6e9;
  color: var(--green);
  border-radius: 50%;
  font-size: 22px;
  font-weight: 700;
}
.client-success h3 {
  margin-bottom: 8px;
}
.client-success > p {
  margin-bottom: 14px;
  font-size: 11px;
}
.app-pills {
  display: flex;
  justify-content: center;
  gap: 8px;
}
.app-pills a {
  padding: 9px 11px;
  background: #13385a;
  color: #fff;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
}
.client-success .text-button {
  display: block;
  margin: 9px auto;
}
.scroll-cue {
  position: absolute;
  bottom: 23px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 9px;
  color: #8293a0;
  font-size: 11px;
  letter-spacing: 0.3px;
}
.scroll-cue span {
  width: 15px;
  height: 22px;
  display: block;
  border: 1px solid #8fa1ad;
  border-radius: 10px;
  position: relative;
}
.scroll-cue span:after {
  content: "";
  position: absolute;
  top: 4px;
  left: 6px;
  width: 2px;
  height: 5px;
  background: var(--green);
  border-radius: 2px;
  animation: scroll 1.4s infinite;
}
@keyframes scroll {
  to {
    transform: translateY(7px);
    opacity: 0.2;
  }
}
/* ---------- 5. Secciones informativas ---------- */
.section-pad {
  padding: 92px 30px;
}
.benefits-section {
  max-width: 1240px;
  margin: auto;
}
.section-heading {
  text-align: center;
  max-width: 610px;
  margin: 0 auto 38px;
}
.section-heading h2,
.trades-heading h2,
.faq-intro h2 {
  margin: 12px 0;
  color: #173957;
  font: 800 36px/1.2 var(--font-head);
  letter-spacing: -1.4px;
}
.section-heading > p,
.faq-intro > p {
  max-width: 490px;
  margin: 0 auto;
  color: #718294;
  font-size: 13px;
  line-height: 1.7;
}
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.benefit-card {
  padding: 25px 24px 23px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: white;
  box-shadow: 0 8px 28px rgba(23, 57, 87, 0.035);
}
.benefit-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #eaf5fc;
  color: var(--blue);
  font-size: 18px;
  font-weight: 700;
}
.benefit-card:nth-child(2) .benefit-icon {
  background: #eaf7ed;
  color: var(--green);
}
.benefit-card h3 {
  margin: 17px 0 7px;
  color: #254663;
  font: 750 14px var(--font-head);
}
.benefit-card p {
  max-width: 300px;
  margin: 0;
  color: #778896;
  font-size: 11px;
  line-height: 1.7;
}
.trades-section {
  background: #f6f9fc;
  padding: 82px max(30px, calc((100vw - 1180px) / 2));
}
.trades-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin: 0 0 29px;
}
.trades-heading h2 {
  margin-bottom: 0;
}
.trades-heading > p {
  max-width: 300px;
  margin: 0 0 5px;
  color: #728496;
  font-size: 12px;
  line-height: 1.7;
}
.public-trade-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.public-trade-grid article {
  min-height: 116px;
  padding: 16px;
  border: 1px solid #e3eaf0;
  border-radius: 9px;
  background: #fff;
  transition:
    transform 0.2s,
    border-color 0.2s,
    box-shadow 0.2s;
}
.public-trade-grid article:hover {
  transform: translateY(-3px);
  border-color: #b6d1e5;
  box-shadow: 0 10px 25px rgba(8, 93, 173, 0.07);
}
.public-trade-grid article > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #edf5fb;
  color: var(--blue);
  font-size: 17px;
}
.public-trade-grid article:nth-child(even) > span {
  background: #edf7ef;
  color: var(--green);
}
.public-trade-grid h3 {
  margin: 13px 0 0;
  color: #36546d;
  font-size: 11.5px;
  line-height: 1.4;
  font-weight: 700;
}
.cert-section {
  position: relative;
  overflow: hidden;
  padding: 79px 30px;
  background: #f2f8fd;
}
.cert-pattern {
  right: 5%;
  top: 10%;
  transform: rotate(12deg);
  opacity: 0.22;
}
.cert-inner {
  position: relative;
  max-width: 1130px;
  margin: auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 80px;
}
.eyebrow-green {
  color: var(--green);
}
.cert-copy h2 {
  margin: 14px 0;
  color: #173957;
  font: 800 39px/1.16 var(--font-head);
  letter-spacing: -1.6px;
}
.cert-copy > p {
  max-width: 370px;
  margin: 0;
  color: #718294;
  font-size: 12px;
  line-height: 1.8;
}
.institute-full {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding-top: 17px;
  border-top: 1px solid #dce8f1;
  color: #607489;
  font-size: 11.5px;
  line-height: 1.55;
}
.institute-full .brand-mark {
  width: 36px;
  height: 36px;
}
.institute-full strong {
  color: var(--blue);
  font-weight: 800;
}
.cert-steps {
  display: grid;
  gap: 10px;
}
.cert-steps article {
  display: flex;
  align-items: flex-start;
  gap: 17px;
  padding: 17px 19px;
  border: 1px solid #e0e9f0;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 6px 22px rgba(27, 68, 102, 0.04);
}
.cert-number {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 8px;
  background: #eaf4fb;
  color: var(--blue);
  font: 800 11px var(--font-head);
}
.cert-steps article:nth-child(2) .cert-number {
  background: #edf7ef;
  color: var(--green);
}
.cert-steps h3 {
  margin: 2px 0 4px;
  color: #284963;
  font: 750 12px var(--font-head);
}
.cert-steps p {
  max-width: 370px;
  margin: 0;
  color: #778896;
  font-size: 11.5px;
  line-height: 1.6;
}
/* ---------- 6. Preguntas frecuentes ---------- */
.faq-section {
  max-width: 1180px;
  margin: auto;
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 85px;
}
.faq-intro h2 {
  font-size: 33px;
}
.faq-intro > p {
  margin: 0;
  font-size: 12px;
}
.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 17px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--blue);
  font-size: 11.5px;
  font-weight: 700;
}
.inline-link span {
  font-size: 16px;
  transition: transform 0.2s;
}
.inline-link:hover span {
  transform: translateX(4px);
}
.faq-list details {
  border-bottom: 1px solid #e5ebf0;
}
.faq-list details:first-child {
  border-top: 1px solid #e5ebf0;
}
.faq-list summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 17px 38px 17px 1px;
  color: #2e4b65;
  font-size: 12px;
  font-weight: 700;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-plus {
  position: absolute;
  right: 4px;
  top: 50%;
  width: 21px;
  height: 21px;
  transform: translateY(-50%);
  border: 1px solid #dbe5ec;
  border-radius: 50%;
}
.faq-plus:before,
.faq-plus:after {
  content: "";
  position: absolute;
  left: 6px;
  top: 9px;
  width: 7px;
  height: 1px;
  background: var(--blue);
  transition: transform 0.2s;
}
.faq-plus:after {
  transform: rotate(90deg);
}
.faq-list details[open] .faq-plus:after {
  transform: rotate(0);
}
.faq-content {
  overflow: hidden;
}
.faq-list details p {
  max-width: 570px;
  margin: -2px 32px 16px 1px;
  color: #758696;
  font-size: 11px;
  line-height: 1.7;
}
/* ---------- 7. Pie de página ---------- */
.site-footer {
  padding: 48px 30px 0;
  background: #f8fafc;
  border-top: 1px solid #e7edf2;
}
.footer-top {
  max-width: 1160px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.45fr 0.75fr 0.95fr 1fr;
  gap: 38px;
  padding-bottom: 36px;
}
.footer-brand-col > p {
  max-width: 250px;
  margin: 13px 0 12px;
  color: #718294;
  font-size: 11.5px;
  line-height: 1.6;
}
.footer-contact {
  display: block;
  width: fit-content;
  margin: 5px 0;
  color: #536b80;
  font-size: 11.5px;
}
.footer-contact:hover {
  color: var(--blue);
}
.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
}
.footer-col h3 {
  margin: 2px 0 4px;
  color: #304f69;
  font: 750 11px var(--font-head);
}
.footer-col > a {
  color: #718294;
  font-size: 11.5px;
  transition: color 0.2s;
}
.store-badge {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 145px;
  padding: 7px 10px;
  border-radius: 6px;
  background: #143b60;
  color: white !important;
}
.store-icon {
  width: 20px;
  text-align: center;
  color: #8edc9d;
  font-size: 16px;
}
.store-badge > span:last-child {
  font-size: 9px;
  line-height: 1.15;
  letter-spacing: 0.25px;
}
.store-badge strong {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  letter-spacing: 0;
}
.footer-bottom {
  max-width: 1160px;
  min-height: 51px;
  margin: auto;
  border-top: 1px solid #e4ebf0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #8a98a4;
  font-size: 11px;
}
.footer-bottom b {
  color: var(--green);
  font-size: 11px;
}
/* ---------- 8. Chatbot flotante ---------- */
.chat-widget {
  position: fixed;
  right: 24px;
  bottom: 86px; /* arriba de la etiqueta "Powered by Netlify" */
  z-index: 30;
}
.chat-launcher {
  height: 53px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 15px;
  border: 0;
  border-radius: 28px;
  background: linear-gradient(125deg, var(--blue), var(--green));
  color: #fff;
  box-shadow: 0 8px 27px rgba(8, 79, 109, 0.3);
  transition: transform 0.2s;
}
.chat-launcher:hover {
  transform: translateY(-2px);
}
.chat-launch-logo {
  width: 30px;
  height: 30px;
  padding: 4px;
  margin-left: -4px;
  border-radius: 50%;
  background: #fff;
  display: grid;
}
.chat-launch-logo svg,
.chat-avatar svg {
  width: 100%;
  height: 100%;
}
.chat-launch-label {
  font-size: 11px;
  font-weight: 700;
}
.chat-close-icon {
  display: none;
  font-size: 23px;
  line-height: 1;
}
.chat-panel {
  position: absolute;
  right: 0;
  bottom: 66px;
  width: 350px;
  height: min(560px, calc(100vh - 110px));
  display: none;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e2e9ef;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 55px rgba(10, 40, 70, 0.22);
}
.chat-widget.is-open .chat-panel {
  display: flex;
}
.chat-widget.is-open .chat-launch-label,
.chat-widget.is-open .chat-launch-logo {
  display: none;
}
.chat-widget.is-open .chat-close-icon {
  display: block;
}
.chat-header {
  height: 64px;
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  background: var(--blue);
  color: #fff;
}
.chat-avatar {
  width: 34px;
  height: 34px;
  padding: 5px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #fff;
}
.chat-header strong,
.chat-header small {
  display: block;
}
.chat-header strong {
  font-size: 11px;
}
.chat-header small {
  margin-top: 4px;
  color: #d5e8f7;
  font-size: 10px;
}
.chat-header small i {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 4px;
  border-radius: 50%;
  background: #6edf83;
}
.chat-close {
  margin-left: auto;
  width: 27px;
  height: 27px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
  font-size: 19px;
}
.chat-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 8px 10px 0;
  border-bottom: 1px solid #edf1f4;
}
.chat-tab {
  padding: 9px 4px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: white;
  color: #788a99;
  font-size: 11px;
  font-weight: 700;
}
.chat-tab.is-active {
  border-color: var(--green);
  color: var(--blue);
}
.chat-messages {
  flex: 1;
  overflow: auto;
  padding: 13px 12px;
  background: #f7f9fb;
}
.chat-time {
  text-align: center;
  margin: 0 0 11px;
  color: #9aa6b0;
  font-size: 9px;
  letter-spacing: 0.8px;
}
.message {
  max-width: 90%;
  width: fit-content;
  margin: 0 0 8px;
  padding: 9px 10px;
  border-radius: 9px;
  font-size: 11px;
  line-height: 1.5;
}
.bot-message {
  border: 1px solid #e5ebf0;
  border-top-left-radius: 3px;
  background: #fff;
  color: #526a7e;
}
.user-message {
  margin-left: auto;
  border-top-right-radius: 3px;
  background: #e7f5e9;
  color: #315e39;
}
.quick-bar {
  flex: none;
  padding: 8px 10px 0;
  background: #fff;
  border-top: 1px solid #edf0f3;
}
.quick-group {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.quick-group button {
  padding: 7px 9px;
  border: 1px solid #dfe8ef;
  border-radius: 999px;
  background: #fff;
  color: #4d6579;
  text-align: left;
  font-size: 10px;
  line-height: 1.35;
  transition: 0.18s;
}
.quick-group button:hover {
  border-color: #9fc4df;
  color: var(--blue);
  background: #f9fcff;
}
.chat-compose {
  height: 49px;
  flex: none;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  background: #fff;
}
.chat-compose input {
  height: 33px;
  flex: 1;
  min-width: 0;
  padding: 0 9px;
  border: 1px solid #e1e8ed;
  border-radius: 7px;
  outline: 0;
  color: #29465e;
  font-size: 11px;
}
.chat-compose input:focus {
  border-color: #76a9d0;
}
.chat-compose button {
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: var(--green);
  color: #fff;
}
.chat-compose button svg {
  width: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.chat-powered {
  height: 19px;
  flex: none;
  text-align: center;
  color: #98a4ad;
  font-size: 8px;
  letter-spacing: 0.8px;
}
/* ---------- 9. Modal de éxito ---------- */
.success-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 34, 52, 0.55);
  backdrop-filter: blur(4px);
}
.modal-card {
  position: relative;
  width: min(420px, 100%);
  padding: 34px 30px 29px;
  border: 1px solid #e5ebef;
  border-radius: 15px;
  background: #fff;
  text-align: center;
  box-shadow: 0 25px 75px rgba(5, 29, 50, 0.25);
  animation: modal-in 0.2s ease-out;
}
.modal-close {
  position: absolute;
  right: 13px;
  top: 11px;
  width: 29px;
  height: 29px;
  border: 0;
  border-radius: 50%;
  background: #f1f5f8;
  color: #587084;
  font-size: 20px;
}
.modal-card .success-check {
  margin-bottom: 15px;
}
.modal-card h2 {
  margin: 8px 0;
  color: #173b5c;
  font: 800 22px var(--font-head);
}
.modal-card > p {
  max-width: 330px;
  margin: 0 auto 15px;
  color: #708295;
  font-size: 12px;
  line-height: 1.65;
}
.review-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border-radius: 7px;
  background: #eff8f0;
  color: #3d7949;
  font-size: 11px;
  font-weight: 700;
}
.review-status i {
  width: 7px;
  height: 7px;
  background: #e4aa36;
  border-radius: 50%;
  box-shadow: 0 0 0 3px #fff0d5;
}
.modal-done {
  width: 100%;
  margin-top: 19px;
}
@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(7px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
/* ---------- 9b. Componentes interactivos añadidos ---------- */

/* Enlace "saltar al contenido" (accesibilidad con teclado) */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
}
.skip-link:focus {
  top: 12px;
}

/* Foco visible y consistente para teclado */
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.client-success:focus {
  outline: none;
}

/* Teléfono en el encabezado */
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 4px;
  color: #4e6276;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.header-phone span {
  color: var(--green);
  font-size: 15px;
}
.header-phone:hover {
  color: var(--blue);
}

/* --- Validación en tiempo real --- */
.field-error {
  display: block;
  min-height: 0;
  margin-top: 4px;
  color: var(--danger);
  font-size: 10px;
  font-weight: 600;
}
.field-error:empty {
  display: none;
}
.field-hint {
  display: block;
  margin-top: 4px;
  color: #8795a0;
  font-size: 10px;
  font-weight: 500;
}
.field input[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(194, 65, 12, 0.08);
}
.field input.is-valid {
  border-color: #7cc890;
  background:
    #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3 8.5 3 3 7-7' fill='none' stroke='%231AA13B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    no-repeat right 10px center / 13px;
  padding-right: 30px;
}

/* Contraseña: botón "Ver" y medidor de seguridad */
.password-wrap {
  position: relative;
  display: block;
}
.password-wrap input.is-valid,
.password-wrap input {
  padding-right: 52px;
  background-position: right 46px center;
}
.password-toggle {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  margin-top: 2.5px;
  padding: 4px 7px;
  border: 0;
  border-radius: 5px;
  background: #eef4f9;
  color: var(--blue);
  font-size: 10px;
  font-weight: 700;
}
.strength {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-top: 6px;
}
.strength i {
  height: 3px;
  border-radius: 2px;
  background: #e7edf1;
  transition: background 0.25s;
}
.strength[data-level="1"] i:nth-child(-n + 1) {
  background: #e4572e;
}
.strength[data-level="2"] i:nth-child(-n + 2) {
  background: #e4aa36;
}
.strength[data-level="3"] i:nth-child(-n + 3) {
  background: #7cc890;
}
.strength[data-level="4"] i {
  background: var(--green);
}

/* --- Botón con spinner (envío asíncrono simulado) --- */
.button .spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.button.is-loading {
  pointer-events: none;
  opacity: 0.85;
}
.button.is-loading .spinner {
  display: inline-block;
}
.button.is-loading .btn-label {
  display: none;
}
.btn-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* --- Wizard: oficios (selección múltiple con efecto activo) --- */
.trade-option {
  transition:
    border-color 0.18s,
    background 0.18s,
    transform 0.18s;
}
.trade-option:hover {
  border-color: #9fc4df;
}
.trade-option:has(input:checked) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26, 161, 59, 0.12);
}
.trade-option:has(input:focus-visible) {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.trade-counter {
  color: var(--green);
  font-weight: 700;
}
.trade-error,
.upload-error {
  margin-top: 8px;
}

/* --- Wizard: zonas de carga con drag & drop --- */
.dropzone {
  position: relative;
  border: 1px dashed #cbd8e2;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  transition:
    border-color 0.18s,
    background 0.18s;
}
.dropzone:hover,
.dropzone.is-dragover {
  border-color: var(--green);
  background: #f4fbf5;
}
.dropzone.is-dragover {
  border-style: solid;
}
.dropzone-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.dropzone-input:focus-visible + .dropzone-body {
  outline: 2px solid var(--blue);
  outline-offset: -2px;
}
.dropzone-body {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 56px;
  padding: 8px 40px 8px 8px;
  cursor: pointer;
}
.dz-status {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dz-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: transparent;
}
.dz-progress i {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--green));
  transition: width 0.12s linear;
}
.dropzone.is-uploading .upload-action {
  color: var(--blue);
}
.dropzone.is-done {
  border-style: solid;
  border-color: #9fd6ad;
  background: #f6fcf7;
}
.dropzone.is-done .upload-action {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.dropzone.is-error {
  border-color: var(--danger);
  background: #fff8f5;
}
.dropzone.is-error .dz-status {
  color: var(--danger);
}
.dz-remove {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: #eef2f5;
  color: #587084;
  font-size: 16px;
  line-height: 1;
}
.dropzone.has-remove .upload-action {
  display: none;
}
.dz-remove:hover {
  background: #fde7df;
  color: var(--danger);
}

/* --- Wizard: resumen (paso 4) --- */
.review-title {
  margin: 0 0 8px;
  color: #40596e;
  font-size: 12px;
}
.review-list {
  margin: 0;
  border: 1px solid #e2e8ed;
  border-radius: 8px;
  overflow: hidden;
}
.review-list div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px;
  padding: 8px 10px;
  font-size: 11px;
  line-height: 1.45;
}
.review-list div:nth-child(odd) {
  background: var(--mist);
}
.review-list dt {
  color: #7d8d9b;
  font-weight: 600;
}
.review-list dd {
  margin: 0;
  color: #24425c;
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* --- Folio en el modal --- */
.folio-box {
  display: grid;
  justify-items: center;
  gap: 4px;
  margin: 0 auto 14px;
  padding: 12px;
  border: 1px dashed #b7cee2;
  border-radius: 10px;
  background: #f4f9fd;
}
.folio-box small {
  color: #708295;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.folio-box strong {
  color: var(--blue);
  font: 800 20px var(--font-head);
  letter-spacing: 1px;
}
.folio-box .text-button {
  padding: 2px 6px;
}

/* --- Chat: indicador "escribiendo..." y animación del botón --- */
.typing {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9fb2c2;
  animation: typing 1s infinite ease-in-out;
}
.typing i:nth-child(2) {
  animation-delay: 0.15s;
}
.typing i:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes typing {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.45;
  }
  40% {
    transform: translateY(-4px);
    opacity: 1;
  }
}
.message {
  animation: msg-in 0.2s ease-out;
}
@keyframes msg-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
}
.chat-launcher {
  animation: launcher-pulse 2.6s ease-in-out 1.5s 3;
}
@keyframes launcher-pulse {
  0%,
  100% {
    box-shadow:
      0 8px 27px rgba(8, 79, 109, 0.3),
      0 0 0 0 rgba(26, 161, 59, 0.35);
  }
  50% {
    box-shadow:
      0 8px 27px rgba(8, 79, 109, 0.3),
      0 0 0 12px rgba(26, 161, 59, 0);
  }
}
.chat-widget.is-open .chat-panel {
  animation: modal-in 0.2s ease-out;
}
.bot-message a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: underline;
}

/* --- Aviso breve (toast) --- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 80;
  max-width: calc(100vw - 32px);
  padding: 11px 16px;
  border-radius: 9px;
  background: #13385a;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(10, 40, 70, 0.25);
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition:
    opacity 0.2s,
    transform 0.2s;
}
.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- 10. Responsive ---------- */
@media (max-width: 1120px) {
  .header-phone {
    display: none;
  }
  .nav-wrap {
    gap: 17px;
    padding: 0 22px;
  }
  .main-nav {
    gap: 15px;
  }
  .main-nav a {
    font-size: 11px;
  }
  .nav-actions .button {
    padding: 0 11px;
    font-size: 11.5px;
  }
  .hero-inner {
    gap: 35px;
  }
  .hero h1 {
    font-size: 51px;
  }
  .signup-card {
    padding: 22px;
  }
  .cert-inner {
    gap: 50px;
  }
  .faq-section {
    gap: 50px;
  }
}
@media (max-width: 880px) {
  .site-header {
    height: 70px;
  }
  .nav-wrap {
    padding: 0 20px;
    gap: 13px;
  }
  .menu-toggle {
    width: 36px;
    height: 36px;
    margin-left: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: white;
  }
  .menu-toggle span {
    width: 15px;
    height: 2px;
    margin: auto;
    background: var(--blue);
    border-radius: 2px;
  }
  .main-nav {
    position: absolute;
    top: 69px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 21px 14px;
    border-bottom: 1px solid var(--line);
    background: white;
    box-shadow: 0 10px 20px rgba(15, 44, 60, 0.07);
  }
  .main-nav.is-open {
    display: flex;
  }
  .main-nav a {
    padding: 11px 2px;
    border-bottom: 1px solid #f0f3f5;
    font-size: 12px;
  }
  .main-nav a:last-child {
    border: 0;
  }
  .nav-actions {
    margin-left: 0;
  }
  .nav-actions .button {
    min-height: 38px;
  }
  .hero {
    padding: 112px 23px 66px;
  }
  .hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(350px, 410px);
    gap: 22px;
  }
  .hero h1 {
    font-size: 42px;
    letter-spacing: -2px;
  }
  .hero-description {
    font-size: 12px;
  }
  .hero-badges {
    gap: 5px;
  }
  .hero-badges span {
    font-size: 10px;
    padding: 7px;
  }
  .signup-card {
    padding: 18px;
  }
  .signup-card-heading h2 {
    font-size: 17px;
  }
  .role-option {
    padding: 8px 6px;
    gap: 6px;
  }
  .role-option strong {
    font-size: 11px;
  }
  .role-option small {
    font-size: 9px;
  }
  .role-icon {
    width: 26px;
    height: 26px;
  }
  .section-pad {
    padding: 73px 23px;
  }
  .trades-section {
    padding: 68px 23px;
  }
  .cert-inner {
    gap: 30px;
  }
  .footer-top {
    grid-template-columns: 1.2fr 0.8fr 0.9fr;
    gap: 28px;
  }
  .download-col {
    grid-column: 2/4;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
  }
  .download-col h3 {
    width: 100%;
  }
}
@media (max-width: 680px) {
  .review-list div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  html {
    scroll-padding-top: 68px;
  }
  .nav-wrap {
    padding: 0 14px;
    gap: 8px;
  }
  .brand-mark {
    width: 34px;
    height: 34px;
  }
  .brand {
    gap: 6px;
  }
  .brand-copy strong {
    font-size: 13px;
  }
  .brand-copy small {
    font-size: 10px;
  }
  .nav-actions .button-outline {
    display: none;
  }
  .nav-actions .button-small {
    min-height: 36px;
    padding: 0 9px;
    font-size: 11px;
  }
  .hero {
    padding: 98px 17px 56px;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 22px;
    max-width: 500px;
  }
  .hero-copy {
    padding: 5px 0 0;
  }
  .hero h1 {
    margin: 15px 0;
    font-size: clamp(38px, 10vw, 49px);
    letter-spacing: -2.1px;
  }
  .hero-description {
    margin-bottom: 17px;
    font-size: 12px;
    line-height: 1.7;
  }
  .hero-badges {
    gap: 6px;
  }
  .hero-badges span {
    font-size: 10px;
    padding: 7px;
  }
  .institution-lockup {
    margin-top: 18px;
    padding-top: 13px;
  }
  .pixel-hero {
    display: none;
  }
  .secure-label {
    white-space: nowrap;
  }
  .signup-card {
    padding: 19px 17px;
    border-radius: 12px;
    min-height: 0;
  }
  .signup-card-heading h2 {
    font-size: 17px;
  }
  .role-option {
    min-height: 58px;
    padding: 8px 6px;
  }
  .role-option strong {
    font-size: 10px;
  }
  .role-option small {
    font-size: 9px;
  }
  .role-icon {
    width: 25px;
    height: 25px;
    font-size: 16px;
  }
  .role-check {
    right: 4px;
    top: 4px;
  }
  .form-grid {
    gap: 9px 7px;
  }
  .field {
    font-size: 10px;
  }
  .field input {
    height: 37px;
    font-size: 11px;
    padding: 0 8px;
  }
  .form-footnote {
    font-size: 10px;
  }
  .worker-flow {
    min-height: 0;
  }
  .trade-option {
    font-size: 10px;
  }
  .step-buttons .button {
    min-width: 125px;
  }
  .upload-copy strong {
    font-size: 10px;
  }
  .scroll-cue {
    bottom: 17px;
    font-size: 10px;
  }
  .section-pad {
    padding: 64px 18px;
  }
  .section-heading {
    margin-bottom: 27px;
  }
  .section-heading h2,
  .trades-heading h2 {
    font-size: 31px;
  }
  .section-heading > p {
    font-size: 11px;
  }
  .benefit-grid {
    grid-template-columns: 1fr;
    gap: 9px;
  }
  .benefit-card {
    padding: 18px;
    display: grid;
    grid-template-columns: 38px 1fr;
    column-gap: 13px;
    align-items: center;
  }
  .benefit-card .benefit-icon {
    grid-row: span 2;
  }
  .benefit-card h3 {
    margin: 0 0 4px;
  }
  .benefit-card p {
    font-size: 11.5px;
  }
  .trades-section {
    padding: 60px 18px;
  }
  .trades-heading {
    display: block;
    margin-bottom: 22px;
  }
  .trades-heading > p {
    margin: 12px 0 0;
    font-size: 11px;
  }
  .public-trade-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .public-trade-grid article {
    min-height: 103px;
    padding: 13px;
  }
  .public-trade-grid h3 {
    font-size: 11px;
  }
  .cert-section {
    padding: 61px 19px;
  }
  .cert-inner {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .cert-copy h2 {
    font-size: 33px;
  }
  .cert-copy > p {
    font-size: 11px;
  }
  .cert-steps {
    gap: 8px;
  }
  .cert-steps article {
    padding: 14px;
    gap: 12px;
  }
  .faq-section {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .faq-intro h2 {
    font-size: 30px;
  }
  .faq-intro > p {
    font-size: 11px;
  }
  .faq-list summary {
    font-size: 11px;
    padding: 16px 36px 16px 1px;
  }
  .faq-list details p {
    font-size: 11.5px;
  }
  .site-footer {
    padding: 36px 18px 0;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 25px 16px;
    padding-bottom: 26px;
  }
  .footer-brand-col {
    grid-column: 1/-1;
  }
  .download-col {
    grid-column: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
  }
  .download-col h3 {
    width: auto;
    margin: 0 0 2px;
  }
  .footer-bottom {
    min-height: 58px;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    font-size: 10px;
  }
  .chat-widget {
    right: 13px;
    bottom: 78px; /* arriba de la etiqueta de Netlify */
  }
  .chat-launcher {
    height: 47px;
    padding: 0 12px;
  }
  .chat-panel {
    position: fixed;
    right: 9px;
    bottom: 68px;
    width: min(350px, calc(100vw - 18px));
    height: min(555px, calc(100dvh - 88px));
  }
  .modal-card {
    padding: 30px 22px 23px;
  }
}
@media (max-width: 365px) {
  .brand-copy small {
    font-size: 9px;
  }
  .nav-actions .button-small {
    font-size: 10px;
    padding: 0 7px;
  }
  .signup-card {
    padding: 17px 13px;
  }
  .role-option {
    gap: 4px;
  }
  .role-option strong {
    font-size: 9px;
  }
  .role-icon {
    width: 23px;
    height: 23px;
  }
  .trade-option {
    padding: 5px;
    font-size: 9px;
  }
  .trade-icon {
    width: 19px;
    height: 19px;
  }
  .step-buttons .button {
    min-width: 115px;
  }
  .footer-top {
    gap: 22px 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
