/* =========================================================
   YOUTUBE SECTION
   Archivo: css/yt.css
   Fondo tipo experience + texto partido + reproductor + mini carrusel lateral
   SOLO DISEÑO BASE / ESCRITORIO
========================================================= */

.yt-section {
  position: relative;
  z-index: 5;
  isolation: isolate;
  overflow: hidden;

  min-height: 230vh;
  margin: 0;
  padding: 0 24px;

  color: #101020;

  background:
    linear-gradient(
      180deg,
      rgba(239, 231, 255, 0.96) 0%,
      rgba(243, 230, 247, 0.94) 38%,
      rgba(225, 239, 252, 0.96) 100%
    ),
    url("../img/experiencia/fondo-base.webp");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.yt-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -4;
  pointer-events: none;

  background:
    radial-gradient(circle at 18% 20%, rgba(162, 215, 236, 0.55), transparent 32%),
    radial-gradient(circle at 86% 18%, rgba(230, 71, 150, 0.20), transparent 34%),
    radial-gradient(circle at 78% 82%, rgba(145, 93, 119, 0.18), transparent 38%),
    linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.05));
}

.yt-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  pointer-events: none;

  background-image:
    linear-gradient(rgba(255,255,255,0.28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.22) 1px, transparent 1px);
  background-size: 82px 82px;
  opacity: 0.18;
}

/* =========================================================
   ORBES DE FONDO
========================================================= */

.yt-bg-orb {
  position: absolute;
  z-index: -2;
  border-radius: 999px;
  filter: blur(60px);
  opacity: 0.55;
  pointer-events: none;
}

.yt-orb-left {
  width: 360px;
  height: 360px;
  left: -150px;
  top: 20%;
  background: rgba(71, 210, 230, 0.36);
}

.yt-orb-right {
  width: 460px;
  height: 460px;
  right: -170px;
  bottom: 10%;
  background: rgba(230, 71, 150, 0.24);
}

/* =========================================================
   STAGE PINNEADO
========================================================= */

.yt-pin-stage {
  position: relative;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
}

.yt-container {
  width: min(1240px, 100%);
  margin: 0 auto;
}

.yt-intro-layer,
.yt-content-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
}

.yt-intro-layer {
  z-index: 5;
}

.yt-content-layer {
  z-index: 2;
  opacity: 0;
  visibility: hidden;
  padding-top: 90px;
  padding-bottom: 40px;
  box-sizing: border-box;
}

/* =========================================================
   INTRO TEXTO GRANDE
========================================================= */

.yt-intro-inner {
  width: 100%;
}

.yt-tag {
  display: inline-flex;
  margin-bottom: 20px;

  color: #18243b;
  border-color: rgba(16, 26, 44, 0.14);
  background: rgba(255, 255, 255, 0.55);

  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.yt-split-wrap {
  position: relative;
  width: 100%;
}

.yt-split-measure {
  margin: 0;

  font-family: inherit;
  font-size: clamp(3.4rem, 8vw, 8.6rem);
  font-weight: 900;
  line-height: 0.84;
  letter-spacing: -0.09em;

  color: transparent;
  user-select: none;
  pointer-events: none;
}

.yt-split-half {
  position: absolute;
  inset: 0;
  overflow: hidden;
  will-change: transform, opacity;
}

.yt-split-half h2 {
  margin: 0;

  font-family: inherit;
  font-size: clamp(3.4rem, 8vw, 8.6rem);
  font-weight: 900;
  line-height: 0.84;
  letter-spacing: -0.09em;

  color: #102033;
  text-wrap: balance;
}

.yt-split-top {
  clip-path: inset(0 0 50% 0);
}

.yt-split-bottom {
  clip-path: inset(50% 0 0 0);
}

.yt-split-lead {
  max-width: 760px;
  margin: 28px 0 0;

  font-size: clamp(1rem, 1.45vw, 1.2rem);
  font-weight: 600;
  line-height: 1.75;

  color: rgba(16, 32, 51, 0.68);
}

/* =========================================================
   CONTENIDO FINAL
========================================================= */

.yt-content {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(290px, 330px);
  gap: clamp(18px, 2.4vw, 28px);
  align-items: stretch;

  width: 100%;
  max-height: calc(100vh - 150px);
}

.yt-video-panel,
.yt-info-panel {
  min-width: 0;
  max-height: calc(100vh - 150px);

  border: 1px solid rgba(255, 255, 255, 0.55);
  background:
    linear-gradient(145deg, rgba(255,255,255,0.46), rgba(255,255,255,0.22));

  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);

  box-shadow:
    0 32px 90px rgba(85, 67, 110, 0.22),
    inset 0 1px 0 rgba(255,255,255,0.55);
}

.yt-video-panel {
  border-radius: 34px;
  padding: clamp(14px, 1.7vw, 18px);
  transform-origin: center center;
  overflow: hidden;

  display: flex;
  flex-direction: column;
}

.yt-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 7.7;
  overflow: hidden;

  flex: 0 0 auto;

  border-radius: 24px;

  background:
    radial-gradient(circle at center, rgba(162, 215, 236, 0.24), transparent 42%),
    rgba(255, 255, 255, 0.14);

  box-shadow: 0 18px 46px rgba(35, 23, 57, 0.16);
}

.yt-video-frame iframe {
  position: absolute;
  inset: 0;
  display: block;

  width: 100%;
  height: 100%;
  border: 0;
}

.yt-player-loader {
  position: absolute;
  inset: 0;

  display: grid;
  place-items: center;

  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;

  color: rgba(16, 32, 51, 0.6);
  background: rgba(255, 255, 255, 0.16);
}

.yt-player-loader.is-hidden {
  display: none;
}

/* =========================================================
   TEXTO VIDEO ACTUAL
========================================================= */

