


    :root {
      --primary-color: #273067;
      --secondary-color: #42AFE5;
      --secondary-t-color: hsla(200, 76%, 58%, 0.35);
      --tertiary-color: #F57C00;
      --black-color: #333;
      --gray-color: #666;
      --light-gray-color: #e0e0e0;
      --white-color: #fff;
      --border-blue-color: #18428E;
      --green-color: #388E3C;
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      background-color: var(--light-gray-color);
      padding: 20px;
       font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
       

    }

    .step-icon.active
    {
      background-color: var(--secondary-color);
      color: var(--white-color);
    }

    .tracking-container {
      max-width: 976px;
      margin: 0 auto;
      display: flex;
      flex-direction: column;
       justify-content: center;
        justify-content: space-between;
        height: 95vh;
    }

    .search-box-general {
      background-color: var(--primary-color);
      padding: 5px;
      max-width: 976px;
      border-radius: 8px;
      height: auto;
      color: var(--white-color);
      margin-bottom: 20px;

      @media (width >= 1024px){
        padding: 20px;
        height: 250px;
         
      }
    }
    .search-box
    {
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      align-items: center;
      height: 100%;
      padding: 20px;
      width: 100%;
    }

    .search-box h1 {
      font-size: 20px;
      /* margin-bottom: 10px; */
    }

    .search-form {
      background-color: rgba(255, 255, 255, 0.1);
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      align-items: center;
      color: var(--white-color);
      height:44px ;
      border-radius: 15px;
      gap: 10px;

      @media (width >= 768px){
        width: 488px;
        flex-direction: row;
         
      }
    }

    .search-input-container
    {
      display: flex;
      height: 100%;
      min-height: 100%;
      align-items: center;
      
      input
      { 
        margin-left: 5px;
        @media (width >= 768px){
           margin-left: 20px;
        }
      }

    }

    .search-icon {
      width: 20px;
      margin-left: 10px;
      height: 20px;
      color: var(--white-color);
      fill: var(--white-color);

      @media (width >= 768px){
      margin-left: 20px;
         
      }
    }

    /* .search-input-box
    {
      padding-block:4px;
    } */

   .search-input {
    flex: 1;
    font-family: 'Poppins';
    padding: 8px 12px;
    border: none; 
    outline: none; 
    width: 90%;
    height: 21px;
    color: var(--white-color);
    background-color: transparent;

    @media (min-width: 768px) { 
        width: 208px;
    }
}


    .search-button {
      background-color: var(--secondary-color);
      padding: 8px 20px;
      color:var(--white-color);
      font-weight: 700;
      font-size: 14px;
      margin: 2px;
      width: 159px;
      height: 36px;
      border: none;
      border-radius: 20px;
      cursor: pointer;
    }

    .details-box {
      background-color: var(--white-color);
      box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
      border-bottom: 4px solid var(--border-blue-color);
      padding: 30px;
      border-radius: 8px;
      margin-bottom: 20px;

      @media (width >= 1024px){
        height: 265px;
        width: 976px;
      }
     
     
    }

    .status-header {
      display: flex;
      justify-content: space-between;
      margin-bottom: 10px;
    }

    .status-label {
      background-color: var(--white-color);
      font-size: 11px;
      font-family: 'Poppins';
      line-height: 18px;
      font-weight: 600;
      border-radius: 15px;
      border-radius: 15px;
      width: 108px;
      height: auto;

      @media (width >= 768px){
         
      height: 26px;
      }

    }

    #updatesList
    {
      margin-top: 20px;
      
    }

    .details-grid {
      /* height: 100%; */
      display: grid;
       row-gap:10px;


      @media (width >= 768px){
        grid-template-columns: repeat(auto-fit, minmax(50%, 1fr));
        /* display: grid; */
      }

      @media (width >= 1024px){
        grid-template-columns: repeat(auto-fit, minmax(33%, 1fr));
         
      }
    }

    .detail-item {
      position: relative;
     display: flex;
      gap: 1px;
      font-size: 14px;
      font-weight: 600;

      /* line-height: 21px; */

      .detail-label {
        position: relative;
        color: var(--black-color);
         display: inline-block;
        
      }

 .detail-value {
    display: inline-block;
    max-width: 150px;
    font-weight: 600;
    color: var(--gray-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}

.detail-value:hover {
    overflow: visible;
}

.detail-value:hover::after {
    content: attr(data-full-text);
    position: fixed;  
    top: auto;
    left: 50%;      
    transform: translateX(-50%); 
    z-index: 1000;
    background: var(--white-color);
    color: var(--primary-color);
    padding: 10px;
    border: 1px solid var(--gray-color);
    border-radius: 5px;
    white-space: normal;
    max-width: 300px;
    width: max-content;
    word-wrap: break-word;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

    
    


    }

    .progress-tracker {
      display: flex;
      justify-content: space-between;
      margin: 40px 0;
      position: relative;
    }

    .progress-step {
      text-align: center;
      flex: 1;
    }

    .step-icon {
      width: 40px;
      height: 40px;
      background-color: var(--light-gray-color);
      border-radius: 50%;
      margin: 0 auto 10px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .step-icon.active {
      background-color: var(--secondary-color);
      color: var(--white-color);
    }

    .progress-line {
      position: absolute;
      top: 20px;
      left: 50px;
      right: 50px;
      height: 2px;
      background-color: var(--light-gray-color);
      z-index: -1;
    }

    .updates-box {
      background-color: var(--white-color);
      padding: 20px;
      border-radius: 8px;
      border-bottom: 4px solid var(--border-blue-color);
      box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    }

    .update-item {
      margin-bottom: 15px;
      display:flex;
      padding-bottom: 15px;
      position: relative;
      /* border-bottom: 1px solid var(--light-gray-color); */

      @media (width >= 768px){    
        position: relative;
        padding-bottom: 20px;
         gap: 15px;
      }
    }

    .section-update-title
    {
      display: flex;
    }

    

    .update-content {
      flex: 1;
    }

    .update-title {
      font-size: 14px;
      margin-bottom: 5px;
    }

  

    .search-text
    {
      display: block;
      
      /* padding-inline: 50px; */
      height: auto;
      margin-block: 15px;
      font-size: 14px;
      line-height: 24px;
      font-weight: 400;
      text-align: center;

      @media (width >= 768px){
       width: 810px;
       font-size: 16px;
      height: 48px;
    
      }
    
    }

    .entregado
    {
      border: 1px solid var(--green-color);
      color: var(--green-color);
    }
    
    .transito
    {
      border: 1px solid var(--tertiary-color);
      color:var(--tertiary-color);
    }

    .search-title
    {
      font-size: 16px;
      width: 212px;
      font-size: 20px;
      font-weight: 600 ;
      text-align: center;
      line-height: 30px;

      @media (width >= 768px){
      height: 30px;
      }
    }


    /* no data*/
    .details-no-data
    {
      text-align: center;
    }




    /* trackingDetails */

    /*photos-file */
    .photos-file {
      display: none;
      flex-wrap: wrap;
      gap: 10px;
      margin-top: 20px;
      justify-content: end;
    }

    /* btn-see-signature */
    .btn-see-signature {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 10px;
      padding: 10px 20px;
    
      color: var(--black-color);
      border: none;
      border-radius: 20px;
      cursor: pointer;
      font-weight: 600;
      font-size: 14px;
    }

    /* signature-box */
    .signature-box
    {
      display:none;
      justify-content: end;
      align-items: center;
      margin-top: 20px;
    }

    /* loader signature */
    .signature-loader {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray-color);
}

.signature-loader::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-color);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

    .signature-error {
        color: var(--error-color, var(--tertiary-color));
        padding: 10px;
        font-weight: bold;
        text-align: center;
    }

    @keyframes spin {
        to {
            transform: rotate(360deg);
        }
    }


    /* btn-photo-file */
    .btn-photo-file {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 10px;
      padding: 10px 20px;
      background-color: var(--secondary-color);
      color: var(--white-color);
      border: none;
      border-radius: 20px;
      cursor: pointer;
      font-weight: 600;
      font-size: 14px;
    }

   /* footer*/
    footer {
      display: flex;
      flex-direction: column;
      text-align: left;
      /* justify-content: start; */
      align-items: center;
      margin-top: 40px;
      font-size: 14px;
      font-weight: 400;
      gap: 10px;

      @media (width >= 768px){
      width: 503px;
      align-items: start;
         
      }
    }

    .footer-icons
    {
      width: 100%;
      display: flex;
      flex-direction: column;

      @media (width >= 768px){
      flex-direction: row;
      justify-content: space-between;
      align-items: center;
      }
    }

    .social-links {
      display: flex;
      justify-content: center;
      gap: 15px;
      margin-top: 10px;
    }




.update-icon {
    position: relative;
    width: 24px;
    height: 24px;
    background-color: #9DB2E1;
    border-radius: 50%;
    margin-right: 15px;
    flex-shrink: 0;


}

/* Flecha dentro del círculo */
.update-icon::before {
    content: '';
  position: absolute;
  top: 50%;
  left: 55%;
  transform: translate(-65%, -50%) rotate(-58deg);
  width: 10px;
  height: 4px;
  border-left: 2px solid var(--white-color);
  border-bottom: 4px solid var(--white-color);
 
}

/* Línea vertical conectora */
.update-icon::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 24px;
    bottom: -80px;
    width: 2px;
    background-image: linear-gradient(
        to bottom,
        var(--light-gray-color) 50%,
        transparent 50%
    );
    background-size: 2px 8px;
    /* transform: translateX(2%); */
     /* transform: translateX(-50%); */
}


