/* Titlix Tutorials 1.0 — estilos limitados al shortcode. */
.tt-library,
.tt-library * { box-sizing: border-box; }
.tt-library {
  --tt-accent: #2563eb;
  --tt-ink: #172033;
  --tt-muted: #64748b;
  --tt-soft: #f4f5f7;
  --tt-border: #e5e9ef;
  display: grid;
  grid-template-columns: minmax(190px, 260px) minmax(0, 1fr);
  gap: 28px;
  width: 100%;
  color: var(--tt-ink);
  font-family: inherit;
  line-height: 1.5;
}
.tt-library .tt-sidebar { min-width: 0; }
.tt-library .tt-tablist {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 9px;
}
.tt-library .tt-tab {
  display: block;
  width: 100%;
  margin: 0;
  padding: 16px 18px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: var(--tt-soft);
  box-shadow: none;
  color: #334155;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
  text-transform: none;
  letter-spacing: normal;
  transition: background .17s ease, color .17s ease;
}
.tt-library .tt-tab:hover { background: #e8edf5; color: #172033; }
.tt-library .tt-tab.is-active,
.tt-library .tt-tab[aria-selected="true"] {
  background: var(--tt-accent);
  border-color: var(--tt-accent);
  color: #fff;
}
.tt-library .tt-tab:focus-visible,
.tt-library .tt-play:focus-visible {
  outline: 3px solid #93c5fd;
  outline-offset: 3px;
}
.tt-library .tt-main {
  min-width: 0;
  min-height: 430px;
  border: 1px solid var(--tt-border);
  border-radius: 5px;
  background: #fff;
  padding: 28px;
}
.tt-library .tt-panel[hidden],
.tt-library .tt-play[hidden] { display: none !important; }
.tt-library .tt-section-header {
  padding: 18px 24px;
  background: var(--tt-soft);
  text-align: center;
  margin: 0 0 34px;
  border-radius: 3px;
}
.tt-library .tt-section-title {
  margin: 0;
  color: #182235;
  font-family: inherit;
  font-size: clamp(20px, 2vw, 27px);
  font-weight: 700;
  line-height: 1.35;
  text-transform: none;
  letter-spacing: -.02em;
}
.tt-library .tt-section-description {
  margin: 6px auto 0;
  color: var(--tt-muted);
  font-size: 14px;
  line-height: 1.6;
}
.tt-library .tt-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px 30px;
}
.tt-library .tt-video-card { min-width: 0; text-align: center; }
.tt-library .tt-video-frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111827;
  border-radius: 4px;
}
.tt-library .tt-play {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
}
.tt-library .tt-play img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .2s ease, filter .2s ease;
}
.tt-library .tt-play:hover img { transform: scale(1.035); filter: brightness(.8); }
.tt-library .tt-play-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(37,99,235,.95);
  color: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,.22);
  transition: transform .2s ease;
}
.tt-library .tt-play-circle svg { display: block; margin-left: 3px; }
.tt-library .tt-play:hover .tt-play-circle { transform: translate(-50%,-50%) scale(1.07); }
.tt-library .tt-video-frame iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.tt-library .tt-video-title {
  margin: 17px 0 0;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  color: var(--tt-ink);
  line-height: 1.45;
  letter-spacing: -.01em;
  text-transform: none;
}
.tt-library .tt-video-description {
  margin: 9px 0 0;
  color: #596579;
  font-size: 14px;
  line-height: 1.65;
}
.tt-library .tt-empty-category,
.tt-empty-library {
  margin: 25px auto;
  padding: 26px;
  color: #64748b;
  text-align: center;
  background: #f8fafc;
  border: 1px solid #e5e9ef;
  border-radius: 5px;
}
@media (max-width: 1150px) {
  .tt-library { grid-template-columns: minmax(170px, 230px) minmax(0, 1fr); gap: 20px; }
  .tt-library .tt-main { padding: 22px; }
  .tt-library .tt-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 30px 22px; }
}
@media (max-width: 700px) {
  .tt-library { display: block; }
  .tt-library .tt-tablist {
    flex-direction: row;
    overflow-x: auto;
    gap: 8px;
    padding: 0 0 12px;
    margin: 0 0 12px;
    scroll-snap-type: x proximity;
  }
  .tt-library .tt-tab {
    width: auto;
    min-width: max-content;
    flex: 0 0 auto;
    padding: 12px 15px;
    font-size: 13px;
    scroll-snap-align: start;
  }
  .tt-library .tt-main { padding: 15px; min-height: 250px; }
  .tt-library .tt-section-header { padding: 16px 12px; margin-bottom: 24px; }
  .tt-library .tt-section-title { font-size: 21px; }
  .tt-library .tt-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 28px 16px; }
  .tt-library .tt-video-title { font-size: 15px; }
  .tt-library .tt-video-description { font-size: 13px; }
}
@media (max-width: 480px) {
  .tt-library .tt-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .tt-library .tt-video-title { font-size: 17px; }
  .tt-library .tt-video-description { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .tt-library .tt-tab,
  .tt-library .tt-play img,
  .tt-library .tt-play-circle { transition: none; }
}

/* Versión 1.1 — las descripciones se muestran dentro del modal. */
.tt-library .tt-video-description[hidden] { display: none !important; }
.tt-modal,
.tt-modal * { box-sizing: border-box; }
.tt-modal[hidden],
.tt-modal .tt-modal-description-wrap[hidden] { display: none !important; }
.tt-modal {
  position: fixed;
  inset: 0;
  z-index: 2147480000;
  display: grid;
  place-items: center;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 24px;
  font-family: inherit;
  color: #172033;
}
.tt-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(9, 17, 31, .76);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.tt-modal-window {
  position: relative;
  width: min(940px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  border: 1px solid #e5e9ef;
  border-radius: 12px;
  box-shadow: 0 26px 90px rgba(0, 0, 0, .32);
}
.tt-modal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 22px;
  border-bottom: 1px solid #e5e9ef;
}
.tt-modal-title {
  margin: 0;
  padding: 0;
  color: #172033;
  font: inherit;
  font-size: clamp(17px, 2.4vw, 22px);
  font-weight: 700;
  line-height: 1.4;
  text-align: left;
  text-transform: none;
  letter-spacing: -.015em;
}
.tt-modal-close {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 8px;
  background: #f1f5f9;
  color: #334155;
  box-shadow: none;
  font: inherit;
  font-size: 29px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  transition: background .15s ease;
}
.tt-modal-close:hover { background: #e2e8f0; color: #172033; }
.tt-modal-close:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; }
.tt-modal-content { padding: 22px; }
.tt-modal-media {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  border-radius: 7px;
  background: #111827;
}
.tt-modal-iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.tt-modal-description-wrap { padding-top: 21px; }
.tt-modal-description-heading {
  margin: 0 0 8px;
  color: #172033;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  text-transform: none;
}
.tt-modal-description {
  margin: 0;
  color: #596579;
  font: inherit;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
  text-align: left;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
@media (max-width: 700px) {
  .tt-modal { padding: 12px; }
  .tt-modal-window { max-height: calc(100vh - 24px); border-radius: 9px; }
  .tt-modal-topbar { padding: 12px 14px; gap: 10px; }
  .tt-modal-close { width: 35px; height: 35px; }
  .tt-modal-content { padding: 14px; }
  .tt-modal-description-wrap { padding-top: 16px; }
  .tt-modal-description { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .tt-modal-close { transition: none; }
}
