/* Captación de contactos: modal de CTA, calculadora de valor y microcopy de los botones */

/* ---------- Microcopy bajo los botones ---------- */
.cta-note { margin: 12px 0 0; font-size: 0.85rem; line-height: 1.4; color: rgba(32, 32, 32, 0.65); }
.cta-note::before { content: "✓ "; font-weight: 800; color: #0b6f6c; }

/* ---------- Modal de contacto ---------- */
.ld { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; padding: 16px; }
.ld[hidden] { display: none; }
.ld__backdrop { position: absolute; inset: 0; background: rgba(11, 36, 35, 0.6); backdrop-filter: blur(6px); animation: ld-fade 0.25s ease both; }
.ld__panel { position: relative; display: grid; grid-template-columns: 5fr 6fr; width: min(900px, 100%); max-height: calc(100vh - 32px); overflow: auto; border-radius: 28px; background: #fff; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.55); animation: ld-pop 0.4s cubic-bezier(0.22, 1, 0.36, 1) both; outline: none; }
@keyframes ld-fade { from { opacity: 0; } }
@keyframes ld-pop { from { opacity: 0; transform: translateY(24px) scale(0.96); } }
.ld__close { position: absolute; right: 14px; top: 14px; z-index: 2; display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(32, 32, 32, 0.07); color: #202020; font-size: 1.4rem; line-height: 1; cursor: pointer; transition: background-color 0.2s ease, transform 0.25s ease; }
.ld__close:hover, .ld__close:focus-visible { background: rgba(32, 32, 32, 0.14); transform: rotate(90deg); outline: none; }

.ld__side { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 44px 36px; overflow: hidden; background: linear-gradient(155deg, #51D9D6 0%, #2fb5b2 100%); color: #14201f; }
.ld__side::before, .ld__side::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, 0.22); pointer-events: none; }
.ld__side::before { width: 220px; height: 220px; right: -90px; top: -80px; animation: ld-float 8s ease-in-out infinite; }
.ld__side::after { width: 140px; height: 140px; left: -50px; bottom: -50px; animation: ld-float 10s ease-in-out infinite reverse; }
@keyframes ld-float { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-14px, 12px); } }
.ld__eyebrow { position: relative; align-self: flex-start; margin: 0; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.55); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.ld__title { position: relative; margin: 0; font-size: 1.75rem; font-weight: 800; line-height: 1.15; color: #14201f; }
.ld__perks { position: relative; display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.ld__perks li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.95rem; font-weight: 600; line-height: 1.4; }
.ld__perks li::before { content: "✓"; flex: none; display: grid; place-items: center; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: #14201f; color: #51D9D6; font-size: 0.75rem; font-weight: 800; }

.ld__main { padding: 48px 40px 36px; }
.ld__form { display: grid; gap: 14px; }
.ld__form[hidden] { display: none; }
.ld__label { display: block; margin-bottom: 6px; font-size: 0.85rem; font-weight: 700; color: #202020; }
.ld__label small { font-weight: 500; color: rgba(32, 32, 32, 0.55); }
.ld__input { width: 100%; padding: 14px 16px; border: 2px solid #dfe4eb; border-radius: 14px; background: #fff; font: inherit; font-size: 1rem; color: #202020; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.ld__input:focus { border-color: #51D9D6; box-shadow: 0 0 0 4px rgba(81, 217, 214, 0.25); outline: none; }
.ld__input[aria-invalid="true"] { border-color: #e5604d; }
.ld__check { display: flex; align-items: flex-start; gap: 10px; font-size: 0.82rem; line-height: 1.4; color: rgba(32, 32, 32, 0.75); cursor: pointer; }
.ld__check input { margin-top: 2px; accent-color: #0b6f6c; }
.ld__check a { text-decoration: underline; }
.ld__err { min-height: 1.2em; margin: 0; font-size: 0.85rem; font-weight: 600; color: #c0392b; }
.ld__submit { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 16px 24px; border: 0; border-radius: 999px; background: #51D9D6; color: #14201f; font: inherit; font-size: 1.05rem; font-weight: 800; cursor: pointer; box-shadow: 0 14px 28px -14px #2fb5b2; transition: transform 0.25s ease, background-color 0.2s ease; }
.ld__submit:hover:not(:disabled), .ld__submit:focus-visible { background: #45C9C6; transform: translateY(-2px); outline: none; }
.ld__submit:disabled { opacity: 0.7; cursor: progress; }
.ld__fine { margin: 0; font-size: 0.78rem; color: rgba(32, 32, 32, 0.55); text-align: center; }

.ld__done { display: grid; justify-items: center; gap: 10px; padding: 18px 0; text-align: center; }
.ld__done[hidden] { display: none; }
.ld__tick { width: 84px; height: 84px; fill: none; stroke: #51D9D6; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ld__tick circle { stroke-dasharray: 152; stroke-dashoffset: 152; animation: ld-draw 0.7s ease forwards; }
.ld__tick path { stroke-dasharray: 44; stroke-dashoffset: 44; animation: ld-draw 0.4s ease 0.55s forwards; }
@keyframes ld-draw { to { stroke-dashoffset: 0; } }
.ld__thanks { margin: 0; font-size: 1.6rem; font-weight: 800; color: #202020; outline: none; }
.ld__thanks-sub { margin: 0 0 6px; max-width: 28em; color: #4b5560; }
.ld__alt { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.ld__alt button, .ld__alt a { display: inline-flex; align-items: center; min-height: 46px; padding: 0 22px; border: 2px solid #dfe4eb; border-radius: 999px; background: #fff; font: inherit; font-size: 0.95rem; font-weight: 700; color: #202020; text-decoration: none; cursor: pointer; transition: border-color 0.2s ease; }
.ld__alt button:hover, .ld__alt a:hover { border-color: #51D9D6; }

html.ld-open { overflow: hidden; }

@media (max-width: 760px) {
  .ld { align-items: end; padding: 0; }
  .ld__panel { grid-template-columns: 1fr; max-height: 94vh; border-radius: 26px 26px 0 0; }
  .ld__side { padding: 28px 24px 22px; gap: 12px; }
  .ld__title { font-size: 1.4rem; }
  .ld__perks { display: none; }
  .ld__main { padding: 24px 24px 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .ld__backdrop, .ld__panel, .ld__side::before, .ld__side::after, .ld__tick circle, .ld__tick path { animation: none; }
  .ld__tick circle, .ld__tick path { stroke-dashoffset: 0; }
  .ld__close, .ld__submit { transition: none; }
}

/* ---------- Calculadora de valor ---------- */
.vc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 24px; max-width: 1100px; margin: 0 auto; align-items: stretch; }
.vc__card { position: relative; padding: 32px; border: 1px solid #e3e8ee; border-radius: 28px; background: #fff; box-shadow: 0 18px 40px -28px rgba(32, 32, 32, 0.45); }
.vc__controls { display: grid; gap: 26px; align-content: center; }
.vc__row { display: grid; gap: 10px; }
.vc__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.vc__label { margin: 0; font-size: 0.95rem; font-weight: 700; line-height: 1.3; color: #202020; }
.vc__value { flex: none; min-width: 4.5em; padding: 3px 12px; border-radius: 999px; background: #dff6f5; font-size: 0.95rem; font-weight: 800; text-align: center; color: #0b6f6c; font-variant-numeric: tabular-nums; }
.vc__range { --p: 50%; width: 100%; height: 8px; margin: 0; border-radius: 999px; background: linear-gradient(90deg, #51D9D6 var(--p), #e3e8ee var(--p)); appearance: none; -webkit-appearance: none; cursor: pointer; }
.vc__range::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border: 4px solid #51D9D6; border-radius: 50%; background: #fff; box-shadow: 0 4px 10px -2px rgba(11, 111, 108, 0.5); transition: transform 0.2s ease; }
.vc__range::-moz-range-thumb { width: 18px; height: 18px; border: 4px solid #51D9D6; border-radius: 50%; background: #fff; box-shadow: 0 4px 10px -2px rgba(11, 111, 108, 0.5); }
.vc__range:active::-webkit-slider-thumb { transform: scale(1.15); }
.vc__range:focus-visible { outline: 3px solid rgba(81, 217, 214, 0.5); outline-offset: 4px; }

.vc__result { display: flex; flex-direction: column; gap: 18px; overflow: hidden; background: linear-gradient(160deg, #eafafa 0%, #fff 60%); }
.vc__result::before { content: ""; position: absolute; right: -70px; top: -70px; width: 220px; height: 220px; border-radius: 50%; background: rgba(81, 217, 214, 0.22); pointer-events: none; animation: ld-float 9s ease-in-out infinite; }
.vc__kicker { position: relative; margin: 0; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; color: #0b6f6c; }
.vc__big { position: relative; margin: 0; font-size: clamp(2.6rem, 6vw, 4rem); font-weight: 800; line-height: 1; color: #202020; font-variant-numeric: tabular-nums; }
.vc__big small { font-size: 0.45em; font-weight: 700; color: rgba(32, 32, 32, 0.6); }
.vc__meta { position: relative; display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; font-size: 0.95rem; color: rgba(32, 32, 32, 0.75); }
.vc__meta b { color: #202020; font-variant-numeric: tabular-nums; }
.vc__bar { position: relative; }
.vc__bar-track { display: flex; height: 16px; overflow: hidden; border-radius: 999px; background: #e3e8ee; }
.vc__bar-ok { width: 80%; background: #51D9D6; transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
.vc__bar-lost { flex: 1; background: repeating-linear-gradient(135deg, #f08a7a 0 6px, #e5604d 6px 12px); }
.vc__legend { display: flex; justify-content: space-between; gap: 10px; margin: 8px 0 0; font-size: 0.8rem; font-weight: 600; color: rgba(32, 32, 32, 0.7); }
.vc__legend i { display: inline-block; width: 9px; height: 9px; margin-right: 6px; border-radius: 50%; background: #51D9D6; }
.vc__legend span:last-child i { background: #e5604d; }
.vc__form { position: relative; display: grid; gap: 10px; margin-top: auto; padding-top: 18px; border-top: 1px dashed rgba(32, 32, 32, 0.16); }
.vc__form-title { margin: 0; font-size: 1rem; font-weight: 800; line-height: 1.3; color: #202020; }
.vc__form-row { display: flex; gap: 10px; }
.vc__form-row .ld__input { flex: 1; min-width: 0; padding: 13px 16px; }
.vc__form-row .ld__submit { width: auto; flex: none; padding: 0 22px; font-size: 0.95rem; white-space: nowrap; }
.vc__note { margin: 0; font-size: 0.75rem; color: rgba(32, 32, 32, 0.55); }
.vc__ok { display: grid; gap: 4px; padding: 14px 16px; border-radius: 16px; background: #dff6f5; font-weight: 700; color: #0b6f6c; }
.vc__ok[hidden], .vc__form[hidden] { display: none; }
.vc__ok span { font-weight: 500; color: rgba(32, 32, 32, 0.75); }
.vc__how { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 12px; max-width: 1100px; margin: 28px auto 0; }
.vc__how > span { font-size: 0.9rem; font-weight: 700; color: rgba(32, 32, 32, 0.7); }
.vc__how a { padding: 7px 16px; border: 1px solid #dfe4eb; border-radius: 999px; background: #fff; font-size: 0.88rem; font-weight: 700; color: #202020; text-decoration: none; transition: background-color 0.2s ease, border-color 0.2s ease; }
.vc__how a:hover, .vc__how a:focus-visible { border-color: #51D9D6; background: #dff6f5; outline: none; }

@media (max-width: 900px) {
  .vc { grid-template-columns: 1fr; }
  .vc__card { padding: 24px 20px; }
}
@media (max-width: 480px) {
  .vc__form-row { flex-direction: column; }
  .vc__form-row .ld__submit { width: 100%; padding: 14px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .vc__result::before { animation: none; }
  .vc__bar-ok { transition: none; }
}

/* ---------- Bandas de CTA intercaladas ---------- */
.cb { padding: 8px 20px; }
.cb__card { --c: #0b6f6c; --soft: #dff6f5; --bg1: #dff8f7; --bg2: #ffffff; position: relative; display: grid; grid-template-columns: 220px minmax(0, 1fr); align-items: center; gap: 28px; max-width: 1100px; margin: 0 auto; padding: 28px 40px 28px 28px; overflow: hidden; border: 1px solid rgba(32, 32, 32, 0.07); border-radius: 36px; background: linear-gradient(120deg, var(--bg1) 0%, var(--bg2) 62%); box-shadow: 0 24px 50px -34px rgba(32, 32, 32, 0.5); }
.cb__card::after { content: ""; position: absolute; right: -80px; top: -90px; width: 240px; height: 240px; border-radius: 50%; background: var(--c); opacity: 0.08; pointer-events: none; animation: ld-float 10s ease-in-out infinite; }
.cb__card--blue { --c: #2b6cb0; --soft: #e3eefb; --bg1: #e6effc; }
.cb__card--warm { --c: #b86a12; --soft: #fdeedb; --bg1: #fff1de; }
.cb__visual { position: relative; display: grid; place-items: center; height: 170px; }
.cb__body { position: relative; z-index: 1; }
.cb__kicker { display: inline-block; margin: 0 0 10px; padding: 5px 12px; border-radius: 999px; background: var(--soft); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--c); }
.cb__title { margin: 0 0 8px; font-size: clamp(1.45rem, 2.6vw, 2.1rem); font-weight: 800; line-height: 1.15; color: #202020; }
.cb__title span { color: var(--c); }
.cb__sub { margin: 0 0 16px; font-size: 1rem; line-height: 1.5; color: rgba(32, 32, 32, 0.72); }
.cb__form { display: grid; gap: 8px; max-width: 560px; }
.cb__form[hidden] { display: none; }
.cb__row { display: flex; gap: 8px; padding: 6px; border: 2px solid rgba(32, 32, 32, 0.08); border-radius: 999px; background: #fff; box-shadow: 0 12px 26px -18px rgba(32, 32, 32, 0.5); transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.cb__row:focus-within { border-color: #51D9D6; box-shadow: 0 0 0 4px rgba(81, 217, 214, 0.25); }
.cb__input { flex: 1; min-width: 0; padding: 0 16px; border: 0; background: transparent; font: inherit; font-size: 1rem; color: #202020; outline: none; }
.cb__input[aria-invalid="true"]::placeholder { color: #c0392b; }
.cb__btn { position: relative; flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 14px 22px; overflow: hidden; border: 0; border-radius: 999px; background: #51D9D6; font: inherit; font-size: 0.98rem; font-weight: 800; color: #14201f; white-space: nowrap; cursor: pointer; animation: cb-glow 2.8s ease-in-out infinite; transition: transform 0.2s ease, background-color 0.2s ease; }
.cb__btn::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.65), transparent); transform: skewX(-20deg); animation: cb-sheen 4.5s ease-in-out infinite; }
.cb__btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.25s ease; }
.cb__btn:hover:not(:disabled), .cb__btn:focus-visible { background: #45C9C6; transform: translateY(-1px); outline: none; }
.cb__btn:hover svg, .cb__btn:focus-visible svg { transform: translateX(4px); }
.cb__btn:disabled { opacity: 0.7; cursor: progress; animation: none; }
@keyframes cb-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(81, 217, 214, 0.55); } 50% { box-shadow: 0 0 0 9px rgba(81, 217, 214, 0); } }
@keyframes cb-sheen { 0%, 55% { left: -60%; } 80%, 100% { left: 130%; } }
.cb__check { display: flex; align-items: flex-start; gap: 8px; padding: 0 8px; font-size: 0.78rem; line-height: 1.4; color: rgba(32, 32, 32, 0.65); cursor: pointer; }
.cb__check input { margin-top: 2px; accent-color: #0b6f6c; }
.cb__check a { text-decoration: underline; }
.cb__err { min-height: 1.1em; margin: 0; padding: 0 8px; font-size: 0.82rem; font-weight: 600; color: #c0392b; }
.cb__ok { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; max-width: 560px; padding: 14px 18px; border-radius: 18px; background: #fff; border: 2px solid #51D9D6; font-weight: 700; color: #0b6f6c; animation: ld-pop 0.4s cubic-bezier(0.22, 1, 0.36, 1) both; }
.cb__ok[hidden] { display: none; }
.cb__ok span { font-weight: 500; color: rgba(32, 32, 32, 0.75); }
.cb__ok a { font-size: 0.88rem; font-weight: 800; color: #0b6f6c; text-decoration: underline; }

.cb-call { position: relative; display: grid; place-items: center; width: 100%; height: 100%; }
.cb-call i { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border: 2px solid var(--c); border-radius: 50%; opacity: 0; animation: st-ripple 3s ease-out infinite; animation-delay: calc(var(--n) * 1s); }
.cb-call__phone { position: relative; display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: var(--c); color: #fff; box-shadow: 0 14px 26px -10px var(--c); animation: st-ring 3s ease-in-out infinite; }
.cb-call__phone svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cb-call b { position: absolute; display: grid; place-items: center; width: 38px; height: 38px; border: 3px solid #fff; border-radius: 50%; font-size: 0.8rem; font-weight: 800; color: #fff; box-shadow: 0 8px 16px -8px rgba(32, 32, 32, 0.5); animation: st-bob 4s ease-in-out infinite; }
.cb-call b:nth-of-type(1) { left: 6%; top: 12%; background: #6d4bd8; }
.cb-call b:nth-of-type(2) { right: 4%; top: 28%; background: #d9822b; animation-delay: -1.3s; }
.cb-call b:nth-of-type(3) { left: 16%; bottom: 6%; background: #1e9e5a; animation-delay: -2.6s; }

.cb-doc { position: relative; width: 190px; padding: 14px 14px 12px; border-radius: 16px; background: #fff; box-shadow: 0 18px 34px -18px rgba(32, 32, 32, 0.55); transform: rotate(-4deg); }
.cb-doc__head { margin: 0 0 10px; padding-bottom: 8px; border-bottom: 2px solid var(--soft); font-size: 0.72rem; font-weight: 800; color: var(--c); }
.cb-doc__row { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; font-size: 0.72rem; font-weight: 700; color: #202020; }
.cb-doc__row::before { content: "✓"; flex: none; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--c); color: #fff; font-size: 0.65rem; animation: cb-tick 6s ease-in-out infinite; animation-delay: calc(var(--n) * 0.7s); }
@keyframes cb-tick { 0%, 4% { transform: scale(0); } 10%, 85% { transform: scale(1); } 94%, 100% { transform: scale(0); } }
.cb-doc__stamp { position: absolute; right: -14px; bottom: -12px; padding: 5px 11px; border-radius: 999px; background: #51D9D6; font-size: 0.68rem; font-weight: 800; color: #14201f; transform: rotate(8deg); box-shadow: 0 8px 16px -8px rgba(32, 32, 32, 0.5); animation: st-bob 4s ease-in-out infinite; }

.cb-chat { display: grid; gap: 10px; width: 210px; }
.cb-chat__b { max-width: 90%; padding: 9px 13px; border-radius: 16px; font-size: 0.76rem; font-weight: 700; line-height: 1.3; box-shadow: 0 10px 20px -14px rgba(32, 32, 32, 0.55); }
.cb-chat__b--in { justify-self: start; border-bottom-left-radius: 4px; background: #fff; animation: st-b1 7s ease-in-out infinite; }
.cb-chat__b--out { justify-self: end; border-bottom-right-radius: 4px; background: var(--c); color: #fff; animation: st-b2 7s ease-in-out infinite; }
.cb-chat__t { justify-self: end; display: flex; gap: 4px; padding: 11px 13px; border-radius: 16px 16px 4px 16px; background: #fff; animation: st-t 7s ease-in-out infinite; }
.cb-chat__t i { width: 6px; height: 6px; border-radius: 50%; background: var(--c); animation: cat-dot 0.9s ease-in-out infinite; }
.cb-chat__t i:nth-child(2) { animation-delay: 0.15s; }
.cb-chat__t i:nth-child(3) { animation-delay: 0.3s; }
.cb-chat__t { grid-area: 2 / 1; }
.cb-chat__b--out { grid-area: 2 / 1; }

@media (max-width: 860px) {
  .cb__card { grid-template-columns: 1fr; gap: 6px; padding: 22px 22px 26px; border-radius: 30px; }
  .cb__visual { height: 130px; }
}
@media (max-width: 520px) {
  .cb__row { flex-direction: column; padding: 8px; border-radius: 26px; }
  .cb__input { padding: 12px 14px; }
  .cb__btn { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .cb__card::after, .cb__btn, .cb__btn::after, .cb-call i, .cb-call__phone, .cb-call b, .cb-doc__row::before, .cb-doc__stamp, .cb-chat__b, .cb-chat__t, .cb-chat__t i, .cb__ok { animation: none; }
  .cb-chat__t { display: none; }
  .cb-call i { opacity: 0.25; }
}
