/* ============================================
   Widget About Services - Estilos Scoped
   Todos los estilos están scoped bajo .about-services-widget
   ============================================ */

.about-services-widget {
  /* ============================================
     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;
    transition: 0.3s;
  }
  
  img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
  }

  /* Section wrapper - padding consistente (contenido central) */
  > .tmp-about-area {
    padding-top: 100px !important;
    padding-bottom: 100px !important;
  }
  @media only screen and (min-width: 768px) and (max-width: 991px) {
    > .tmp-about-area {
      padding-top: 80px !important;
      padding-bottom: 80px !important;
    }
  }
  @media only screen and (max-width: 767px) {
    > .tmp-about-area {
      padding-top: 60px !important;
      padding-bottom: 60px !important;
    }
  }

  /* ============================================
     Section Gap Bottom
     ============================================ */
  .tmp-section-gapBottom {
    padding-bottom: 120px !important;
    
    @media only screen and (min-width: 768px) and (max-width: 991px) {
      padding-bottom: 80px !important;
    }
    
    @media only screen and (max-width: 767px) {
      padding-bottom: 60px !important;
    }
  }

  /* ============================================
     Video Popup
     ============================================ */
  .video-popup {
    position: relative;
    display: block;
    
    &.about-relative-thumb {
      position: relative;
    }
    
    .thumbnail {
      img {
        width: 100%;
      }
      
      &.invers-anime {
        position: relative;
        overflow: hidden;
        
        &::after {
          content: "";
          position: absolute;
          width: 200%;
          height: 0%;
          left: 50%;
          top: 50%;
          background-color: rgba(255, 255, 255, 0.3);
          transform: translate(-50%, -50%) rotate(45deg);
          z-index: 1;
          pointer-events: none;
        }
        
        &:hover::after {
          height: 250%;
          transition: all 600ms linear;
          background-color: transparent;
        }
      }
    }
    
    .video-icon {
      position: absolute;
      content: "";
      left: 50%;
      top: 50%;
      transform: translate(-50%, -50%);
      margin-top: 10px;
      transition: 0.4s;
    }
    
    &.icon-center {
      .video-icon {
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
      }
    }
  }

  .overlay-content {
    position: relative;
  }

  /* ============================================
     Absolute Rating Area
     ============================================ */
  .absolute-rating-area {
    position: absolute;
    padding: 20px 32px;
    background: #fefefe;
    border-radius: 6px;
    bottom: 9%;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    
    img {
      margin-bottom: 15px;
    }
    
    .stars-area {
      display: flex;
      align-items: center;
      gap: 7px;
      margin-bottom: 10px;
      
      img {
        max-width: 20px;
        margin-bottom: 0;
      }
    }
    
    p {
      font-size: 18px;
      color: var(--primary_color_font);
      font-weight: 500;
      margin-bottom: 0;
    }
  }
  
  /* ============================================
     Profile Share mb-0 utility
     ============================================ */
  .profile-share.mb-0 {
    margin-bottom: 0;
  }

  .about-relative-thumb .absolute-rating-area {
    position: absolute;
    left: -10%;
    padding: 20px 32px;
    background: #fefefe;
    border-radius: 6px;
    bottom: 9%;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    right: auto !important;
    border: 1px solid rgba(157, 157, 255, 0.05);
    
    @media only screen and (min-width: 1200px) and (max-width: 1599px) {
      left: 7%;
    }
    
    @media only screen and (max-width: 1199px) {
      left: 15%;
    }
    
    @media only screen and (max-width: 991px) {
      left: 50%;
    }
    
    @media only screen and (max-width: 767px) {
      left: 15%;
    }
    
    @media only screen and (max-width: 575px) {
      padding: 5px 16px;
      bottom: 10px;
    }
    
    img {
      margin-bottom: 15px;
    }
    
    .profile-share a img {
      max-width: 45px;
    }
    
    .stars-area {
      display: flex;
      align-items: center;
      gap: 7px;
      margin-bottom: 10px;
      
      img {
        max-width: 20px;
        margin-bottom: 0;
      }
    }
    
    p {
      font-size: 18px;
      color: var(--primary_color_font);
      font-weight: 500;
      margin-bottom: 0;
    }
    
    &::after {
      position: absolute;
      top: -5%;
      right: -6%;
      content: "";
      height: 100%;
      width: 100%;
      border-radius: 6px;
      z-index: -1;
      background: #1b1b1c;
    }
    
    &::before {
      position: absolute;
      bottom: -5%;
      left: -6%;
      content: "";
      height: 100%;
      width: 100%;
      border-radius: 6px;
      z-index: -1;
      background: #1b1b1c;
    }
  }
  
  /* ============================================
     Images Left Right Float
     ============================================ */
  .images-left-right-float {
    right: -110px !important;
    
    @media only screen and (max-width: 575px) {
      right: -223px !important;
    }
  }

  /* ============================================
     Profile Share
     ============================================ */
  .profile-share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 15px;
    
    &.justify-content-start {
      justify-content: flex-start;
    }
    
    a {
      position: relative;
      z-index: 1;
      transition: 0.3s;
      
      &:nth-child(2) {
        margin-left: -12px;
      }
      
      &:nth-child(3) {
        margin-left: -12px;
      }
      
      img {
        max-width: 60px;
        border-radius: 50%;
        border: 3px solid rgba(157, 157, 255, 0.05);
        transition: 0.3s;
      }
    }
  }

  .about-relative-thumb .absolute-rating-area .profile-share a img {
    max-width: 45px;
  }

  /* ============================================
     Avatar Tooltip (estilos completos de tooltip.scss)
     ============================================ */
  .profile-share {
    a {
      &:hover {
        z-index: 2;
        transform: translateY(-3px) scale(1.1);
      }
    }
  }

  .avatar {
    position: relative;

    &::after,
    &::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;
    }

    &::before {
      --translate-y: calc(-100% - var(--arrow-size));
      content: attr(data-tooltip);
      color: #fff;
      padding: 5px 8px;
      background: var(--primary_color);
      width: max-content;
      border-radius: 5px;
      text-align: center;
      font-size: 12px;
      margin: 1px;
    }

    &::after {
      --translate-y: calc(-1 * var(--arrow-size));
      content: '';
      border: var(--arrow-size) solid transparent;
      border-top-color: var(--primary_color);
    }

    &:hover {
      &::before,
      &::after {
        --scale: 1;
      }
    }
  }

  /* ============================================
     Section Title Border
     ============================================ */
  .tmp-section-title-border {
    .subtitle {
      display: flex;
      color: var(--secondary_color_font);
      font-size: 13px;
      margin: 0;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      align-items: center;
      padding: 0 15px;
      
      @media only screen and (max-width: 767px) {
        flex-wrap: wrap;
        justify-content: center;
      }
      
      .subtitle-text {
        color: var(--secondary_color_font);
        font-weight: 700;
        width: max-content;
      }
      
      .number {
        color: var(--secondary_color_font);
        transition: 0.5s;
        opacity: 0.6;
        display: none;
      }
    }
  }

  /* ============================================
     Pres Line Separator Wrapper
     ============================================ */
  .pres-line-separator-wrapper {
    display: flex;
    position: relative;
    align-items: center;
    margin: 0 -15px;
    justify-content: center;
    
    @media only screen and (max-width: 767px) {
      flex-wrap: wrap;
      justify-content: center;
    }
    
    &.text-start {
      justify-content: flex-start !important;
    }
    
    .line-separator {
      position: relative;
      background-image: linear-gradient(90deg, var(--primary_color), rgba(33, 38, 45, 0));
      width: 50px;
      height: 1px;
      
      @media only screen and (max-width: 767px) {
        display: none;
      }
    }
  }

  /* ============================================
     About Style 4
     ============================================ */
  .about-style-4 {
    .title {
      font-weight: 400;
      margin-bottom: 35px;
      color: var(--primary_color_font);
      font-family: var(--primary_font);
      
      @media only screen and (min-width: 1200px) and (max-width: 1599px) {
        font-size: 26px;
      }
      
      @media only screen and (max-width: 1199px) {
        font-size: 26px;
      }
      
      @media only screen and (max-width: 991px) {
        margin-bottom: 15px;
      }
      
      @media only screen and (max-width: 575px) {
        font-size: 26px;
        margin-bottom: 15px;
      }
      
      @media only screen and (max-width: 479px) {
        font-size: 26px;
      }
      
      strong {
        color: var(--primary_color);
      }
    }
    
    .feature-list {
      padding: 0;
      list-style: none;
      
      @media only screen and (max-width: 1199px) {
        margin-bottom: 15px;
      }
      
      li {
        display: flex;
        
        .icon {
          background: var(--primary_color);
          width: 30px;
          height: 30px;
          border-radius: 100%;
          color: #fff;
          text-align: center;
          min-width: 30px;
          
          i {
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100%;
          }
        }
        
        .title-wrapper {
          margin-left: 13px;
          
          .title {
            font-size: 18px;
            margin: 0;
            color: var(--primary_color_font);
            font-family: var(--primary_font);
          }
          
          .text {
            font-size: 16px;
            margin-bottom: 20px;
            max-width: 80%;
            margin-top: 13px;
            color: var(--secondary_color_font);
            
            @media only screen and (max-width: 1199px) {
              max-width: 100%;
            }
            
            @media only screen and (max-width: 575px) {
              max-width: 100%;
            }
          }
        }
      }
    }
  }

  /* ============================================
     Tmp Button
     ============================================ */
  .tmp-btn {
    padding: 0 28px;
    border-radius: 5px;
    background: var(--primary_color);
    transition-duration: 300ms;
    color: #fff;
    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: 0.4s;
    border: 0 none;
    position: relative;
    z-index: 1;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    font-family: var(--primary_font);
    
    @media only screen and (max-width: 767px) {
      padding: 0 16px;
      height: 42px;
      line-height: 42px;
    }

    &.btn-large {
      height: 60px;
      line-height: 59px;
      padding: 0 37px;
      font-size: 17px;
      
      @media only screen and (max-width: 767px) {
        padding: 0 18px;
        font-size: 14px;
      }
    }

    &.round {
      border-radius: var(--general_border_radius);
    }

    &.btn-border {
      background: transparent;
      border-color: rgba(157, 157, 255, 0.05);
      border-width: 2px;
      border-style: solid;
      color: var(--primary_color_font);
      
      &:hover {
        background-color: var(--primary_color);
        border-color: var(--primary_color) !important;
        color: #fff;
      }
    }

    &.rounded-player {
      border-radius: 100%;
      width: 100px;
      height: 100px;
      padding: 0;
      line-height: 100px;
      display: inline-block;
      position: relative;
      
      @media only screen and (max-width: 767px) {
        width: 70px;
        height: 70px;
        line-height: 70px;
      }

      span {
        display: inline-block;
        
        i {
          display: inline-block;
          position: absolute;
          left: 50%;
          top: 50% !important;
          transform: translate(-50%, -50%);
          font-size: 30px;
          padding-left: 0;
        }
      }

      &:focus {
        outline: none;
        color: #fff;
      }

      &:hover {
        transform: scale(1.1);
        background: var(--primary_color);
      }
    }
    
    &:hover {
      background-color: var(--secondary_color);
      color: #fff;
      transform: translate3d(0, -2px, 0);
    }
  }

  /* ============================================
     Radius Small
     ============================================ */
  .radius-small {
    border-radius: var(--general_border_radius);
  }

  /* ============================================
     Font Weight 700
     ============================================ */
  .w-700 {
    font-weight: 700 !important;
  }

  /* ============================================
     Tmp Title Split (inicialmente oculto)
     ============================================ */
  .tmp-title-split {
    opacity: 0;
    visibility: hidden;
  }

  .tmp-title-split-p {
    opacity: 0;
    visibility: hidden;
  }

  /* ============================================
     Margin Utilities
     ============================================ */
  .mb--10 {
    margin-bottom: 10px;
  }

  .mb--30 {
    margin-bottom: 30px;
  }

  .mt--40 {
    margin-top: 40px;
  }

  .text-start {
    text-align: left;
  }

  .read-more-btn {
    margin-top: 40px;
  }
}

/* Keyframes DEBEN estar fuera del scope */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