.update-item:last-child .update-icon::after {
    display: none;
}

.update-content {
    flex: 1;
}

.update-title {
    font-weight: 500;
    color: var(--black-color);
    font-weight: bold;
    margin-bottom: 4px;
}

.update-time {
    position: absolute;
    color: var(--black-color);
    font-size: 0.9em;
        right: 0;
        bottom: -1px;

    @media (width >= 768px){
       right: 0;
        top: 0;
    }
}

.update-description {
    color: var(--gray-color);
    font-size: 0.9em;
}





/* list news top */


.list-news-visual {
    max-height: 300px; 
    overflow-y: auto;
    padding-right: 10px;
    scrollbar-width: none;
    scrollbar-color: var(--secondary-t-color) var(--light-gray-color);
}

.list-news-visual::-webkit-scrollbar {
    width: 6px;
}

.list-news-visual::-webkit-scrollbar-track {
    background: var(--white-color);
    border-radius: 10px;
}

.list-news-visual::-webkit-scrollbar-thumb {
    background: #9DB2E1;
    border-radius: 10px;
}

.news-item {
    display: flex;
    padding: 15px 0;
    animation: slideIn 0.1s ease-out forwards;
    opacity: 0;

    .news-description{
      font-weight: 600;
      font-size: 16px;
    }
}

