/* ==========================================================
   MGM Lab — Componentes por sección
   ========================================================== */

/* ---------- HERO ---------- */
.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(40px, 7vw, 88px) clamp(56px, 8vw, 104px);
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(108, 198, 134, 0.14), transparent 60%),
    radial-gradient(700px 420px at -5% 110%, rgba(18, 70, 79, 0.08), transparent 60%),
    #fff;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000, transparent 75%);
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__copy h1 { margin-bottom: 22px; }
.hero__promise {
  display: flex; align-items: flex-start; gap: 14px; margin-top: 24px; max-width: 56ch; padding: 16px 18px;
  background: var(--teal-100); border: 1px solid #c4e0cd; border-radius: var(--radius-sm); color: var(--navy-800);
}
.hero__promise p { font-size: 1rem; line-height: 1.5; }
.hero__promise b { color: var(--navy-900); }
.hero__promise-ic { width: 36px; height: 36px; flex: none; border-radius: 10px; display: grid; place-items: center; background: #fff; color: var(--teal-700); }
.hero__slogan { display: block; margin-top: 4px; font-family: var(--font-head); font-weight: 800; color: var(--teal-700); letter-spacing: -0.01em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; color: var(--muted); font-size: 0.95rem; font-weight: 500; }
.hero__trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero__trust .icon { color: var(--green-600); width: 1.1em; height: 1.1em; stroke-width: 2.4; }

.hero__visual { position: relative; padding: 18px 18px 34px 0; }
.dash {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.dash__bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.dash__bar > span { width: 10px; height: 10px; border-radius: 50%; background: #d2d6d3; }
.dash__url {
  margin-left: 10px; flex: 1; max-width: 260px; font-size: 0.8rem; color: var(--muted);
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 3px 14px;
}
.dash__body { padding: 22px; }
.dash__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.tag {
  display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-head); font-size: 0.8rem; font-weight: 700;
  color: var(--blue-700); background: var(--blue-100); padding: 6px 12px; border-radius: 999px;
}
.tag .icon { width: 1.1em; height: 1.1em; }
.dash__note { font-size: 0.78rem; color: var(--muted); }

.funnel { display: grid; gap: 12px; }
.funnel__row { position: relative; height: 46px; display: flex; align-items: center; }
.funnel__bar {
  position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); border-radius: 12px;
  background: linear-gradient(90deg, var(--blue), var(--teal));
  transform-origin: left; animation: grow 1s var(--ease) both;
}
.funnel__row:nth-child(2) .funnel__bar { animation-delay: 0.1s; opacity: 0.88; }
.funnel__row:nth-child(3) .funnel__bar { animation-delay: 0.2s; opacity: 0.76; }
.funnel__row:nth-child(4) .funnel__bar { animation-delay: 0.3s; background: linear-gradient(90deg, var(--teal), var(--green)); }
.funnel__label { position: relative; z-index: 1; padding-left: 16px; font-family: var(--font-head); font-size: 0.82rem; font-weight: 700; color: #fff; white-space: nowrap; }
.funnel__row.is-leak .funnel__bar { outline: 2px dashed var(--danger); outline-offset: 3px; }
.funnel__row.is-leak .funnel__label { color: #fff; }
.funnel__flag {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 0.74rem; font-weight: 700; color: var(--danger); background: var(--danger-100);
  padding: 4px 10px; border-radius: 999px;
}
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.dash__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 22px; }
.mini {
  position: relative; display: flex; flex-direction: column; gap: 6px; align-items: flex-start;
  padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 0.82rem; font-weight: 600; color: var(--navy-800);
}
.mini .icon { color: var(--blue); }
.dot { position: absolute; top: 12px; right: 12px; width: 9px; height: 9px; border-radius: 50%; }
.dot--blue { background: var(--blue); } .dot--teal { background: var(--teal); } .dot--green { background: var(--green); }

.float {
  position: absolute; display: flex; align-items: center; gap: 12px; background: #fff;
  border: 1px solid var(--line); border-radius: 14px; padding: 11px 16px 11px 12px;
  box-shadow: var(--shadow-md); font-size: 0.82rem; line-height: 1.3;
}
.float b { display: block; font-family: var(--font-head); color: var(--navy-900); font-size: 0.86rem; }
.float small { color: var(--muted); font-size: 0.78rem; }
.float__ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--danger-100); color: var(--danger); }
.float__ic--green { background: var(--green-100); color: var(--green-700); }
.float--a { left: -22px; bottom: -12px; animation: bob 6s ease-in-out infinite; }
.float--b { right: -8px; top: -4px; animation: bob 6s ease-in-out -3s infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ---------- PROBLEMA ---------- */
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.problem {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow-sm); transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s;
}
.problem:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #cfdcd8; }
.problem__ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--blue-100); color: var(--blue); margin-bottom: 18px; }
.problem__ic .icon { width: 24px; height: 24px; }
.problem h3 { margin-bottom: 10px; font-size: 1.08rem; }
.problem p { color: var(--muted); font-size: 0.98rem; }
.problem:not(.problem--answer) { display: flex; align-items: center; gap: 16px; padding: 20px 22px; }
.problem:not(.problem--answer) .problem__ic { margin-bottom: 0; flex: none; }
.problem:not(.problem--answer) h3 { margin-bottom: 0; font-size: 1.02rem; }
.problem--answer { background: var(--navy-900); border-color: var(--navy-900); display: flex; flex-direction: column; justify-content: center; }
.problem--answer h3 { color: #fff; font-size: 1.2rem; }
.problem--answer p { color: #b9d0d3; }
.link-arrow { margin-top: 18px; display: inline-flex; align-items: center; gap: 8px; color: var(--teal); font-weight: 700; text-decoration: none; }
.link-arrow:hover { color: #fff; }

/* ---------- PROPUESTA / PROCESO ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: p; position: relative; }
.process__step { position: relative; padding: 0 22px 0 0; counter-increment: p; }
.process__step:not(:last-child)::after {
  content: ""; position: absolute; top: 27px; left: 66px; right: 12px; height: 2px;
  background: repeating-linear-gradient(90deg, #c9d3d0 0 6px, transparent 6px 12px);
}
.process__ic {
  position: relative; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 20px;
  color: #fff; background: linear-gradient(135deg, var(--blue), var(--teal)); box-shadow: 0 10px 22px -10px rgba(18, 70, 79, 0.7);
}
.process__ic .icon { width: 26px; height: 26px; }
.process__ic::after {
  content: counter(p); position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; border-radius: 50%;
  background: #fff; color: var(--navy-900); font-family: var(--font-head); font-size: 0.75rem; font-weight: 800;
  display: grid; place-items: center; box-shadow: var(--shadow-sm);
}
.process__step h3 { margin-bottom: 8px; font-size: 1.25rem; }
.process__step p { color: var(--muted); font-size: 0.98rem; max-width: 26ch; }
.note {
  margin-top: 44px; padding: 18px 22px; border-left: 4px solid var(--teal); background: var(--teal-100);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--navy-800); font-weight: 500; max-width: 760px;
}

.note--tight { margin-top: 28px; }

/* ---------- QUÉ ANALIZAMOS ---------- */
.area-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.area {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px 28px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s;
}
.area:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--teal); }
.area__num { position: absolute; top: 24px; right: 26px; font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; color: #d9dedc; }
.area__ic { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px; color: var(--teal-700); background: var(--teal-100); }
.area__ic .icon { width: 26px; height: 26px; }
.area h3 { margin-bottom: 10px; }
.area p { color: var(--muted); font-size: 0.98rem; }

/* ---------- QUÉ RECIBIRÁS ---------- */
.deliver { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.checklist { margin-top: 30px; display: grid; gap: 14px; }
.checklist li { display: flex; align-items: flex-start; gap: 14px; font-weight: 500; color: var(--navy-800); }
.checklist .icon {
  width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--green-100); color: var(--green-700); stroke-width: 2.6; margin-top: 1px;
}
.report { position: relative; padding: 0 0 8px; }
.report::before {
  content: ""; position: absolute; inset: 24px -16px -16px 24px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--blue-100), var(--teal-100)); z-index: 0;
}
.report__sheet { position: relative; z-index: 1; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-lg); }
.report__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.report__logo { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-head); font-weight: 700; font-size: 0.86rem; color: var(--navy-900); }
.report__badge { font-size: 0.72rem; font-weight: 700; color: var(--teal-700); background: var(--teal-100); padding: 4px 10px; border-radius: 999px; }
.report__block { margin-bottom: 20px; }
.report__block:last-child { margin-bottom: 0; }
.report__block h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 10px; font-weight: 700; }
.skel { display: block; height: 10px; width: var(--w); border-radius: 6px; background: #e8ebe9; margin-bottom: 9px; }
.skel--green { background: linear-gradient(90deg, var(--green), #9fdcae); }
.skel--alert { background: linear-gradient(90deg, #f0a4aa, #f8d3d6); }
.report__prio { display: grid; gap: 10px; }
.report__prio li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.report__prio b { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 8px; background: var(--navy-900); color: #fff; font-family: var(--font-head); font-size: 0.8rem; }
.report__prio .skel { margin: 0; flex: 1; width: auto; max-width: var(--w); }
.report figcaption { position: relative; z-index: 1; margin-top: 18px; font-size: 0.86rem; color: var(--muted); }

/* ---------- TIPOS DE DIAGNÓSTICO ---------- */
.plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.plan { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.plan--featured { border: 2px solid var(--blue); box-shadow: var(--shadow-md); }
.plan__badge {
  position: absolute; top: -13px; left: 30px; background: var(--blue); color: #fff; font-family: var(--font-head);
  font-size: 0.74rem; font-weight: 700; padding: 5px 14px; border-radius: 999px; letter-spacing: 0.02em;
}
.plan__head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.plan__head h3 { font-size: 1.4rem; }
.plan__ic { width: 48px; height: 48px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--blue-100); color: var(--blue); }
.plan__ic .icon { width: 25px; height: 25px; }
.plan__intro { color: var(--muted); margin-bottom: 16px; }
.plan__list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; margin-bottom: 26px; }
.plan__list li { display: flex; align-items: center; gap: 10px; font-weight: 500; color: var(--navy-800); font-size: 0.98rem; }
.plan__list .icon { color: var(--green-600); width: 1.1em; height: 1.1em; stroke-width: 2.6; }
.plan__ideal { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.98rem; }
.plan__ideal b { color: var(--navy-900); }

/* ---------- PUBLICIDAD ---------- */
.section--dark::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.35;
  background: radial-gradient(700px 340px at 90% 0%, rgba(108, 198, 134, 0.28), transparent 65%), radial-gradient(600px 340px at 0% 100%, rgba(18, 70, 79, 0.35), transparent 65%);
}
.section--dark .container { position: relative; }
.flow { display: flex; align-items: stretch; gap: 0; margin-bottom: 44px; }
.flow__node {
  position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center;
  padding: 24px 12px; margin-right: 28px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: var(--radius);
  font-family: var(--font-head); font-weight: 700; color: #fff; font-size: 0.98rem;
}
.flow__node:last-child { margin-right: 0; }
.flow__node:not(:last-child)::after {
  content: ""; position: absolute; top: 50%; right: -22px; width: 16px; height: 16px; margin-top: -8px;
  border-top: 3px solid var(--teal); border-right: 3px solid var(--teal); transform: rotate(45deg) scale(0.7);
}
.flow__ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: rgba(108, 198, 134, 0.18); color: var(--teal); }
.flow__ic .icon { width: 24px; height: 24px; }
.flow__node--goal { background: linear-gradient(135deg, rgba(19, 133, 58, 0.22), rgba(108, 198, 134, 0.16)); border-color: rgba(19, 133, 58, 0.55); }
.flow__node--goal .flow__ic { background: var(--teal); color: var(--navy-950); }
.ads-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; justify-content: space-between; }
.ads-foot > p { max-width: 520px; color: #b9d0d3; }
.chips { display: flex; gap: 10px; }
.chips li { font-family: var(--font-head); font-weight: 700; font-size: 0.86rem; color: #fff; border: 1px solid rgba(255, 255, 255, 0.28); padding: 8px 16px; border-radius: 999px; }

/* ---------- CÓMO FUNCIONA ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; box-shadow: var(--shadow-sm); }
.step__num {
  display: inline-grid; place-items: center; min-width: 54px; height: 54px; padding: 0 12px; margin-bottom: 20px; border-radius: 16px;
  font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; color: #fff; background: var(--navy-900);
}
.step:nth-child(2) .step__num { background: var(--blue); }
.step:nth-child(3) .step__num { background: var(--teal-700); }
.step h3 { margin-bottom: 10px; font-size: 1.2rem; }
.step p { color: var(--muted); }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 58px; right: -20px; width: 20px; height: 2px; background: repeating-linear-gradient(90deg, #c9d3d0 0 4px, transparent 4px 8px);
}

/* ---------- FORMULARIO ---------- */
.form-layout { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.form-aside { position: sticky; top: calc(var(--header-h) + 28px); }
.reassure { margin-top: 28px; display: grid; gap: 14px; }
.reassure li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; color: var(--navy-800); }
.reassure .icon { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--green-100); color: var(--green-700); stroke-width: 2.4; margin-top: 1px; }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-lg); }

.progress { margin-bottom: 30px; }
.progress__steps { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.progress__steps li { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 0.88rem; font-weight: 600; }
.progress__dot {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none;
  font-family: var(--font-head); font-size: 0.82rem; font-weight: 800; background: var(--bg-soft); color: var(--muted); border: 2px solid var(--line);
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.progress__steps li.is-current { color: var(--navy-900); }
.progress__steps li.is-current .progress__dot { background: var(--blue); border-color: var(--blue); color: #fff; }
.progress__steps li.is-done .progress__dot { background: var(--green); border-color: var(--green); color: #fff; }
.progress__track { height: 6px; background: var(--bg-soft); border-radius: 999px; overflow: hidden; }
.progress__fill { display: block; height: 100%; width: 33.33%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--teal), var(--green)); transition: width 0.4s var(--ease); }
.progress__text { margin-top: 10px; font-size: 0.85rem; color: var(--muted); }

.form-step { border: 0; margin: 0; padding: 0; min-width: 0; animation: stepIn 0.35s var(--ease) both; }
@keyframes stepIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.form-step__title { font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; color: var(--navy-900); margin-bottom: 22px; padding: 0; outline: none; letter-spacing: -0.01em; }

.field { margin-bottom: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field > .field-row > .field { margin-bottom: 0; }
.field label, .field__label { display: block; font-weight: 600; font-size: 0.95rem; color: var(--navy-900); margin-bottom: 8px; }
.req { color: var(--blue-700); font-weight: 500; font-size: 0.82rem; }
.opt { color: var(--muted); font-weight: 400; font-size: 0.82rem; }

.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; padding: 14px 16px; background: #fff; border: 1.5px solid #9aa39f; border-radius: var(--radius-sm); font-size: 1rem; line-height: 1.4;
  transition: border-color 0.18s, box-shadow 0.18s; appearance: none; -webkit-appearance: none;
}
.field select {
  padding-right: 42px; cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2356667e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.field textarea { resize: vertical; min-height: 92px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #a6aca8; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(18, 70, 79, 0.16); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--danger); background: #fffafa; }
.field input[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(198, 47, 58, 0.15); }
.field__hint { margin-top: 6px; font-size: 0.85rem; color: var(--muted); }
.field__error { margin-top: 6px; font-size: 0.87rem; font-weight: 600; color: var(--danger); display: none; }
.field__error:not(:empty) { display: block; }

.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice-grid--compact { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.choice { position: relative; display: block; cursor: pointer; margin: 0 !important; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.choice span {
  display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 12px 14px; font-weight: 500; font-size: 0.95rem; line-height: 1.3;
  border: 1.5px solid #9aa39f; border-radius: var(--radius-sm); background: #fff; color: var(--navy-800); transition: border-color 0.18s, background-color 0.18s, box-shadow 0.18s;
}
.choice span::before {
  content: ""; width: 18px; height: 18px; flex: none; border: 2px solid #a6aca8; border-radius: 5px; background: #fff center / 12px no-repeat; transition: all 0.15s;
}
.choice input[type="radio"] + span::before { border-radius: 50%; }
.choice:hover span { border-color: var(--blue); }
.choice input:checked + span { border-color: var(--blue); background: var(--blue-100); color: var(--navy-900); font-weight: 600; }
.choice input:checked + span::before {
  background-color: var(--blue); border-color: var(--blue);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12.5l4.5 4.5L19 7.5'/></svg>");
}
.choice input[type="radio"]:checked + span::before { background-image: radial-gradient(circle, #fff 0 32%, transparent 36%); }
.choice input:focus-visible + span { outline: 3px solid var(--teal); outline-offset: 2px; }

.field label.check-inline {
  display: flex; align-items: center; gap: 10px; width: fit-content; min-height: 44px; margin: 6px 0 0; font-weight: 500; font-size: 0.95rem; color: var(--navy-800); cursor: pointer;
}
.check-inline input { width: 20px; height: 20px; flex: none; margin: 0; accent-color: var(--blue); cursor: pointer; }

.consent { display: flex !important; gap: 12px; align-items: flex-start; font-weight: 400 !important; font-size: 0.9rem !important; color: var(--muted) !important; cursor: pointer; line-height: 1.5; }
.consent input { width: 20px; height: 20px; flex: none; margin: 2px 0 0; accent-color: var(--blue); cursor: pointer; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-alert { margin: 4px 0 18px; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--danger-100); color: var(--danger); font-weight: 600; font-size: 0.93rem; }
.form-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 28px; }
.form-actions .btn[hidden] + .btn { margin-left: auto; }
#btn-next, #btn-submit { margin-left: auto; }
.btn__spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, 0.35); border-top-color: #fff; animation: spin 0.7s linear infinite; }
.btn.is-loading .btn__spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.result { text-align: center; padding: 12px 0; animation: stepIn 0.4s var(--ease) both; outline: none; }
.result__ic { width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 20px; }
.result__ic .icon { width: 32px; height: 32px; stroke-width: 2.4; }
.result__ic--ok { background: var(--green-100); color: var(--green-700); }
.result__ic--warn { background: #fff3dc; color: #8a5a00; }
.result h3 { font-size: 1.4rem; margin-bottom: 12px; }
.result p { color: var(--muted); max-width: 46ch; margin-inline: auto; }
.result p + p { margin-top: 12px; }

/* ---------- CTA FLOTANTE (móvil / tablet) ---------- */
.sticky-cta {
  display: none; position: fixed; z-index: 90; right: 14px; bottom: 14px; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 999px; background: var(--green); color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: 0.88rem; text-decoration: none; line-height: 1.2;
  box-shadow: 0 10px 24px -8px rgba(7, 30, 35, 0.5);
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0.25s;
}
.sticky-cta.is-shown { opacity: 1; visibility: visible; transform: none; }
.sticky-cta:hover { color: #fff; background: #0f6e30; }
.sticky-cta .icon { width: 1.1em; height: 1.1em; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item h3 { font-size: 1rem; }
.faq__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 4px; text-align: left; background: none; border: 0;
  font-family: var(--font-head); font-weight: 700; font-size: 1.08rem; color: var(--navy-900); letter-spacing: -0.01em; line-height: 1.35;
}
.faq__q:hover { color: var(--blue-700); }
.faq__q .icon { width: 28px; height: 28px; padding: 4px; border-radius: 50%; background: var(--blue-100); color: var(--blue); transition: transform 0.3s var(--ease), background-color 0.2s, color 0.2s; }
.faq__q[aria-expanded="true"] .icon { transform: rotate(45deg); background: var(--blue); color: #fff; }
.faq__a { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows 0.35s var(--ease), visibility 0.35s; }
.faq__a > div { overflow: hidden; }
.faq__a p { padding: 0 48px 24px 4px; color: var(--muted); }
.faq__q[aria-expanded="true"] + .faq__a, .faq__item.is-open .faq__a { grid-template-rows: 1fr; visibility: visible; }

/* ---------- CTA FINAL ---------- */
.final-cta { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 100%); color: #fff; padding-block: clamp(60px, 8vw, 100px); text-align: center; }
.final-cta::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(520px 260px at 15% 0%, rgba(108, 198, 134, 0.28), transparent 70%), radial-gradient(520px 260px at 90% 100%, rgba(19, 133, 58, 0.2), transparent 70%);
}
.final-cta__inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.final-cta h2 { color: #fff; max-width: 780px; }
.final-cta p { color: #c3dadc; font-size: 1.15rem; max-width: 56ch; margin-bottom: 10px; }

/* ---------- FOOTER ---------- */
.site-footer { background: var(--navy-950); color: #9fbcc0; padding-block: 56px 28px; font-size: 0.95rem; }
.footer__inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer__brand { max-width: 420px; }
.footer__parent { margin-top: 16px; }
.footer__tagline { margin-top: 10px; font-family: var(--font-head); font-weight: 700; color: #fff; }
.footer__links { display: grid; gap: 10px; align-content: start; }
.site-footer a { color: #d5e6e8; text-decoration: none; }
.site-footer a:hover { color: var(--teal); text-decoration: underline; }
.footer__legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.85rem; }

/* ---------- CONSENTIMIENTO ---------- */
.consent-banner {
  position: fixed; z-index: 150; left: 16px; right: 16px; bottom: 16px; max-width: 760px; margin-inline: auto;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: space-between;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 18px 22px; font-size: 0.92rem;
}
.consent-banner p { flex: 1 1 320px; color: var(--ink); }
.consent-banner__actions { display: flex; gap: 10px; }

/* ---------- PRIVACIDAD (página aparte) ---------- */
.legal { padding-block: clamp(40px, 6vw, 80px); }
.legal h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 14px; }
.legal h2 { font-size: 1.3rem; margin: 34px 0 10px; }
.legal p, .legal li { color: var(--muted); }
.legal ul { list-style: disc; padding-left: 22px; display: grid; gap: 6px; margin-top: 8px; }
.legal__draft { margin: 18px 0 8px; padding: 14px 18px; border-radius: var(--radius-sm); background: #fff3dc; color: #6b4600; font-weight: 600; font-size: 0.95rem; }

/* ---------- CONTRASTE: formulario sobre fondo oscuro ---------- */
.form-section.section--soft { background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-950) 100%); }
.form-section .form-aside h2 { color: #fff; }
.form-section .form-aside .eyebrow { color: var(--teal); }
.form-section .form-aside .section__lead { color: #cfe3e5; }
.form-section .reassure li { color: #fff; }
.form-section .reassure .icon { background: rgba(255, 255, 255, 0.14); color: var(--teal); }
.form-section .form-card { border-color: transparent; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.55); }
