/*Estilos para videos*/
.video-card {
background: #fff;
border-radius: 12px;
padding: 1.5rem;
box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
transform: translateY(-5px);
box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
}

.video-info h5 {
color: var(--heading-color);
font-weight: 600;
margin-bottom: 0.5rem;
}

.video-info h5 i {
color: var(--accent-color);
margin-right: 0.5rem;
}

/*Estilos para barra de progreso*/
.progress-card {
background: #fff;
border-radius: 12px;
padding: 1.5rem;
box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
margin-bottom: 2rem;
/* Sticky positioning */
position: sticky;
top: 80px; /* Ajustar según la altura del header */
z-index: 10; /* Por encima del contenido pero debajo de modales */
transition: all 0.3s ease;
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
}

/* Efecto cuando está pegado (sticky) */
.progress-card.sticky-active {
box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
border-top: 3px solid var(--accent-color);
padding-top: 1.25rem;
padding-bottom: 1.25rem;
}

/* Ajustes para móviles */
@media (max-width: 768px) {
.progress-card {
  top: 70px; /* Menor espacio en móviles */
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.progress-card.sticky-active {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
}

/* Ajuste para tablets */
@media (min-width: 769px) and (max-width: 991px) {
.progress-card {
  top: 75px;
}
}

.progress-info h5 {
color: var(--heading-color);
font-weight: 600;
margin: 0;
}

.progress-info h5 i {
color: var(--accent-color);
margin-right: 0.5rem;
}

.progress-percentage {
text-align: right;
}

.percentage-value {
font-size: 2rem;
font-weight: 700;
color: var(--accent-color);
transition: all 0.3s ease;
}

.progress {
border-radius: 12px;
overflow: hidden;
background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
}

.progress-bar {
background: linear-gradient(90deg, var(--accent-color), color-mix(in srgb, var(--accent-color), transparent 20%));
transition: width 0.6s ease;
display: flex;
align-items: center;
justify-content: center;
color: #fff;
font-weight: 600;
font-size: 0.9rem;
}

.progress-text {
padding: 0 0.5rem;
}

/*Estilos para checklist tipo To Do*/
.checklist-wrapper {
max-width: 100%;
}

.todo-item {
margin-bottom: 1.25rem;
animation: slideInRight 0.5s ease;
animation-fill-mode: both;
}

.todo-item:nth-child(1) { animation-delay: 0.1s; }
.todo-item:nth-child(2) { animation-delay: 0.2s; }
.todo-item:nth-child(3) { animation-delay: 0.3s; }
.todo-item:nth-child(4) { animation-delay: 0.4s; }
.todo-item:nth-child(5) { animation-delay: 0.5s; }
.todo-item:nth-child(6) { animation-delay: 0.6s; }

@keyframes slideInRight {
from {
    opacity: 0;
    transform: translateX(-30px);
}
to {
    opacity: 1;
    transform: translateX(0);
}
}

.todo-card {
background: #fff;
border-radius: 12px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
overflow: hidden;
transition: all 0.3s ease;
border: 2px solid transparent;
display: flex;
align-items: flex-start;
gap: 1rem;
padding: 1.25rem;
}

.todo-card:hover {
box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
transform: translateY(-2px);
}

.todo-item.completed .todo-card {
border-color: #28a745;
background: color-mix(in srgb, #28a745, transparent 97%);
}

.todo-checkbox-wrapper {
position: relative;
flex-shrink: 0;
}

.todo-checkbox {
position: absolute;
opacity: 0;
width: 0;
height: 0;
}

.todo-label {
display: block;
cursor: pointer;
position: relative;
}

.checkmark {
width: 32px;
height: 32px;
border: 3px solid color-mix(in srgb, var(--accent-color), transparent 50%);
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
background: #fff;
position: relative;
}

.checkmark i {
opacity: 0;
transform: scale(0);
transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
color: #fff;
font-size: 1.2rem;
}

.todo-checkbox:checked + .todo-label .checkmark {
background: linear-gradient(135deg, #28a745, #20c997);
border-color: #28a745;
transform: scale(1.1);
box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

.todo-checkbox:checked + .todo-label .checkmark i {
opacity: 1;
transform: scale(1);
}

.todo-checkbox:checked + .todo-label .checkmark::after {
content: '';
position: absolute;
width: 100%;
height: 100%;
border-radius: 8px;
background: rgba(40, 167, 69, 0.2);
animation: ripple 0.6s ease-out;
}

@keyframes ripple {
0% {
    transform: scale(1);
    opacity: 1;
}
100% {
    transform: scale(2);
    opacity: 0;
}
}

.todo-content {
flex: 1;
min-width: 0;
}

.todo-header {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 1rem;
cursor: pointer;
transition: all 0.3s ease;
}

.todo-title-wrapper {
flex: 1;
}

.step-badge {
display: inline-block;
background: linear-gradient(135deg, var(--accent-color), color-mix(in srgb, var(--accent-color), transparent 20%));
color: #fff;
padding: 0.25rem 0.75rem;
border-radius: 20px;
font-size: 0.75rem;
font-weight: 600;
margin-bottom: 0.5rem;
text-transform: uppercase;
letter-spacing: 0.5px;
}

.todo-item.completed .step-badge {
background: linear-gradient(135deg, #28a745, #20c997);
}

.todo-title {
color: var(--heading-color);
font-weight: 600;
margin-bottom: 0.5rem;
font-size: 1.25rem;
transition: all 0.3s ease;
}

.todo-item.completed .todo-title {
color: #28a745;
text-decoration: line-through;
opacity: 0.7;
}

.todo-description {
color: color-mix(in srgb, var(--default-color), transparent 20%);
margin: 0;
font-size: 0.95rem;
line-height: 1.5;
}

.todo-item.completed .todo-description {
opacity: 0.6;
}

.todo-toggle {
background: none;
border: none;
color: var(--accent-color);
font-size: 1.5rem;
cursor: pointer;
transition: transform 0.3s ease;
padding: 0.25rem;
flex-shrink: 0;
display: flex;
align-items: center;
justify-content: center;
}

.todo-toggle[aria-expanded="true"] {
transform: rotate(180deg);
}

.todo-details {
margin-top: 1rem;
}

.todo-body {
padding-top: 1rem;
border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
animation: fadeInDown 0.4s ease;
}

@keyframes fadeInDown {
from {
    opacity: 0;
    transform: translateY(-10px);
}
to {
    opacity: 1;
    transform: translateY(0);
}
}

.todo-list {
list-style: none;
padding: 0;
margin: 0 0 1rem 0;
}

.todo-list li {
padding: 0.75rem 0;
padding-left: 2rem;
position: relative;
color: var(--default-color);
line-height: 1.6;
border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
animation: slideInLeft 0.4s ease;
animation-fill-mode: both;
}

.todo-list li:last-child {
border-bottom: none;
}

.todo-list li:nth-child(1) { animation-delay: 0.1s; }
.todo-list li:nth-child(2) { animation-delay: 0.2s; }
.todo-list li:nth-child(3) { animation-delay: 0.3s; }
.todo-list li:nth-child(4) { animation-delay: 0.4s; }
.todo-list li:nth-child(5) { animation-delay: 0.5s; }

@keyframes slideInLeft {
from {
    opacity: 0;
    transform: translateX(-20px);
}
to {
    opacity: 1;
    transform: translateX(0);
}
}

.todo-list li i {
position: absolute;
left: 0;
top: 0.75rem;
color: var(--accent-color);
font-size: 1.1rem;
}

.todo-tip {
background: color-mix(in srgb, var(--accent-color), transparent 95%);
border-left: 4px solid var(--accent-color);
padding: 1rem;
border-radius: 6px;
margin-top: 1rem;
display: flex;
align-items: flex-start;
gap: 0.75rem;
animation: fadeIn 0.5s ease 0.3s both;
}

@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}

.todo-tip i {
color: var(--accent-color);
font-size: 1.2rem;
margin-top: 0.1rem;
}

.todo-tip strong {
color: var(--heading-color);
display: block;
margin-bottom: 0.25rem;
}

#reset-checklist {
padding: 0.75rem 2rem;
font-weight: 600;
transition: all 0.3s ease;
}
.video-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
}

#reset-checklist:hover {
transform: translateY(-2px);
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
.todo-card {
    padding: 1rem;
    gap: 0.75rem;
}

.checkmark {
    width: 28px;
    height: 28px;
}

.todo-title {
    font-size: 1.1rem;
}

.todo-description {
    font-size: 0.85rem;
}

.percentage-value {
    font-size: 1.5rem;
}
}