.bae-events{
  --bae-bg:#0F172A;
  --bae-card:#121B30;
  --bae-card-2:#17233A;
  --bae-salmon:#ECA392;
  --bae-line:rgba(236,163,146,.58);
  --bae-line-strong:rgba(236,163,146,.82);
  --bae-text:#FFFFFF;
  --bae-muted:#C9CDD5;
  --bae-shadow:0 18px 48px rgba(0,0,0,.34);

  width:100%;
  min-width:0;
  padding:64px 24px 40px;
  background:var(--bae-bg);
  color:var(--bae-text);
  font-family:"Roboto",Arial,sans-serif;
  scroll-margin-top:80px;
}

.bae-events,
.bae-events *,
.bae-events *::before,
.bae-events *::after{
  box-sizing:border-box;
}

.bae-events [hidden]{
  display:none!important;
}

.bae-shell{
  max-width:1200px;
  margin:auto;
  min-width:0;
}

/* ENCABEZADO */
.bae-events .bae-eyebrow{
  display:none;
}

.bae-events h2{
  color:var(--bae-text);
  font-family:inherit;
  font-size:clamp(32px,4vw,48px);
  line-height:1.1;
  letter-spacing:-.025em;
  margin:0;
  font-weight:600;
}

.bae-events h2 span{
  color:var(--bae-salmon);
}

.bae-events .bae-intro{
  font-size:15px;
  font-weight:400;
  line-height:1.5;
  color:rgba(255,255,255,.76);
  max-width:620px;
  margin:12px 0 24px;
  letter-spacing:0;
}

/* NAVEGACIÓN */
.bae-navigation{
  display:flex;
  align-items:center;
  gap:10px;
  margin:0 0 18px;
}

.bae-hint{
  display:flex;
  align-items:center;
  gap:14px;
  margin-right:auto;
  min-width:0;
  color:var(--bae-muted);
  font-size:12px;
  line-height:1.5;
  font-style:italic;
}

.bae-hint::before{
  content:"";
  display:block;
  width:42px;
  height:1px;
  flex:0 0 42px;
  background:var(--bae-salmon);
  box-shadow:0 0 8px rgba(236,163,146,.22);
}

.bae-events .bae-navigation button{
  position:relative;
  display:grid;
  place-items:center;
  width:46px;
  height:46px;
  flex:0 0 46px;
  margin:0;
  padding:0;
  border-radius:50%;
  border:1px solid rgba(236,163,146,.42);
  background:rgba(255,255,255,.01);
  color:var(--bae-salmon);
  font-size:0;
  cursor:pointer;
  box-shadow:0 0 0 1px rgba(255,255,255,.02) inset;
  transition:
    transform .2s ease,
    border-color .2s ease,
    box-shadow .2s ease,
    background .2s ease;
}

.bae-events .bae-navigation button>span{
  position:relative;
  display:block;
  width:19px;
  height:12px;
}

.bae-events .bae-navigation button>span::before{
  content:"";
  position:absolute;
  left:1px;
  top:5px;
  width:17px;
  height:1.5px;
  border-radius:2px;
  background:currentColor;
}

.bae-events .bae-navigation button>span::after{
  content:"";
  position:absolute;
  right:1px;
  top:2px;
  width:7px;
  height:7px;
  border-top:1.5px solid currentColor;
  border-right:1.5px solid currentColor;
  transform:rotate(45deg);
}

.bae-events .bae-navigation button[data-move="-1"]>span{
  transform:rotate(180deg);
}

.bae-events .bae-navigation button[data-move="1"]{
  border-color:rgba(236,163,146,.82);
  background:rgba(236,163,146,.07);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.025) inset,
    0 0 17px rgba(236,163,146,.19);
}

.bae-events .bae-navigation button:disabled{
  opacity:.35;
  cursor:default;
  transform:none;
}

/* CARRUSEL */
.bae-track{
  display:flex;
  gap:24px;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  scrollbar-width:thin;
  scrollbar-color:#eca39266 transparent;
  padding:4px 2px 18px;
  overscroll-behavior-x:contain;
}

/* TARJETAS */
.bae-card{
  position:relative;
  display:flex;
  flex-direction:column;
  flex:0 0 calc((100% - 48px)/3);
  min-width:0;
  scroll-snap-align:start;
  padding:14px 14px 10px;
  background:linear-gradient(
    180deg,
    rgba(23,35,58,.96),
    rgba(17,27,47,.96)
  );
  border:2px solid var(--bae-line);
  border-radius:24px;
  overflow:hidden;
  box-shadow:
    var(--bae-shadow),
    0 0 24px rgba(236,163,146,.12);
}

.bae-card::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:24px;
  pointer-events:none;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.03) inset,
    0 0 30px rgba(236,163,146,.06) inset;
}

.bae-card>*{
  position:relative;
  z-index:1;
}

.bae-card::after{
  content:none;
}

/* CARTELES */
.bae-poster{
  aspect-ratio:4/5;
  background:#0b1120;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:18px;
  overflow:hidden;
  border:1px solid rgba(236,163,146,.16);
  box-shadow:0 0 0 1px rgba(255,255,255,.03) inset;
}

.bae-events .bae-poster img{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  max-width:100%;
  border:0;
  border-radius:0;
}

/* INFORMACIÓN */
.bae-details{
  padding:20px 10px 4px;
  display:flex;
  flex-direction:column;
  flex:1;
}

.bae-events .bae-date{
  color:var(--bae-salmon);
  font-size:14px;
  line-height:1.5;
  margin:0 0 12px;
  letter-spacing:.01em;
}

.bae-events h3{
  color:var(--bae-text);
  font-family:inherit;
  font-size:clamp(28px,2vw,34px);
  line-height:1.08;
  margin:0 0 12px;
  letter-spacing:-.03em;
  font-weight:600;
}

