.ruta-plugin-wrap * {
    box-sizing: border-box;
}

.ruta-plugin-container {
    max-width: 100%;
    margin: auto;
}

.ruta-dias-selector {
    display: flex;
    overflow: hidden;
    width: 100%;
    justify-content: center;
    gap: 5px;
}

.ruta-dia-tab {
    flex: 0 0 calc(100% / 7 - 10px);
    margin: 2px;
    padding: 10px 5px;
    background: #f9f9f9;
    border: 0.7px solid #111827d9;
    border-radius: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #111;
    gap: 5px;
    transition: background 0.3s ease, color 0.3s ease;
    max-width: 50px;
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
    -webkit-focus-ring-color: transparent;
}

.ruta-dia-tab.activo {
    background-color: #002132;
    color: #fff;
    border-color: #002132;
}

.ruta-dia-texto {
    font-size: 0.8rem;
    font-weight: 300;
}

.ruta-dia-numero {
    font-size: 0.95rem;
    font-weight: 500;
}

.ruta-dia-circulo {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    margin-top: 6px;
    background-color: gray;
    margin-bottom: 3px;
}

.ruta-dia-circulo.verde {
    background: #09757A;
}

.ruta-dia-circulo.naranja {
    background: #f9a825;
}

.ruta-dia-circulo.transparente {
    background-color: transparent;
}

.ruta-actividades-container {
    margin-top: -5px;
}

.ruta-card-wrap {
    display: flex;
    flex-direction: column;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
    transition: box-shadow 0.3s ease;
    margin-bottom: 15px;
}

.ruta-card-wrap:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ruta-card-sesion {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-radius: 10px;
  background: #fff;
}

.ruta-card-link {
  text-decoration: none;
  color: inherit;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ruta-card-check {
  cursor: pointer;
  padding-left: 0;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

.ruta-card-check img {
  width: 22px;
  height: 22px;

}
      
.ruta-card-header {
    font-size: 0.85rem;
    font-weight: 500;
    color: #111;
}

.ruta-card-estado {
    font-size: 0.65rem;
    font-weight: 400;
    color: #999;
    margin-top: 4px;
}

.ruta-card-arrow {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #111;
}

.ruta-dias-header {
    display: flex;
    justify-content: center;
    margin-bottom: 2px;
    align-items: center;
}

.ruta-dias-titulo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.90rem;
    font-weight: 600;
    color: #002132;
}

.estado-actualizando {
  color: #f9a825 !important;
  font-weight: bold;
}
      
.ruta-dia-prev,
.ruta-dia-next {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #002132;
    padding: 6px 10px;
    font-weight: bold;
    transition: opacity 0.3s ease, transform 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    user-select: none;
    margin-top: -6px;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.ruta-dia-prev:hover,
.ruta-dia-next:hover {
    transform: scale(1.2);
    color: #002132;
}

.ruta-dia-prev.hidden,
.ruta-dia-next.hidden {
    opacity: 0;
    pointer-events: none;
}
.ruta-texto-extra {
    text-align: center;
    margin-top: 30px;
    font-style: italic;
    color: #555;
    font-size: 0.75rem;
    line-height: 1.2rem;
}

.btn-completar-practica {
    width: 100%;
    padding: 10px;
    /*background: #002132;*/
    background: #e5e5e5;
    color: black;
    border: none;
    border-radius: 0 0 10px 10px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
    font-weight: 400 !important;
    font-size: 85%;
}

.btn-completar-practica:hover {
    background: #818181fc;
    color: white;
}

.ruta-card-wrap.completado {
    border-color: #09757A;
        background-color: #D0E8E9;

}

.ruta-card-wrap.completado .ruta-card-header,
.ruta-card-wrap.completado .ruta-card-estado {
    color: #09757A;
}

      .btn-completar-practica.completado {
    background: #004F59;
          color: white;
}
 .texto-extra-post {
    text-align: left;
    color: #111;
    font-style: normal;
     margin-left: 5px;
    font-size: 0.8rem;
}


/* Responsive ajustes */
@media (min-width: 768px) {
    .ruta-plugin-container {
        max-width: 700px;
    }
    .ruta-dia-tab {
        width: 50px;
        padding: 12px 14px;
        margin-right: 4px;
        max-width: 50px;
    }
    .ruta-dia-texto {
        font-size: 12px;
    }
    .ruta-dia-numero {
        font-size: 22px;
    }
    .ruta-dia-circulo {
        width: 6px;
        height: 6px;
    }
    .ruta-card-icon img {
        width: 48px;
        height: 48px;
    }
    .ruta-card-sesion {
        padding: 18px 24px;
    }
    .ruta-card-header {
        font-size: 1rem;
    }
    .ruta-card-estado {
        font-size: 0.8rem;
    }
    .ruta-card-arrow {
        font-size: 24px;
    }
    .ruta-dias-titulo {
        font-size: 100%;
    }
    .ruta-dias-header {
    gap: 2rem;
    }
    .ruta-dias-titulo {
    font-size: 1rem;
    }
    .ruta-dia-prev,
.ruta-dia-next {
    margin-top: -8px;
    }
    .ruta-dia-circulo {
    width: 5px;
    height: 5px;
    margin-bottom: 4px;
    }

}

@media (min-width: 1024px) {
    .ruta-plugin-container {
        max-width: 900px;
    }

    .ruta-dia-tab {
        width: 70px;
    }

    .ruta-card-header {
        font-size: 1.1rem;
    }

    .ruta-card-estado {
        font-size: 0.9rem;
    }

    .ruta-card-arrow {
        font-size: 26px;
    }

    .ruta-card-wrap {
        gap: 0;
    }
    .ruta-dias-titulo {
        font-size: 1.2rem;

}
    .ruta-actividades-container {
        margin-top: 0px;
}
    .ruta-dia-circulo {
        width: 6px;
        height: 6px;
        margin-bottom: 5px;
}
    
    .ruta-dias-header {
        margin-bottom: 6px;
    }
    
    .ruta-texto-extra {
        font-size: 1rem;
        line-height: 1.5rem;
    }
     .texto-extra-post {
     text-align: center;
     font-size: 1.1rem;

}
}