/* Tu Mano Derecha IA · asistentes, páginas por sector y formulario (se carga después de /style.css) */

/* ---------- Páginas por sector ---------- */
.kicker{display:inline-flex;align-items:center;gap:8px;background:var(--white);border-radius:999px;padding:6px 14px 6px 8px;font-weight:700;font-size:14.5px;box-shadow:0 0 0 1px rgba(18,22,56,.08)}
.kicker i{width:24px;height:24px;border-radius:50%;background:var(--sun);display:grid;place-items:center;font-style:normal;font-size:13px}
.s-hero{max-width:calc(var(--max) + 2*var(--gut));margin:0 auto;padding-top:clamp(28px,5vw,64px);padding-bottom:clamp(36px,5vw,56px)}
.s-hero h1{font-size:clamp(42px,6.6vw,84px);line-height:.97;font-weight:800;letter-spacing:-.04em;max-width:15ch;margin-top:22px;text-wrap:balance}
.s-hero .lead{max-width:38em}
.s-points{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:clamp(30px,4vw,44px) 0 0;padding:0;list-style:none}
.s-points li{background:var(--white);border-radius:20px;padding:18px 20px;font-weight:500;box-shadow:0 0 0 1px rgba(18,22,56,.06)}
.s-points b{display:block;font-family:var(--display);font-size:19px;margin-bottom:4px}
.demo{background:var(--white);border-radius:clamp(28px,4vw,48px) clamp(28px,4vw,48px) 0 0}
.demo-head{display:flex;justify-content:space-between;align-items:end;gap:18px 40px;flex-wrap:wrap;margin-bottom:clamp(26px,4vw,40px)}
.demo-head p{color:var(--ink-2);max-width:30em}
.gets{background:var(--sky)}
.gets ol{list-style:none;counter-reset:g;padding:0;margin:clamp(30px,4vw,48px) 0 0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(22px,3vw,40px)}
.gets li{counter-increment:g;border-top:3px solid var(--ink);padding-top:18px}
.gets li::before{content:"0" counter(g);font-family:var(--display);font-weight:800;color:var(--cobalt);font-size:15px;letter-spacing:.06em}
.gets h3{margin-top:6px}
.gets p{color:var(--ink-2);margin-top:8px}

