/* ==================== TARJETAS ==================== */
.card {
    background: white;
    border-radius: 28px;
    padding: 2rem;
    box-shadow: 0 20px 25px -5px rgb(192 132 252 / 0.1),
                0 8px 10px -6px rgb(192 132 252 / 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, #c084fc, #ec4899);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 35px -10px rgb(236 72 153 / 0.2);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.card-header > div {
    display: flex;
    flex-direction: column;
}

.guide-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: #4c1d95;
    line-height: 1.3;
    max-width: 15rem;
}

.delete-btn {
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    opacity: 0.4;
    transition: all 0.2s;
}

.delete-btn:hover {
    opacity: 1;
    transform: scale(1.2);
}

/* ==================== PROGRESS BAR ==================== */
.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 1.1rem;
    font-weight: 500;
}

.exercise-counter {
    color: #6b21a8;
}

.percentage {
    background: linear-gradient(90deg, #c084fc, #ec4899);
    color: white;
    padding: 4px 14px;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 1rem;
}

.progress-bar-container {
    height: 26px;
    background: #f3e8ff;
    border-radius: 9999px;
    overflow: hidden;
    margin-bottom: 1.8rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #c084fc, #ec4899);
    border-radius: 9999px;
    transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 0 15px rgba(236, 72, 153, 0.5);
}

/* ==================== EDICIÓN EN CARD ==================== */
.edit-section {
    display: flex;
    gap: 12px;
    align-items: end;
}

.input-group {
    flex: 1;
}

.input-group label {
    display: block;
    font-size: 0.9rem;
    color: #9f7aea;
    margin-bottom: 4px;
    font-weight: 500;
}

.input-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0c4f7;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #4c1d95;
    transition: all 0.2s;
}

.input-group input:focus {
    outline: none;
    border-color: #c084fc;
    box-shadow: 0 0 0 4px rgba(192, 132, 252, 0.2);
}

.update-btn {
    background: #c084fc;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.update-btn:hover {
    background: #ec4899;
    transform: scale(1.05);
}