.yt-video-text {
  padding: 16px 8px 4px;
  min-height: 0;
  overflow: hidden;
}

.yt-content-kicker {
  display: inline-block;
  margin-bottom: 10px;

  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;

  color: #47d2e6;
}

.yt-video-text h3 {
  margin: 0;

  font-size: clamp(1.25rem, 2.1vw, 2.05rem);
  font-weight: 900;
  line-height: 0.96;
  letter-spacing: -0.06em;

  color: #102033;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.yt-video-text p {
  max-width: 720px;
  margin: 12px 0 0;

  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.45;

  color: rgba(16, 32, 51, 0.62);

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =========================================================
   PANEL DERECHO
========================================================= */

.yt-info-panel {
  position: relative;
  overflow: hidden;

  border-radius: 30px;
  padding: 18px;

  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.yt-info-panel::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -95px;
  top: -85px;

  border-radius: 999px;
  background: rgba(230, 71, 150, 0.20);
  filter: blur(22px);
}

.yt-info-panel::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  left: -90px;
  bottom: -80px;

  border-radius: 999px;
  background: rgba(71, 210, 230, 0.20);
  filter: blur(22px);
}

.yt-info-top,
.yt-carousel-area,
.yt-button {
  position: relative;
  z-index: 2;
}

.yt-info-top {
  margin-bottom: 14px;
}

.yt-mini-label {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 7px 11px;

  border-radius: 999px;
  background: rgba(162, 215, 236, 0.92);
  color: #101020;

  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.yt-info-panel h3 {
  margin: 0;

  font-size: clamp(1.45rem, 2vw, 2.15rem);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.065em;

  color: #102033;
}

.yt-info-panel p {
  margin: 12px 0 0;

  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.45;

  color: rgba(16, 32, 51, 0.62);
}

/* =========================================================
   MINI CARRUSEL LATERAL
========================================================= */

.yt-carousel-area {
  margin-top: 6px;
  flex: 1;
  min-height: 0;

  display: flex;
  flex-direction: column;
}

.yt-carousel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  margin-bottom: 10px;
}

.yt-carousel-head span {
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;

  color: rgba(16, 32, 51, 0.62);
}

.yt-carousel-controls {
  display: flex;
  gap: 7px;
}

.yt-carousel-btn {
  width: 29px;
  height: 29px;

  border: 1px solid rgba(16, 32, 51, 0.10);
  border-radius: 999px;

  display: grid;
  place-items: center;

  background: rgba(255, 255, 255, 0.54);
  color: #102033;

  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1;

  cursor: pointer;

  transition:
    transform 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease;
}

.yt-carousel-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(71, 210, 230, 0.45);
}

.yt-carousel.yt-carousel-side {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;

  overflow-y: auto;
  overflow-x: hidden;

  min-height: 0;
  max-height: 245px;

  padding-right: 5px;
  padding-bottom: 3px;

  scrollbar-width: thin;
}

.yt-carousel.yt-carousel-side::-webkit-scrollbar {
  width: 7px;
}

.yt-carousel.yt-carousel-side::-webkit-scrollbar-track {
  background: rgba(16, 32, 51, 0.08);
  border-radius: 999px;
}

.yt-carousel.yt-carousel-side::-webkit-scrollbar-thumb {
  background: rgba(71, 210, 230, 0.55);
  border-radius: 999px;
}

.yt-video-card {
  width: 100%;
  min-height: 72px;

  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 9px;

  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 15px;

  overflow: hidden;
  background: rgba(255, 255, 255, 0.44);

  cursor: pointer;
  text-align: left;

  box-shadow: 0 12px 28px rgba(85, 67, 110, 0.12);

  transition:
    transform 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.yt-video-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.68);
  border-color: rgba(71, 210, 230, 0.58);
  box-shadow: 0 18px 38px rgba(85, 67, 110, 0.18);
}

.yt-video-card.is-active {
  border-color: rgba(71, 210, 230, 0.92);
  background: rgba(162, 215, 236, 0.26);
}

.yt-video-thumb {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 72px;

  overflow: hidden;
  background: rgba(16, 32, 51, 0.12);
}

.yt-video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;

  transform: scale(1.04);
  transition: transform 0.35s ease;
}

.yt-video-card:hover .yt-video-thumb img {
  transform: scale(1.1);
}

.yt-video-play {
  position: absolute;
  left: 7px;
  bottom: 7px;

  width: 23px;
  height: 23px;
  border-radius: 999px;

  display: grid;
  place-items: center;

  background: rgba(255, 255, 255, 0.9);
  color: #101020;

  font-size: 0.58rem;
  font-weight: 900;
}

.yt-video-card-body {
  padding: 8px 9px 8px 0;
  align-self: center;
}

.yt-video-card-body span {
  display: block;
  margin-bottom: 5px;

  font-size: 0.5rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;

  color: #47aeca;
}

.yt-video-card-body h4 {
  margin: 0;

  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.03em;

  color: #102033;

  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =========================================================
   BOTÓN CANAL
========================================================= */

.yt-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;

  width: 100%;
  min-height: 43px;
  margin-top: 14px;

  border-radius: 999px;
  text-decoration: none;

  font-size: 0.8rem;
  font-weight: 900;

  color: #101020;
  background: linear-gradient(135deg, #a2d7ec, #e64796);
  box-shadow: 0 18px 42px rgba(230, 71, 150, 0.20);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.yt-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 54px rgba(230, 71, 150, 0.30);
}
/* =========================================================
   YOUTUBE VISIBILIDAD BASE
   Desktop visible por defecto / Mobile oculto por defecto
   El responsive.css decide cuándo invertirlos.
========================================================= */

.yt-desktop-experience {
  display: block;
}

.yt-mobile-experience {
  display: none;
}