/* ============================================
   Widget HR Hero Services - Estilos Scoped
   Todos los estilos están scoped bajo .hr-hero-services-widget
   ============================================ */

.hr-hero-services-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;
  
  a {
    text-decoration: none;
    transition: 0.3s;
    color: var(--primary_color_font);
  }
  
  img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
  }

  /* ============================================
     Slider HR Website Clip
     ============================================ */
  .slider-hr-website-clip {
    clip-path: polygon(0% 0%, 0% 0%, 11.499% 0%, 22.022% 0%, 31.809% 0%, 41.102% 0%, 50.142% 0%, 59.171% 0%, 68.43% 0%, 78.16% 0%, 88.603% 0%, 100% 0%, 100% 100%, 100% 100%, 86.685% 95.4%, 75.613% 91.823%, 66.218% 89.267%, 57.938% 87.734%, 50.205% 87.223%, 42.456% 87.734%, 34.126% 89.267%, 24.65% 91.823%, 13.463% 95.4%, 0% 100%, 0% 0%);
    
    @media only screen and (max-width: 575px) {
      clip-path: none;
    }
  }

  /* ============================================
     Slider HR Website Banner
     ============================================ */
  .slider-hr-website-banner {
    .inner {
      max-width: 40%;
      min-width: 500px;
      margin: auto;
      position: relative;
      margin-top: -100px;
      z-index: 1;
      word-wrap: break-word;
      overflow-wrap: break-word;
      
      @media only screen and (max-width: 991px) {
        margin-top: 0;
        min-width: auto;
      }
      
      @media only screen and (max-width: 767px) {
        max-width: 90%;
        min-width: auto;
      }
      
      &.no-radious {
        &::after {
          border-radius: 0;
          animation: none;
          height: 500px;
          border-radius: 6px;
        }
        
        &::before {
          border-radius: 0;
          animation: none;
          height: 645px;
          border-radius: 6px;
        }
      }
      
      &::after {
        content: "";
        border-radius: 50%;
        position: absolute;
        width: 700px;
        height: 700px;
        left: 50%;
        top: 40%;
        transform: translate(-50%, -50%);
        background: #fefefe;
        opacity: 1;
        z-index: -1;
        animation: pulse 8s ease-in-out infinite alternate;
        
        @media only screen and (max-width: 991px) {
          width: 600px;
          height: 600px;
        }
        
        @media only screen and (max-width: 575px) {
          animation: none;
          border-radius: 0;
        }
      }
      
      &::before {
        content: "";
        border-radius: 50%;
        position: absolute;
        width: 810px;
        height: 810px;
        left: 50%;
        top: 40%;
        transform: translate(-50%, -50%);
        background: #1b1b1c;
        opacity: 0.3;
        z-index: -1;
        animation: pulse 16s ease-in-out infinite alternate;
        backdrop-filter: blur(2px);
        
        @media only screen and (max-width: 991px) {
          width: 710px;
          height: 710px;
        }
        
        @media only screen and (max-width: 575px) {
          animation: none;
        }
      }
    }
    
    .btn-read-more {
      span {
        position: relative;
        color:var(--primary_color_font);
        display: inline-block;
        line-height: 35px;
        transition: 0.3s;
        
        &::after {
          content: "";
          position: absolute;
          bottom: 0;
          left: 0;
          height: 2px;
          background-color: rgba(255, 255, 255, 0.3);
          transition: 0.3s;
          width: 100%;
          bottom: 3px;
        }
        
        &::before {
          position: absolute;
          content: "";
          left: auto;
          bottom: 3px;
          background: var(--primary_color);
          width: 0;
          height: 2px;
          transition: 0.3s;
          right: 0;
        }
        
        i {
          margin-left: 7px;
        }
      }
      
      &:hover {
        span {
          color: var(--primary_color);
          
          &::before {
            width: 100%;
            left: 0;
            right: auto;
          }
        }
      }
    }
  }

  /* ============================================
     Height 950
     ============================================ */
  .height-950 {
    height: 1050px;
    display: flex;
    align-items: center;
    
    @media only screen and (min-width: 768px) and (max-width: 991px) {
      height: auto;
      padding: 150px 0;
    }
    
    @media only screen and (max-width: 767px) {
      height: auto;
      padding: 100px 0;
    }
  }

  /* ============================================
     Background Image
     ============================================ */
  .bg_image {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
  }

  .bg_image--27 {
    background-image: url(imagenes/bg-image-27.jpg);
  }

  /* ============================================
     Tmp Personal Portfolio Content
     ============================================ */
  .tmp-personal-portfolio-content {
    p.description {
     
      margin: auto;
      margin-bottom: 30px;
      color:var(--primary_color_font);
      
      @media only screen and (max-width: 991px) {
        max-width: 85%;
      }
      
      @media only screen and (max-width: 575px) {
        max-width: 100%;
      }
    }
  }

  /* ============================================
     Theme Gradient
     ============================================ */
  .theme-gradient {
    color: var(--primary_color);
  }

  /* ============================================
     Social Icon
     ============================================ */
  .social-icon {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .social-default {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    list-style: none;
    justify-content: center;
    margin: -8px;
    
    li {
      margin: 5px;
      
      a {
        width: 48px;
        background-color: #232324;
        height: 48px;
        line-height: 43px;
        text-align: center;
        display: inline-block;
        border-radius: 100%;
        transition: 0.3s;
        color: #fff;
        z-index: 2;
        position: relative;
        
        &::after {
          position: absolute;
          content: "";
          left: 0;
          top: 0;
          width: 100%;
          height: 100%;
          z-index: -1;
          background: var(--primary_color);
          transform: scale(0.5);
          opacity: 0;
          transition: 0.3s;
          border-radius: 100%;
        }
        
        &:hover {
          color: #fff;
          
          &::after {
            transform: scale(1);
            opacity: 1;
          }
        }
        
        i {
          vertical-align: middle;
        }
      }
    }
    
    &.transparent-with-border {
      li a {
        line-height: 40px;
        background: #f1f1f1;
        border: 1px solid rgba(157, 157, 255, 0.05);
        color: var(--primary_color_font);
        
        &:hover {
          border-color: transparent !important;
          border: none;
          color: #fff;
        }
        
        &::after {
          border: 1px solid var(--primary_color);
        }
      }
    }
  }

  /* ============================================
     Tmp Service Area
     ============================================ */
  .tmp-service-area {
    position: relative;
  }

  /* ============================================
     Service Wrapper - Colores de iconos por posición
     ============================================ */
  .service-wrapper > [class*="col"]:nth-child(1) .service.service__style--1 .icon {
    color: var(--primary_color);
  }

  .service-wrapper > [class*="col"]:nth-child(2) .service.service__style--1 .icon {
    color: var(--secondary_color);
  }

  .service-wrapper > [class*="col"]:nth-child(3) .service.service__style--1 .icon {
    color: var(--third_color);
  }

  .service-wrapper > [class*="col"]:nth-child(4) .service.service__style--1 .icon {
    color: var(--primary_color);
  }

  /* ============================================
     Service Style 1
     ============================================ */
  .service.service__style--1 {
    padding: 30px 26px;
    transition: transform 0.65s cubic-bezier(0.05, 0.2, 0.1, 1), box-shadow 0.65s cubic-bezier(0.05, 0.2, 0.1, 1);
    position: relative;
    z-index: 2;
    height: 100%;
    
    @media only screen and (min-width: 1200px) and (max-width: 1599px) {
      padding: 30px 28px;
    }
    
    @media only screen and (min-width: 768px) and (max-width: 991px) {
      padding: 30px 25px;
    }
    
    @media only screen and (max-width: 767px) {
      padding: 30px 14px;
    }
    
    .icon {
      font-size: 45px;
      font-weight: 400;
      margin-bottom: 23px;
      color: var(--primary_color);
      text-align: center;
      border-radius: 100%;
      display: flex;
      justify-content: center;
      
      @media only screen and (min-width: 768px) and (max-width: 991px) {
        margin-bottom: 11px;
      }
      
      img {
        max-height: 60px;
      }
    }
    
    .content {
      .title {
        margin-bottom: 19px;
        font-size: 24px;
        color: var(--primary_color_font);
        font-family: var(--primary_font);
        
        @media only screen and (min-width: 768px) and (max-width: 991px) {
          margin-bottom: 8px;
        }
        
        @media only screen and (max-width: 767px) {
          font-size: 20px;
        }
        
        a {
          color: inherit;
          
          &:hover {
            color: var(--primary_color);
          }
        }
      }
      
      .description {
        font-size: 16px;
        line-height: 1.75;
        color: var(--primary_color_font);
        margin-bottom: 0;
      }
      
      .discover-btn {
        text-align: center;
        display: flex;
        justify-content: center;
      }
    }
    
    .shape-service-1 {
      position: absolute;
      right: 15px;
      top: 15px;
      z-index: 1;
      max-width: 150px;
      margin: auto;
      opacity: 0;
      
      img {
        width: 100%;
      }
    }
    
    &:hover {
      transform: translateY(-5px);
      
      .shape-service-1 {
        opacity: 0.3;
        
        img {
          animation: moveOut 0.4s linear;
        }
      }
    }
    
    &.tmp-border-none {
      border: none;
    }
  }
  
  .service-narrow {
    .shape-service-1 {
      max-width: 100px !important;
    }
  }

  /* ============================================
     Tmp On Hover
     ============================================ */
  .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;
    }
    
    .tmp-btn {
      position: relative;
      z-index: 3;
    }
  }

  /* ============================================
     Background Color Card
     ============================================ */
  .bg-color-card {
      background: #fefefe !important;
  }

  /* ============================================
     Radius
     ============================================ */
  .radius {
    border-radius: var(--general_border_radius);
  }

  /* ============================================
     Text Center
     ============================================ */
  .text-center {
    text-align: center;
  }

  /* ============================================
     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: inline-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-small {
      height: 44px;
      line-height: 40px;
      padding: 0 20px;
      font-size: 14px;
      font-weight: 500;
    }

    &.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;
      }
    }
    
    /* Hover Icon Reverse */
    &.hover-icon-reverse {
      .icon-reverse-wrapper {
        display: flex;
        align-items: center;
        justify-content: center;
      }
      
      .btn-text {
        display: inline-block;
        transition: transform 0.6s 0.125s cubic-bezier(0.1, 0.75, 0.25, 1);
        margin-inline-start: -23px;
        line-height: 1!important;
      }
      
      .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);
        
        & + .btn-icon {
          margin-inline-end: 0;
          margin-inline-start: 8px;
          display: inline-block;
          margin-inline-start: 0;
          margin-inline-end: 0;
          opacity: 0;
          transform: translateX(-10px);
          transition-delay: 0s;
          order: -2;
          
          i {
            padding-left: 0;
            padding-right: 6px;
          }
        }
      }
      
      &:hover {
        .btn-text {
          transition-delay: 0.1s;
          transform: translateX(23px);
        }
        
        .btn-icon {
          opacity: 0;
          transition-delay: 0s;
          transform: translateX(10px);
          
          & + .btn-icon {
            opacity: 1;
            transform: translateX(0);
            transition-delay: 0.225s;
          }
        }
      }
    }
    
    &:hover {
      background-color: var(--secondary_color);
      color: #fff;
      transform: translate3d(0, -2px, 0);
    }
  }

  /* ============================================
     Font Weight Utilities
     ============================================ */
  .w-600 {
    font-weight: 600 !important;
  }

  .w-700 {
    font-weight: 700 !important;
  }

  /* ============================================
     Tmp Title Split (inicialmente oculto)
     ============================================ */
  .tmp-title-split {
    opacity: 0;
    visibility: hidden;
    color:var(--primary_color_font);
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    
    &.tmp-title-split {
      display: block;
      width: 100%;
    }
  }

  /* ============================================
     Margin Utilities
     ============================================ */
  .mt-dec-250 {
    margin-top: -250px;
    
    @media only screen and (max-width: 991px) {
      margin-top: 0px;
    }
  }

  .mt--10 {
    margin-top: 10px;
  }

  .mt--20 {
    margin-top: 20px;
  }

  .mt--40 {
    margin-top: 40px;
  }

  .mt_md--20 {
    @media only screen and (min-width: 768px) and (max-width: 991px) {
      margin-top: 20px !important;
    }
  }

  .mt_sm--20 {
    @media only screen and (max-width: 767px) {
      margin-top: 20px !important;
    }
  }

  .mb--0 {
    margin-bottom: 0;
  }

  /* ============================================
     Títulos
     ============================================ */
  h1 {
    font-size: 50px;
    line-height: 1.19;
    font-weight: 700;
    color: #fff;
    margin: 0 0 20px;
    font-family: var(--primary_font);
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    
    @media only screen and (min-width: 768px) and (max-width: 991px) {
      font-size: 38px;
    }
    
    @media only screen and (max-width: 767px) {
      font-size: 34px;
      margin-bottom: 20px;
    }
  }

  h4 {
    font-size: 24px;
    line-height: 1.25;
    font-weight: 600;
    color: var(--primary_color_font);
    margin: 0 0 15px;
    font-family: var(--primary_font);
    
    @media only screen and (min-width: 768px) and (max-width: 991px) {
      font-size: 24px;
    }
    
    @media only screen and (max-width: 767px) {
      font-size: 20px;
    }
  }

  p {
    font-size: 16px;
    line-height: 1.75;
    font-weight: 400;
    color: var(--primary_color_font);
    margin: 0 0 20px;
    font-family: var(--primary_font);
  }
}

/* Keyframes DEBEN estar fuera del scope */
@keyframes pulse {
  0% {
    transform: translate(-50%, -50%) scale(0.9);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
  }
  100% {
    transform: translate(-50%, -50%) scale(0.9);
  }
}

@keyframes moveOut {
  0% {
    -webkit-clip-path: polygon(50% 50%, 50% 50%, 50% 50%, 50% 50%);
    clip-path: polygon(50% 50%, 50% 50%, 50% 50%, 50% 50%);
  }
  100% {
    -webkit-clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
}