.bae-events .bae-place{
  display:flex;
  align-items:center;
  gap:12px;
  font-size:18px;
  color:#e3e7ee;
  line-height:1.5;
  margin:0 0 24px;
}

.bae-events .bae-place::before{
  content:"";
  width:34px;
  height:34px;
  flex:0 0 34px;
  border-radius:999px;
  border:1px solid rgba(236,163,146,.58);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.04) inset,
    0 0 18px rgba(236,163,146,.18);
  background-repeat:no-repeat;
  background-position:center;
  background-size:18px 18px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M12 22s7-6.2 7-12a7 7 0 1 0-14 0c0 5.8 7 12 7 12Z' fill='%23ECA392'/%3E%3Ccircle cx='12' cy='10' r='2.9' fill='%230F172A'/%3E%3C/svg%3E");
}

/* BOTÓN UNIFICADO */
.bae-events .bae-ticket{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:0;
  min-height:48px;
  margin-top:auto;
  padding:12px 20px;
  background:var(--bae-salmon);
  border:1px solid var(--bae-salmon);
  color:#0F172A!important;
  text-decoration:none!important;
  border-radius:8px;
  font-family:inherit;
  font-size:12px;
  font-weight:600;
  line-height:1.4;
  letter-spacing:.02em;
  text-align:center;
  box-shadow:none;
  transition:
    background-color .2s ease,
    border-color .2s ease;
}

.bae-events .bae-ticket:hover,
.bae-events .bae-ticket:focus,
.bae-events .bae-ticket:active,
.bae-events .bae-ticket:visited{
  color:#0F172A!important;
  text-decoration:none!important;
}

.bae-ticket span{
  display:none;
}

.bae-events .bae-soon{
  color:var(--bae-muted);
  border-top:1px solid rgba(255,255,255,.09);
  margin:auto 0 0;
  padding-top:16px;
  font-size:14px;
  line-height:1.6;
}

.bae-events .bae-empty{
  padding:28px;
  border:1px solid rgba(236,163,146,.18);
  border-radius:20px;
  color:var(--bae-muted);
  line-height:1.7;
  background:linear-gradient(
    180deg,
    rgba(255,255,255,.02),
    rgba(255,255,255,.01)
  );
}

.bae-events :focus-visible{
  outline:3px solid var(--bae-salmon);
  outline-offset:3px;
}

/* INTERACCIÓN EN ORDENADOR */
@media(hover:hover) and (pointer:fine){
  .bae-events .bae-navigation button:not(:disabled):hover{
    transform:translateY(-1px);
    border-color:rgba(236,163,146,.58);
    box-shadow:0 0 18px rgba(236,163,146,.13);
    background:rgba(236,163,146,.05);
  }

  .bae-card:hover{
    border-color:var(--bae-line-strong);
    box-shadow:
      0 22px 56px rgba(0,0,0,.38),
      0 0 30px rgba(236,163,146,.16);
  }

  .bae-events .bae-ticket:hover{
    background:#F2B7A9;
    border-color:#F2B7A9;
  }
}

/* TABLET */
@media(max-width:1000px){
  .bae-events{
    padding:48px 24px 32px;
  }
}

@media(max-width:950px){
  .bae-card{
    flex-basis:calc((100% - 24px)/2);
  }
}

/* MÓVIL */
@media(max-width:767px){
  .bae-events{
    padding:48px 16px;
    scroll-margin-top:64px;
  }

  .bae-events h2{
    font-size:clamp(27px,7.7vw,32px);
    line-height:1.1;
    letter-spacing:-.025em;
    margin:0;
    text-wrap:balance;
  }

  .bae-events .bae-intro{
    max-width:350px;
    font-size:15px;
    line-height:1.5;
    margin:12px 0 24px;
  }

  .bae-navigation{
    gap:9px;
    margin-bottom:16px;
  }

  .bae-hint{
    gap:12px;
    font-size:11px;
  }

  .bae-hint::before{
    width:38px;
    flex-basis:38px;
  }

  .bae-events .bae-navigation button{
    width:44px;
    height:44px;
    flex:0 0 44px;
  }

  .bae-track{
    gap:14px;
    padding-top:2px;
  }

  .bae-card{
    flex-basis:88%;
    padding:11px 11px 8px;
    border-radius:22px;
  }

  .bae-card::before{
    border-radius:22px;
  }

  .bae-poster{
    border-radius:16px;
  }

  .bae-details{
    padding:14px 8px 2px;
  }

  .bae-events .bae-date{
    font-size:12px;
    line-height:1.4;
    margin-bottom:7px;
  }

  .bae-events h3{
    font-size:26px;
    line-height:1.06;
    margin-bottom:8px;
  }

  .bae-events .bae-place{
    gap:10px;
    font-size:15px;
    line-height:1.4;
    margin-bottom:14px;
  }

  .bae-events .bae-place::before{
    width:30px;
    height:30px;
    flex-basis:30px;
    background-size:16px 16px;
  }

  .bae-events .bae-ticket{
    min-height:48px;
    padding:12px;
    font-size:12px;
    letter-spacing:.02em;
    border-radius:8px;
  }
}

/* MÓVILES ESTRECHOS */
@media(max-width:370px){
  .bae-hint::before{
    width:24px;
    flex-basis:24px;
  }

  .bae-navigation{
    gap:7px;
  }
}

@media(max-width:359px){
  .bae-events{
    padding-left:12px;
    padding-right:12px;
  }
}

@media(prefers-reduced-motion:reduce){
  .bae-track{
    scroll-behavior:auto;
  }

  .bae-events .bae-navigation button,
  .bae-events .bae-ticket{
    transition:none;
  }
}