/* =========================================================
   catalog-layout-speakers-grid.css (VAO) — PRO
   Layout: Speakers / Formadores
   - Responsive real para desktop, portátil y móvil
   - Grid más estable
   - Modales más robustos
   ========================================================= */

.catalog-sg-screen{
  position: relative;
  min-height: 100svh;
  height: auto;
  max-height: none;
  overflow: visible;
  background: rgb(10,10,12);
}

.catalog-sg-screen__bg{
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.02);
}

.catalog-sg-screen__overlay{
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      110deg,
      rgba(10,10,12,0.90) 0%,
      rgba(10,10,12,0.78) 45%,
      rgba(158,23,32,0.26) 100%
    ),
    linear-gradient(
      180deg,
      rgba(255,255,255,0.06) 0%,
      rgba(255,255,255,0.00) 60%,
      rgba(255,255,255,0.05) 100%
    );
  pointer-events: none;
}

.catalog-sg-screen__inner{
  position: relative;
  z-index: 2;
  min-height: 100svh;
  max-width: 1280px;
  margin: 0 auto;
  padding: 46px 24px 26px;
  box-sizing: border-box;
  overflow: visible;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* =========================================================
   Header
   ========================================================= */
.catalog-sg-header{
  display: block;
}

.catalog-sg-title{
  margin: 0;
  font-weight: 300;
  font-size: clamp(42px, 5vw, 86px);
  line-height: 1.04;
  color: #fff;
  text-shadow: 0 6px 22px rgba(0,0,0,0.30);
}

.catalog-sg-line{
  height: 2px;
  background: rgba(158,23,32,0.72);
  margin: 16px 0 24px;
}

/* =========================================================
   Grid
   ========================================================= */
.catalog-sg-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  flex: 1 1 auto;
  max-height: calc(100svh - 180px);
  overflow: auto;
  padding-right: 6px;
}

.catalog-sg-grid::-webkit-scrollbar{
  width: 10px;
}

.catalog-sg-grid::-webkit-scrollbar-thumb{
  background: rgba(255,255,255,.18);
  border-radius: 10px;
  border: 2px solid rgba(0,0,0,0);
  background-clip: padding-box;
}

.catalog-sg-grid::-webkit-scrollbar-track{
  background: rgba(255,255,255,.05);
}

/* =========================================================
   Card
   ========================================================= */
.catalog-sg-card{
  position: relative;
  display: grid;
  grid-template-columns: 0.95fr 1.15fr;
  min-height: 220px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 14px 30px rgba(0,0,0,0.20);
  overflow: hidden;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  will-change: transform;
}

.catalog-sg-card::before{
  content:"";
  position:absolute;
  inset:-1px;
  border-radius: 0;
  pointer-events:none;
  opacity:0;
  transition: opacity .20s ease;
  background: linear-gradient(135deg,
    rgba(255,255,255,0.00) 0%,
    rgba(255,255,255,0.08) 18%,
    rgba(158,23,32,0.22) 50%,
    rgba(255,255,255,0.06) 78%,
    rgba(255,255,255,0.00) 100%
  );
  mix-blend-mode: screen;
}

.catalog-sg-card::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  opacity:0;
  transform: translateX(-60%) rotate(12deg);
  transition: opacity .22s ease, transform .55s ease;
  background: linear-gradient(90deg,
    rgba(255,255,255,0.00) 0%,
    rgba(255,255,255,0.00) 35%,
    rgba(255,255,255,0.12) 50%,
    rgba(255,255,255,0.00) 65%,
    rgba(255,255,255,0.00) 100%
  );
}

.catalog-sg-card:hover{
  transform: translateY(-5px) scale(1.012);
  box-shadow:
    0 22px 48px rgba(0,0,0,.26),
    0 0 0 1px rgba(255,255,255,.10);
}

.catalog-sg-card:hover::before{
  opacity: 1;
}

