/* index-extras.css – SOLO para index.html
   1) Slider con el mismo ancho que las cajas de 2 columnas
   2) Botones laterales que se desplazan con el scroll
   3) Burbuja "¿Necesitas agendar?" junto al WhatsApp flotante
   4) Barra inferior fija en móvil (Pedir presupuesto / Llamar)            */

:root{ --sl-or:#ff5a1f; --sl-or-d:#e24a12; --sl-ink:#1f2933; }

/* ---------- 1. SLIDER = ancho de .row (77rem) ---------- */
.intro-slider{
  max-width:77rem;
  width:100%;
  margin:18px auto 0;
}
.intro-slider .bx-viewport{ border-radius:14px; }
.intro-slider img.fullsize-image{
  width:100%;
  aspect-ratio:16/5;
  object-fit:cover;
  height:auto;
}
.intro-slider .slide-caption > br{ display:none; }

@media (min-width:768px){
  .intro-slider{ margin-bottom:0; }
  .intro-slider .bx-wrapper{ margin-bottom:0; }
  .section-information{ top:0; }
  .section-information .section-features{ padding-top:32px; min-height:0; padding-bottom:32px; }
  .intro-slider .slide-caption{
    top:50%;
    left:40px;
    margin:0;
    width:min(433px,62%);
    transform:translateY(-50%);
  }
}
@media (min-width:768px) and (max-width:1024px){
  .intro-slider img.fullsize-image{ aspect-ratio:16/7; }
  .intro-slider .slide-caption-inner{ padding:12px 16px; }
  .intro-slider .slide-caption-inner h1{ font-size:clamp(18px,3vw,26px); }
  .intro-slider .slide-caption-inner h5{ font-size:14px; line-height:1.3; }
}
@media (max-width:767px){
  .intro-slider{ margin-top:12px; }
}

/* ---------- 2. BOTONES CUADRADOS LATERALES ---------- */
.side-actions{
  --p:0;                                   /* 0 → 1 según el scroll (lo fija el JS) */
  position:fixed; left:0; z-index:9990;
  top:calc(var(--p) * 50% + (1 - var(--p)) * 200px);
  transform:translateY(calc(var(--p) * -50%));
  display:flex; flex-direction:column; gap:6px;
}
.side-actions a{
  width:48px; height:48px; display:grid; place-items:center;
  background:var(--sl-or); color:#fff; font-size:22px; line-height:1;
  border-radius:0 8px 8px 0; text-decoration:none;
  box-shadow:0 2px 8px rgba(0,0,0,.2);
  transition:width .2s, background .2s;
}
.side-actions a:hover{ width:56px; background:var(--sl-or-d); color:#fff; }
.side-actions a.wa{ background:#25d366; }
@media (max-width:767px){
  .side-actions a{ width:44px; height:44px; font-size:20px; }
}

/* ---------- 3. BURBUJA "¿Necesitas agendar?" ---------- */
.agenda-pill{
  display:flex; align-items:center; gap:6px;
  margin-bottom:14px; margin-right:2px;
}
.agenda-pill.is-hidden{ display:none; }
.agenda-link{
  display:inline-flex; align-items:center; gap:8px;
  background:#fff; color:var(--sl-or-d); border:1.5px solid var(--sl-or);
  border-radius:999px; padding:9px 16px;
  font:600 15px/1.2 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  text-decoration:none; white-space:nowrap;
  box-shadow:0 4px 12px rgba(0,0,0,.15);
}
.agenda-link:hover{ background:#fff3ed; color:var(--sl-or-d); }
.agenda-x{
  width:28px; height:28px; border-radius:50%; padding:0; cursor:pointer;
  border:1.5px solid var(--sl-or); background:#fff; color:var(--sl-or-d);
  font:400 18px/1 Arial,sans-serif;
}

/* ---------- 4. BARRA INFERIOR (solo móvil) ---------- */
.m-bar{ display:none; }
@media (max-width:767px){
  body{ padding-bottom:76px; }
  .m-bar{
    position:fixed; left:0; right:0; bottom:0; z-index:9995;
    display:grid; grid-template-columns:1fr 1fr; gap:10px;
    padding:10px 14px calc(10px + env(safe-area-inset-bottom));
    background:rgba(255,255,255,.97);
    box-shadow:0 -4px 14px rgba(0,0,0,.12);
  }
  .m-bar a{
    display:flex; align-items:center; justify-content:center; gap:8px;
    min-height:50px; border-radius:999px; text-decoration:none;
    font:700 16px/1 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
    color:#fff; background:var(--sl-or);
  }
  .m-bar a.dark{ background:var(--sl-ink); }
  /* El WhatsApp flotante sube para no quedar tapado por la barra */
  .wapp-float{ bottom:calc(84px + env(safe-area-inset-bottom)) !important; right:14px; }
  .agenda-link{ font-size:14px; padding:8px 13px; }
}

@media print{ .side-actions,.m-bar{ display:none !important; } }
@media (prefers-reduced-motion:reduce){ .side-actions a{ transition:none; } }