/* Tarjetas «pruébalo» en la portada */
.try{background:var(--white)}
.try-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:clamp(30px,4vw,48px)}
.try-card{display:flex;flex-direction:column;gap:10px;text-decoration:none;background:var(--paper);border-radius:24px;padding:24px 24px 22px;transition:transform .15s,box-shadow .15s;box-shadow:0 0 0 1px rgba(18,22,56,.06)}
.try-card:hover{transform:translateY(-3px);box-shadow:0 18px 30px -18px rgba(18,22,56,.35),0 0 0 1px rgba(18,22,56,.06)}
.try-card .emo{width:48px;height:48px;border-radius:14px;background:var(--sun);display:grid;place-items:center;font-size:24px}
.try-card h3{font-size:24px}
.try-card p{color:var(--ink-2);flex:1}
.try-card span{font-weight:700;color:var(--cobalt)}
.try-card:nth-child(2) .emo{background:var(--sky)}
.try-card:nth-child(3) .emo{background:#d9f4e4}

/* ---------- Asistente ---------- */
.tmd-wrap{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(260px,.8fr);gap:clamp(18px,3vw,32px);align-items:start}
.tmd-box{display:flex;flex-direction:column;background:var(--white);border-radius:28px;box-shadow:0 30px 60px -28px rgba(18,22,56,.35),0 0 0 1px rgba(18,22,56,.08);overflow:hidden;height:min(640px,78vh);min-height:460px}
.tmd-head{display:flex;align-items:center;gap:10px;padding:14px 16px;border-bottom:1px solid #eceffa}
.tmd-av{width:40px;height:40px;flex:none;border-radius:50%;background:var(--sky);color:var(--cobalt);display:grid;place-items:center;font-family:var(--display);font-weight:800;font-size:18px}
.tmd-who{flex:1;min-width:0}
.tmd-who strong{display:block;font-size:15.5px;line-height:1.2}
.tmd-who small{display:block;font-size:12.5px;color:#1f8a52}
.tmd-reset,.tmd-x{border:0;background:none;font:inherit;cursor:pointer;color:var(--ink-2);font-size:13px;font-weight:600;padding:8px 10px;border-radius:999px}
.tmd-reset:hover,.tmd-x:hover{background:var(--paper);color:var(--ink)}
.tmd-x{font-size:16px;line-height:1}
.tmd-log{flex:1;overflow-y:auto;padding:18px 16px 8px;display:flex;flex-direction:column;gap:9px;background:linear-gradient(var(--white),#f7f8fe);overscroll-behavior:contain}
.tmd-msg{max-width:86%;padding:10px 13px;border-radius:18px;font-size:15px;line-height:1.45;overflow-wrap:anywhere}
.tmd-msg p+p{margin-top:6px}
.tmd-msg.bot{background:#eef0f7;align-self:flex-start;border-bottom-left-radius:6px}
.tmd-msg.me{background:var(--cobalt);color:var(--white);align-self:flex-end;border-bottom-right-radius:6px}
.tmd-msg.sys{align-self:center;background:#fff4d6;color:#6b4e00;font-size:13.5px;text-align:center;border-radius:12px}
.tmd-sent{background:#ddf5e7!important;color:#14603a!important;font-weight:600}
.tmd-typing{display:flex;gap:5px;padding:14px 16px}
.tmd-typing i{width:7px;height:7px;border-radius:50%;background:#9aa0c2;animation:tmd-b 1.1s infinite}
.tmd-typing i:nth-child(2){animation-delay:.15s}.tmd-typing i:nth-child(3){animation-delay:.3s}
@keyframes tmd-b{0%,60%,100%{transform:none;opacity:.5}30%{transform:translateY(-4px);opacity:1}}
.tmd-chips{display:flex;flex-direction:column;align-items:flex-end;gap:7px;margin-top:6px}
.tmd-chip{border:1.5px solid var(--cobalt);background:var(--white);color:var(--cobalt);font:inherit;font-size:14px;font-weight:600;padding:8px 14px;border-radius:999px;cursor:pointer;text-align:right;max-width:92%}
.tmd-chip:hover{background:var(--cobalt);color:var(--white)}
.tmd-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:9px;width:100%}
.tmd-card{border-radius:16px;overflow:hidden;background:var(--white);box-shadow:0 0 0 1px rgba(18,22,56,.1)}
.tmd-card .ph{background:linear-gradient(135deg,var(--cobalt),#5c6ff0);color:var(--white);padding:12px 12px 10px;display:flex;justify-content:space-between;align-items:baseline;gap:6px}
.tmd-card.alq .ph{background:linear-gradient(135deg,#0f7a5a,#2fae83)}
.tmd-card .ph span{font-weight:700;font-size:14px}
.tmd-card .ph small{font-size:11px;opacity:.85}
.tmd-card .bd{padding:10px 12px 12px}
.tmd-card .price{font-family:var(--display);font-weight:800;font-size:19px}
.tmd-card .feat{font-size:13px;color:var(--ink-2);margin-top:2px}
.tmd-card-link{display:inline-block;margin-top:8px;font-weight:700;font-size:13.5px;color:var(--cobalt)}
.tmd-card .tag{display:inline-block;margin-top:7px;background:var(--sun);border-radius:6px;padding:1px 7px;font-size:12px;font-weight:600}
.tmd-status{font-size:13.5px;color:var(--ink-2);padding:6px 16px 0;margin:0}
.tmd-status.err{color:#a1281c}
.tmd-composer{display:flex;gap:8px;align-items:flex-end;padding:10px 12px 8px}
.tmd-composer textarea{flex:1;resize:none;border:1.5px solid #d7dbef;border-radius:22px;padding:11px 16px;font:inherit;font-size:16px;line-height:1.35;max-height:130px;background:var(--white);color:var(--ink)}
.tmd-composer textarea:focus{outline:none;border-color:var(--cobalt)}
.tmd-send{flex:none;width:46px;height:46px;border-radius:50%;border:0;background:var(--cobalt);color:var(--white);display:grid;place-items:center;cursor:pointer}
.tmd-send:disabled{background:#c5cbe8;cursor:default}
.tmd-note{font-size:12px;color:var(--ink-2);padding:0 16px 12px;margin:0}
.tmd-note a{color:var(--cobalt)}
.tmd-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}

.tmd-ficha{background:var(--sun);border-radius:8px 28px 28px 28px;padding:22px 22px 20px;box-shadow:0 18px 30px -20px rgba(18,22,56,.5);position:sticky;top:20px}
.tmd-ficha-top{display:flex;justify-content:space-between;align-items:center;gap:10px}
.tmd-ficha h3{font-size:21px}
.tmd-count{min-width:30px;height:30px;border-radius:999px;background:rgba(18,22,56,.12);display:grid;place-items:center;font-weight:800;font-size:14px;padding:0 8px}
.tmd-count.on{background:var(--ink);color:var(--sun)}
.tmd-hint{font-size:14px;margin-top:6px;color:#4a3d00}
.tmd-ficha dl{margin:16px 0 0;display:grid;grid-template-columns:auto 1fr;gap:7px 14px;font-size:14.5px}
.tmd-ficha dt{font-weight:700}
.tmd-ficha dd{margin:0;overflow-wrap:anywhere}
.tmd-ficha dd.empty{opacity:.45}
.tmd-ficha dd.new{animation:tmd-in .5s}
@keyframes tmd-in{from{background:rgba(255,255,255,.9)}to{background:transparent}}
.tmd-state{font-size:13px;margin-top:16px;padding-top:12px;border-top:1.5px dashed rgba(18,22,56,.25)}

/* Modo flotante (asistente de la agencia) */
.tmd-fab{position:fixed;right:max(16px,env(safe-area-inset-right));bottom:max(16px,env(safe-area-inset-bottom));z-index:40;display:flex;align-items:center;gap:10px;border:0;background:var(--ink);color:var(--white);font:inherit;font-weight:700;font-size:15.5px;padding:14px 20px 14px 16px;border-radius:999px;cursor:pointer;box-shadow:0 16px 30px -12px rgba(18,22,56,.6)}
.tmd-fab:hover{background:#1e2356}
.tmd-dot{width:12px;height:12px;border-radius:50%;background:#3bd17f;box-shadow:0 0 0 4px rgba(59,209,127,.25)}
.tmd-float{position:fixed;right:max(16px,env(safe-area-inset-right));bottom:max(16px,env(safe-area-inset-bottom));z-index:41;width:min(400px,calc(100vw - 32px));height:min(620px,calc(100vh - 32px));min-height:0}
.tmd-float[hidden]{display:none}

@media (max-width:860px){
  .s-points,.gets ol,.try-grid{grid-template-columns:1fr}
  .tmd-wrap{grid-template-columns:1fr}
  .tmd-ficha{position:static}
  .tmd-box:not(.tmd-float){height:min(600px,80vh)}
}
@media (max-width:560px){
  .tmd-float{inset:0;width:100%;height:100%;border-radius:0}
  .tmd-lock,.tmd-lock body{overflow:hidden}
  .tmd-msg{max-width:90%}
}

/* ---------- Formulario «pide tu demo» ---------- */
.ask{background:var(--cobalt);color:var(--white)}
.ask .inner{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:clamp(30px,5vw,80px);align-items:start}
.ask h2{color:var(--white)}
.ask .intro p{font-size:19px;margin-top:18px;color:#dfe3ff;max-width:28em}
.ask .intro ul{margin:22px 0 0;padding:0;list-style:none;display:grid;gap:10px;font-weight:600}
.ask .intro li::before{content:"✓";display:inline-grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--sun);color:var(--ink);font-size:13px;margin-right:10px}
.ask .alt{margin-top:26px;font-size:15px;color:#dfe3ff}
.ask .alt a{color:var(--sun);font-weight:700}
.tmd-form{background:var(--white);color:var(--ink);border-radius:28px;padding:clamp(22px,3vw,34px);display:grid;grid-template-columns:1fr 1fr;gap:16px 16px;box-shadow:0 30px 60px -30px rgba(0,0,0,.45)}
.tmd-form .f{display:flex;flex-direction:column;gap:6px;font-weight:600;font-size:14.5px}
.tmd-form .f.wide{grid-column:1/-1}
.tmd-form .f small{font-weight:400;color:var(--ink-2)}
.tmd-form input:not([type=checkbox]),.tmd-form select,.tmd-form textarea{font:inherit;font-size:16px;font-weight:400;border:1.5px solid #d7dbef;border-radius:14px;padding:12px 14px;background:var(--white);color:var(--ink);width:100%}
.tmd-form textarea{min-height:96px;resize:vertical}
.tmd-form input:focus,.tmd-form select:focus,.tmd-form textarea:focus{outline:none;border-color:var(--cobalt);box-shadow:0 0 0 3px var(--sky)}
.tmd-form .check{grid-column:1/-1;display:flex;gap:10px;align-items:flex-start;font-size:14px;color:var(--ink-2);line-height:1.45}
.tmd-form .check input{width:20px;height:20px;margin-top:1px;accent-color:var(--cobalt);flex:none}
.tmd-form .check a{color:var(--cobalt);font-weight:600}
.tmd-form .btn{grid-column:1/-1;border:0;cursor:pointer;font:inherit;font-weight:700;font-size:17px}
.tmd-form .btn:disabled{opacity:.6;cursor:default}
.tmd-form .hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.tmd-form-out{grid-column:1/-1;margin:0;font-weight:600;font-size:15px;min-height:1px}
.tmd-form-out.ok{background:#ddf5e7;color:#14603a;padding:12px 14px;border-radius:14px}
.tmd-form-out.err{background:#fde6e3;color:#a1281c;padding:12px 14px;border-radius:14px}
.tmd-form .legal{grid-column:1/-1;font-size:12.5px;color:var(--ink-2);margin:0}
@media (max-width:860px){.ask .inner{grid-template-columns:1fr}}
@media (max-width:520px){.tmd-form{grid-template-columns:1fr}}

/* Ajustes de cabecera para móvil (botón «Pide tu demo») */
.site-head .btn-small,.brand span{white-space:nowrap}
@media (max-width:420px){.site-head .btn-small{padding:0 14px;font-size:14px;min-height:40px}.brand{font-size:16px}.brand-hand{width:30px;height:30px}}
@media (max-width:374px){.ptd{display:none}}
.tmd-form input:not([type=checkbox]),.tmd-form select{min-height:50px}
.tmd-float .tmd-reset{font-size:0;padding:8px}
.tmd-float .tmd-reset::before{content:"↺";font-size:19px;line-height:1}

/* Aviso de borrador (solo en /borrador/) */
.draft-bar{background:var(--ink);color:var(--sun);text-align:center;font-size:13.5px;font-weight:600;padding:8px 16px}

/* 13/11/2026 · Las páginas nuevas (empleados.css) no traen estos tres colores y el chat los necesita: sin ellos el mensaje del
   visitante salía en blanco sobre blanco y no se veían el botón de enviar ni la inicial. Son los mismos valores de style.css. */
.tmd{--cobalt:#2F45E6;--sky:#E3E8FF;--ink-2:#4a4f72}
/* El botón «¿Hablamos?» llevaba un punto verde que recordaba a WhatsApp: ahora va con el amarillo de la marca. */
.tmd-dot{background:#FFD23F;box-shadow:0 0 0 4px rgba(255,210,63,.28)}
/* Lola como cara del chat (14/11/2026) */
.tmd-av-lola{background:none;overflow:hidden}.tmd-av-lola img{width:100%;height:100%;object-fit:cover;display:block}
