/* TuWebLocal · páginas de software a medida (a1, 2026-09-30)
   Formulario de diagnóstico, tarjetas de soluciones, rangos de precio, pasos,
   comparativa, calculadora de presupuesto y bloque de plantilla descargable. */
.twl-sw-sec{padding:3.2rem 0}
.twl-sw-sec--soft{background:#f4f9fc}
.twl-sw-sec--tight{padding:2.2rem 0}
.twl-sw-wrap{max-width:1120px;margin:0 auto;padding:0 1.1rem}
.twl-sw-narrow{max-width:860px;margin:0 auto;padding:0 1.1rem}
.twl-sw-kicker{display:inline-block;font-size:.78rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#176be0;background:#e6f1fd;border-radius:999px;padding:.3rem .8rem;margin:0 0 .7rem}
.twl-sw-h2{font-size:clamp(1.45rem,1.1rem + 1.4vw,2.1rem);line-height:1.2;color:#102a43;margin:0 0 .8rem;font-weight:800}
.twl-sw-lede{font-size:1.05rem;color:#41545f;line-height:1.65;margin:0 0 1.4rem;max-width:760px}
.twl-sw-center{text-align:center}
.twl-sw-center .twl-sw-lede{margin-left:auto;margin-right:auto}

/* ---------- Formulario de diagnóstico ---------- */
.twl-diag{display:grid;gap:1.6rem;align-items:start}
@media (min-width:920px){.twl-diag{grid-template-columns:minmax(0,5fr) minmax(0,6fr);gap:2.6rem}}
.twl-diag__intro p{color:#41545f;line-height:1.65;margin:0 0 1rem}
.twl-diag__list{list-style:none;padding:0;margin:0 0 1.2rem;display:grid;gap:.7rem}
.twl-diag__list li{position:relative;padding-left:2rem;color:#243b4a;line-height:1.5}
.twl-diag__list li::before{content:"";position:absolute;left:0;top:.15rem;width:1.3rem;height:1.3rem;border-radius:50%;background:#e3f6ea url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f7a4d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/.8rem no-repeat}
.twl-diag__alt{font-size:.95rem;color:#41545f;margin:0}
.twl-diag__alt a{color:#176be0;font-weight:700}
.twl-diag__card{background:#fff;border:1px solid #d8e6f0;border-radius:18px;box-shadow:0 14px 40px rgba(16,42,67,.10);padding:1.4rem 1.2rem}
@media (min-width:560px){.twl-diag__card{padding:1.8rem 1.8rem 1.5rem}}
.twl-diag__card h3{margin:0 0 .2rem;font-size:1.25rem;color:#102a43;font-weight:800}
.twl-diag__card .twl-diag__sub{margin:0 0 1.1rem;color:#5c6f7b;font-size:.93rem}
.twl-diag__grid{display:grid;gap:.85rem}
@media (min-width:560px){.twl-diag__grid{grid-template-columns:1fr 1fr}.twl-diag__full{grid-column:1/-1}}
.twl-diag__f{display:flex;flex-direction:column;gap:.3rem;margin:0}
.twl-diag__f>span{font-size:.86rem;font-weight:700;color:#243b4a}
.twl-diag__f em{font-style:normal;font-weight:500;color:#7a8b96}
.twl-diag__f input,.twl-diag__f select,.twl-diag__f textarea{width:100%;box-sizing:border-box;font:inherit;font-size:16px;color:#102a43;background:#fbfdff;border:2px solid #d6e6f2;border-radius:10px;padding:.7rem .8rem;min-height:48px}
.twl-diag__f textarea{min-height:92px;resize:vertical}
.twl-diag__f input:focus,.twl-diag__f select:focus,.twl-diag__f textarea:focus{outline:none;border-color:#176be0;background:#fff;box-shadow:0 0 0 3px rgba(23,107,224,.15)}
.twl-diag__consent{display:flex;gap:.6rem;align-items:flex-start;font-size:.86rem;color:#41545f;line-height:1.45;margin:.2rem 0 0}
.twl-diag__consent input{width:20px;height:20px;margin:.1rem 0 0;flex:0 0 auto;accent-color:#176be0}
.twl-diag__consent a{color:#176be0;text-decoration:underline}
.twl-diag__btn{display:flex;width:100%;justify-content:center;align-items:center;gap:.5rem;border:0;cursor:pointer;font:inherit;font-weight:800;font-size:1.05rem;color:#fff;background:#176be0;border-radius:12px;padding:.95rem 1.2rem;min-height:52px;margin-top:.3rem;box-shadow:0 6px 18px rgba(23,107,224,.3);transition:background .2s,transform .1s}
.twl-diag__btn:hover{background:#0d4ba0}
.twl-diag__btn:active{transform:translateY(1px)}
.twl-diag__btn[disabled]{opacity:.7;cursor:wait}
.twl-diag__estado{margin:.6rem 0 0;font-size:.92rem;font-weight:600;color:#1f7a4d;min-height:1.2em}
.twl-diag__estado.err{color:#c0392b}
.twl-diag__nota{margin:.6rem 0 0;font-size:.8rem;color:#7a8b96;text-align:center}
.twl-diag .hidden-field{display:none}

/* ---------- Tarjetas de soluciones y sectores ---------- */
.twl-sw-grid{display:grid;gap:1rem;grid-template-columns:repeat(auto-fit,minmax(250px,1fr))}
.twl-sw-card{display:flex;flex-direction:column;background:#fff;border:1px solid #dbe8f1;border-radius:16px;padding:1.3rem 1.3rem 1.1rem;text-decoration:none;color:inherit;transition:border-color .2s,box-shadow .2s,transform .2s}
a.twl-sw-card:hover{border-color:#176be0;box-shadow:0 10px 28px rgba(16,42,67,.10);transform:translateY(-2px)}
.twl-sw-card__ico{font-size:1.7rem;line-height:1;margin:0 0 .6rem}
.twl-sw-card h3{font-size:1.08rem;color:#102a43;margin:0 0 .45rem;font-weight:800}
.twl-sw-card p{color:#41545f;font-size:.95rem;line-height:1.55;margin:0 0 .8rem;flex:1}
.twl-sw-card__go{font-weight:800;color:#176be0;font-size:.93rem}
.twl-sw-card--soon{background:#f7fafc;border-style:dashed}
.twl-sw-card--soon .twl-sw-card__go{color:#7a8b96}

/* ---------- Rangos de precio ---------- */
.twl-sw-precios{display:grid;gap:1rem;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));margin:0 0 1rem}
.twl-sw-precio{background:#fff;border:1px solid #dbe8f1;border-radius:16px;padding:1.4rem 1.3rem;position:relative}
.twl-sw-precio--rec{border:2px solid #176be0;box-shadow:0 12px 32px rgba(23,107,224,.14)}
.twl-sw-precio__badge{position:absolute;top:-.75rem;left:1.2rem;background:#176be0;color:#fff;font-size:.72rem;font-weight:800;letter-spacing:.06em;border-radius:999px;padding:.25rem .7rem}
.twl-sw-precio h3{margin:0 0 .3rem;font-size:1.1rem;color:#102a43;font-weight:800}
.twl-sw-precio__para{margin:0 0 .8rem;color:#5c6f7b;font-size:.92rem;line-height:1.5}
.twl-sw-precio__cifra{font-size:1.55rem;font-weight:800;color:#176be0;line-height:1.15;margin:0 0 .2rem}
.twl-sw-precio__iva{font-size:.82rem;color:#7a8b96;margin:0 0 .9rem}
.twl-sw-precio ul{list-style:none;padding:0;margin:0;display:grid;gap:.45rem}
.twl-sw-precio li{position:relative;padding-left:1.4rem;font-size:.92rem;color:#41545f;line-height:1.45}
.twl-sw-precio li::before{content:"✓";position:absolute;left:0;color:#1f7a4d;font-weight:800}
.twl-sw-nota{font-size:.88rem;color:#5c6f7b;line-height:1.55;background:#fff8e6;border:1px solid #f3dfae;border-radius:12px;padding:.8rem 1rem;margin:.4rem 0 0}

/* ---------- Pasos ---------- */
.twl-sw-pasos{list-style:none;padding:0;margin:0;display:grid;gap:1rem;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));counter-reset:paso}
.twl-sw-pasos li{background:#fff;border:1px solid #dbe8f1;border-radius:16px;padding:1.2rem 1.2rem 1.1rem;counter-increment:paso;margin:0}
.twl-sw-pasos li::before{content:counter(paso);display:inline-flex;align-items:center;justify-content:center;width:2.1rem;height:2.1rem;border-radius:50%;background:#176be0;color:#fff;font-weight:800;margin:0 0 .6rem}
.twl-sw-pasos b{display:block;color:#102a43;margin:0 0 .3rem;font-size:1.02rem}
.twl-sw-pasos span{color:#41545f;font-size:.93rem;line-height:1.5}

/* ---------- Comparativa ---------- */
.twl-sw-tabla-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;border:1px solid #dbe8f1;border-radius:14px;background:#fff}
.twl-sw-tabla{width:100%;border-collapse:collapse;min-width:620px;font-size:.93rem}
.twl-sw-tabla th,.twl-sw-tabla td{padding:.75rem .85rem;text-align:left;border-bottom:1px solid #e8f0f6;vertical-align:top;color:#41545f;line-height:1.45}
.twl-sw-tabla th{background:#102a43;color:#fff;font-weight:700;font-size:.88rem}
.twl-sw-tabla td:first-child{font-weight:700;color:#102a43}
.twl-sw-tabla .is-us{background:#eef6fd}
.twl-sw-tabla tr:last-child td{border-bottom:0}
.twl-sw-fuente{font-size:.8rem;color:#7a8b96;margin:.5rem 0 0}

/* ---------- Listas de problemas y garantías ---------- */
.twl-sw-dolor{list-style:none;padding:0;margin:0;display:grid;gap:.8rem}
.twl-sw-dolor li{background:#fff;border:1px solid #f0d9d4;border-left:5px solid #d9534f;border-radius:12px;padding:.9rem 1rem;color:#41545f;line-height:1.5;margin:0}
.twl-sw-dolor b{color:#102a43}
.twl-sw-zonas{display:flex;flex-wrap:wrap;gap:.5rem;margin:0 0 1rem;padding:0;list-style:none}
.twl-sw-zonas li{background:#fff;border:1px solid #d6e6f2;border-radius:999px;padding:.4rem .9rem;font-size:.9rem;color:#243b4a;margin:0}

/* ---------- CTA intermedia ---------- */
.twl-sw-cta{display:flex;flex-wrap:wrap;gap:1rem;align-items:center;justify-content:space-between;background:#102a43;color:#fff;border-radius:18px;padding:1.4rem 1.5rem;margin:1.6rem 0 0}
.twl-sw-cta p{margin:0;flex:1 1 280px;font-size:1.02rem;line-height:1.5;color:#dcebf5}
.twl-sw-cta strong{color:#fff}
.twl-sw-cta__btns{display:flex;flex-wrap:wrap;gap:.6rem}
.twl-sw-btn{display:inline-flex;align-items:center;justify-content:center;gap:.45rem;border-radius:12px;padding:.8rem 1.15rem;font-weight:800;text-decoration:none!important;min-height:48px;font-size:.97rem;border:0;cursor:pointer;font-family:inherit}
.twl-sw-btn--pri{background:#176be0;color:#fff!important}
.twl-sw-btn--pri:hover{background:#0d4ba0}
.twl-sw-btn--wa{background:#25D366;color:#08361b!important}
.twl-sw-btn--wa:hover{background:#1fb457}
.twl-sw-btn--sec{background:#fff;color:#0d4ba0!important;border:2px solid #cfe1f3}
.twl-sw-cta .twl-sw-btn--sec{background:transparent;color:#fff!important;border-color:#56708a}

/* ---------- Calculadora ---------- */
.twl-calc{background:#fff;border:1px solid #d8e6f0;border-radius:18px;box-shadow:0 14px 40px rgba(16,42,67,.08);padding:1.2rem}
@media (min-width:700px){.twl-calc{padding:1.8rem}}
.twl-calc__paso{border:0;padding:0;margin:0 0 1.5rem;min-width:0}
.twl-calc__paso legend{font-weight:800;color:#102a43;font-size:1.05rem;margin:0 0 .7rem;padding:0;display:flex;gap:.6rem;align-items:center}
.twl-calc__n{display:inline-flex;align-items:center;justify-content:center;width:1.8rem;height:1.8rem;border-radius:50%;background:#176be0;color:#fff;font-size:.9rem;flex:0 0 auto}
.twl-calc__ops{display:grid;gap:.55rem;grid-template-columns:repeat(auto-fill,minmax(210px,1fr))}
.twl-calc__op{position:relative;display:flex;margin:0}
.twl-calc__op input{position:absolute;opacity:0;width:1px;height:1px}
.twl-calc__op span{flex:1;display:flex;flex-direction:column;gap:.15rem;border:2px solid #d6e6f2;border-radius:12px;padding:.7rem .85rem;cursor:pointer;background:#fbfdff;color:#243b4a;font-weight:700;font-size:.95rem;line-height:1.3;transition:border-color .15s,background .15s;min-height:48px;justify-content:center}
.twl-calc__op small{font-weight:500;color:#6b7d89;font-size:.82rem}
.twl-calc__op input:checked+span{border-color:#176be0;background:#eaf3fe;color:#0d4ba0}
.twl-calc__op input:checked+span::after{content:"✓";position:absolute;top:.45rem;right:.7rem;color:#176be0;font-weight:900}
.twl-calc__op input:focus-visible+span{outline:3px solid rgba(23,107,224,.35);outline-offset:2px}
.twl-calc__res{background:#102a43;color:#fff;border-radius:16px;padding:1.3rem 1.3rem 1.2rem;margin-top:.4rem}
.twl-calc__res h3{margin:0 0 .3rem;font-size:1rem;color:#9fc9ee;font-weight:700;text-transform:uppercase;letter-spacing:.05em}
.twl-calc__rango{font-size:clamp(1.7rem,1.3rem + 1.6vw,2.4rem);font-weight:800;margin:0 0 .2rem;color:#fff;line-height:1.15}
.twl-calc__tipo{margin:0 0 .8rem;color:#cfe3f3;font-size:.97rem}
.twl-calc__det{margin:0 0 1rem;padding-left:1.1rem;color:#dcebf5;font-size:.9rem;line-height:1.55}
.twl-calc__aviso{font-size:.8rem;color:#a9c2d6;margin:.8rem 0 0;line-height:1.5}
.twl-calc__vacio{color:#cfe3f3;margin:0}

/* ---------- Plantilla descargable (lead magnet) ---------- */
.twl-sw-lead{display:grid;gap:1.2rem;align-items:center;background:#eef9f0;border:1px solid #bfe3cb;border-radius:18px;padding:1.4rem}
@media (min-width:820px){.twl-sw-lead{grid-template-columns:auto 1fr;padding:1.6rem 1.8rem}}
.twl-sw-lead__doc{width:88px;height:112px;border-radius:8px;background:#fff;border:1px solid #bfe3cb;box-shadow:4px 4px 0 #d3eedc;display:flex;align-items:center;justify-content:center;font-size:2.4rem}
.twl-sw-lead h2,.twl-sw-lead h3{margin:0 0 .35rem;color:#14532d;font-size:1.2rem;font-weight:800}
.twl-sw-lead p{margin:0 0 .6rem;color:#2f4f3d;line-height:1.55;font-size:.97rem}
.twl-lead{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:.8rem}
.twl-lead input[type=email]{flex:1 1 220px;padding:12px 14px;border:2px solid #cfe6d6;border-radius:10px;font:inherit;font-size:16px;background:#fff;min-height:48px;box-sizing:border-box}
.twl-lead input[type=email]:focus{outline:none;border-color:#3aa76d}
.twl-lead button{flex:0 0 auto}
.twl-lead__consent{flex:1 1 100%;font-size:.86rem;color:#41545f;display:flex;gap:8px;align-items:flex-start;margin:.2rem 0 0}
.twl-lead__consent input{margin-top:3px}
.twl-lead__msg{flex:1 1 100%;margin:.4rem 0 0;font-weight:600;color:#1f7a4d}
.twl-lead__msg.is-error{color:#c0392b}
.twl-lead__msg a{color:#14532d;text-decoration:underline}
.twl-sw-nota a,.twl-sw-lede a,.twl-sw-fuente a,.twl-diag__intro a{color:#176be0!important;text-decoration:underline;font-weight:700}
.twl-sw-card--soon .twl-sw-card__go{color:#6b7d89;font-weight:600}
.twl-sw-tabla th.is-us{background:#176be0;color:#fff}
.twl-calc__mini{margin:.8rem 0 0;background:#eaf3fe;border:1px solid #bcd7f5;border-radius:10px;padding:.6rem .9rem;color:#0d4ba0;font-size:.95rem}.twl-calc__mini a{color:#176be0!important;font-weight:700}.twl-calc__mini[hidden]{display:none}
