/* =========================================================
   FACAND — Estilos de funcionalidades demostrables
   ========================================================= */

/* Partículas del hero */
.hero-particles{ position:absolute; inset:0; z-index:0; pointer-events:none; }
.hero__grid, .hero .container{ position:relative; z-index:2; }

/* =========================================================
   CUENTA ATRÁS
   ========================================================= */
.offer{ position:relative; }
.offer__card{
  max-width:980px; margin:0 auto; border-radius:var(--radius-lg);
  border:1px solid rgba(46,127,241,.28);
  background:
    radial-gradient(120% 140% at 12% 0%, rgba(46,127,241,.14), transparent 55%),
    radial-gradient(120% 140% at 100% 100%, rgba(51,209,122,.12), transparent 55%),
    var(--surface);
  padding:clamp(28px,3.5vw,46px); display:grid; grid-template-columns:1.1fr auto; gap:32px; align-items:center;
}
.offer__eyebrow{ display:inline-flex; align-items:center; gap:8px; font-size:12.5px; font-weight:600; letter-spacing:.14em; text-transform:uppercase; color:var(--green); margin-bottom:14px; }
.offer__eyebrow .pulse{ width:8px; height:8px; border-radius:50%; background:var(--green); box-shadow:0 0 0 0 rgba(51,209,122,.5); animation:pulse-dot 2s infinite; }
@keyframes pulse-dot{ 0%{ box-shadow:0 0 0 0 rgba(51,209,122,.5);} 70%{ box-shadow:0 0 0 12px rgba(51,209,122,0);} 100%{ box-shadow:0 0 0 0 rgba(51,209,122,0);} }
.offer__card h2{ font-size:clamp(1.5rem,2.6vw,2.2rem); font-weight:800; letter-spacing:-.025em; line-height:1.1; margin-bottom:12px; }
.offer__card p{ color:var(--muted); font-weight:300; font-size:15.5px; line-height:1.6; max-width:46ch; }
.offer__right{ display:flex; flex-direction:column; align-items:center; gap:18px; }
.cd{ display:flex; gap:10px; }
.cd__cell{ min-width:64px; text-align:center; background:rgba(255,255,255,.03); border:1px solid var(--line); border-radius:14px; padding:12px 8px; }
.cd__n{ font-size:30px; font-weight:800; line-height:1; font-variant-numeric:tabular-nums; background:var(--grad-brand); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
.cd__l{ display:block; margin-top:7px; font-size:10px; font-weight:600; letter-spacing:.12em; text-transform:uppercase; color:var(--muted); }
@media (max-width:820px){
  .offer__card{ grid-template-columns:1fr; text-align:center; }
  .offer__card p{ margin:0 auto; }
  .offer__eyebrow{ justify-content:center; }
  .cd__cell{ min-width:58px; }
}
@media (max-width:420px){ .cd__cell{ min-width:48px; padding:10px 5px; } .cd__n{ font-size:24px; } }

/* =========================================================
   BOT DE IA
   ========================================================= */
/* Botón flotante WhatsApp */
.fwa__btn{
  position:fixed; right:22px; bottom:22px; z-index:300;
  display:flex; align-items:center; justify-content:center;
  width:60px; height:60px; border-radius:50%;
  background:#25D366; color:#fff;
  box-shadow:0 4px 14px rgba(37,211,102,.4);
  transition:transform .25s var(--ease), box-shadow .25s;
  text-decoration:none;
}
.fwa__btn svg{ width:32px; height:32px; }
.fwa__btn:hover{ transform:translateY(-3px) scale(1.05); box-shadow:0 8px 24px rgba(37,211,102,.5); opacity:1; }
@media (max-width:768px){
  .fwa__btn{ width:62px; height:62px; right:16px; bottom:16px; }
  .fwa__btn svg{ width:34px; height:34px; }
}

/* =========================================================
   PRUEBA SOCIAL (toast)
   ========================================================= */
.fproof{
  position:fixed; left:22px; bottom:22px; z-index:290; display:flex; align-items:center; gap:13px;
  background:var(--surface); border:1px solid var(--line); border-radius:16px; padding:13px 18px 13px 14px;
  box-shadow:0 20px 50px -16px rgba(0,0,0,.7); max-width:330px;
  opacity:0; transform:translateY(16px); pointer-events:none;
  transition:opacity .45s var(--ease), transform .45s var(--ease);
}
.fproof.show{ opacity:1; transform:none; }
.fproof__ico{ width:36px; height:36px; flex-shrink:0; border-radius:10px; display:flex; align-items:center; justify-content:center; background:rgba(51,209,122,.12); border:1px solid rgba(51,209,122,.3); color:var(--green); }
.fproof__ico svg{ width:18px; height:18px; }
.fproof__tx b{ display:block; font-size:13px; font-weight:700; color:var(--text); }
.fproof__tx span{ font-size:12.5px; color:var(--muted); font-weight:300; }
@media (max-width:560px){ .fproof{ display:none; } }

@media (prefers-reduced-motion:reduce){
  .offer__eyebrow .pulse{ animation:none; }
}

/* Ajustes via Tweaks */
.offer__eyebrow{ white-space:nowrap; }
body.dens-compact .section{ padding:62px 0; }
body.dens-comfy .section{ padding:120px 0; }
body.no-particles .hero-particles{ display:none; }
body.no-wa .fwa__btn{ display:none; }
body.no-offer .book__promo{ display:none; }
body.no-social .fproof{ display:none; }

/* Promo destacada (cuenta atrás sobre el precio) */
.book__promo{ background:linear-gradient(135deg,#0e1320,#151d2e); border:1px solid rgba(46,127,241,.42); border-radius:15px; padding:15px 16px; margin-bottom:18px; box-shadow:0 14px 34px -16px rgba(46,127,241,.55); }
.book__promo-label{ display:flex; align-items:center; gap:8px; font-size:11.5px; font-weight:700; letter-spacing:.07em; text-transform:uppercase; color:#d3deeb; margin-bottom:12px; }
.book__promo .cd--dark .cd__cell{ background:rgba(255,255,255,.05); border-color:rgba(255,255,255,.1); padding:10px 4px; }
.book__promo .cd--dark .cd__n{ font-size:26px; }

/* =========================================================
   RESERVA — cuenta atrás (dark) + calendario + pasos + pago
   ========================================================= */
.cd-bar{ background:#0f1320; border:1px solid rgba(255,255,255,.07); border-radius:16px; padding:16px 18px; margin:24px 0; }
.cd-bar__label{ display:flex; align-items:center; gap:8px; font-size:11.5px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; color:#9fb0c2; margin-bottom:12px; }
.cd-bar__dot{ width:7px; height:7px; border-radius:50%; background:var(--green); box-shadow:0 0 8px var(--green); flex-shrink:0; }
.cd--dark{ display:flex; gap:8px; }
.cd--dark .cd__cell{ flex:1; background:rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.08); border-radius:11px; padding:9px 4px; text-align:center; }
.cd--dark .cd__n{ font-size:23px; font-weight:800; font-variant-numeric:tabular-nums; -webkit-text-fill-color:transparent; background:var(--grad-brand); -webkit-background-clip:text; background-clip:text; }
.cd--dark .cd__l{ display:block; margin-top:4px; font-size:9px; font-weight:600; letter-spacing:.1em; text-transform:uppercase; color:#7e8ea0; }

.book__price{ display:flex; align-items:center; justify-content:space-between; gap:12px; }
.book__amt{ display:flex; align-items:baseline; gap:10px; }
.book__old{ font-size:18px; color:#9aa6b2; text-decoration:line-through; font-weight:600; }
.book__new{ font-size:34px; font-weight:800; color:#0c1320; letter-spacing:-.02em; line-height:1; }
.book__tag{ font-size:12px; font-weight:700; color:#1B7a44; background:rgba(51,209,122,.14); border:1px solid rgba(51,209,122,.32); padding:6px 12px; border-radius:999px; white-space:nowrap; }
.book__note{ font-size:13.5px; color:#475260; margin:9px 0 20px; line-height:1.5; }
.book__note b{ color:#0c1320; }

.book__steps{ display:flex; gap:6px; margin-bottom:22px; }
.book__steps span{ flex:1; display:flex; align-items:center; gap:7px; justify-content:center; font-size:12px; font-weight:600; color:#8693a1; padding:9px 4px; border-radius:10px; background:#eef2f6; }
.book__steps b{ width:20px; height:20px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:11px; background:#d4dde5; color:#5a6775; }
.book__steps span.on{ background:#0c1320; color:#fff; }
.book__steps span.on b{ background:var(--blue); color:#fff; }
.book__steps span.done b{ background:var(--green); color:#fff; }

.cal__head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:14px; }
.cal__nav{ width:38px; height:38px; border-radius:10px; border:1px solid #d6dde4; display:flex; align-items:center; justify-content:center; color:#34404f; background:#fff; transition:.2s; }
.cal__nav:hover:not(:disabled){ border-color:#2E7FF1; color:#2E7FF1; }
.cal__nav:disabled{ opacity:.35; cursor:not-allowed; }
.cal__nav svg{ width:18px; height:18px; }
.cal__label{ font-size:15px; font-weight:700; color:#0c1320; }
.cal__week{ display:grid; grid-template-columns:repeat(7,1fr); gap:6px; }
.cal__day{ display:flex; flex-direction:column; align-items:center; gap:3px; padding:11px 2px; border-radius:12px; border:1px solid #e1e8ee; background:#fff; transition:.18s; }
.cal__day .cd-dow{ font-size:10px; font-weight:600; color:#8a97a5; text-transform:uppercase; }
.cal__day .cd-day{ font-size:18px; font-weight:800; color:#0c1320; }
.cal__day:hover:not(.off){ border-color:#9fb3c6; transform:translateY(-2px); }
.cal__day.on{ border-color:#2E7FF1; background:#2E7FF1; }
.cal__day.on .cd-dow{ color:rgba(255,255,255,.85); }
.cal__day.on .cd-day{ color:#fff; }
.cal__day.off{ opacity:.32; cursor:not-allowed; }
.cal__hint{ font-size:12.5px; color:#6b7785; text-align:center; margin-top:14px; }
.cal__chosen{ font-size:14px; font-weight:700; color:#0c1320; margin:4px 0 14px; }
.book__back{ font-family:inherit; display:inline-flex; align-items:center; gap:5px; font-size:13px; font-weight:600; color:#1B4FB0; margin-bottom:14px; }
.book__back svg{ width:15px; height:15px; }

.book__summary{ display:flex; align-items:center; gap:13px; background:#eef4fb; border:1px solid #d3e2f5; border-radius:14px; padding:13px 15px; margin-bottom:20px; }
.bs__ico{ width:38px; height:38px; flex-shrink:0; border-radius:10px; background:#fff; border:1px solid #d3e2f5; display:flex; align-items:center; justify-content:center; color:#2E7FF1; }
.bs__ico svg{ width:19px; height:19px; }
.book__summary b{ display:block; font-size:14px; color:#0c1320; font-weight:700; }
.book__summary span{ font-size:12.5px; color:#6b7785; }
.bs__edit{ margin-left:auto; font-family:inherit; font-size:12.5px; font-weight:600; color:#1B4FB0; background:none; }

.pay{ background:#f6f9fc; border:1px solid #e1e8ee; border-radius:14px; padding:18px; margin-top:4px; }
.pay__head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:15px; }
.pay__title{ font-size:12.5px; font-weight:700; color:#0c1320; text-transform:uppercase; letter-spacing:.05em; }
.pay__total{ font-size:14px; color:#9aa6b2; }
.pay__total s{ margin-right:6px; }
.pay__total b{ font-size:18px; color:#1B7a44; font-weight:800; }
.pay__grid{ display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.pay__grid .field.full{ grid-column:1/-1; }
.pay__note{ display:flex; align-items:flex-start; gap:8px; font-size:12px; color:#6b7785; margin-top:14px; line-height:1.4; }
.pay__note svg{ width:15px; height:15px; flex-shrink:0; color:#1B7a44; margin-top:1px; }

.book__done{ text-align:center; padding:16px 0; }
.book__check{ width:64px; height:64px; margin:0 auto 18px; border-radius:50%; background:rgba(51,209,122,.14); border:1px solid rgba(51,209,122,.4); display:flex; align-items:center; justify-content:center; color:#1B7a44; }
.book__check svg{ width:30px; height:30px; }
.book__done h3{ font-size:1.4rem; font-weight:800; color:#0c1320; margin-bottom:10px; }
.book__done p{ font-size:14.5px; color:#475260; line-height:1.6; max-width:40ch; margin:0 auto 18px; }
.book__done b{ color:#0c1320; }
.book__wa{ display:inline-block; font-size:14px; font-weight:700; color:#1B4FB0; }
@media (max-width:640px){
  .cal__week{ gap:4px; }
  .cal__day{ padding:8px 1px; border-radius:8px; }
  .cal__day .cd-dow{ font-size:9px; }
  .cal__day .cd-day{ font-size:14px; }
  .sched__times{ gap:6px; }
  .sched__slot{ padding:9px 12px; font-size:13px; }
  .book__price{ flex-direction:column; gap:4px; }
}
@media (max-width:520px){
  .book__steps span{ font-size:0; gap:0; }
  .book__steps b{ font-size:11px; }
  .pay__grid{ grid-template-columns:1fr; }
  .cpanel.book{ padding:18px 14px; }
}
@media (max-width:380px){
  .cal__week{ gap:2px; }
  .cal__day{ padding:6px 0; }
  .cal__day .cd-day{ font-size:13px; }
  .cal__day .cd-dow{ font-size:8px; }
}

/* Bloque de urgencia (cupos + reloj) dentro de Contacto */
.contact__urgency{ background:#fff; border:1px solid #d9e1e8; border-radius:18px; padding:20px 22px; margin:24px 0; box-shadow:0 10px 30px -18px rgba(12,19,32,.2); }
.urg__slots{ display:flex; align-items:center; gap:15px; margin-bottom:16px; }
.urg__big{ font-size:44px; font-weight:800; line-height:1; color:#1B4FB0; }
.urg__slots b{ display:block; font-size:15px; color:#0c1320; font-weight:700; line-height:1.2; }
.urg__slots > div span{ font-size:13px; color:#6b7785; }
.contact__urgency .cd{ display:flex; gap:8px; }
.contact__urgency .cd__cell{ flex:1; background:#f1f5f8; border:1px solid #e1e8ee; border-radius:11px; padding:10px 4px; text-align:center; }
.contact__urgency .cd__n{ font-size:24px; font-weight:800; color:#0c1320; -webkit-text-fill-color:#0c1320; background:none; font-variant-numeric:tabular-nums; }
.contact__urgency .cd__l{ display:block; margin-top:5px; font-size:9.5px; font-weight:600; letter-spacing:.1em; text-transform:uppercase; color:#6b7785; }
.urg__hint{ font-size:12px; color:#6b7785; margin-top:13px; }

/* Panel de contacto: tabs + agendamiento (fondo claro) */
.cpanel__tabs{ display:flex; gap:6px; background:#e7edf3; border-radius:14px; padding:5px; margin-bottom:22px; }
.cpanel__tab{ flex:1; font-family:inherit; font-size:13.5px; font-weight:600; color:#475260; padding:11px 10px; border-radius:10px; transition:background .2s,color .2s; }
.cpanel__tab.active{ background:#fff; color:#0c1320; box-shadow:0 2px 8px rgba(12,19,32,.08); }
.cpanel__view[hidden]{ display:none; }
.sched__badge{ display:inline-flex; align-items:center; gap:8px; font-size:12.5px; font-weight:600; color:#1B7a44; background:rgba(51,209,122,.12); border:1px solid rgba(51,209,122,.3); padding:7px 13px; border-radius:999px; }
.sched__badge svg{ width:16px; height:16px; }
.sched__intro{ font-size:14.5px; color:#475260; line-height:1.6; margin:14px 0 20px; }
.sched__intro b{ color:#0c1320; font-weight:700; }
.sched__label{ display:block; font-size:12px; font-weight:700; color:#34404f; text-transform:uppercase; letter-spacing:.05em; margin:0 0 11px; }
.sched__dates{ display:flex; gap:9px; margin-bottom:22px; flex-wrap:wrap; }
.sched__date{ font-family:inherit; display:flex; flex-direction:column; align-items:center; gap:3px; min-width:62px; padding:11px 6px; border:1px solid #d6dde4; border-radius:13px; background:#fff; transition:border-color .2s, background .2s, box-shadow .2s; }
.sched__date .dow{ font-size:11px; font-weight:600; color:#6b7785; text-transform:uppercase; }
.sched__date .dnum{ font-size:20px; font-weight:800; color:#0c1320; line-height:1; }
.sched__date .dmon{ font-size:10.5px; color:#6b7785; text-transform:uppercase; }
.sched__date.on{ border-color:#2E7FF1; background:rgba(46,127,241,.07); box-shadow:0 0 0 2px rgba(46,127,241,.2); }
.sched__times{ display:flex; flex-wrap:wrap; gap:9px; margin-bottom:20px; }
.sched__slot{ font-family:inherit; font-size:14px; font-weight:600; color:#34404f; padding:10px 16px; border:1px solid #d6dde4; border-radius:11px; background:#fff; transition:.2s; }
.sched__slot.on{ border-color:#2E7FF1; background:#2E7FF1; color:#fff; }
.sched__slot:hover:not(.on), .sched__date:hover:not(.on){ border-color:#9fb3c6; }
.sched__spots{ font-size:12.5px; color:#6b7785; text-align:center; margin-top:15px; }
.sched__spots b{ color:#1B4FB0; font-weight:700; }
.sched__flash{ font-size:13px; color:#c2410c; font-weight:600; margin-top:10px; text-align:center; opacity:0; transition:opacity .2s; }
.sched__flash.show{ opacity:1; }

/* Panel combinado: título/sub + error de agenda */
.cpanel__title{ font-size:1.45rem; font-weight:800; color:#0c1320; letter-spacing:-.02em; margin-bottom:8px; }
.cpanel__sub{ font-size:14px; color:#475260; line-height:1.6; margin-bottom:24px; }
.cpanel__sub b{ color:#0c1320; font-weight:700; }
.sched__err{ font-size:13px; color:#c2410c; font-weight:600; text-align:center; margin:0 0 4px; opacity:0; transition:opacity .2s; }
.sched__err.show{ opacity:1; }

/* =========================================================
   EFECTOS — loader, microinteracciones, parallax
   ========================================================= */
#loader{ position:fixed; inset:0; z-index:9999; background:var(--bg); display:flex; flex-direction:column; align-items:center; justify-content:center; gap:0; transition:opacity .55s var(--ease), visibility .55s; }
#loader.done{ opacity:0; visibility:hidden; }
.loader__mark{ position:relative; width:70px; height:70px; display:flex; align-items:center; justify-content:center; }
.loader__mark img{ width:54px; height:54px; object-fit:contain; animation:loaderPulse 1.4s ease-in-out infinite; }
.loader__ring{ position:absolute; inset:-2px; border-radius:50%; border:2px solid rgba(255,255,255,.07); border-top-color:var(--blue-2); border-right-color:var(--green); animation:spin 1s linear infinite; }
@keyframes loaderPulse{ 0%,100%{ opacity:.55; transform:scale(.94);} 50%{ opacity:1; transform:scale(1);} }

/* Microinteracción: brillo en CTA primario */
.btn--primary{ position:relative; overflow:hidden; }
.btn--primary::after{ content:''; position:absolute; top:0; left:-130%; width:65%; height:100%; background:linear-gradient(100deg,transparent,rgba(255,255,255,.38),transparent); transform:skewX(-18deg); transition:left .6s var(--ease); pointer-events:none; }
.btn--primary:hover::after{ left:150%; }
/* Microinteracción: ícono de tarjeta reacciona */
.card__icon{ transition:transform .35s var(--ease); }
.card:hover .card__icon{ transform:translateY(-2px) scale(1.04); }

@media (prefers-reduced-motion:reduce){
  .loader__mark img, .loader__ring{ animation:none; }
  .btn--primary::after{ display:none; }
}