.catalog-sg-card:hover::after{
  opacity: 1;
  transform: translateX(60%) rotate(12deg);
}

/* Left */
.catalog-sg-card__left{
  background:
    linear-gradient(110deg, rgba(158,23,32,0.28) 0%, rgba(10,10,12,0.72) 70%),
    rgba(10,10,12,0.58);
  padding: 20px 20px;
  color: #fff;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.catalog-sg-card__left::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  opacity:0;
  transition: opacity .22s ease;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.00) 55%);
}

.catalog-sg-card:hover .catalog-sg-card__left::after{
  opacity:1;
}

.catalog-sg-card__t{
  margin: 0;
  font-size: clamp(22px, 1.9vw, 28px);
  line-height: 1.2;
  letter-spacing: 0.02em;
  font-weight: 800;
  color: rgba(255,255,255,0.94);
}

.catalog-sg-card__sep{
  width: 120px;
  height: 2px;
  background: rgba(158,23,32,0.65);
  margin: 12px 0;
}

.catalog-sg-card__s{
  margin: 0;
  color: rgba(255,255,255,0.90);
  line-height: 1.35;
  font-size: clamp(16px, 1.25vw, 20px);
}

.catalog-sg-card__sd{
  margin: 10px 0 0;
  color: rgba(255,255,255,0.82);
  line-height: 1.45;
  font-size: clamp(13px, .95vw, 15px);
}

/* Right */
.catalog-sg-card__right{
  position: relative;
  background: rgba(10,10,12,0.70);
  background-size: cover;
  background-position: center;
  transition: filter .18s ease;
  overflow: hidden;
}

.catalog-sg-card__right::before{
  content:"";
  position:absolute;
  inset:0;
  background: inherit;
  background-size: cover;
  background-position: center;
  transform: scale(1);
  transition: transform .45s ease;
  z-index:0;
}

.catalog-sg-card__right > *{
  position: relative;
  z-index: 1;
}

.catalog-sg-card:hover .catalog-sg-card__right{
  filter: saturate(1.08) contrast(1.05);
}

.catalog-sg-card:hover .catalog-sg-card__right::before{
  transform: scale(1.06);
}

/* Decorative squares */
.catalog-sg-squares{
  position: absolute;
  display: block;
  width: 52px;
  height: 52px;
  pointer-events: none;
  z-index: 2;
}

.catalog-sg-squares span{
  position: absolute;
  width: 14px;
  height: 14px;
  background: rgba(255,255,255,0.24);
}

.catalog-sg-squares--left{
  top: 14px;
  right: 14px;
}

.catalog-sg-squares--right{
  top: 14px;
  right: 14px;
}

.catalog-sg-squares span:nth-child(1){
  right: 0;
  top: 0;
  background: rgba(255,255,255,0.42);
}

.catalog-sg-squares span:nth-child(2){
  right: 14px;
  top: 14px;
  background: rgba(158,23,32,0.72);
}

.catalog-sg-squares span:nth-child(3){
  right: 28px;
  top: 28px;
  background: rgba(255,255,255,0.16);
}

/* Play */
.catalog-sg-play{
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 54px;
  height: 54px;
  border-radius: 10px;
  border: 0;
  background: rgba(158,23,32,0.95);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 26px rgba(0,0,0,0.18);
  transition: transform .18s ease, filter .18s ease, background-color .18s ease;
}

.catalog-sg-play:hover{
  transform: translateY(-1px);
  filter: brightness(1.03);
  background: rgba(158,23,32,0.98);
}

.catalog-sg-play--disabled{
  opacity: .45;
}

.catalog-sg-play__tri{
  display: block;
  width: 0;
  height: 0;
  border-left: 14px solid #fff;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  margin-left: 3px;
}

/* =========================================================
   Pager
   ========================================================= */
.catalog-sg-card.is-hidden{
  display: none;
}

