/* =========================================================
   Piezas compartidas: contador de cupo, bot, redes, preguntas.
   Cada boceto define estas variables en :root
   --k-fondo  --k-superficie  --k-texto  --k-suave  --k-acento  --k-acento-txt  --k-borde  --k-radio  --k-tit
   ========================================================= */

/* ---------- contador de cupo en vivo ---------- */
[data-contador]{padding:1rem 1.1rem;border:1.5px solid var(--k-borde);border-radius:var(--k-radio);background:var(--k-superficie);color:var(--k-texto)}
.ct-cab,.ct-pie{display:flex;justify-content:space-between;gap:1rem;align-items:baseline;flex-wrap:wrap}
.ct-dia{font:700 1.05rem var(--k-tit)}
.ct-quedan b{color:var(--k-acento);font-size:1.15em}
.ct-barra{height:10px;border-radius:10px;background:var(--k-borde);margin:.7rem 0 .55rem;overflow:hidden}
.ct-barra i{display:block;height:100%;border-radius:inherit;background:var(--k-acento);transition:width .8s cubic-bezier(.2,.8,.2,1)}
.ct-pie{font-size:.85rem;color:var(--k-suave)}
.ct-pie b{color:var(--k-texto)}
.ct-lleno .ct-barra i{background:#c92a2a}

/* ---------- extras del asistente de reserva ---------- */
.rv-stepper input{width:3.2ch;text-align:center;background:none;border:0;color:inherit;font:inherit;font-size:3.4rem;font-family:var(--k-tit);font-weight:800;-moz-appearance:textfield;appearance:textfield}
.rv-stepper input::-webkit-inner-spin-button,.rv-stepper input::-webkit-outer-spin-button{-webkit-appearance:none}
.rv-stepper input:focus{outline:2px solid var(--k-acento);border-radius:8px}
.rv-aviso,.rv-error{font-size:.88rem;text-align:center;margin:-.6rem 0 1rem;color:var(--k-acento)}
.rv-error{margin:.8rem 0 0;color:#ff6b6b;font-weight:700}
.rv-dia.poco em{color:var(--k-acento)!important;font-weight:700}
.rv-listo{text-align:center;padding:.6rem 0}
.rv-listo-ic{width:64px;height:64px;border-radius:50%;margin:0 auto 1rem;display:grid;place-items:center;font-size:2rem;background:#25d366;color:#fff;animation:rv-pop .5s cubic-bezier(.3,1.6,.5,1) both}
@keyframes rv-pop{from{transform:scale(0)}}
.rv-listo p{margin-bottom:.6rem}
.rv-listo .rv-btn{margin-top:.6rem;width:100%}
.rv-wa{width:100%;font:inherit}
:focus-visible{outline:2px solid var(--k-acento);outline-offset:2px}

/* ---------- redes ---------- */
.redes{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1rem}
.red{position:relative;display:block;aspect-ratio:9/14;max-height:440px;border-radius:var(--k-radio);overflow:hidden;color:#fff;text-decoration:none;isolation:isolate;background:#000}
.red img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-1;opacity:.85;transition:transform .6s}
.red:hover img{transform:scale(1.05)}
.red::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(transparent 45%,rgba(0,0,0,.85))}
.red .red-top{position:absolute;inset:.9rem .9rem auto;display:flex;align-items:center;gap:.5rem;font-weight:700;font-size:.9rem}
.red .red-top svg{width:22px;height:22px}
.red .red-pie{position:absolute;inset:auto 1rem 1rem}
.red .red-pie strong{display:block;font:800 1.4rem/1.1 var(--k-tit)}
.red .red-pie span{font-size:.85rem;opacity:.8}
.red .red-play{position:absolute;inset:0;margin:auto;width:58px;height:58px;border-radius:50%;background:rgba(255,255,255,.25);backdrop-filter:blur(6px);display:grid;place-items:center}
.red .red-play::before{content:"";border-left:16px solid #fff;border-block:10px solid transparent;margin-left:4px}
.red-links{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:1rem}
.red-links a{display:inline-flex;align-items:center;gap:.45rem;padding:.55rem .9rem;border:1.5px solid var(--k-borde);border-radius:99px;text-decoration:none;font-weight:700;font-size:.9rem;color:var(--k-texto)}
.red-links a:hover{border-color:var(--k-acento);color:var(--k-acento)}
.red-links svg{width:18px;height:18px}

/* ---------- preguntas ---------- */
.faq details{border-bottom:1.5px solid var(--k-borde)}
.faq summary{cursor:pointer;list-style:none;display:flex;justify-content:space-between;gap:1rem;padding:1rem 0;font:700 1.05rem var(--k-tit)}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";font-size:1.4rem;line-height:1;color:var(--k-acento);transition:transform .25s}
.faq details[open] summary::after{transform:rotate(45deg)}
.faq details p{padding:0 0 1rem;color:var(--k-suave);max-width:60ch}

/* ---------- bot ---------- */
.bot{position:fixed;right:16px;bottom:16px;z-index:80;font-family:inherit}
.bot-abrir{display:flex;align-items:center;gap:.6rem;padding:.5rem 1rem .5rem .5rem;border:0;border-radius:99px;background:var(--k-acento);color:var(--k-acento-txt);font:700 .95rem inherit;font-family:inherit;cursor:pointer;box-shadow:0 12px 30px -8px rgba(0,0,0,.6);transition:transform .2s}
.bot-abierto .cta-fija,.bot-abierto .flotante{opacity:0;pointer-events:none}
.bot-abrir:hover{transform:translateY(-2px)}
.bot-abrir img{width:38px;height:38px;object-fit:contain;padding:5px;border-radius:50%;background:#111}
.bot.abierto .bot-abrir{display:none}
.bot-panel{position:absolute;right:0;bottom:0;width:min(370px,calc(100vw - 32px));height:min(560px,calc(100vh - 100px));display:flex;flex-direction:column;border-radius:20px;overflow:hidden;background:var(--k-fondo);color:var(--k-texto);border:1.5px solid var(--k-borde);box-shadow:0 30px 80px -20px rgba(0,0,0,.7);animation:bot-in .3s cubic-bezier(.2,.9,.3,1.1) both;transform-origin:bottom right}
.bot-panel[hidden]{display:none}
@keyframes bot-in{from{opacity:0;transform:scale(.85) translateY(20px)}}
.bot-panel header{display:flex;align-items:center;gap:.7rem;padding:.8rem 1rem;background:#111;color:#fff}
.bot-panel header img{width:44px;height:36px;object-fit:contain}
.bot-panel header div{flex:1}
.bot-panel header strong{display:block;font:700 1rem var(--k-tit)}
.bot-panel header small{opacity:.7;font-size:.8rem}
.bot-cerrar{border:0;background:rgba(255,255,255,.12);color:#fff;width:34px;height:34px;border-radius:50%;cursor:pointer}
.bot-msgs{flex:1;overflow-y:auto;padding:1rem;display:flex;flex-direction:column;gap:.6rem}
.bot-msg{max-width:86%;animation:bot-in .25s both}
.bot-msg p{padding:.65rem .85rem;border-radius:16px;font-size:.93rem;line-height:1.45}
.bot-msg.tano p{background:var(--k-superficie);border-bottom-left-radius:4px}
.bot-msg.yo{align-self:flex-end}
.bot-msg.yo p{background:var(--k-acento);color:var(--k-acento-txt);border-bottom-right-radius:4px}
.bot-msg small{opacity:.65}
.bot-acc{display:flex;flex-wrap:wrap;gap:.4rem;margin-top:.45rem}
.bot-acc a,.bot-acc button{padding:.45rem .8rem;border-radius:99px;border:1.5px solid var(--k-acento);color:var(--k-acento);background:none;font:700 .85rem inherit;font-family:inherit;text-decoration:none;cursor:pointer}
.bot-acc a:hover,.bot-acc button:hover{background:var(--k-acento);color:var(--k-acento-txt)}
.escribiendo p{display:flex;gap:4px;padding:.85rem}
.escribiendo i{width:7px;height:7px;border-radius:50%;background:var(--k-suave);animation:bot-dot 1s infinite}
.escribiendo i:nth-child(2){animation-delay:.15s}.escribiendo i:nth-child(3){animation-delay:.3s}
@keyframes bot-dot{50%{transform:translateY(-4px);opacity:.4}}
.bot-sug{display:flex;gap:.4rem;overflow-x:auto;padding:.2rem 1rem .6rem;scrollbar-width:none}
.bot-sug button{flex:0 0 auto;padding:.45rem .75rem;border-radius:99px;border:1.5px solid var(--k-borde);background:none;color:var(--k-texto);font:500 .82rem inherit;font-family:inherit;cursor:pointer}
.bot-sug button:hover{border-color:var(--k-acento)}
.bot-form{display:flex;gap:.4rem;padding:.7rem;border-top:1.5px solid var(--k-borde)}
.bot-form input{flex:1;min-width:0;padding:.75rem .9rem;border-radius:12px;border:1.5px solid var(--k-borde);background:var(--k-superficie);color:var(--k-texto);font:400 .95rem inherit;font-family:inherit;outline:none}
.bot-form input:focus{border-color:var(--k-acento)}
.bot-form button{width:46px;border:0;border-radius:12px;background:var(--k-acento);color:var(--k-acento-txt);font-size:1.1rem;cursor:pointer}
@media (max-width:520px){.bot-abrir span{display:none}.bot-abrir{padding:.5rem}}
@media (prefers-reduced-motion:reduce){.bot *,.rv-listo-ic{animation:none!important}}
