/* Tuboleta · Home · Hero V10 (destacados) · 12-11-2026 · reemplaza V9
   Cards iguales a las del catálogo (tbd-cards-catalogo-hover): blancas con borde, radio 12px, imagen cuadrada a sangre,
   fecha azul arriba, título 16px, recinto · ciudad; ciudad en hover (computador). La sección sigue gris */
.path-frontpage{
  --tbd-fondo:#f2f2f2;
  --tbd-azul:#0877B9;
  --tbd-texto:#111418;
  --tbd-texto-sec:#5A6B7A;
  --tbd-superficie:#FFFFFF;
  --tbd-borde:#E3E7EA;
  --tbd-noche-2:#0B2A3B;
  --tbd-foco:#FFC400;
  --tbd-radio:12px;
  --tbd-fuente:"Montserrat",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
}

/* Sección destacados: gris a todo el ancho */
.path-frontpage .layout-element:has(.featured-events){
  background:var(--tbd-fondo);
  box-shadow:0 0 0 100vmax var(--tbd-fondo);
  clip-path:inset(0 -100vmax);
  /* Arriba la misma separación que entre cards, para que quede pegada al banner */
  padding-top:14px !important;
}

/* Sin el título "Destacados" */
.path-frontpage .layout-element:has(.featured-events) .paragraph--type--text-block{
  display:none !important;
}

/* Separación entre cards un poco menor que la de producción (21px) */
.path-frontpage .featured-events .field--name-field-content-reference{
  gap:14px !important;
}

/* Card: como el catálogo, blanca con borde, sin padding y con la imagen a sangre */
.path-frontpage .featured-events article{
  height:100% !important;
  padding:0 !important;
  background:var(--tbd-superficie) !important;
  border:1px solid var(--tbd-borde);
  border-radius:var(--tbd-radio) !important;
  overflow:hidden;
}
.path-frontpage .featured-events article:has(.content-link-container:focus-visible){
  outline:3px solid var(--tbd-foco);
  outline-offset:2px;
}
.path-frontpage .featured-events .content-link-container:focus-visible{outline:none}
.path-frontpage .featured-events .tags-container{z-index:2;left:12px}
.path-frontpage .featured-events .content-link-container{
  color:var(--tbd-texto) !important;
  font-family:var(--tbd-fuente);
}

/* Imágenes: cuadradas (también la del destacado), sin redondeo propio */
.path-frontpage .featured-events .image-container{
  position:relative;
  flex:0 0 auto;
  aspect-ratio:1 / 1;
  overflow:hidden;
  background:var(--tbd-noche-2);
}
.path-frontpage .featured-events .image-container picture,
.path-frontpage .featured-events .image-container img{
  display:block;
  width:100%;
  height:100%;
}
.path-frontpage .featured-events .image-container img{
  object-fit:cover;
  object-position:center;
}

/* Info en columna: fecha arriba, luego título y recinto · ciudad, todo a la izquierda.
   height:auto evita que el bloque (h-100) aplaste la imagen */
.path-frontpage .featured-events .image-container + div{
  flex-direction:column !important;
  justify-content:flex-start !important;
  height:auto !important;
  flex:1 0 auto;
  padding:14px 16px 16px !important;
}
.path-frontpage .featured-events .content-info{
  display:block;
  padding:0 !important;
  line-height:1.35 !important;
}
.path-frontpage .featured-events .content-info > div{
  font-size:14px !important;
  line-height:1.35;
  color:var(--tbd-texto-sec) !important;
}
.path-frontpage .featured-events .content-info > div:nth-child(n+2){display:inline}
.path-frontpage .featured-events .content-info > div:nth-child(3)::before{content:"· "}

/* Título: 16px, máximo 2 líneas; si es más largo termina en "…" */
.path-frontpage .featured-events .content-info > div:first-child{
  margin:0 0 6px !important;
  font-size:16px !important;
  font-weight:700 !important;
  line-height:1.3;
  text-transform:none !important;
  color:var(--tbd-texto) !important;
  display:-webkit-box !important;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  line-clamp:2;
  overflow:hidden;
}

/* Card destacada: mismo estilo, título más grande para que resalte */
.path-frontpage .featured-events .highlight .content-info > div:first-child{
  font-size:22px !important;
  line-height:1.15;
}
@media (min-width:768px){
  .path-frontpage .featured-events .highlight .image-container + div{padding:18px 20px 20px !important}
  .path-frontpage .featured-events .highlight .content-info > div:first-child{font-size:28px !important}
  .path-frontpage .featured-events .highlight .content-info > div{font-size:15px !important}
}
/* En computador el título crece para llenar el blanco que queda debajo del texto */
@media (min-width:992px){
  .path-frontpage .featured-events .highlight .image-container + div{padding:22px 24px 24px !important}
  .path-frontpage .featured-events .highlight .content-info > div:first-child{
    margin-bottom:10px !important;
    /* Crece con el ancho de la card (~30px en 1100, 38px desde 1400) y admite 3 líneas */
    font-size:clamp(30px,2.7vw,38px) !important;
    -webkit-line-clamp:3;
    line-clamp:3;
    line-height:1.1;
  }
  .path-frontpage .featured-events .highlight .content-info > div{font-size:17px !important}
}

