/* ============================================
   Widget Call to Action - Estilos Scoped
   Todos los estilos están scoped bajo .calltoaction-widget
   ============================================ */

.calltoaction-widget {
  background-color: #fafafa;
  /* ============================================
     Estilos base de tipografía
     ============================================ */
  font-size: 16px;
  line-height: 1.7;
  font-family: var(--primary_font);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  
  a {
    text-decoration: none;
    color: #1b1b1c;
  }
  
  a:hover,
  a:focus,
  a:active {
    text-decoration: none;
    outline: none;
    color: var(--primary_color);
  }
  
  img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
  }
  
  ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  /* Section wrapper - padding consistente (contenido central) */
  > .tmp-callto-action-area {
    padding-top: 100px !important;
    padding-bottom: 100px !important;
  }
  @media only screen and (min-width: 768px) and (max-width: 991px) {
    > .tmp-callto-action-area {
      padding-top: 80px !important;
      padding-bottom: 80px !important;
    }
  }
  @media only screen and (max-width: 767px) {
    > .tmp-callto-action-area {
      padding-top: 60px !important;
      padding-bottom: 60px !important;
    }
  }
  
  /* ============================================
     Estilos de Sección (tmp-section-gapBottom)
     ============================================ */
  
  .tmp-section-gapBottom {
    padding-bottom: 120px !important;
  }
  
  @media only screen and (min-width: 768px) and (max-width: 991px) {
    .tmp-section-gapBottom {
      padding-bottom: 80px !important;
    }
  }
  
  @media only screen and (max-width: 767px) {
    .tmp-section-gapBottom {
      padding-bottom: 60px !important;
    }
  }
  
  /* ============================================
     Estilos tmp-callto-action-area
     ============================================ */
  
  .tmp-callto-action-area {
    position: relative;
  }
  
  .tmp-callto-action-area.with-shape {
    position: relative;
  }
  
  .position-relative {
    position: relative;
  }
  
  .wrapper {
    position: relative;
  }
  
  /* ============================================
     Estilos clltoaction-style-default
     ============================================ */
  
  .clltoaction-style-default {
    padding: 250px 0;
  }
  
  .clltoaction-style-default.style-5 {
    padding: 0;
  }
  
  .clltoaction-style-default.style-5 .content-wrapper {
    background-color: #ffffff;
    border-radius: 6px;
    padding: 120px 80px;
    z-index: 1;
    position: relative;
  }
  
  @media only screen and (min-width: 768px) and (max-width: 991px) {
    .clltoaction-style-default.style-5 .content-wrapper {
      padding: 40px 20px;
    }
  }
  
  @media only screen and (max-width: 767px) {
    .clltoaction-style-default.style-5 .content-wrapper {
      padding: 40px 20px;
    }
  }
  
  .clltoaction-style-default.style-5 .content .title {
    font-size: 47px;
    margin-bottom: 20px;
    padding-bottom: 0;
    line-height: 1.4;
    position: relative;
    z-index: 10;
    color: #1b1b1c;
    font-weight: 600;
  }
  
  /* Ocultar inicialmente los títulos con animación tmp-title-split */
  .clltoaction-style-default.style-5 .content .title.tmp-title-split,
  .clltoaction-style-default.style-5 .content .subtitle.tmp-title-split {
    opacity: 0;
  }
  
  @media only screen and (min-width: 992px) and (max-width: 1199px) {
    .clltoaction-style-default.style-5 .content .title {
      font-size: 38px;
    }
  }
  
  @media only screen and (min-width: 768px) and (max-width: 991px) {
    .clltoaction-style-default.style-5 .content .title {
      font-size: 34px;
    }
  }
  
  @media only screen and (max-width: 767px) {
    .clltoaction-style-default.style-5 .content .title {
      font-size: 34px;
    }
  }
  
  @media only screen and (max-width: 575px) {
    .clltoaction-style-default.style-5 .content .title {
      font-size: 26px;
    }
  }
  
  .clltoaction-style-default.style-5 .content .subtitle {
    font-size: 16px;
    line-height: 1.4;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 10;
    color: #363636;
    margin: 0;
    font-weight: 400;
  }
  
  .clltoaction-style-default.style-5 .call-to-btn {
    margin-top: 30px;
  }
  
  /* ============================================
     Estilos theme-shape
     ============================================ */
  
  .theme-shape {
    position: relative;
    z-index: 2;
    overflow: hidden;
  }
  
  .theme-shape::before {
    position: absolute;
    left: -250px;
    top: 250px;
    right: auto;
    bottom: auto;
    z-index: -1;
    width: 500px;
    height: 500px;
    border-radius: 1000px;
    background-image: linear-gradient(45deg, var(--primary_color), var(--secondary_color));
    opacity: 0.2;
    filter: blur(100px);
    content: "";
  }
  
  .theme-shape::after {
    position: absolute;
    z-index: -1;
    width: 500px;
    height: 500px;
    border-radius: 1000px;
    opacity: 0.2;
    filter: blur(100px);
    content: "";
    left: auto;
    top: -250px;
    right: -250px;
    bottom: auto;
    background-image: linear-gradient(45deg, var(--secondary_color), var(--primary_color));
  }
  
  /* ============================================
     Estilos person-stand
     ============================================ */
  
  .clltoaction-style-default.style-5 .content-wrapper .person-stand {
    position: absolute;
    right: 30px!important;
    bottom: -20px;
    z-index: 0;
    width: max-content;
    max-width: 420px;
    pointer-events: none;
  }
  
  @media only screen and (max-width: 991px) {
    .clltoaction-style-default.style-5 .content-wrapper .person-stand {
      max-width: 260px;
    }
  }
  
  @media only screen and (max-width: 767px) {
    .clltoaction-style-default.style-5 .content-wrapper .person-stand {
      display: none;
    }
  }
  
  .images-left-right-float {
    right: -110px !important;
  }
  
  @media only screen and (max-width: 575px) {
    .images-left-right-float {
      right: -223px !important;
    }
  }
  
  .person-stand img {
    width: 100%;
    height: auto;
  }
  
  /* ============================================
     Estilos bg-shape-area-cta-main
     ============================================ */
  
  .content-wrapper.theme-shape .bg-shape-area-cta-main {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    padding: 0;
  }
  
  .bg-shape-area-cta-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
  }
  
  /* ============================================
     Estilos bg-line-animatoin-area-global
     ============================================ */
  
  .clltoaction-style-default.style-5 .content-wrapper .bg-line-animatoin-area-global {
    left: 0;
  }
  
  .bg-line-animatoin-area-global {
    background-image: url(imagenes/global-line.png);
    animation: ShapeAnim 80s linear infinite;
    height: 30px;
    width: 100%;
    background-repeat: repeat;
    overflow: hidden;
    bottom: 0;
    position: absolute;
  }
  
  /* ============================================
     Estilos tmp-profile-box
     ============================================ */
  
  .tmp-profile-box {
    margin-top: 50px;
  }
  
  /* ============================================
     Estilos profile-share
     ============================================ */
  
  .profile-share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
  }
  
  .profile-share.justify-content-center {
    justify-content: center;
  }
  
  .profile-share a {
    position: relative;
    z-index: 1;
    transition: 0.3s;
  }
  
  .profile-share a:nth-child(2) {
    margin-left: -12px;
  }
  
  .profile-share a:nth-child(3) {
    margin-left: -12px;
  }
  
  .profile-share a img {
    max-width: 60px;
    border-radius: 50%;
    border: 3px solid rgba(157, 157, 255, 0.2);
    transition: 0.3s;
    box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.05);
  }
  
  .profile-share a:hover {
    z-index: 2;
    transform: translateY(-3px) scale(1.1);
  }
  
  .profile-share .more-author-text {
    margin: 10px;
    margin-left: 20px;
    position: relative;
    z-index: 10;
  }
  
  .profile-share .more-author-text .total-join-students {
    margin-bottom: 4px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.5px;
    color: #1b1b1c;
  }
  
  .profile-share .more-author-text .subtitle {
    font-size: 16px;
    letter-spacing: -0.5px;
    margin-bottom: 0;
    color: #363636;
  }
  
  /* ============================================
     Estilos avatar (tooltip)
     ============================================ */
  
  .avatar {
    position: relative;
  }
  
  .avatar::after,
  .avatar::before {
    --scale: 0;
    --arrow-size: 8px;
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%) translateY(var(--translate-y, 0)) scale(var(--scale));
    transition: 150ms transform;
    transform-origin: bottom center;
  }
  
  .avatar::before {
    --translate-y: calc(-100% - var(--arrow-size));
    content: attr(data-tooltip);
    color: #ffffff;
    padding: 5px 8px;
    background: var(--primary_color);
    width: max-content;
    border-radius: 5px;
    text-align: center;
    font-size: 12px;
    margin: 1px;
  }
  
  .avatar::after {
    --translate-y: calc(-1 * var(--arrow-size));
    content: "";
    border: var(--arrow-size) solid transparent;
    border-top-color: var(--primary_color);
    transform-origin: top center;
  }
  
  .avatar:hover::before,
  .avatar:hover::after {
    --scale: 1;
  }
  
  /* ============================================
     Estilos btn-read-more
     ============================================ */
  
  .btn-read-more {
    text-decoration: none;
    color: #363636;
  }
  
  .btn-read-more span {
    position: relative;
    color: #1b1b1c;
    display: inline-block;
    line-height: 35px;
    transition: 0.3s;
  }
  
  .btn-read-more span::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background-color: rgba(157, 157, 255, 0.2);
    transition: 0.3s;
    width: 100%;
    bottom: 3px;
  }
  
  .btn-read-more span::before {
    position: absolute;
    content: "";
    left: auto;
    bottom: 3px;
    background: var(--primary_color);
    width: 0;
    height: 2px;
    transition: 0.3s;
    right: 0;
  }
  
  .btn-read-more:hover span {
    color: var(--primary_color);
  }
  
  .btn-read-more:hover span::before {
    width: 100%;
    left: 0;
  }
  
  /* ============================================
     Estilos tmp-btn (botones)
     ============================================ */
  
  .tmp-btn,
  .btn-default {
    padding: 0 28px;
    border-radius: 5px;
    background: var(--primary_color);
    transition-duration: 300ms;
    color: #ffffff;
    font-family: var(--primary_font);
    font-size: 16px;
    font-weight: 400;
    text-align: center;
    text-decoration: none;
    display: flex;
    height: 50px;
    line-height: 49px;
    letter-spacing: 0.5px;
    width: max-content;
    transition: all 0.6s;
    border: 0 none;
    position: relative;
    z-index: 1;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }
  
  .tmp-btn.btn-extra-large,
  .btn-default.btn-extra-large {
    height: 90px;
    line-height: 90px;
    padding: 0 70px;
    font-size: 20px;
  }
  
  @media only screen and (max-width: 767px) {
    .tmp-btn.btn-extra-large,
    .btn-default.btn-extra-large {
      padding: 0 44px;
    }
  }
  
  @media only screen and (max-width: 575px) {
    .tmp-btn.btn-extra-large,
    .btn-default.btn-extra-large {
      padding: 0 12px;
      font-size: 16px;
      height: 60px;
      line-height: 60px;
    }
  }
  
  .tmp-btn.btn-extra-large.hover-icon-reverse .btn-text {
    line-height: 90px;
  }
  
  @media only screen and (max-width: 575px) {
    .tmp-btn.btn-extra-large.hover-icon-reverse .btn-text {
      line-height: 60px;
    }
  }
  
  .tmp-btn.btn-extra-large.hover-icon-reverse .btn-icon i {
    line-height: 90px;
  }
  
  @media only screen and (max-width: 575px) {
    .tmp-btn.btn-extra-large.hover-icon-reverse .btn-icon i {
      line-height: 60px;
    }
  }
  
  .tmp-btn::after,
  .btn-default::after {
    position: absolute;
    content: "";
    width: 200%;
    height: 200%;
    left: 50%;
    top: 110%;
    background: var(--primary_color);
    transform: translateX(-50%);
    transition: all 0.6s;
    transition-duration: 800ms;
    opacity: 0.5;
    border-radius: 50%;
    z-index: -1;
  }
  
  .tmp-btn:hover,
  .btn-default:hover {
    background-color: transparent;
    color: #ffffff;
    transform: translate3d(0, -2px, 0);
    box-shadow: 0 0 20px 5px rgba(82, 55, 249, 0.33);
  }
  
  .tmp-btn:hover::after,
  .btn-default:hover::after {
    opacity: 1;
    top: -30%;
  }
  
  /* ============================================
     Estilos hover-icon-reverse
     ============================================ */
  
  .tmp-btn.hover-icon-reverse .icon-reverse-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .tmp-btn.hover-icon-reverse .btn-text {
    display: inline-block;
    transition: transform 0.6s 0.125s cubic-bezier(0.1, 0.75, 0.25, 1);
    margin-inline-start: -23px;
  }
  
  .tmp-btn.hover-icon-reverse .btn-icon {
    display: inline-block;
    transition: opacity 0.4s 0.25s, transform 0.6s 0.25s;
    transition-timing-function: cubic-bezier(0.1, 0.75, 0.25, 1);
  }
  
  .tmp-btn.hover-icon-reverse .btn-icon + .btn-icon {
    margin-inline-end: 0;
    margin-inline-start: 0;
    display: inline-block;
    opacity: 0;
    transform: translateX(-10px);
    transition-delay: 0s;
    order: -2;
  }
  
  .tmp-btn.hover-icon-reverse:hover .btn-text {
    transition-delay: 0.1s;
    transform: translateX(23px);
  }
  
  .tmp-btn.hover-icon-reverse:hover .btn-icon {
    opacity: 0;
    transition-delay: 0s;
    transform: translateX(10px);
  }
  
  .tmp-btn.hover-icon-reverse:hover .btn-icon + .btn-icon {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.225s;
  }
  
  .tmp-btn.hover-icon-reverse .btn-icon i {
    padding-left: 6px;
    display: inline-block;
    top: 2px;
    position: relative;
    font-size: 17px;
    line-height: 1;
  }
  
  .tmp-btn.hover-icon-reverse .btn-icon + .btn-icon i {
    padding-left: 0;
    padding-right: 6px;
  }
  
  /* ============================================
     Estilos tmponhover (efecto flashlight)
     ============================================ */
  
  .tmponhover {
    position: relative;
    overflow: hidden;
  }
  
  .tmponhover::before {
    content: "";
    position: absolute;
    top: var(--y);
    left: var(--x);
    transform: translate(-50%, -50%);
    background: radial-gradient(var(--primary_color), transparent, transparent);
    width: 200%;
    height: 200%;
    opacity: 0;
    transition: 0.5s, top 0s, left 0s;
    border-radius: 6px;
    z-index: 1;
  }
  
  .tmponhover:hover::before {
    opacity: 1;
  }
  
  .tmponhover::after {
    content: "";
    position: absolute;
    inset: 2px;
    background: transparent;
    border-radius: 6px;
    z-index: 0;
  }
  
  .tmponhover > * {
    z-index: 2;
    position: relative;
  }
  
  /* ============================================
     Estilos row--0
     ============================================ */
  
  .row--0 {
    margin-left: 0px;
    margin-right: 0px;
  }
  
  .row--0 > [class*="col"],
  .row--0 > [class*="col-"] {
    padding-left: 0px;
    padding-right: 0px;
  }
  
  /* ============================================
     Utilidades
     ============================================ */
  
  .mb--10 {
    margin-bottom: 10px !important;
  }
  
  .mt--50 {
    margin-top: 50px !important;
  }
  
  .w-700 {
    font-weight: 700 !important;
  }
  
  .text-center {
    text-align: center;
  }
  
  h2 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
  }
  
  h5 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.2;
  }
  
  h6 {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.2;
  }
  
  p {
    margin: 0 0 30px;
    font-size: 16px;
    line-height: 1.7;
    color: #363636;
  }
}

/* ============================================
   Animaciones (fuera del scope para que funcionen)
   ============================================ */

@keyframes ShapeAnim {
  0% {
    background-position: top left;
  }
  100% {
    background-position: top left 2000px;
  }
}