.updates-container {
    display: block;
    padding: 40px;
    overflow: hidden;
}


 .news-icon
  {
    width: 60px;
    height: 60px;
    /* background-color:var(--secondary-t-color); */
    border-radius:30px;
    margin-right: 15px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
      flex-shrink: 0;
    margin-right: 15px;
    

  }

  .step-icon-active
{
  background-color: var(--secondary-t-color);
  color: var(--white-color);

}

.step-icon-no-active
{
  background-color: var(--light-gray-color);
  color : var(--black-color);
}

.list-news-visual {
    display: block;
    position: relative;
    margin-bottom: 50px;
    
    @media (width >= 678px) {
        display: flex;
        gap: 20px;
        overflow-x: auto;
        width: 100%;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
      
        -webkit-mask-image: linear-gradient(
            to right,
            var(--black-color) calc(100% - 100px),
            transparent
        );
        mask-image: linear-gradient(
            to right,
            var(--black-color) calc(100% - 100px),
            transparent
        );

        &:hover {
            -webkit-mask-image: none;
            mask-image: none;
        }

        &::-webkit-scrollbar {
            height: 4px;
        }

        &::-webkit-scrollbar-track {
            background: var(--white-color);
            border-radius: 10px;
        }

        &::-webkit-scrollbar-thumb {
            background: var(--secondary-t-color);
            border-radius: 10px;
        }
    }


    .news-item {
        position: relative;
        scroll-snap-align: center;
    }

    .news-item:not(:last-child)::after {

      @media (width >= 768px){
        content: '';
        position: absolute;
        top: 34%;
        right: -59px;
        height: 4px;
        border-radius: 30px;
        width: 148px;
        background-color: var(--line-color, var(--secondary-t-color));
          transform: translateY(-50%);
      }
    }
}

.news-item {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    align-items: center;
    opacity: 0;
    animation: slideIn 0.1s ease-out forwards;
    
    @media (width >= 768px) {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        flex: 0 0 calc(33.333% - 14px);
        scroll-snap-align: start;
        min-width: 250px;
        transition: transform 0.3s ease;

        &:hover {
            transform: translateY(-5px);
        }
    }
}

/* Resto de tus estilos existentes para news-icon, content, etc. */

@keyframes slideIn {
    from {
        transform: translateX(50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Animación de scroll automático */
@keyframes scrollNews {
    0% {   
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-33.333% * (var(--total-items) - 3)));
    }
}

/* Indicador de más contenido */
.scroll-indicator-right {
    display: none;
    
    @media (width >= 768px) {
        display: block;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        background: linear-gradient(to right, transparent, var(--white-color) 50%, var(--white-color));
        pointer-events: none;
        opacity: 0.8;
    }
}

.search-input-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-radio-group {
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
}

.custom-radio {
  position: relative;
  padding-left: 30px;
  cursor: pointer;
  font-size: 16px;
  color: white;
  user-select: none;
}

.custom-radio input[type="radio"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.custom-radio .radio-btn {
  position: absolute;
  left: 0;
  top: 2px;
  height: 18px;
  width: 18px;
  background-color: transparent;
  border: 2px solid white;
  border-radius: 50%;
  transition: background-color 0.3s, border 0.3s;
}

.custom-radio input[type="radio"]:checked ~ .radio-btn {
  background-color: #4EC6E0;
  border-color: #4EC6E0;
}

.custom-radio .radio-btn::after {
  content: "";
  position: absolute;
  display: none;
}

.custom-radio input[type="radio"]:checked ~ .radio-btn::after {
  display: block;
}

.custom-radio .radio-btn::after {
  top: 4px;
  left: 4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: white;
}