.catalog-sg-pager{
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.catalog-sg-pager__btn{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 0;
  background: rgba(158,23,32,0.95);
  color: #fff;
  font-size: 26px;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(0,0,0,0.14);
  transition: transform .18s ease, filter .18s ease;
}

.catalog-sg-pager__btn:hover{
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.catalog-sg-pager__btn:disabled{
  opacity: .45;
  cursor: default;
}

.catalog-sg-pager__count{
  min-width: 64px;
  text-align: center;
  font-weight: 800;
  color: rgba(10,10,12,0.78);
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(10,10,12,0.10);
  padding: 8px 12px;
  border-radius: 999px;
}

/* =========================================================
   Modal vídeo
   ========================================================= */
.catalog-sg-modal[hidden]{
  display: none !important;
}

.catalog-sg-modal{
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
}

.catalog-sg-modal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(10,10,12,0.60);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.catalog-sg-modal__dialog{
  position: relative;
  width: min(980px, 92vw);
  height: min(560px, 70vh);
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.40);
  z-index: 2;
}

.catalog-sg-modal__close{
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: rgba(158,23,32,0.92);
  color: #fff;
  font-size: 26px;
  cursor: pointer;
  z-index: 3;
}

.catalog-sg-modal__frame{
  width: 100%;
  height: 100%;
}

.catalog-sg-modal__frame iframe{
  width: 100%;
  height: 100%;
}

/* =========================================================
   Modal PERFIL
   ========================================================= */
.catalog-sg-profile[hidden]{
  display:none !important;
}

.catalog-sg-profile{
  position:fixed;
  inset:0;
  z-index:99998;
  display:grid;
  place-items:center;
}

.catalog-sg-profile__backdrop{
  position:absolute;
  inset:0;
  background:rgba(8,18,34,.58);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.catalog-sg-profile__dialog{
  position:relative;
  width:min(1180px, calc(100vw - 26px));
  max-height: min(88vh, 860px);
  height: min(88vh, 860px);
  background: rgba(0,0,0,.56);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 22px;
  overflow:hidden;
  display:grid;
  grid-template-columns: 1.1fr 1fr;
  box-shadow: 0 22px 60px rgba(0,0,0,.30);
}

.catalog-sg-profile__close{
  position:absolute;
  top:14px;
  right:14px;
  width:44px;
  height:44px;
  border-radius:50%;
  border:0;
  background: rgba(255,255,255,.18);
  color:#fff;
  font-size:28px;
  cursor:pointer;
  z-index:3;
}

.catalog-sg-profile__media{
  background-size:cover;
  background-position:top;
  min-height: 100%;
  height: 100%;
  position:relative;
}

.catalog-sg-profile__media.is-empty{
  background: linear-gradient(135deg, rgba(42,98,160,.85), rgba(12,34,60,.88));
}

.catalog-sg-profile__media:after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(90deg, rgba(0,0,0,.08), rgba(0,0,0,.35));
}

.catalog-sg-profile__content{
  padding: 40px 38px 28px;
  color:#fff;
  display:flex;
  flex-direction:column;
  min-height: 0;
  height: 100%;
}

.catalog-sg-profile__title{
  margin:0;
  font-size: clamp(24px, 2.1vw, 40px);
  font-weight: 700;
  line-height: 1.05;
}

.catalog-sg-profile__subtitle{
  margin-top:10px;
  font-size: 15px;
  color: rgba(255,255,255,.85);
  line-height:1.35;
}

.catalog-sg-profile__line{
  width: 140px;
  height: 2px;
  background: rgba(158,23,32,0.70);
  margin: 18px 0 18px;
}

.catalog-sg-profile__desc{
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255,255,255,.90);
  white-space: pre-line;
  overflow:auto;
  min-height: 0;
  padding-right: 6px;
}

.catalog-sg-profile__desc::-webkit-scrollbar{
  width: 10px;
}

