/* Tarjetas de Trabajos Principales (TRUE LIQUID GLASS) */
.task-card { 
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 2px 10px rgba(255,255,255,0.05);
    border-radius: 20px; 
    padding: 18px; 
    margin-bottom: 20px; 
    display: flex; flex-direction: column; transition: transform 0.2s;
}
.task-card:active { transform: scale(0.97); }

/* Escalón de animaciones */
.task-card:nth-child(1) { animation-delay: 0.1s !important; }
.task-card:nth-child(2) { animation-delay: 0.2s !important; }
.task-card:nth-child(3) { animation-delay: 0.3s !important; }
.task-card:nth-child(n+4) { animation-delay: 0.4s !important; }

.task-header { display: flex; align-items: center; margin-bottom: 15px; }
.task-icon { 
    width: 45px; height: 45px; 
    border-radius: 14px; 
    display: flex; justify-content: center; align-items: center; 
    margin-right: 15px; font-size: 1.2rem; 
    
    /* Fondo naranja y texto blanco */
    background-color: var(--primary-orange);
    border: 1px solid rgba(255, 255, 255, 0.1); 
    color: #ffffff; 
    box-shadow: 0 4px 10px rgba(217, 125, 0, 0.4); 
    transition: transform 0.2s;
}
.task-info { flex: 1; }
.task-title { font-size: 1.25rem; font-weight: bold; margin-bottom: 4px; letter-spacing: 0.5px; }
.task-subtitle { font-size: 0.85rem; color: var(--text-muted); }
.task-footer { display: flex; justify-content: space-between; align-items: center; }
.task-date { color: var(--primary-orange); font-size: 0.9rem; font-weight: 500; }
.btn-comenzar { background: rgb(255, 255, 255); color: #000; border: none; padding: 8px 20px; border-radius: 20px; font-weight: bold; cursor: pointer; font-size: 0.95rem; box-shadow: 0 4px 10px rgba(255,255,255,0.2); transition: transform 0.2s; }
.btn-comenzar:active { transform: scale(0.9); }

/* Categorías (Completados) Glass */
.card-categoria { 
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.1);
    border-top: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4), inset 0 2px 10px rgba(255,255,255,0.1);
    width: 150px; padding: 18px; border-radius: 20px; 
    display: flex; flex-direction: column; cursor: pointer; transition: transform 0.2s; 
}
.card-categoria:active { transform: scale(0.95); }
.card-categoria i.text-orange { color: var(--primary-orange); font-size: 1.8rem; margin-bottom: 12px; filter: drop-shadow(0 2px 5px rgba(217, 125, 0, 0.4));}
.card-categoria p { font-weight: bold; font-size: 0.95rem; line-height: 1.2; }
.mt-auto { margin-top: auto; }

/* Interfaz de Detalles */
.info-tarea .label { font-size: 1rem; margin-top: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; font-size: 0.8rem;}
.info-tarea .value { font-size: 1.2rem; font-weight: bold; margin-bottom: 15px; }
.divider { border: 0; height: 1px; background: rgba(255,255,255,0.1); margin: 15px 0; }
.instrucciones-title { font-size: 1.3rem; margin-top: 25px; font-weight: bold;}
.instrucciones-subtitle { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 20px; }

/* Items de Paso (Liquid Glass oscuro) */
.paso-item { margin-bottom: 15px; transition: opacity 0.3s, transform 0.3s;}
.paso-locked { opacity: 0.35; pointer-events: none; filter: grayscale(50%); }
.paso-texto { 
    background: rgba(45, 26, 0, 0.4); backdrop-filter: blur(15px) saturate(150%); -webkit-backdrop-filter: blur(15px) saturate(150%);
    border: 1px solid rgba(217, 125, 0, 0.1); border-top: 1px solid rgba(217, 125, 0, 0.3);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    padding: 16px; border-radius: 16px; flex: 1; display: flex; align-items: center; gap: 12px; margin-bottom: 8px;
}

