/* ---------------------------------------------------------------------------
   Carrusel Mipyme — Empresa de Aseo de Pereira S.A.S. E.S.P.
   Reemplazo propio de Slider Revolution. Sin dependencias externas.
   --------------------------------------------------------------------------- */

.mpc {
  --mpc-ratio: 1920 / 650;
  --mpc-ctrl: rgba(0, 0, 0, .5);
  --mpc-ctrl-hover: #000;
  --mpc-ico: #fff;
  --mpc-foco: #1F7A45;

  position: relative;
  width: 100%;
  overflow: hidden;
  background: #f0f2f1;
  line-height: 0;
}

/* La pista es un carril con desplazamiento nativo: en el celular se pasa el
   dedo y funciona sin una sola linea de JavaScript. */
.mpc__pista {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.mpc__pista::-webkit-scrollbar { display: none; }
.mpc__pista:focus-visible { outline: 3px solid var(--mpc-foco); outline-offset: -3px; }

/* Sin scroll-snap-stop: al pulsar un punto para saltar varias diapositivas,
   esa propiedad puede frenar el recorrido en la primera del camino. */
.mpc__lam {
  flex: 0 0 100%;
  width: 100%;
  scroll-snap-align: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* aspect-ratio reserva la altura antes de que baje la imagen: la pagina no
   pega el salto tipico mientras carga. */
.mpc__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: var(--mpc-ratio);
  object-fit: cover;
}
.mpc__enlace { display: block; line-height: 0; }
.mpc__enlace:focus-visible { outline: 3px solid var(--mpc-foco); outline-offset: -3px; }

/* Texto solo para lectores de pantalla */
.mpc__oculto {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}

/* ---------- flechas ---------- */
.mpc__flecha {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 50px; height: 100px;
  display: grid; place-items: center;
  border: 0; padding: 0; cursor: pointer;
  background: var(--mpc-ctrl); color: var(--mpc-ico);
  transition: background .15s ease, opacity .15s ease;
  z-index: 2;
}
.mpc__flecha:hover { background: var(--mpc-ctrl-hover); }
.mpc__flecha:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }
.mpc__flecha--ant { left: 0; }
.mpc__flecha--sig { right: 0; }
.mpc__flecha svg {
  width: 26px; height: 26px;
  fill: none; stroke: currentColor; stroke-width: 2.4;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- puntos ---------- */
.mpc__puntos {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  display: flex; gap: 9px; z-index: 2;
  padding: 7px 11px; border-radius: 999px;
  background: rgba(0, 0, 0, .32);
}
.mpc__punto {
  width: 11px; height: 11px; padding: 0; border-radius: 50%; cursor: pointer;
  border: 2px solid #fff; background: transparent;
  transition: background .15s ease, transform .15s ease;
}
.mpc__punto:hover { background: rgba(255, 255, 255, .6); }
.mpc__punto[aria-current="true"] { background: #fff; transform: scale(1.15); }
.mpc__punto:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* ---------- pausa ---------- */
.mpc__pausa {
  position: absolute; right: 14px; bottom: 14px; z-index: 2;
  width: 36px; height: 36px; display: grid; place-items: center;
  border: 0; border-radius: 50%; cursor: pointer;
  background: var(--mpc-ctrl); color: var(--mpc-ico);
}
.mpc__pausa:hover { background: var(--mpc-ctrl-hover); }
.mpc__pausa:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.mpc__ico {
  width: 16px; height: 16px; grid-area: 1 / 1;
  fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round;
}
.mpc__ico--play { fill: currentColor; stroke: none; }
.mpc__pausa[data-estado="corriendo"] .mpc__ico--play { display: none; }
.mpc__pausa[data-estado="detenido"] .mpc__ico--pausa { display: none; }

/* ---------- celular ---------- */
@media (max-width: 782px) {
  .mpc__flecha { width: 38px; height: 66px; }
  .mpc__flecha svg { width: 20px; height: 20px; }
  .mpc__puntos { bottom: 9px; gap: 7px; padding: 5px 9px; }
  .mpc__punto { width: 9px; height: 9px; }
  .mpc__pausa { width: 30px; height: 30px; right: 9px; bottom: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  .mpc__pista { scroll-behavior: auto; }
  .mpc * { transition: none !important; }
}
