/*
TucumanConectado · 1.0.18
Conecta Aprende · Courses Floating APP-FIRST V1
*/

body.tc-conecta-aprende-v117{
  background:#f6fafc;
}

.tc-ca118-main,
.tc-ca118-main *{
  box-sizing:border-box;
}

.tc-ca118-main{
  width:100%;
  max-width:768px;
  margin:0 auto;
  padding:8px 0 20px;
  color:#173e5a;
}

.tc-ca118-courses{
  width:calc(100% - 16px);
  max-width:744px;
  margin:0 auto;
  padding:12px;
  border:1px solid #dce8ee;
  border-radius:20px;
  background:#fff;
  box-shadow:0 12px 28px rgba(18,58,90,.08);
}

.tc-ca118-section-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  margin-bottom:12px;
}

.tc-ca118-kicker{
  display:block;
  margin-bottom:3px;
  color:#0b7ea3;
  font-size:10px;
  font-weight:900;
  letter-spacing:.05em;
  text-transform:uppercase;
}

.tc-ca118-section-head h1{
  margin:0;
  font-size:22px;
  line-height:1.05;
}

.tc-ca118-section-head p{
  max-width:530px;
  margin:5px 0 0;
  color:#657b8c;
  font-size:11.5px;
  line-height:1.4;
}

.tc-ca118-count{
  flex:0 0 auto;
  padding:6px 9px;
  border-radius:999px;
  background:#eef8fb;
  color:#24667c;
  font-size:9px;
  font-weight:850;
  white-space:nowrap;
}

.tc-ca118-course-rail{
  display:flex;
  gap:10px;
  overflow-x:auto;
  overflow-y:hidden;
  padding:2px 2px 8px;
  scroll-snap-type:x proximity;
  scrollbar-width:none;
}

.tc-ca118-course-rail::-webkit-scrollbar{
  display:none;
}

.tc-ca118-course-card{
  flex:0 0 min(78vw,286px);
  min-width:0;
  min-height:258px;
  display:flex;
  flex-direction:column;
  scroll-snap-align:start;
  padding:12px;
  border:1px solid #dce8ee;
  border-radius:18px;
  background:linear-gradient(145deg,#fff 0%,#f6fbfd 100%);
  box-shadow:0 8px 20px rgba(18,58,90,.07);
}

.tc-ca118-course-card__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-bottom:8px;
}

