/* assets/css/vacuum-carousel.css — FULL BLEED + NAV-FLUSH + NO RADIUS
   - Pegado al nav (sin espacios extra): el offset lo maneja el layout, NO el carousel
   - Sin márgenes laterales: edge-to-edge
   - Sin esquinas redondas
   - Sin overflow horizontal por vacuum/shadows
*/

*,
*::before,
*::after{ box-sizing:border-box; }

.oa-carousel{
  width: 100%;
  margin: 0;                 /* clave: no separación extra */
  padding: 0;                /* clave: pegado arriba */
  position: relative;

  /* prevent page-level horizontal overflow from vacuum + shadows */
  overflow-x: clip;
  overflow-y: visible;

  background: #fff;
}
@supports not (overflow: clip){
  .oa-carousel{ overflow-x: hidden; }
}

/* Frame: full-bleed; vacuum can bleed without changing layout */
.oa-carousel__frame{
  width: 100%;               /* edge-to-edge */
  margin: -22px 0 0;          /* pegado al nav (sin espacios extra) */
  position: relative;

  border-radius: 0;          /* no esquinas redondas */
  overflow: visible;
  background: #fff;

  border: 0;
  box-shadow: none;          /* sin sombras que “recorten” en los bordes */

  aspect-ratio: 1920 / 600;

  contain: paint;
  isolation: isolate;
}
@supports not (aspect-ratio: 1){
  .oa-carousel__frame{ height: clamp(180px, 28vw, 520px); }
}

/* Slides clipping box */
.oa-carousel__slides{
  position: absolute;
  inset: 0;
  z-index: 1;

  border-radius: 0;          /* no radius */
  overflow: hidden;
}

/* Slides */
.oa-slide{
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;    /* full-bleed look */
  opacity: 1;
  transform: none;
  will-change: clip-path;
  z-index: 1;
}

/* Vacuum */
.oa-vacuum{
  position: absolute;
  left: 100%;
  right: auto;
  height: 100%;
  width: auto;

  display: block;
  max-width: none;

  pointer-events: none;
  opacity: 0;
  transform: translateX(0);
  z-index: 6;

  filter: drop-shadow(0 18px 36px rgba(17,24,39,.18));
  will-change: transform, opacity;
}

/* Premium overlay inside clipped area only */
.oa-carousel__slides::after{
  content:"";
  position:absolute;
  inset:-40%;
  background:
    radial-gradient(closest-side at 22% 18%, rgba(255,255,255,.62), transparent 60%),
    radial-gradient(closest-side at 78% 28%, rgba(43,196,227,.14), transparent 62%);
  pointer-events:none;
  z-index: 4;
}

/* Feather overlay (soft edge on diagonal) */
.oa-feather{
  position: absolute;
  inset: 0;
  z-index: 5;                 /* above slides, below vacuum & dots */
  pointer-events: none;

  opacity: var(--feather-o, 0);
  transform: translateX(var(--feather-x, 0px));
  will-change: transform, opacity;
}

/* tighter, sharper white feather (≈45px) */
.oa-feather::before{
  content:"";
  position:absolute;
  top:-40%;
  left:-80%;
  height:180%;
  width:160%;
  transform-origin: 43% 57%;
  transform: rotate(var(--feather-rot, 0deg));

  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.00) 0%,
    rgba(255,255,255,0.00) 38%,
    rgba(255,255,255,0.55) 45%,
    rgba(255,255,255,0.95) 48%,
    rgba(255,255,255,0.95) 52%,
    rgba(255,255,255,0.55) 55%,
    rgba(255,255,255,0.00) 62%,
    rgba(255,255,255,0.00) 100%
  );

  filter: blur(0.4px);
}

/* Dots UI */
.oa-carousel__ui{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  display: flex;
  justify-content: center;
  z-index: 7;
  padding: 0 14px;
}

.oa-dots{
  display: inline-flex;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(17,24,39,.10);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 28px rgba(17,24,39,.10);
}

.oa-dot{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(17,24,39,.28);
  transition: width .18s ease, background .18s ease;
}
.oa-dot.is-active{
  width: 18px;
  background: rgba(43,196,227,.92);
}

/* Responsive */
@media (max-width: 520px){
  .oa-carousel__ui{ bottom: 10px; }
  .oa-dots{ padding: 7px 9px; gap: 7px; }
  .oa-dot{ width: 7px; height: 7px; }
  .oa-dot.is-active{ width: 16px; }

  .oa-vacuum{ height: 100%; }
}

/* Motion accessibility */
@media (prefers-reduced-motion: reduce){
  .oa-vacuum{ transition: none !important; }
  .oa-dot{ transition: none !important; }
  .oa-feather{ transition: none !important; }
}