.catalog-sg-profile__desc::-webkit-scrollbar-thumb{
  background: rgba(255,255,255,.18);
  border-radius: 10px;
  border: 2px solid rgba(0,0,0,0);
  background-clip: padding-box;
}

.catalog-sg-profile__desc::-webkit-scrollbar-track{
  background: rgba(255,255,255,.06);
}

.catalog-sg-profile__actions{
  margin-top: 18px;
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  position: sticky;
  bottom: 0;
  padding-top: 14px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.34) 24%, rgba(0,0,0,.46) 100%);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.catalog-sg-profile__btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 999px;
  border:0;
  cursor:pointer;
  background: rgba(255,255,255,.92);
  color: rgba(10,10,12,0.92);
  font-weight: 800;
  text-decoration:none;
  box-shadow: 0 14px 30px rgba(0,0,0,.22);
}

.catalog-sg-profile__btn--profile{
  background: rgba(158,23,32,0.92);
  color:#fff;
}

/* =========================================================
   Estado de modal abierto
   ========================================================= */
body.catalog-sg-modal-open .catalog-page-drag-wrap{
  pointer-events:none;
}

body.catalog-sg-modal-open .catalog-sg-profile,
body.catalog-sg-modal-open .catalog-sg-modal{
  pointer-events:auto;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1366px){
  .catalog-sg-screen__inner{
    padding: 34px 22px 20px;
  }

  .catalog-sg-title{
    font-size: clamp(38px, 4.6vw, 68px);
  }

  .catalog-sg-line{
    margin: 14px 0 20px;
  }

  .catalog-sg-grid{
    gap: 18px;
    max-height: calc(100svh - 150px);
  }

  .catalog-sg-card{
    min-height: 200px;
  }

  .catalog-sg-card__left{
    padding: 18px 18px;
  }

  .catalog-sg-card__t{
    font-size: 22px;
  }

  .catalog-sg-card__s{
    font-size: 17px;
  }

  .catalog-sg-card__sd{
    font-size: 13px;
  }
}

@media (max-width: 1200px){
  .catalog-sg-screen__inner{
    padding: 26px 18px 16px;
  }

  .catalog-sg-title{
    font-size: clamp(34px, 4.2vw, 54px);
  }

  .catalog-sg-line{
    margin: 12px 0 16px;
  }

  .catalog-sg-grid{
    gap: 16px;
    max-height: calc(100svh - 130px);
  }

  .catalog-sg-card{
    min-height: 184px;
    grid-template-columns: 1fr 1fr;
  }

  .catalog-sg-card__left{
    padding: 16px 16px;
  }

  .catalog-sg-card__t{
    font-size: 20px;
  }

  .catalog-sg-card__sep{
    width: 90px;
    margin: 10px 0;
  }

  .catalog-sg-card__s{
    font-size: 15px;
  }

  .catalog-sg-card__sd{
    font-size: 12px;
    line-height: 1.4;
  }

  .catalog-sg-play{
    right: 14px;
    bottom: 14px;
    width: 48px;
    height: 48px;
  }

  .catalog-sg-play__tri{
    border-left-width: 12px;
    border-top-width: 8px;
    border-bottom-width: 8px;
  }
}

