/* ============================================
   Widget Testimonial Digital - Estilos Scoped
   Todos los estilos están scoped bajo .testimonial-digital-widget
   ============================================ */

.testimonial-digital-widget {
  /* ============================================
     Estilos base de tipografía
     ============================================ */
  font-size: 16px;
  line-height: 1.7;
  font-family: var(--primary_font);
  font-weight: 400;
  color: var(--primary_color_font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #f3f3f3;
  a {
    text-decoration: none;
    transition: 0.3s;
    color: var(--primary_color_font);
  }
  
  img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
  }

  /* Section wrapper - padding consistente (contenido central) */
  > .tmp-testimonial-area {
    padding-top: 100px !important;
    padding-bottom: 100px !important;
  }
  @media only screen and (min-width: 768px) and (max-width: 991px) {
    > .tmp-testimonial-area {
      padding-top: 80px !important;
      padding-bottom: 80px !important;
    }
  }
  @media only screen and (max-width: 767px) {
    > .tmp-testimonial-area {
      padding-top: 60px !important;
      padding-bottom: 60px !important;
    }
  }

  /* ============================================
     Section Gap Top
     ============================================ */
  .tmp-section-gapTop {
    padding-top: 120px !important;
    
    @media only screen and (min-width: 768px) and (max-width: 991px) {
      padding-top: 80px !important;
    }
    
    @media only screen and (max-width: 767px) {
      padding-top: 60px !important;
    }
  }

  /* ============================================
     Testimonial Area
     ============================================ */
  .tmp-testimonial-area {
    position: relative;
    padding-bottom: 120px !important;
  }

  /* ============================================
     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;
      }
    }
    
    .title {
      font-size: 44px;
      font-weight: 700;
      line-height: 1.2;
      margin-bottom: 20px;
      color: var(--primary_color_font);
      
      @media only screen and (max-width: 1199px) {
        font-size: 38px;
      }
      
      @media only screen and (max-width: 991px) {
        font-size: 32px;
      }
      
      @media only screen and (max-width: 767px) {
        font-size: 28px;
      }
    }
    
    .description {
      font-size: 18px;
      line-height: 1.6;
      color: var(--secondary_color_font);
      margin-bottom: 0;
      
      @media only screen and (max-width: 767px) {
        font-size: 16px;
      }
    }
    
    &.text-center {
      .description {
        padding: 0 23%;
        
        @media only screen and (min-width: 992px) and (max-width: 1199px) {
          padding: 0 10%;
        }
        
        @media only screen and (min-width: 768px) and (max-width: 991px) {
          padding: 0;
        }
        
        @media only screen and (max-width: 767px) {
          padding: 0;
        }
      }
    }
  }

  /* ============================================
     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-center {
      .line-separator.line-left {
        background-image: linear-gradient(-90deg, var(--primary_color), rgba(33, 38, 45, 0));
      }
      
      .line-separator.line-right {
        background-image: linear-gradient(90deg, var(--primary_color), rgba(33, 38, 45, 0));
      }
    }
    
    .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;
      }
    }
  }

  /* ============================================
     Theme Gradient
     ============================================ */
  .theme-gradient {
    color: var(--primary_color);
  }

  /* ============================================
     Font Weight
     ============================================ */
  .w-700 {
    font-weight: 700 !important;
  }

  /* ============================================
     Body Text
     ============================================ */
  .b1 {
    font-size: 18px;
    line-height: 1.6;
  }

  /* ============================================
     Text Center
     ============================================ */
  .text-center {
    text-align: center;
  }

  /* ============================================
     Margin Utilities
     ============================================ */
  .mb--10 {
    margin-bottom: 10px !important;
  }
  
  .mb--15 {
    margin-bottom: 15px !important;
  }
  
  .mt--30 {
    margin-top: 30px !important;
  }
  
  .mb--60 {
    margin-bottom: 60px !important;
  }

  /* ============================================
     Tmp Box Card
     ============================================ */
  .tmp-box-card {
    margin-top: 75px;
    background: #fefefe;
    backdrop-filter: blur(4px) opacity(0.95);
    border-radius: var(--general_border_radius);
    
    .inner {
      .thumbnail {
        max-width: max-content;
        max-height: max-content;
        border-radius: 100%;
        border: 6px solid #fefefe;
        top: -75px;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        min-width: 150px;
        min-height: 150px;
        overflow: hidden;
        
        img {
          border-radius: 100%;
        }
      }
      
      .content {
        text-align: center;
        padding: 20px;
        padding-top: 85px;
        padding-bottom: 35px;
        
        .title {
          font-size: 24px;
          line-height: 1.4;
          font-weight: 700;
          margin-bottom: 0;
          color: var(--primary_color_font);
        }
        
        .subtitle {
          font-size: 16px;
          line-height: 1.4;
          margin-bottom: 5px;
          display: inline-block;
          color: var(--primary_color);
        }
        
        .description {
          margin-bottom: 0;
          padding: 0 5%;
          color: var(--secondary_color_font);
          font-size: 16px;
          line-height: 1.6;
        }
        
        .rating {
          display: flex;
          align-items: center;
          gap: 10px;
          justify-content: center;
          
          img {
            max-width: 20px;
            margin-bottom: 0;
          }
        }
      }
    }
    
    &.card-style-default.testimonial-style-one {
      margin-top: 0;
      
      .inner {
        padding-top: 0;
        padding: 30px 40px;
        
        @media only screen and (max-width: 575px) {
          padding: 20px;
        }
        
        .thumbnail {
          overflow: visible;
          min-width: 50px;
          min-height: 50px;
          margin-left: inherit;
          max-width: 50px;
          max-height: 50px;
          border: 3px solid var(--primary_color);
          position: static;
          transform: none;
          margin-bottom: 15px;
          top: 0;
          left: 0;
        }
        
        .content {
          padding: 0;
          text-align: left;
          
          .description {
            padding: 0;
            margin-bottom: 27px;
            margin-top: 0px;
          }
          
          .title {
            font-size: 20px;
            font-weight: 500;
            margin-bottom: 2px;
            letter-spacing: 0.5px;
            color: var(--primary_color_font);
          }
          
          .subtitle {
            font-size: 16px;
            line-height: 1.2;
            margin-bottom: 0;
            letter-spacing: 0.5px;
            color: var(--secondary_color_font);
          }
          
          .rating {
            display: flex;
            align-items: center;
            gap: 10px;
            justify-content: flex-start;
            
            img {
              max-width: 20px;
              margin-bottom: 0;
            }
          }
          
          .content-bottom {
            display: flex;
            align-items: center;
            
            .thumbnail {
              margin-bottom: 0;
              margin-right: 15px;
            }
            
            .main-content {
              .title {
                font-size: 20px;
                font-weight: 500;
                margin-bottom: 2px;
                letter-spacing: 0.5px;
                color: var(--primary_color_font);
              }
              
              .subtitle {
                font-size: 16px;
                line-height: 1.2;
                margin-bottom: 0;
                letter-spacing: 0.5px;
                color: var(--primary_color);
              }
            }
          }
        }
      }
      
      &.variation-2 {
        .inner {
          padding: 30px 25px;
          
          @media only screen and (min-width: 768px) and (max-width: 991px) {
            padding: 22px 20px;
          }
          
          @media only screen and (max-width: 767px) {
            padding: 22px 20px;
          }
        }
        
        .content .description {
          font-size: 16px;
        }
      }
    }
  }

  /* ============================================
     Tmp On Hover (Flashlight Effect)
     ============================================ */
  .tmponhover {
    position: relative;
    overflow: hidden;
    
    &::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: var(--general_border_radius);
    }
    
    &:hover::before {
      opacity: 1;
    }
    
    &::after {
      content: "";
      position: absolute;
      inset: 2px;
      background: #fefefe;
      border-radius: var(--general_border_radius);
    }
    
    > * {
      z-index: 2;
      position: relative;
    }
  }

  /* ============================================
     Slick Gutter 15
     ============================================ */
  .slick-gutter-15 {
    margin: 0 -15px;
    
    .slick-slide {
      padding: 0 15px;
      margin-left: 15px !important;
      margin-right: 15px !important;
    }
  }

  /* ============================================
     Tmp Slick Dot
     ============================================ */
  .tmp-slick-dot {
    .slick-dots {
      bottom: -60px;
      
      @media only screen and (max-width: 575px) {
        bottom: -50px;
      }
      
      li {
        width: 30px;
        margin: 0;
        opacity: 1;
        position: relative;
        
        button {
          &::before {
            display: none;
          }
          
          &::after {
            background: var(--primary_color);
            width: 100%;
            display: block;
            content: "";
            position: absolute;
            left: 0;
            width: 10px;
            height: 10px;
            opacity: .5;
            border-radius: 50%;
            margin-left: 11px;
            background-color: transparent;
            box-shadow: inset 0 0 0 7px var(--primary_color);
          }
        }
        
        &.slick-active {
          opacity: 1;
          
          button::after {
            -webkit-transform: scale(2);
            transform: scale(2);
            box-shadow: inset 0 0 0 1px var(--primary_color);
            background-color: transparent;
            background-color: transparent !important;
          }
        }
      }
    }
  }

  /* ============================================
     Tmp Slick Arrow
     ============================================ */
  .tmp-slick-arrow {
    position: relative;
    
    button.slick-arrow {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      z-index: 2;
      transition: 0.5s;
      opacity: 0;
      width: 68px;
      height: 68px;
      border: 2px solid var(--primary_color);
      border-radius: 100%;
      color: var(--primary_color);
      background-color: transparent;
      
      @media only screen and (min-width: 768px) and (max-width: 991px) {
        display: none !important;
      }
      
      @media only screen and (min-width: 992px) and (max-width: 1199px) {
        display: none !important;
      }
      
      @media only screen and (max-width: 767px) {
        display: none !important;
      }
      
      &:hover {
        background: var(--primary_color);
        border-color: var(--primary_color) !important;
        transform: translateY(-50%) scale(1.2);
        color: white;
      }
      
      &::before {
        line-height: 1;
        opacity: 0.4;
        position: relative;
        top: -2px;
        transition: 0.5s;
        z-index: 2;
      }
      
      &.prev-arrow {
        left: 70px;
        
        @media only screen and (max-width: 767px) {
          left: 20px;
        }
      }
      
      &.next-arrow {
        right: 70px;
        
        @media only screen and (max-width: 767px) {
          right: 20px;
        }
      }
    }
    
    &:hover button.slick-arrow {
      opacity: 1;
    }
  }

  /* ============================================
     Tmp Title Split (Ocultar inicialmente)
     ============================================ */
  .tmp-title-split {
    opacity: 0;
  }
}

