/* ============================================
   Widget Counter - Estilos Scoped
   Todos los estilos están scoped bajo .counter-widget
   ============================================ */

.counter-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;
  }

  /* Section wrapper - padding consistente (contenido central) */
  > .tmp-counterup-area {
    padding-top: 100px !important;
    padding-bottom: 100px !important;
  }
  @media only screen and (min-width: 768px) and (max-width: 991px) {
    > .tmp-counterup-area {
      padding-top: 80px !important;
      padding-bottom: 80px !important;
    }
  }
  @media only screen and (max-width: 767px) {
    > .tmp-counterup-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 de Título de Sección (tmp-section-title-border)
     ============================================ */
  
  .tmp-section-title-border .subtitle {
    display: flex;
    color: var(--primary_color);
    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) {
    .tmp-section-title-border .subtitle {
      flex-wrap: wrap;
      justify-content: center;
    }
  }
  
  .tmp-section-title-border .subtitle .subtitle-text {
    color: var(--secondary_color_font);
    font-weight: 700;
    width: max-content;
  }
  
  .tmp-section-title-border .subtitle .number {
    color: var(--primary_color);
    transition: 0.5s;
    opacity: 0.6;
  }
  
  .tmp-section-title-border .title {
    margin-top: 20px;
    color: #1b1b1c;
    font-family: var(--primary_font);
    word-break: break-word;
    line-height: 1.4074;
    margin: 20px 0 20px;
  }
  
  .tmp-section-title-border .title h2,
  .tmp-section-title-border h2.title {
    font-size: 48px;
    line-height: 1.2;
    font-weight: 700;
    margin: 20px 0 20px;
  }
  
  /* Ocultar inicialmente los títulos con animación tmp-title-split */
  .tmp-section-title-border .title.tmp-title-split,
  .tmp-section-title-border h2.tmp-title-split,
  .tmp-section-title-border h1.tmp-title-split {
    opacity: 0;
  }
  
  @media only screen and (max-width: 991px) {
    .tmp-section-title-border .title h2,
    .tmp-section-title-border h2.title {
      font-size: 36px;
    }
  }
  
  @media only screen and (max-width: 767px) {
    .tmp-section-title-border .title h2,
    .tmp-section-title-border h2.title {
      font-size: 28px;
    }
  }
  
  /* ============================================
     Estilos de Line Separator (pres-line-separator-wrapper)
     ============================================ */
  
  .line-separator {
    position: relative;
    background-image: linear-gradient(90deg, var(--primary_color), rgba(33, 38, 45, 0));
    width: 50px;
    height: 1px;
    left: 0%;
    top: 0%;
    right: 0%;
    bottom: auto;
  }
  
  .line-separator.line-left {
    background-image: linear-gradient(90deg, rgba(33, 38, 45, 0), var(--primary_color));
  }
  
  .pres-line-separator-wrapper {
    display: flex;
    position: relative;
    align-items: center;
    margin: 0 -15px;
    justify-content: center;
  }
  
  .pres-line-separator-wrapper.text-center {
    justify-content: center !important;
  }
  
  @media only screen and (max-width: 767px) {
    .pres-line-separator-wrapper {
      flex-wrap: wrap;
      justify-content: center;
    }
    
    .pres-line-separator-wrapper .line-separator {
      display: none;
    }
  }
  
  /* ============================================
     Estilos tmp-card
     ============================================ */
  
  .tmp-card {
    overflow: hidden;
    position: relative;
    transition: var(--transition, 0.3s);
  }
  
  .tmp-card:hover {
    transform: translateY(-4px);
  }
  
  /* ============================================
     Estilos count-box
     ============================================ */
  
  .count-box {
    position: relative;
    height: 100%;
  }
  
  /* ============================================
     Estilos counter-style-4
     ============================================ */
  
  .counter-style-4 {
    margin-top: 30px;
    border: 1px dashed rgba(157, 157, 255, 0.2);
    height: 250px;
    width: 350px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin: -25px;
  }
  
  @media only screen and (min-width: 992px) and (max-width: 1199px) {
    .counter-style-4 {
      height: 200px;
      width: 200px;
      margin: 0px auto;
    }
  }
  
  @media only screen and (min-width: 768px) and (max-width: 991px) {
    .counter-style-4 {
      height: 200px;
      width: 200px;
      margin: 0px auto;
    }
  }
  
  @media only screen and (max-width: 767px) {
    .counter-style-4 {
      height: 200px;
      width: 200px;
      margin: 0px auto;
    }
  }
  
  .counter-style-4 .counter-title {
    margin-top: 22px;
    font-weight: 400;
    font-size: 24px;
    color: #363636;
  }
  
  @media only screen and (min-width: 992px) and (max-width: 1199px) {
    .counter-style-4 .counter-title {
      font-size: 15px;
    }
  }
  
  @media only screen and (min-width: 768px) and (max-width: 991px) {
    .counter-style-4 .counter-title {
      font-size: 15px;
    }
  }
  
  @media only screen and (max-width: 767px) {
    .counter-style-4 .counter-title {
      font-size: 15px;
    }
  }
  
  .counter-style-4 .count-number {
    font-size: 44px;
    line-height: 1.2;
    font-weight: 700;
    color: #1b1b1c;
    display: inline-block;
    position: relative;
  }
  
  .counter-style-4 .count-number span {
    display: inline-block;
  }
  
  .counter-style-4:hover .right-hover-counter {
    filter: blur(50px);
    height: 50px;
    width: 50px;
  }
  
  .counter-style-4:hover .left-hover-counter {
    filter: blur(0);
    height: 20px;
    width: 20px;
    opacity: 1;
    filter: blur(50px);
    height: 50px;
    width: 50px;
  }
  
  .counter-style-4.without-border {
    border: none;
    margin: 0;
    background-color: #ffffff;
    width: 100%;
    border-radius: 5px;
    padding: 22px 18px;
    height: auto;
  }
  
  @media only screen and (max-width: 1199px) {
    .counter-style-4.without-border {
      padding: 22px 18px;
    }
  }
  
  /* ============================================
     Estilos left-hover-counter y right-hover-counter
     ============================================ */
  
  .left-hover-counter {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 50px;
    width: 50px;
    background: var(--primary_color);
    z-index: 1;
    transition: 0.3s;
    border-top-right-radius: 50%;
    filter: blur(40px);
    opacity: 0;
  }
  
  .right-hover-counter {
    position: absolute;
    right: 0;
    bottom: 0;
    height: 50px;
    width: 50px;
    background: var(--primary_color);
    z-index: 1;
    transition: 0.3s;
    border-top-left-radius: 50%;
    filter: blur(0);
    height: 20px;
    width: 20px;
  }
  
  /* ============================================
     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: var(--general_border_radius);
    z-index: 1;
  }
  
  .tmponhover:hover::before {
    opacity: 1;
  }
  
  .tmponhover::after {
    content: "";
    position: absolute;
    inset: 2px;
    background: #ffffff;
    border-radius: var(--general_border_radius);
    z-index: 1;
  }
  
  .tmponhover > * {
    z-index: 2;
   
  }
  
  /* ============================================
     Estilos odometer
     ============================================ */
  
  .odometer {
    color: var(--primary_color);
    margin: 0 3px;
    font-weight: 600;
  }
  
  /* ============================================
     Utilidades
     ============================================ */
  
  .mt--20 {
    margin-top: 20px !important;
  }
  
  .mb--10 {
    margin-bottom: 10px !important;
  }
  
  .w-700 {
    font-weight: 700 !important;
  }
  
  .text-center {
    text-align: center;
  }
  
  h5 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.2;
  }
}