@media (max-width: 980px){
  .catalog-sg-screen{
    min-height: 100svh;
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .catalog-sg-screen__inner{
    min-height: auto;
    height: auto;
    max-height: none;
    overflow: visible;
    padding: 40px 16px 28px;
  }

  .catalog-sg-grid{
    grid-template-columns: 1fr;
    max-height: none;
    overflow: visible;
    padding-right: 0;
    gap: 16px;
  }

  .catalog-sg-card{
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .catalog-sg-card__right{
    min-height: 220px;
  }

  .catalog-sg-pager{
    margin-top: 14px;
  }

  .catalog-sg-profile__dialog{
    grid-template-columns: 1fr;
    height: min(90vh, 900px);
    max-height: min(90vh, 900px);
  }

  .catalog-sg-profile__media{
    min-height: 260px;
    height: 260px;
  }

  .catalog-sg-profile__content{
    height: auto;
    min-height: 0;
    padding: 24px 20px 20px;
  }

  .catalog-sg-modal__dialog{
    width: min(96vw, 900px);
    height: min(54vw, 60vh);
  }
}

@media (max-width: 640px){
  .catalog-sg-screen__inner{
    padding: 34px 12px 24px;
  }

  .catalog-sg-title{
    font-size: 34px;
  }

  .catalog-sg-line{
    margin: 12px 0 14px;
  }

  .catalog-sg-card__left{
    padding: 16px 14px;
  }

  .catalog-sg-card__t{
    font-size: 18px;
  }

  .catalog-sg-card__s{
    font-size: 14px;
  }

  .catalog-sg-card__sd{
    font-size: 12px;
  }

  .catalog-sg-card__right{
    min-height: 180px;
  }

  .catalog-sg-play{
    width: 44px;
    height: 44px;
    right: 12px;
    bottom: 12px;
  }

  .catalog-sg-pager__btn{
    width: 40px;
    height: 40px;
    font-size: 24px;
  }

  .catalog-sg-pager__count{
    min-width: 58px;
    padding: 7px 10px;
  }

  .catalog-sg-profile__content{
    padding: 20px 16px 16px;
  }

  .catalog-sg-profile__title{
    font-size: 24px;
  }

  .catalog-sg-profile__desc{
    font-size: 15px;
    line-height: 1.55;
  }

  .catalog-sg-profile__btn{
    min-height: 46px;
    padding: 0 16px;
    font-size: 14px;
  }

  .catalog-sg-modal__dialog{
    width: calc(100vw - 16px);
    height: min(52vw, 44vh);
    margin: 0 auto;
  }

  .catalog-sg-modal__close,
  .catalog-sg-profile__close{
    width: 40px;
    height: 40px;
    font-size: 24px;
  }
}

@media (max-height: 760px){
  .catalog-sg-screen__inner{
    padding-top: 20px;
    padding-bottom: 14px;
  }

  .catalog-sg-title{
    font-size: clamp(32px, 4vw, 48px);
  }

  .catalog-sg-line{
    margin: 10px 0 14px;
  }

  .catalog-sg-grid{
    max-height: calc(100svh - 108px);
  }

  .catalog-sg-card{
    min-height: 170px;
  }

  .catalog-sg-card__t{
    font-size: 18px;
  }

  .catalog-sg-card__s{
    font-size: 14px;
  }

  .catalog-sg-card__sd{
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce){
  .catalog-sg-card,
  .catalog-sg-card::before,
  .catalog-sg-card::after,
  .catalog-sg-card__right::before,
  .catalog-sg-play,
  .catalog-sg-pager__btn,
  .catalog-sg-modal__close,
  .catalog-sg-profile__close{
    transition:none !important;
  }
}
/* ==========================================
   FIX IMÁGENES FORMADORES NO RECORTADAS
   ========================================== */

.catalog-sg-card{
  grid-template-columns: 0.88fr 1.12fr;
}

.catalog-sg-card__right{
  background-color: rgba(10,10,12,0.78);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center bottom;
}

.catalog-sg-card__right::before{
  background-image: inherit;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center bottom;
}

@media (max-width: 1200px){
  .catalog-sg-card{
    grid-template-columns: 0.92fr 1.08fr;
  }
}

@media (max-width: 980px){
  .catalog-sg-card{
    grid-template-columns: 1fr;
  }

  .catalog-sg-card__right{
    min-height: 260px;
    background-size: contain;
    background-position: center bottom;
  }

  .catalog-sg-card__right::before{
    background-size: contain;
    background-position: center bottom;
  }
}

@media (max-width: 640px){
  .catalog-sg-card__right{
    min-height: 220px;
  }
}