.tc-ca118-course-icon{
  display:grid;
  place-items:center;
  width:46px;
  height:46px;
  border-radius:14px;
  background:linear-gradient(145deg,#fff,#e5f3fa);
  color:#145e89;
  font-size:18px;
  font-weight:950;
  box-shadow:inset 0 -3px 8px rgba(30,99,140,.08);
}

.tc-ca118-free{
  padding:5px 7px;
  border-radius:999px;
  background:#eafaf0;
  color:#16854e;
  font-size:8px;
  font-weight:950;
  letter-spacing:.04em;
}

.tc-ca118-course-card > small{
  display:block;
  color:#0b7ea3;
  font-size:9px;
  font-weight:850;
}

.tc-ca118-course-card h2{
  margin:4px 0 6px;
  font-size:17px;
  line-height:1.08;
}

.tc-ca118-course-card p{
  margin:0 0 10px;
  color:#687e8d;
  font-size:10.5px;
  line-height:1.38;
}

.tc-ca118-meta{
  display:flex;
  flex-wrap:wrap;
  gap:5px;
  margin-top:auto;
  padding-top:4px;
}

.tc-ca118-meta span{
  padding:5px 7px;
  border-radius:999px;
  background:#eef6fa;
  color:#486b7f;
  font-size:8px;
  font-weight:800;
}

.tc-ca118-open-course{
  width:100%;
  min-height:38px;
  margin-top:10px;
  border:0;
  border-radius:12px;
  background:#0f72d8;
  color:#fff;
  font-size:10px;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 7px 16px rgba(15,114,216,.18);
}

.tc-ca118-swipe-hint{
  margin:2px 0 0;
  color:#78909d;
  font-size:9px;
  text-align:center;
}

.tc-ca118-empty{
  display:grid;
  gap:4px;
  padding:20px 14px;
  border:1px dashed #bfd5df;
  border-radius:16px;
  background:#f8fcfd;
  text-align:center;
}

.tc-ca118-empty span{
  color:#6e828f;
  font-size:11px;
}

/* Floating modal */
.tc-ca118-modal{
  position:fixed;
  inset:0;
  z-index:999999;
}

.tc-ca118-modal[hidden]{
  display:none!important;
}

.tc-ca118-modal__backdrop{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
  background:rgba(7,27,43,.58);
  backdrop-filter:blur(3px);
}

.tc-ca118-modal__sheet{
  position:absolute;
  left:50%;
  bottom:0;
  width:min(100%,768px);
  max-height:88vh;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border:1px solid #d8e5eb;
  border-radius:24px 24px 0 0;
  background:#fff;
  box-shadow:0 -20px 54px rgba(9,34,52,.24);
  transform:translateX(-50%);
}

.tc-ca118-modal__toolbar{
  flex:0 0 auto;
  display:grid;
  grid-template-columns:38px 1fr 38px;
  align-items:center;
  gap:8px;
  min-height:54px;
  padding:8px 10px;
  border-bottom:1px solid #e4edf1;
  background:#fff;
}

.tc-ca118-modal__toolbar strong{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  text-align:center;
  font-size:12px;
}

.tc-ca118-modal__back,
.tc-ca118-modal__close{
  width:36px;
  height:36px;
  display:grid;
  place-items:center;
  border:1px solid #dce7ed;
  border-radius:11px;
  background:#fff;
  color:#245a79;
  font-size:25px;
  line-height:1;
  cursor:pointer;
}

.tc-ca118-modal__content{
  overflow:auto;
  padding:12px;
  overscroll-behavior:contain;
}

.tc-ca118-modal-view{
  width:100%;
  max-width:720px;
  margin:0 auto;
}

.tc-ca118-modal-view__head{
  padding:13px;
  border:1px solid #dce8ee;
  border-radius:17px;
  background:#f8fcfd;
}

.tc-ca118-modal-view__head > div:first-child > span,
.tc-ca118-lesson-head > span{
  display:block;
  margin-bottom:3px;
  color:#0b7ea3;
  font-size:9px;
  font-weight:900;
  text-transform:uppercase;
}

.tc-ca118-modal-view__head h2,
.tc-ca118-lesson-head h2{
  margin:0;
  font-size:20px;
  line-height:1.08;
}

.tc-ca118-modal-view__head p{
  margin:6px 0 0;
  color:#667c8b;
  font-size:11px;
  line-height:1.4;
}

.tc-ca118-modal-meta{
  display:flex;
  flex-wrap:wrap;
  gap:5px;
  margin-top:9px;
}

.tc-ca118-modal-meta span{
  padding:5px 7px;
  border-radius:999px;
  background:#eaf4f9;
  color:#486b7f;
  font-size:8.5px;
  font-weight:800;
}

.tc-ca118-course-description{
  margin-top:10px;
  padding:12px;
  border:1px solid #e2ebef;
  border-radius:16px;
  background:#fff;
  color:#536d7d;
  font-size:11px;
  line-height:1.5;
}

.tc-ca118-course-description > :first-child,
.tc-ca118-lesson-content > :first-child{
  margin-top:0;
}

.tc-ca118-course-description > :last-child,
.tc-ca118-lesson-content > :last-child{
  margin-bottom:0;
}

.tc-ca118-lessons{
  margin-top:12px;
}

.tc-ca118-lessons h3{
  margin:0 0 8px;
  font-size:14px;
}

.tc-ca118-lesson-list{
  display:grid;
  gap:7px;
}

.tc-ca118-lesson-button{
  width:100%;
  display:grid;
  grid-template-columns:32px 1fr 18px;
  align-items:center;
  gap:9px;
  min-height:58px;
  padding:8px 10px;
  border:1px solid #dce8ee;
  border-radius:14px;
  background:#fff;
  color:#173e5a;
  text-align:left;
  cursor:pointer;
}

.tc-ca118-lesson-number{
  display:grid;
  place-items:center;
  width:32px;
  height:32px;
  border-radius:10px;
  background:#edf7fb;
  color:#0f72d8;
  font-size:11px;
  font-weight:950;
}

.tc-ca118-lesson-copy{
  min-width:0;
}

.tc-ca118-lesson-copy strong{
  display:block;
  font-size:11px;
  line-height:1.2;
}

.tc-ca118-lesson-copy small{
  display:block;
  margin-top:3px;
  color:#7a8d99;
  font-size:8.5px;
}

.tc-ca118-lesson-head{
  padding:12px 2px 10px;
  border-bottom:1px solid #e5edf1;
}

.tc-ca118-lesson-head small{
  display:block;
  margin-top:5px;
  color:#78909d;
  font-size:9px;
}

.tc-ca118-lesson-content{
  padding:12px 2px 24px;
  color:#344f60;
  font-size:12px;
  line-height:1.55;
}

.tc-ca118-lesson-content img{
  max-width:100%;
  height:auto;
  border-radius:12px;
}

.tc-ca118-lesson-content iframe{
  width:100%;
  max-width:100%;
  aspect-ratio:16/9;
  height:auto;
  border:0;
  border-radius:12px;
}

body.tc-ca118-modal-open{
  overflow:hidden!important;
}

/* APP authority · V120 NO-FLASH
   La geometría 3x3 vive en el CSS base render-blocking.
   Ya no existe un primer paint en rail horizontal. */
@media(max-width:520px){
  .tc-ca118-main{
    padding-top:6px;
  }

  .tc-ca118-courses{
    width:calc(100% - 12px);
    padding:10px;
    border-radius:18px;
  }

  .tc-ca118-section-head{
    display:block;
  }

  .tc-ca118-count{
    display:inline-block;
    margin-top:8px;
  }

  body.tc-conecta-aprende-v117 .tc-ca118-course-rail{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:6px!important;
    overflow:visible!important;
    padding:2px 0 4px!important;
    scroll-snap-type:none!important;
  }

  body.tc-conecta-aprende-v117 .tc-ca118-course-card{
    position:relative!important;
    width:auto!important;
    min-width:0!important;
    min-height:126px!important;
    padding:7px!important;
    border-radius:14px!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    justify-content:flex-start!important;
    scroll-snap-align:none!important;
    overflow:hidden!important;
  }

  body.tc-conecta-aprende-v117 .tc-ca118-course-card__top{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:4px!important;
    margin-bottom:5px!important;
  }

  body.tc-conecta-aprende-v117 .tc-ca118-course-icon{
    width:31px!important;
    height:31px!important;
    border-radius:9px!important;
    font-size:12px!important;
  }

  body.tc-conecta-aprende-v117 .tc-ca118-free{
    padding:3px 4px!important;
    font-size:6.4px!important;
    line-height:1!important;
  }

  body.tc-conecta-aprende-v117 .tc-ca118-course-card > small,
  body.tc-conecta-aprende-v117 .tc-ca118-course-card > p,
  body.tc-conecta-aprende-v117 .tc-ca118-course-card .tc-ca118-meta{
    display:none!important;
  }

  body.tc-conecta-aprende-v117 .tc-ca118-course-card h2{
    margin:2px 0 0!important;
    font-size:9.4px!important;
    line-height:1.15!important;
    text-align:left!important;
    display:-webkit-box!important;
    -webkit-line-clamp:4!important;
    -webkit-box-orient:vertical!important;
    overflow:hidden!important;
  }

  body.tc-conecta-aprende-v117 .tc-ca118-open-course{
    position:absolute!important;
    inset:0!important;
    z-index:5!important;
    width:100%!important;
    height:100%!important;
    min-height:0!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    border-radius:14px!important;
    background:transparent!important;
    box-shadow:none!important;
    color:transparent!important;
    font-size:0!important;
    opacity:0!important;
    cursor:pointer!important;
  }

  body.tc-conecta-aprende-v117 .tc-ca118-open-course:focus-visible{
    opacity:1!important;
    background:transparent!important;
    outline:3px solid rgba(15,114,216,.45)!important;
    outline-offset:-3px!important;
  }

  body.tc-conecta-aprende-v117 .tc-ca118-swipe-hint{
    display:none!important;
  }

  .tc-ca118-modal__sheet{
    max-height:90vh;
  }
}

/* Tablet */
@media(min-width:521px) and (max-width:900px){
  .tc-ca118-course-card{
    flex-basis:300px;
  }
}

/* Windows = centered tablet frame */
@media(min-width:901px){
  .tc-ca118-main{
    width:768px;
  }

  .tc-ca118-courses{
    width:744px;
  }

  .tc-ca118-course-rail{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    overflow:visible;
  }

  .tc-ca118-course-card{
    min-height:270px;
  }

  .tc-ca118-swipe-hint{
    display:none;
  }

  .tc-ca118-modal__sheet{
    left:50%;
    bottom:6vh;
    width:720px;
    max-height:82vh;
    border-radius:24px;
  }
}