/* Fecha en una línea, azul: "SÁB 14 NOV" o "5 FEB – 7 FEB" */
.path-frontpage .featured-events .dates-container{
  order:-1;
  flex-direction:row !important;
  flex-wrap:nowrap !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:0 !important;
  margin:0 0 6px !important;
  padding:0;
}
.path-frontpage .featured-events .content-date{
  flex-direction:row !important;
  align-items:center !important;
  margin:0 !important;
  padding:0 !important;
  text-align:left !important;
  color:var(--tbd-azul) !important;
}
.path-frontpage .featured-events .content-date span{display:none !important}
.path-frontpage .featured-events .content-date span.d-md-none,
.path-frontpage .featured-events .content-date span.fs-8:not(.fw-bold){
  display:inline !important;
  font-size:12px !important;
  font-weight:700 !important;
  line-height:1.3 !important;
  letter-spacing:.06em;
  text-transform:uppercase;
  white-space:nowrap;
}
.path-frontpage .featured-events .content-date span.fs-8:not(.fw-bold){
  order:-1;
  margin-right:.35em;
}
.path-frontpage .featured-events .dates-container:has(.content-date + .content-date) .content-date span.fs-8:not(.fw-bold){
  display:none !important;
}
.path-frontpage .featured-events .content-date + .content-date::before{
  content:"–";
  margin:0 .4em;
  font-size:12px;
  font-weight:700;
  line-height:1.3;
}
@media (min-width:768px){
  .path-frontpage .featured-events .highlight .content-date span.d-md-none,
  .path-frontpage .featured-events .highlight .content-date span.fs-8:not(.fw-bold),
  .path-frontpage .featured-events .highlight .content-date + .content-date::before{
    font-size:15px !important;
  }
  .path-frontpage .featured-events .highlight .dates-container{margin-bottom:8px !important}
}
@media (min-width:992px){
  .path-frontpage .featured-events .highlight .content-date span.d-md-none,
  .path-frontpage .featured-events .highlight .content-date span.fs-8:not(.fw-bold),
  .path-frontpage .featured-events .highlight .content-date + .content-date::before{
    font-size:17px !important;
  }
  .path-frontpage .featured-events .highlight .dates-container{margin-bottom:10px !important}
}

/* Recinto y ciudad: en celular/tablet (sin hover) ambos van en el texto de la card.
   En computador (con mouse) la ciudad aparece sobre la imagen al pasar el mouse, igual que en el catálogo */
@media (hover:hover){
  /* Se ubica respecto al article (position-relative) con el mismo tamaño y posición de la imagen cuadrada */
  .path-frontpage .featured-events .content-info > div.text-grey:last-child{
    position:absolute;
    top:0;
    left:0;
    right:0;
    aspect-ratio:1 / 1;
    /* La fila (ícono + texto) va abajo; dentro de la fila ambos quedan centrados verticalmente */
    display:flex;
    flex-wrap:wrap;
    align-content:flex-end;
    align-items:center;
    gap:5px;
    padding:12px;
    background:linear-gradient(to top,rgba(0,0,0,.78) 0%,rgba(0,0,0,.35) 32%,rgba(0,0,0,0) 55%);
    color:#fff !important;
    font-size:13px !important;
    font-weight:700;
    line-height:1.2;
    pointer-events:none;
    opacity:0;
    visibility:hidden;
    transition:opacity .2s,visibility .2s;
  }
  .path-frontpage .featured-events .content-info > div.text-grey:last-child::before{
    content:"";
    flex:0 0 auto;
    width:1.15em;
    height:1.15em;
    background:currentColor;
    -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E") center / contain no-repeat;
            mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E") center / contain no-repeat;
  }
  /* Texto en una sola línea; si no cabe, termina en "…" */
  .path-frontpage .featured-events .content-info > div.text-grey:last-child > span{
    flex:1 1 0;
    min-width:0;
    line-height:1.2;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  .path-frontpage .featured-events .highlight .content-info > div.text-grey:last-child{
    gap:8px;
    padding:20px;
    font-size:18px !important;
  }
  .path-frontpage .featured-events article:hover .content-info > div.text-grey:last-child,
  .path-frontpage .featured-events article:focus-within .content-info > div.text-grey:last-child{
    opacity:1;
    visibility:visible;
  }
}
@media (hover:hover) and (prefers-reduced-motion:reduce){
  .path-frontpage .featured-events .content-info > div.text-grey:last-child{transition:none}
}

/* Botón "Mostrar más eventos": azul del sitio con texto blanco */
.path-frontpage .featured-event-show-more-btn{
  background:#006EB7 !important;
  border-color:#006EB7 !important;
  color:#fff !important;
  min-height:44px;
  padding:14px 32px !important;
  transition:background-color .15s,border-color .15s;
}
.path-frontpage .featured-event-show-more-btn:hover,
.path-frontpage .featured-event-show-more-btn:focus-visible{
  background:#005A96 !important;
  border-color:#005A96 !important;
  color:#fff !important;
}
.path-frontpage .featured-event-show-more-btn:focus-visible{
  outline:3px solid #FFC400;
  outline-offset:2px;
}