/* Acciones de Cámara con gradientes y sombras 3D */
.acciones-foto { display: flex; gap: 10px; width: 100%; margin-top: 5px; margin-bottom: 25px; }
.paso-camara { background: linear-gradient(135deg, #D97D00, #A65D00); color: white; border: none; height: 50px; border-radius: 14px; font-size: 1.1rem; cursor: pointer; font-weight: bold; box-shadow: 0 5px 15px rgba(217, 125, 0, 0.3), inset 0 2px 4px rgba(255,255,255,0.3);}
.btn-ver-imagen { background: linear-gradient(135deg, #20B2AA, #158A84); color: white; border: none; height: 45px; border-radius: 14px; font-weight: bold; cursor: pointer; display: flex; align-items: center; gap: 8px; flex: 1; justify-content: center; box-shadow: 0 5px 15px rgba(32, 178, 170, 0.3), inset 0 2px 4px rgba(255,255,255,0.3);}
.btn-eliminar { background: linear-gradient(135deg, #FF6B6B, #D93838); color: white; border: none; width: 45px; height: 45px; border-radius: 14px; font-size: 1.2rem; cursor: pointer; display: flex; justify-content: center; align-items: center; box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3), inset 0 2px 4px rgba(255,255,255,0.3);}

.btn-finalizar { background: white; color: #000; width: 85%; margin: 40px auto; padding: 16px; border-radius: 30px; font-size: 1.2rem; font-weight: bold; border: none; display: block; cursor: pointer; box-shadow: 0 10px 25px rgba(255,255,255,0.2); transition: transform 0.2s;}
.btn-finalizar:active { transform: scale(0.95); }

/* --- NUEVOS ESTILOS DE TAREA INTERNA --- */

/* Más espacio en las orillas */
.padding-extra { padding: 0 25px 120px 25px !important; }

/* Nuevo contenedor de Lugar */
.lugar-box { 
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.08);
    border-top: 1px solid rgba(255,255,255,0.25);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    padding: 15px; border-radius: 16px; 
    display: flex; align-items: center; gap: 12px; 
    margin-bottom: 15px; margin-top: 5px; 
}
.lugar-box i { color: var(--text-main); font-size: 1.3rem; }
.lugar-box span { color: white; font-size: 1.15rem; font-weight: bold; }

/* Botón de Mapa Naranja */
.btn-mapa-inline { 
    display: block; background: var(--primary-orange); color: white; 
    padding: 12px 20px; border-radius: 25px; text-decoration: none; 
    font-weight: bold; font-size: 1rem; text-align: center; width: 100%; 
    margin-bottom: 25px; box-shadow: 0 4px 15px rgba(217, 125, 0, 0.4); 
    transition: transform 0.2s;
}
.btn-mapa-inline:active { transform: scale(0.95); }

/* Estilo de Casillas Redondas y Botones Hollow */
.paso-item { border-bottom: 1px solid rgba(255,255,255,0.05); padding: 15px 0; margin-bottom: 0; }
.paso-texto { background: transparent !important; box-shadow: none !important; border: none !important; padding: 0 !important; margin: 0 !important;}
.custom-checkbox { 
    width: 28px; height: 28px; border-radius: 50%; 
    border: 2px solid var(--primary-orange); 
    display: flex; justify-content: center; align-items: center; 
    transition: all 0.3s; flex-shrink: 0;
}
.custom-checkbox.checked { background: var(--primary-orange); }
.custom-checkbox.checked::after { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; color: white; font-size: 0.9rem; }
.paso-camara-outline { 
    background: transparent; border: 1px solid var(--primary-orange); color: var(--primary-orange); 
    padding: 8px 15px; border-radius: 12px; font-weight: bold; cursor: pointer; 
    display: flex; align-items: center; gap: 8px; font-size: 0.9rem; transition: all 0.3s; 
}

/* Barra de Progreso */
.progreso-container { margin-top: 35px; margin-bottom: 20px; }
.progreso-header { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 10px; }
.progreso-track { width: 100%; height: 8px; background: rgba(255,255,255,0.1); border-radius: 4px; overflow: hidden; }
.progreso-fill { height: 100%; width: 0%; background: linear-gradient(90deg, #D97D00, #FFA726); border-radius: 4px; transition: width 0.5s ease-out; box-shadow: 0 0 10px rgba(217, 125, 0, 0.8); }

/* Botón Finalizar Mágico */
.btn-finalizar { 
    background: rgba(255,255,255,0.05) !important; color: var(--text-muted) !important; 
    width: 100%; margin: 20px auto 40px auto; padding: 18px; border-radius: 30px; 
    font-size: 1.1rem; font-weight: bold; border: 1px solid rgba(255,255,255,0.1) !important; 
    box-shadow: none !important; cursor: not-allowed; transition: all 0.4s; 
}
.btn-finalizar.ready { 
    background: linear-gradient(135deg, #D97D00, #A65D00) !important; 
    color: white !important; border: none !important; 
    box-shadow: 0 0 25px rgba(217, 125, 0, 0.6) !important; cursor: pointer; 
}